7ca5e7b755564339cc848dd455a04b210374d010
[gnulib.git] / ChangeLog
1 2011-12-22  Jim Meyering  <meyering@redhat.com>
2
3         init.sh: correct previous change
4         * tests/init.sh (compare): My previous change was wrong.
5         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6
7         init.sh: avoid unwarranted test failure when using "set -e"
8         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10         a use like "compare exp out" would get evoke an unconditional failure.
11
12 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
13
14         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
15         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
16         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
17         autoreconf that did not.
18         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
19         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
20
21 2011-12-17  Jim Meyering  <meyering@redhat.com>
22
23         bootstrap: remove some now-unneeded code
24         This script arose back when gnulib-tool was young.
25         Since then, it has seen improvements that render much of this
26         script unnecessary.  In particular, it can now make symlinks
27         to the files it uses.  Also, I no longer see as much value in
28         marking files as read-only via comments.
29         If you relied on the symlink-creation feature of the preceding
30         version of this script, you can get most of that functionality
31         by adding the --symlink option to the definition of
32         gnulib_tool_option_extras in your bootstrap.conf file.
33         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
34         Run autopoint and libtoolize *before* gnulib-tool.
35         After it, run an abbreviated autoreconf, rather than a loop around
36         all tools.
37         (slirp, bt_mark_as_generated): Remove functions.
38
39 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40
41         ftoastr: fix typo
42         * lib/ftoastr.h: Fix misspelling in comment.
43
44 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
45
46         * top/README-release: fix punctuation.
47
48 2011-12-17  Jim Meyering  <meyering@redhat.com>
49
50         bootstrap: correct the recent buildreq change
51         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
52         had no effect.
53         * build-aux/bootstrap (buildreq): Bracket each search term with
54         "*...*", so that the shell "case" statement works as intended.
55         Add comments.
56
57 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
58
59         build: let bootstrap resort to wget when downloading .po files
60         * build-aux/bootstrap (download_po_files): Fallback to wget when
61         downloading the .po files via rsync fails.  This is necessary to
62         bootstrap from behind a strict firewall.
63
64 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
65
66         stdint: don't assume C++11 when compiling with g++
67         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
68         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
69         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
70         work also in C++ before C++11, as that improperly inhibits
71         generating a substitute stdint.h for that case.
72
73 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
74
75         alloca: protect comment from gnulib-tool
76         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
77         that gnulib-tool doesn't think it's a license, and munge it to
78         say "GCC version 3".
79
80 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
81
82         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
83         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
84         $(abs_top_builddir) instead of $(top_builddir).
85
86 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
87
88         strftime-tests: also test nanoseconds
89         * tests/test-strftime.c (T): Add a test of %N.
90
91 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
92
93         inttypes, stdint: add C++11 support
94         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
95         when including inttypes.h and stdint.h.  Support this change to
96         the standard.
97         * doc/posix-headers/inttypes.texi (inttypes.h):
98         * doc/posix-headers/stdint.texi (stdint.h): Document this.
99         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
100         Define if not defined already, for the benefit of pre-C++11 hosts.
101         Define the standard format macros (e.g., PRId8) always.
102         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
103         Likewise, if __cpluspus.  Define the standard constant and limit
104         macros (e.g., INT8_C, INT8_MAX) always.
105         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
106         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
107         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
108         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
109         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
110         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
111         Likewise.
112
113 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
114
115         nonblocking tests: Fix test failure on Linux/PPC.
116         Suggested by Prerna Saxena in
117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
118         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
119         Set to 1100000.
120
121 2011-12-12  Jim Meyering  <meyering@redhat.com>
122
123         argmatch: don't hard-code `' when listing valid option arguments
124         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
125         use the quote function to add quotes.  Use fputs rather than
126         fprintf for the format string with no format directive.
127
128 2011-12-07  Eric Blake  <eblake@redhat.com>
129
130         bootstrap: detect tools required by gnulib-tool
131         * build-aux/bootstrap (buildreq): Provide minimum implicit
132         dependencies.
133         * DEPENDENCIES: Mention patch as a prereq.
134
135 2011-12-04  Bruno Haible  <bruno@clisp.org>
136
137         sethostname: Port to Windows platforms.
138         * lib/sethostname.c: Provide an alternate implementation for Windows
139         platforms.
140         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
141         (main): Skip the test if sethostname() fails with EPERM. On Windows
142         platforms, don't check the result of gethostname().
143
144 2011-12-04  Bruno Haible  <bruno@clisp.org>
145             Jim Meyering  <meyering@redhat.com>
146
147         tests: Avoid spurious error message on platforms without mktemp program.
148         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
149
150 2011-12-04  Bruno Haible  <bruno@clisp.org>
151
152         sethostname: Fix documentation.
153         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
154         "not fixed" section.
155
156 2011-12-03  Bruno Haible  <bruno@clisp.org>
157
158         gnulib-tool: Verify that the License field is present and non-empty.
159         * gnulib-tool (func_get_license_raw): New function, extracted from
160         func_get_license.
161         (func_get_license): Use it. Warn if the module is not a test module and
162         has no license.
163         Suggested by Jim Meyering.
164
165 2011-12-03  Bruno Haible  <bruno@clisp.org>
166
167         sethostname tests: Fix link error on mingw.
168         * tests/test-sethostname1.c: New file, extracted from
169         tests/test-sethostname.c.
170         * tests/test-sethostname2.c: New file, extracted from
171         tests/test-sethostname.c.
172         * tests/test-sethostname.c: Remove file.
173         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
174         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
175         (Depends-on): Add gethostname.
176         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
177         Link the latter with $(GETHOSTNAME_LIB).
178
179         sethostname tests: Fix compilation error on mingw.
180         * tests/test-sethostname.c: Don't include <sys/types.h>.
181         (geteuid): Use a dummy value without uid_t.
182         * modules/sethostname-tests (Depends-on): Remove sys_types.
183
184         sethostname tests: Avoid a gcc warning.
185         * tests/test-sethostname.c (main): Remove an unused variable.
186
187         Tweak last commit.
188         * modules/sethostname-tests (Files): Sort by decreasing importance.
189         (configure.ac): Check for geteuid.
190         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
191         the test when there's nothing to test. Drop an unnecessary cast.
192         Improve an error message. Verify that the final sethostname() call
193         succeeds.
194
195 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
196
197         Add a test suite for the sethostname module.
198         * modules/sethostname-tests: New file.  A test program
199         for the sethostname module.
200         * tests/test-sethostname.c: Likewise.
201
202 2011-12-03  Bruno Haible  <bruno@clisp.org>
203
204         Tweak last commit.
205         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
206         Fix preprocessor directives indentation. Fix typos.
207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
208         * modules/unistd (Makefile): Likewise.
209
210 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
211
212         Integrate the sethostname module into unistd.
213         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
214         into the unistd.h header.
215         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
216         preprocessor directives.
217         * modules/unistd: Setup the Makefile substitutions of the
218         SETHOSTNAME preprocessor directives.
219
220 2011-12-03  Bruno Haible  <bruno@clisp.org>
221
222         Tweak last commit.
223         * lib/sethostname.c: Don't include <string.h>.
224         (sethostname): No need to copy the argument string to the stack. Don't
225         call clearerr. Preserve errno when fprintf failed.
226         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
227         Don't invoke AC_REPLACE_FUNCS.
228         * modules/sethostname (Link): Remove empty section.
229         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
230         failure problem.
231
232 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
233
234         New module 'sethostname'.
235         * lib/sethostname.c (sethostname): New file.  Provide sethostname
236         for systems that lack it.
237         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
238         sethostname declaration and function.
239         * modules/sethostname: New file.  Define the sethostname module.
240
241 2011-12-03  Bruno Haible  <bruno@clisp.org>
242
243         Tweak last commit.
244         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
245
246 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
247
248         Split the HOST_NAME_MAX detection into a separate m4 macro.
249         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
250         macro so it can be used by the pending sethostname module.
251
252 2011-12-03  Bruno Haible  <bruno@clisp.org>
253
254         Fix module descriptions syntax.
255         * modules/argv-iter (License): Fix syntax.
256         * modules/di-set (License): Likewise.
257         * modules/ino-map (License): Likewise.
258         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
259
260 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
261
262         stdalign: port to Clang 3.0
263         Problem reported by Simon Josefsson in
264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
265         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
266         which has <stdalign.h> but which does not define alignof.
267         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
268
269 2011-12-01  Eric Blake  <eblake@redhat.com>
270
271         mktempd: silence dd usage
272         * build-aux/mktempd (rand_bytes): Silence dd.
273
274 2011-11-30  Simon Josefsson  <simon@josefsson.org>
275
276         manywarnings: Don't mention gcc version in docstring.
277         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
278         Jim Meyering <meyering@redhat.com>.
279
280 2011-11-30  Jim Meyering  <meyering@redhat.com>
281
282         hash: mark a few floating point constants with "f" suffix
283         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
284         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
285         floating point constants with "f", since they're destined to be
286         saved/used as "float"s.
287
288 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
289
290         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
291         * tests/test-float.c (test_long_double): Correct and re-enable the
292         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
293
294 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
295
296         Avoid subtracting two pointers that don't point into the same block.
297         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
298         only pointers into the same memory block are subtracted. We cannot
299         assume that sizeof (ptrdiff_t) == sizeof (void *).
300
301 2011-11-29  Eric Blake  <eblake@redhat.com>
302
303         maint.mk: add syntax check for use of compare from init.sh
304         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
305         moved here from coreutils.
306
307         manywarnings: drop -Wunsuffixed-float-constants
308         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
309         '1.0D', which is the only way to silence this warning for 'double'.
310
311 2011-11-29  Jim Meyering  <meyering@redhat.com>
312
313         hash: mark compute_bucket_size with the pure attribute
314         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
315
316         quotearg, propername: correct pragma guard expression
317         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
318         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
319
320 2011-11-28  Jim Meyering  <meyering@redhat.com>
321
322         propername: do not mark proper_name with the const attribute
323         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
324         since it examines data pointed to by its parameter.
325         * lib/propername.c (proper_name): Instead, add a pragma to suppress
326         the suggestion from -Wsuggest-attribute=const.
327
328         propername: mark one more function as const
329         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
330
331 2011-11-27  Jim Meyering  <meyering@redhat.com>
332
333         mark functions with const and pure attributes
334
335         Mark functions per suggestions from gcc-4.6 when using these options:
336         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
337         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
338         Follow these guidelines: when possible, apply the attribute to
339         an extern declaration, not to its definition.  Apply it to the
340         definition only when the definition is static.
341         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
342         * lib/argv-iter.h (argv_iter_n_args): Likewise.
343         * lib/base64.h (isbase64): Likewise.
344         * lib/basename-lgpl.c (last_component, base_len): Likewise.
345         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
346         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
347         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
348         (c_tolower, c_toupper): Likewise.
349         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
350         * lib/chdir-long.c (find_non_slash): Likewise.
351         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
352         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
353         * lib/file-type.h (file_type): Likewise.
354         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
355         * lib/filevercmp.c (verrevcmp): Likewise.
356         * lib/freadahead.h (freadahead): Likewise.
357         * lib/fts.c (fts_maxarglen): Likewise.
358         * lib/hash-pjw.h (hash_pjw): Likewise.
359         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
360         * lib/hash.c (is_prime, next_prime): Likewise.
361         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
362         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
363         (hash_table_ok, hash_get_first, hash_string): Likewise.
364         (compute_bucket_size): Likewise.
365         * lib/i-ring.h (i_ring_empty): Likewise.
366         * lib/isnan.c (isnanl): Likewise.
367         * lib/math.h (isnanl, rpl_isnanl): Likewise.
368         * lib/memcasecmp.h (memcasecmp): Likewise.
369         * lib/memchr2.h (memchr2): Likewise.
370         * lib/memcmp2.h (memcmp2): Likewise.
371         * lib/parse-datetime.y (lookup_zone): Likewise.
372         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
373         [!WINDOWS_SOCKETS]: Likewise.
374         * lib/strnlen1.h (strnlen1): Likewise.
375         * lib/uniwidth.in.h (uc_width): Likewise.
376         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
377         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
378         (quoting_options_from_style): Add a comment.
379         * lib/propername.h (proper_name): Add a comment.
380
381 2011-11-27  Bruno Haible  <bruno@clisp.org>
382
383         Remove unused macros from !_LIBC code in glibc-borrowed files.
384         * lib/fnmatch.c (STRCOLL): Remove macro.
385         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
386         * lib/glob.c (__stat, __readdir64): Remove macros.
387         * lib/tempname.c (__open64, __xstat64): Remove macros.
388         Suggested by Paul Eggert.
389
390 2011-11-27  Bruno Haible  <bruno@clisp.org>
391
392         getcwd: Fix link error on MSVC 9.
393         * modules/getcwd (Depends-on): Add readdir, rewinddir.
394
395 2011-11-27  Bruno Haible  <bruno@clisp.org>
396
397         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
398         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
399         HAVE_OPENDIR is 0.
400         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
401         HAVE_CLOSEDIR is 0.
402         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
403         is 0.
404         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
405
406 2011-11-27  Bruno Haible  <bruno@clisp.org>
407
408         getcwd: Fix bug from 2011-08-17.
409         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
410         platforms that need it.
411         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
412         code of 4 to be a failure, not a success. This ensures that
413         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
414
415 2011-11-27  Bruno Haible  <bruno@clisp.org>
416
417         binary-io tests: Avoid test failure on mingw when libtool is used.
418         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
419         Don't verify the size of t-bin-out1.tmp here.
420         * tests/test-binary-io.sh: Verify it here.
421         Reported by Simon Josefsson.
422
423 2011-11-26  Bruno Haible  <bruno@clisp.org>
424
425         Fix conflict between two instantiations of module 'unistd'.
426         * gnulib-tool (func_emit_autoconf_snippet): Substitute
427         ${include_guard_prefix} also in the autoconf snippet.
428         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
430         GNULIB_UNISTD_H_GETOPT.
431         * modules/getopt-posix (configure.ac): Set the
432         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
433         * modules/getopt-gnu (configure.ac): Likewise.
434         * modules/unistd (Makefile.am): Change the substitution value of
435         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
436         Reported by Simon Josefsson.
437
438 2011-11-25  Bruno Haible  <bruno@clisp.org>
439
440         pagealign_alloc: Doc and comments.
441         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
442         module.
443         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
444
445 2011-11-25  Jim Meyering  <meyering@redhat.com>
446
447         test-update-copyright.sh: avoid false-positive failure
448         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
449         around false positive failure on Cygwin/Windows.  The latter was
450         matching erroneously-created files with names like
451         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
452
453 2011-11-25  Simon Josefsson  <simon@josefsson.org>
454
455         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
456         * m4/valgrind-tests.m4: Check that the parameters that will be
457         used works, not just a subset of them.  Reported by Bruno Haible
458         <bruno@clisp.org>.
459
460 2011-11-24  Jim Meyering  <meyering@redhat.com>
461
462         test-stdalign.c: comment out long double tests
463         * tests/test-stdalign.c: Don't try to reduce alignment of long double
464         variables.  That provokes errors like this from gcc-4.7.0 20111124:
465         error: '_Alignas' specifiers cannot reduce alignment of \
466         'static_longdouble_alignas'.
467
468 2011-11-22  Jim Meyering  <meyering@redhat.com>
469
470         init.sh: make "compare /dev/null FILE" output more readable
471         * tests/init.sh (compare_): Document the preferred order of arguments.
472         (emit_diff_u_header_): New function.
473         (compare_dev_null_): Emit a simulated diff, rather than just the
474         contents of the unexpected file.  Suggestion from Bruno Haible.
475
476 2011-11-21  Jim Meyering  <meyering@redhat.com>
477             Eric Blake  <eblake@redhat.com>
478
479         init.sh: work around OSF/1 5.1's mishandling of /dev/null
480         * tests/init.sh: Make our compare function slightly more portable.
481         Reported by Bruno Haible in
482         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
483
484 2011-11-21  Simon Josefsson  <simon@josefsson.org>
485
486         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
487         before using it, in code that ends up in config.h.
488
489 2011-11-20  Bruno Haible  <bruno@clisp.org>
490
491         getcwd: Work around getcwd bug on AIX 5..7.
492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
493         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
494         Use a different value for gl_cv_func_getcwd_path_max. Move the
495         definition of HAVE_PARTLY_WORKING_GETCWD from here...
496         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
497         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
498         Define HAVE_MINIMALLY_WORKING_GETCWD.
499         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
500         where it is not even minimally working, that is, on AIX.
501         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
502         m4/getcwd-path-max.m4.
503         (main): Update exit code computation.
504         * doc/posix-functions/getcwd.texi: Mention list of platforms where
505         getcwd does not handle long file names.
506
507 2011-11-20  Bruno Haible  <bruno@clisp.org>
508
509         getcwd: Fix bug from 2009-09-10.
510         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
511         like "no".
512
513 2011-11-20  Simon Josefsson  <simon@josefsson.org>
514
515         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
516
517 2011-11-20  Bruno Haible  <bruno@clisp.org>
518
519         fma tests: Avoid shadowing local variables.
520         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
521         expected.
522
523 2011-11-20  Bruno Haible  <bruno@clisp.org>
524
525         copysignf tests: Fix.
526         * tests/test-copysignf.c: Fix signature check.
527
528 2011-11-20  Bruno Haible  <bruno@clisp.org>
529
530         fma: Remove unused code.
531         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
532         unused macros.
533
534 2011-11-20  Bruno Haible  <bruno@clisp.org>
535
536         sethostname: Fix doc about AIX.
537         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
538         sethostname; it has it.
539
540         sethostname: Mention more portability problems.
541         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
542         problem.
543         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
544
545 2011-11-19  Bruno Haible  <bruno@clisp.org>
546
547         Depend on module fcntl-h when AT_FDCWD is used.
548         * modules/utimens (Depends-on): Add fcntl-h.
549         * modules/areadlinkat (Depends-on): Likewise.
550         * modules/areadlinkat-with-size (Depends-on): Likewise.
551         * modules/faccessat (Depends-on): Likewise.
552         * modules/fchmodat (Depends-on): Likewise.
553         * modules/fchownat (Depends-on): Likewise.
554         * modules/getcwd (Depends-on): Likewise.
555         * modules/mkdirat (Depends-on): Likewise.
556         * modules/mkfifoat (Depends-on): Likewise.
557         * modules/readlinkat (Depends-on): Likewise.
558         * modules/symlinkat (Depends-on): Likewise.
559         * modules/dup2-tests (Depends-on): Likewise.
560         * modules/fdutimensat-tests (Depends-on): Likewise.
561         * modules/futimens-tests (Depends-on): Likewise.
562
563 2011-11-19  Bruno Haible  <bruno@clisp.org>
564
565         euidaccess: Update a comment.
566         * lib/euidaccess.c: Update comment about platforms with faccessat.
567
568 2011-11-19  Bruno Haible  <bruno@clisp.org>
569
570         openat: Fix file list.
571         * modules/openat (Files): Remove lib/at-func.c.
572
573 2011-11-19  Bruno Haible  <bruno@clisp.org>
574
575         fstatat: Simplify.
576         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
577         gnulib should define rpl_fstatat, there is a
578         "#define fstatat rpl_fstatat" in <sys/stat.h>.
579
580 2011-11-19  Bruno Haible  <bruno@clisp.org>
581
582         Ensure 'inline' can be used in tests/test-utimens-common.h.
583         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
584         * modules/futimens-tests (configure.ac): Likewise.
585         * modules/utimens-tests (configure.ac): Likewise.
586         * modules/utimensat-tests (configure.ac): Likewise.
587
588 2011-11-19  Simon Josefsson  <simon@josefsson.org>
589
590         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
591         not hash_insert0.
592         (hash_insert_if_absent): Doc fix.
593
594 2011-11-19  Simon Josefsson  <simon@josefsson.org>
595
596         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
597
598 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
599
600         test-getcwd: disambiguate exit status
601         * tests/test-getcwd.c (test_long_name): Return 0..7.
602         (main): Exit with an unambiguous exit status.  The old
603         code yielded a mysterious mixture of two failure codes.
604
605         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
606         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
607         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
608         rpl_fstatat or fstatat.  This should fix the other problem
609         reported by Kai Habel in
610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
611         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
613         and I reproduced it on a Solaris 8 host we still have in production.
614
615 2011-11-18  Jim Meyering  <meyering@redhat.com>
616
617         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
618         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
619         Add a sentence to the comment.
620         (hash_insert0): New function that simply calls hash_insert_if_absent.
621         * lib/hash.h (hash_insert_if_absent): Declare it.
622         (hash_insert0): Add deprecation attribute.
623         (_GL_ATTRIBUTE_DEPRECATED): Define.
624         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
625         not hash_insert0.
626         * NEWS: Mention it, even though it's not really an incompatible change.
627
628 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
629
630         openat: avoid compilation failure due to lack of <errno.h> inclusion
631         * lib/openat.c: Include <errno.h>.
632
633 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
634
635         * modules/getcwd (Depends-on): Add fdopendir.
636         This fixes one of the two problems reported by Kai Habel in
637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
638
639         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
640         stdalign problem reported by Ian Beckwith in
641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
642         * modules/crypto/gc-arcfour (Depends-on):
643         Depend conditionally on crypto/arcfour.
644         * modules/crypto/gc-arctwo (Depends-on):
645         Depend conditionally on crypto/arctwo.
646         * modules/crypto/gc-des (Depends-on):
647         Depend conditionally on crypto/des.
648         * modules/crypto/gc-hmac-md5 (Depends-on):
649         Depend conditionally on crypto/hmac-md5.
650         * modules/crypto/gc-hmac-sha1 (Depends-on):
651         Depend conditionally on crypto/hmac-sha1.
652         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
653         * modules/crypto/gc-md4 (Depends-on):
654         Depend conditionally on crypto/md4.
655         * modules/crypto/gc-md5 (Depends-on):
656         Depend conditionally on crypto/md5.
657         * modules/crypto/gc-rijndael (Depends-on):
658         Depend conditionally on crypto/rijndael.
659         * modules/crypto/gc-sha1 (Depends-on):
660         Depend conditionally on crypto/sha1.
661         * modules/crypto/gc-arcfour:
662         * modules/crypto/gc-arctwo:
663         * modules/crypto/gc-des:
664         * modules/crypto/gc-hmac-md5:
665         * modules/crypto/gc-hmac-sha1:
666         * modules/crypto/gc-md2:
667         * modules/crypto/gc-md4:
668         * modules/crypto/gc-md5:
669         * modules/crypto/gc-rijndael:
670         * modules/crypto/gc-sha1:
671         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
672         now that the conditional dependencies do the work for us.
673
674 2011-11-17  Jim Meyering  <meyering@redhat.com>
675
676         tests: factor st_ctime-comparison out of two headers
677         * tests/test-utimens-common.h (ctime_compare): Define.
678         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
679         * tests/test-lutimens.h (test_lutimens): Likewise.
680         * tests/test-utimens.h (test_utimens): Likewise.
681
682         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
683         Invoke the test program via an init.sh-using wrapper.
684         * tests/test-getcwd.sh: New file.
685         * modules/getcwd-tests (Files): Add it.
686         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
687
688 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
689
690         gitlog-to-changelog: support multi-author commits.
691         The FSF cares about keeping track of all authors of patches to its
692         projects, but Git doesn't provide obvious support for multi-author
693         changesets. Consensus seems to be forming around the use of extra
694         Signed-off-by inspired lines in the log message formatted as
695         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
696         multi-author commits between version control systems.
697         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
698         log message and output in standard ChangeLog multi-author format.
699         Reported by Peter Rosin <peda@lysator.liu.se>
700
701 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
702             Bruno Haible  <bruno@clisp.org>
703
704         Fix some modules' file list.
705         * modules/fstatat (Files): Add m4/lstat.m4.
706         * modules/openat (Files): Likewise.
707         * modules/unlinkat (Files): Likewise.
708
709 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
710
711         maint.mk: fix tight-scope.mk generation in VPATH builds.
712         * top/maint.mk (tight-scope.mk): Make sure to prefix file
713         reference with $(srcdir) so that the file is found correctly even
714         when running `make syntax-check' in a VPATH build.
715
716 2011-11-13  Bruno Haible  <bruno@clisp.org>
717             Jim Meyering  <meyering@redhat.com>
718
719         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
720         * tests/init.sh (compare): Remove "No differences encountered" or
721         synonymous output from the 'diff' program.
722
723 2011-11-13  Bruno Haible  <bruno@clisp.org>
724
725         Makefile: Tweak indentation.
726         * Makefile: Use tab as first character in every line that contains rule
727         commands.
728
729 2011-11-13  Bruno Haible  <bruno@clisp.org>
730
731         Syntax check for copyright statements.
732         * check-copyright: New file.
733         * Makefile (sc_check_copyright): New rule.
734
735 2011-11-13  Simon Josefsson  <simon@josefsson.org>
736
737         * build-aux/git-version-gen: Add --prefix to configure the tag
738         match string.
739
740 2011-11-13  Simon Josefsson  <simon@josefsson.org>
741
742         * build-aux/git-version-gen: Add --help and --version.
743
744 2011-11-12  Jim Meyering  <meyering@redhat.com>
745
746         revamp the other test-exclude?.sh scripts to use init.sh, too
747         * tests/test-exclude1.sh: Use init.sh.
748         * tests/test-exclude2.sh: Likewise.
749         * tests/test-exclude3.sh: Likewise.
750         * tests/test-exclude4.sh: Likewise.
751         * tests/test-exclude5.sh: Likewise.
752         * tests/test-exclude6.sh: Likewise.
753         * tests/test-exclude7.sh: Likewise.
754         * tests/test-exclude8.sh: Likewise.
755         * modules/exclude-tests (Files): List init.sh.
756
757         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
758         These shell scripts ignored failure of the binary test-exclude,
759         so making the latter return 77 didn't cause them to be skipped.
760         * tests/test-exclude5.sh: Exit with test-exclude's error status
761         when that program fails.  Revamp to use init.sh.
762         * tests/test-exclude2.sh: Likewise.
763
764         test-exclude: fix a typo
765         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
766
767 2011-11-11  Bruno Haible  <bruno@clisp.org>
768
769         obstack: Fix compilation error on MSVC 9.
770         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
771
772 2011-11-11  Jim Meyering  <meyering@redhat.com>
773
774         test-exclude: skip tests rather than failing on deficient systems
775         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
776         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
777         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
778         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
779
780 2011-11-10  Bruno Haible  <bruno@clisp.org>
781
782         ptsname_r test: Avoid gcc warning on glibc systems.
783         * tests/test-ptsname_r.c (null_ptr): New function.
784         (test_errors): Use it.
785
786 2011-11-10  Bruno Haible  <bruno@clisp.org>
787
788         ptsname_r: Avoid compilation error on OSF/1 5.1.
789         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
791         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
792         function is not declared or incompatibly declared.
793         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
794         * modules/ptsname_r (Depends-on, configure.ac): Update.
795         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
796
797 2011-11-10  Bruno Haible  <bruno@clisp.org>
798
799         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
800         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
801         When cross-compiling, guess yes on all platforms except AIX.
802         Reported by Ludovic Courtès <ludo@gnu.org>.
803
804 2011-11-09  Bruno Haible  <bruno@clisp.org>
805
806         ptsname_r tests: Fix bugs.
807         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
808         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
809
810 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
811
812         fstatat: work with cross-compilation
813         Problem reported by Ludovic Courtès in
814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
815         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
816         "cross-compiling" and assume the bug is present.  Replace
817         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
818         an inverted sense, to be more conservative about our assumptions.
819         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
820
821 2011-11-09  Bruno Haible  <bruno@clisp.org>
822
823         Improve MODULES.html output.
824         * modules/mkfifoat (Description): Use the word "function".
825         * modules/readlinkat (Description): Likewise.
826         * modules/symlinkat (Description): Likewise.
827
828 2011-11-09  Eric Blake  <eblake@redhat.com>
829
830         ptsname_r-tests: new test module
831         * modules/ptsname_r-tests: New module.
832         * tests/test-ptsname_r.c: New file.
833
834         ptsname_r: new module
835         * modules/ptsname_r: New module.
836         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
837         * lib/ptsname.c (__ptsname_r): Split...
838         * lib/ptsname_r.c: ...into new file.
839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
840         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
841         * modules/stdlib (Makefile.am): Substitute witnesses.
842         * lib/stdlib.in.h (ptsname_r): Declare it.
843         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
844         * MODULES.html.sh (Misc): Likewise.
845         * modules/ptsname (Depends-on): Alter dependency.
846         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
847
848 2011-11-09  Jim Meyering  <meyering@redhat.com>
849
850         announce-gen: be more concise when there's only one URL+tarball
851         * build-aux/announce-gen (get_tool_versions): When you distribute
852         only one type of tarball, combine the first two "Here are..."
853         sections and make the key-checking grammar independent of
854         how many tarballs there are.
855
856 2011-11-09  Eric Blake  <eblake@redhat.com>
857
858         openpty: provide a stub on mingw
859         * lib/pty.in.h (includes): Provide forward declarations.
860         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
861
862         raise: fix mingw handling of SIGPIPE
863         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
864
865 2011-11-08  Bruno Haible  <bruno@clisp.org>
866
867         More conditional dependencies.
868         * modules/faccessat (Depends-on): Add conditions.
869         * modules/fchmodat (Depends-on): Likewise.
870         * modules/fchownat (Depends-on): Likewise.
871         * modules/fstatat (Depends-on): Likewise.
872         * modules/mkfifoat (Depends-on): Likewise.
873         * modules/readlinkat (Depends-on): Likewise.
874         * modules/symlinkat (Depends-on): Likewise.
875         * modules/unlinkat (Depends-on): Likewise.
876         * modules/utimensat (Depends-on): Likewise.
877         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
878         * modules/linkat (Depends-on): Refine the conditions.
879         * modules/renameat (Depends-on): Likewise.
880
881 2011-11-08  Bruno Haible  <bruno@clisp.org>
882
883         faccessat: Move AC_LIBOBJ invocation to module description.
884         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
885         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
886         invocation from here...
887         * modules/faccessat (configure.ac): ... to here. Invoke
888         gl_PREREQ_FACCESSAT.
889
890 2011-11-08  Bruno Haible  <bruno@clisp.org>
891
892         faccessat: Simplify autoconf macro.
893         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
894         gl_FUNC_EUIDACCESS.
895
896 2011-11-08  Bruno Haible  <bruno@clisp.org>
897
898         renameat: Fix dependencies.
899         * modules/renameat (Depends-on): Add stdbool.
900
901 2011-11-08  Bruno Haible  <bruno@clisp.org>
902
903         mkfifoat: Fix module description.
904         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
905         not gl_UNISTD_MODULE_INDICATOR.
906
907 2011-11-08  Bruno Haible  <bruno@clisp.org>
908
909         fstatat: Remove unused dependency.
910         * modules/fstatat (Depends-on): Remove fstat.
911
912 2011-11-08  Simon Josefsson  <simon@josefsson.org>
913
914         GNUmakefile: behave when Makefile is missing.
915         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
916
917 2011-11-08  Bruno Haible  <bruno@clisp.org>
918
919         openat: Conditionalize dependencies.
920         * lib/openat.c: Reduce the scope of some #includes.
921         * modules/openat (Depends-on): Add conditions.
922
923 2011-11-07  Jim Meyering  <meyering@redhat.com>
924
925         maint.mk: extract GPG key ID without using a temporary file
926         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
927         without using a temporary file.  Based on a suggestion from Werner Koch
928         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
929
930 2011-11-07  Eric Blake  <eblake@redhat.com>
931
932         grantpt: fix typo
933         * lib/stdlib.in.h (grantpt): Check correct function.
934
935         maint.mk: silence new syntax check
936         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
937
938 2011-11-06  Bruno Haible  <bruno@clisp.org>
939
940         Doc about floating-point and math API.
941         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
942         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
943
944 2011-11-06  Bruno Haible  <bruno@clisp.org>
945
946         stdalign tests: Skip the test when compiled by Sun C.
947         * tests/test-stdalign.c (main): Skip the test on Sun C.
948
949 2011-11-06  Bruno Haible  <bruno@clisp.org>
950
951         ansi-c++-opt: Complete the 2011-06-05 change.
952         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
953         does not support namespaces, set the variable to "no", not to ":".
954
955 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
956
957         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
958
959 2011-11-06  Bruno Haible  <bruno@clisp.org>
960
961         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
962         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
963         (minus_zerol) [HP-UX]: New macro.
964         (unary_minus) [HP-UX]: New function.
965         (copysignl) [HP-UX]: Use unary_minus function.
966
967 2011-11-06  Bruno Haible  <bruno@clisp.org>
968
969         ldexp, ldexpf, ldexpl: Enhance tests.
970         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
971         and tests/test-ldexpl.c.
972         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
973         LDEXP, MIN_EXP, MAX_EXP): New macros.
974         Include test-ldexp.h.
975         (main): Just call test_function.
976         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
977         infinity.h, nan.h.
978         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
979         MAX_EXP): New macros.
980         Include test-ldexp.h.
981         (x, y): Remove variables.
982         (main): Just call test_function.
983         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
984         infinity.h, nan.h.
985         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
986         MAX_EXP): New macros.
987         Include test-ldexp.h.
988         (x, y): Remove variables.
989         (main): Just call test_function.
990         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
991         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
992         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
993         (Depends-on): Add isnand-nolibm, signbit, float.
994         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
995         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
996         (Depends-on): Add isnanf-nolibm, signbit, float.
997
998 2011-11-06  Bruno Haible  <bruno@clisp.org>
999
1000         math tests: Cosmetics.
1001         * tests/test-math-c++.cc: Reorder declarations.
1002
1003 2011-11-05  Bruno Haible  <bruno@clisp.org>
1004
1005         fma*: Simplify test.
1006         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1007         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1008
1009         Tests for module 'fmal'.
1010         * modules/fmal-tests: New file.
1011         * tests/test-fmal1.c: New file.
1012         * tests/test-fmal2.c: New file.
1013
1014         New module 'fmal'.
1015         * lib/math.in.h (fmal): New declaration.
1016         * lib/fmal.c: New file.
1017         * m4/fmal.m4: New file.
1018         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1020         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1021         REPLACE_FMAL.
1022         * modules/fmal: New file.
1023         * doc/posix-functions/fmal.texi: Mention the new module and the various
1024         bugs.
1025
1026         Tests for module 'fmaf'.
1027         * modules/fmaf-tests: New file.
1028         * tests/test-fmaf1.c: New file.
1029         * tests/test-fmaf2.c: New file.
1030
1031         New module 'fmaf'.
1032         * lib/math.in.h (fmaf): New declaration.
1033         * lib/fmaf.c: New file.
1034         * m4/fmaf.m4: New file.
1035         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1037         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1038         REPLACE_FMAF.
1039         * modules/fmaf: New file.
1040         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1041         bugs.
1042
1043         Tests for module 'fma'.
1044         * modules/fma-tests: New file.
1045         * tests/test-fma1.c: New file.
1046         * tests/test-fma1.h: New file.
1047         * tests/test-fma2.c: New file.
1048         * tests/test-fma2.h: New file.
1049
1050         New module 'fma'.
1051         * lib/math.in.h (fma): New declaration.
1052         * lib/fma.c: New file.
1053         * m4/fma.m4: New file.
1054         * m4/fegetround.m4: New file.
1055         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1057         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1058         REPLACE_FMA.
1059         * modules/fma: New file.
1060         * doc/posix-functions/fma.texi: Mention the new module and the various
1061         bugs.
1062
1063         Extend gl_MATHFUNC.
1064         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1065         Support 'void' as argument type.
1066         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1067
1068 2011-11-05  Jim Meyering  <meyering@redhat.com>
1069
1070         maint.mk: also prohibit inclusion of dirent.h without use
1071         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1072
1073 2011-11-05  Bruno Haible  <bruno@clisp.org>
1074
1075         ldexpl tests: Avoid test failure on MSVC 9.
1076         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1077         value. Needed in order to enforce the conversion from a value greater
1078         than LDBL_MAX to Infinity.
1079
1080 2011-11-05  Bruno Haible  <bruno@clisp.org>
1081
1082         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1083         * modules/at-internal: New file, extracted from modules/openat.
1084         * modules/openat-h: New file.
1085         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1086         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1087         * modules/openat (Description): Add reference to POSIX function.
1088         (Files): Remove lib/openat.h, lib/openat-proc.c.
1089         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1090         intprops, unistd.
1091         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1092         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1093         gl_FCNTL_MODULE_INDICATOR.
1094         (Include): Remove unistd.h, openat.h.
1095         * modules/areadlinkat (Files): Add lib/at-func.c.
1096         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1097         openat-die, openat-h, save-cwd.
1098         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1099         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1100         openat-die, openat-h, save-cwd, unistd.
1101         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1102         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1103         openat-h, save-cwd. Remove fcntl-h, openat.
1104         * modules/fchmodat (Files): Remove lib/openat.h.
1105         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1106         openat, stdbool, unistd.
1107         * modules/fchownat (Files): Remove lib/openat.h.
1108         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1109         openat, stdbool, sys_stat.
1110         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1111         lib/openat-proc.c.
1112         (Depends-on): Add at-internal.
1113         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1114         * modules/fstatat (Files): Remove lib/openat.h.
1115         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1116         stdbool, unistd.
1117         * modules/fts (Depends-on): Add openat-h.
1118         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1119         openat.
1120         * modules/mkdirat (Files): Remove lib/openat.h.
1121         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1122         openat, stdbool, sys_stat.
1123         * modules/mkfifoat (Files): Add lib/at-func.c.
1124         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1125         openat-h, save-cwd. Remove fcntl-h, openat.
1126         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1127         * modules/readlinkat (Files): Add lib/at-func.c.
1128         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1129         openat-h, save-cwd. Remove fcntl-h, openat.
1130         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1131         openat.
1132         * modules/selinux-at (Files): Add lib/at-func.c.
1133         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1134         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1135         * modules/symlinkat (Files): Add lib/at-func.c.
1136         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1137         openat-h, save-cwd. Remove fcntl-h, openat.
1138         * modules/unlinkat (Files): Remove lib/openat.h.
1139         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1140         stdbool.
1141         * modules/utimensat (Files): Add lib/at-func.c.
1142         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1143         openat-die, openat-h, save-cwd.
1144         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1145         * modules/fdutimensat-tests (Depends-on): Add openat.
1146         * modules/fstatat-tests (Depends-on): Add openat-h.
1147         * modules/readlinkat-tests (Depends-on): Add openat.
1148         * modules/symlinkat-tests (Depends-on): Add openat.
1149
1150 2011-11-05  Bruno Haible  <bruno@clisp.org>
1151
1152         openat: Include <stdbool.h>.
1153         * lib/openat.c: Include <stdbool.h>.
1154
1155 2011-11-04  Bruno Haible  <bruno@clisp.org>
1156
1157         fchownat, renameat, unlinkat: Fix dependencies.
1158         * modules/fchownat (Depends-on): Add fstatat.
1159         * modules/renameat (Depends-on): Likewise.
1160         * modules/unlinkat (Depends-on): Likewise.
1161
1162 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         openat: remove direct dependency on dirent
1165         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1166         and hasn't been needed ever since fdopendir was split into its own
1167         module on 2009-08-31.
1168         * modules/openat (Depends-on): Remove dirent.
1169
1170 2011-11-04  Bruno Haible  <bruno@clisp.org>
1171
1172         renameat: Optimize code size.
1173         * modules/renameat (configure.ac): Don't compile at-func2.c if
1174         REPLACE_RENAMEAT is 1.
1175
1176 2011-11-04  Bruno Haible  <bruno@clisp.org>
1177
1178         openat tests: Fix file list.
1179         * modules/openat-tests (Files): Add tests/test-open.h.
1180
1181 2011-11-04  Bruno Haible  <bruno@clisp.org>
1182
1183         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1184         * modules/fchmodat (Depends-on): Add openat-die.
1185         * modules/fchownat (Depends-on): Likewise.
1186         * modules/linkat (Depends-on): Likewise.
1187         * modules/renameat (Depends-on): Likewise.
1188         * modules/openat (Depends-on): Add dirent.
1189
1190 2011-11-04  Jim Meyering  <meyering@redhat.com>
1191
1192         at-func*.c: fix comments
1193         * lib/at-func2.c: Correct/improve first-line comment.
1194         * lib/at-func.c: Correct grammar in first-line comment.
1195
1196 2011-11-04  Bruno Haible  <bruno@clisp.org>
1197
1198         New module 'mkdirat', split off from module 'openat'.
1199         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1200         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1201         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1202         * modules/mkdirat: New file, extracted from modules/openat.
1203         * modules/openat (Files): Remove lib/mkdirat.c.
1204         (Depends-on): Remove mkdir.
1205         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1206         (Include): Remove <sys/stat.h>.
1207         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1208         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1209         tests/test-mkdir.h.
1210         (Depends-on): Remove ignore-value.
1211         (Makefile.am): Remove rules for test-mkdirat.
1212         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1213         of module 'openat'.
1214         * NEWS: Mention the change.
1215
1216 2011-11-04  Bruno Haible  <bruno@clisp.org>
1217
1218         closedir: Avoid warning on mingw.
1219         * lib/closedir.c: Include <unistd.h>.
1220
1221 2011-11-04  Bruno Haible  <bruno@clisp.org>
1222
1223         New module 'fstatat', split off from module 'openat'.
1224         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1225         defined.
1226         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1227         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1228         gl_FUNC_FSTATAT.
1229         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1230         * modules/fstatat: New file, extracted from modules/openat.
1231         * modules/openat (Files): Remove lib/fstatat.c.
1232         (Depends-on): Remove lstat.
1233         (configure.ac): Remove AC_LIBOBJ of fstatat.
1234         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1235         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1236         tests/test-lstat.h, tests/test-stat.h.
1237         (Depends-on): Remove getcwd-lgpl.
1238         (Makefile.am): Remove rules for test-fstatat.
1239         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1240         of module 'openat'.
1241         * NEWS: Mention the change.
1242         * modules/getcwd (Depends-on): Add fstatat.
1243         * modules/linkat (Depends-on): Likewise.
1244         * modules/mkfifoat-tests (Depends-on): Likewise.
1245         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1246
1247 2011-11-03  Bruno Haible  <bruno@clisp.org>
1248
1249         New module 'unlinkat', split off from module 'openat'.
1250         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1251         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1252         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1253         * modules/unlinkat: New file, extracted from modules/openat. Correct
1254         the dependency conditions.
1255         * modules/openat (Files): Remove lib/unlinkat.c.
1256         (Depends-on): Remove rmdir, unlink.
1257         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1258         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1259         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1260         tests/test-rmdir.h, tests/test-unlink.h.
1261         (Depends-on): Remove unlinkdir.
1262         (Makefile.am): Remove rules for test-unlinkat.
1263         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1264         of module 'openat'.
1265         * NEWS: Mention the change.
1266         * modules/linkat-tests (Depends-on): Add unlinkat.
1267         * modules/mkfifoat-tests (Depends-on): Likewise.
1268         * modules/readlinkat-tests (Depends-on): Likewise.
1269
1270 2011-11-02  Bruno Haible  <bruno@clisp.org>
1271
1272         New module 'fchmodat', split off from module 'openat'.
1273         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1274         defined.
1275         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1276         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1277         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1278         * modules/fchmodat: New file, extracted from modules/openat.
1279         * modules/openat (Files): Remove lib/fchmodat.c.
1280         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1281         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1282         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1283         (Makefile.am): Remove rules for test-fchmodat.
1284         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1285         of module 'openat'.
1286         * NEWS: Mention the change.
1287
1288 2011-11-02  Jim Meyering  <meyering@redhat.com>
1289
1290         putenv: indent #definition of "environ" to placate cppi
1291         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1292
1293         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1294         Git logs are often treated as immutable, because editing them
1295         changes the SHA1 checksums of all descendants.  Thus, errors in
1296         git logs tend to stay there forever.  However, when we generate
1297         a ChangeLog file -- typically for distribution -- from that git log,
1298         we can actually make corrections in the generated file.  The key
1299         lies in recording in machine-readable/applicable form the desired
1300         corrections.  See --help for description and an example.
1301         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1302         (usage): Describe it; alphabetize option descriptions.
1303         (main): Honor the new option, carefully.
1304
1305 2011-11-01  Jim Meyering  <meyering@redhat.com>
1306
1307         gitlog-to-changelog: avoid an infloop
1308         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1309         that ends up being empty.
1310
1311 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1312
1313         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1314         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1315         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1316         contains (possibly-quoted) backslashes.  This should avoid
1317         all-too-common shell bugs if COMPLICATED contains backslashes in
1318         the "wrong" places.  Reported by David Evans in
1319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1320         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1321         because we want ASCII ranges.  Is there some reason we don't use
1322         the C locale everywhere in this script?
1323         (func_module, top level): Avoid unwanted pathname expansion when
1324         $repo_url_prefix or $repo_url_suffix_repl contain shell
1325         metacharacters like '?' and '*'.
1326
1327 2011-11-01  Bruno Haible  <bruno@clisp.org>
1328
1329         fchownat: Improve description.
1330         * modules/fchownat (Description): Add link to function.
1331
1332 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1333
1334         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1335         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1337         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1338
1339 2011-11-01  Bruno Haible  <bruno@clisp.org>
1340
1341         alignof: Avoid collision with stdalign module.
1342         * lib/alignof.h (alignof): Remove macro.
1343         * NEWS: Mention the change.
1344         Reported by Paul Eggert.
1345
1346 2011-11-01  Bruno Haible  <bruno@clisp.org>
1347
1348         New module 'fchownat', split off from module 'openat'.
1349         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1350         defined.
1351         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1352         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1353         invoke gl_FUNC_FCHOWNAT.
1354         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1355         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1356         * modules/fchownat: New file, extracted from modules/openat.
1357         * modules/openat (Files): Remove lib/fchownat.c.
1358         (Depends-on): Remove lchown.
1359         (configure.ac): Remove AC_LIBOBJ of fchownat.
1360         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1361         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1362         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1363         (Depends-on): Remove mgetgroups, usleep, stat-time.
1364         (configure.ac): Remove test for getegid.
1365         (Makefile.am): Remove rules for test-fchownat.
1366         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1367         of module 'openat'.
1368         * NEWS: Mention the change.
1369
1370 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1371
1372         stdalign: port better to MSVC and to Sun C 5.11
1373         This fixes some of the problems reported by Bruno Haible in
1374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1375         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1376         shortcomings of MSVC and of Sun C 5.11.
1377         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1378         around __declspec arg.
1379         * modules/stdalign-tests (Files): Add tests/macros.h.
1380         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1381         Include macros.h, for ASSERT.
1382         (DECLARE_ALIGNED): Remove.
1383         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1384         to catch bug), and to 1 if not (simplifies the rest of the code).
1385         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1386         (CHECK_AUTO): Remove.
1387         (CHECK_ALIGNED): Check only the alignment of the static vars,
1388         since auto var alignment isn't supported by Sun C 5.11.
1389         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1390         ASSERT failures are easier to diagnose.
1391
1392 2011-10-31  Bruno Haible  <bruno@clisp.org>
1393
1394         doc about some IRIX 5.3 problems.
1395         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1396         on IRIX 5.3.
1397         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1398         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1399         5.3.
1400         * doc/posix-functions/grantpt.texi: Likewise.
1401         * doc/posix-functions/unlockpt.texi: Likewise.
1402         * doc/posix-functions/lgamma.texi: Likewise.
1403         * doc/posix-functions/nextafter.texi: Likewise.
1404         * doc/posix-functions/remainder.texi: Likewise.
1405         * doc/posix-functions/select.texi: Mention misplaced declaration on
1406         IRIX 5.3.
1407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1408
1409 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1410
1411         gitlog-to-changelog: fix git-log invocation.
1412         git-log mishandles date strings before 1970-01-01 UTC, and there is
1413         no use to specify --since=1970-01-01 by default anyway.
1414         * build-aux/gitlog-to-changelog: By default, when no --since option
1415         was given, do not specify explicit --since option to git-log.
1416
1417 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1418
1419         gitlog-to-changelog: new option --append-dot.
1420         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1421         first non-blank line of each commit message terminated with a dot.
1422
1423 2011-10-30  Bruno Haible  <bruno@clisp.org>
1424
1425         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1426         * lib/ffsl.h: Include <config.h>.
1427         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1428
1429 2011-10-30  Jim Meyering  <meyering@redhat.com>
1430
1431         GNUmakefile: reenable "make syntax-check" for most projects
1432         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1433         build-aux variable", "syntax-check" would do nothing but succeed with
1434         the "No version control files detected..." diagnostic (unless you
1435         happened to override _build-aux via cfg.mk).
1436         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1437         to precede inclusion of maint.mk.  Otherwise, these variables would
1438         be used undefined in any project that does not override the default.
1439
1440 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1441
1442         gitlog-to-changelog: treat a message with only blank lines as empty.
1443         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1444         trailing blank lines before the code that issues a warning about an
1445         empty commit message.
1446
1447 2011-10-30  Jim Meyering  <meyering@redhat.com>
1448
1449         test-parse-datetime.c: avoid new DST-related false positive test failure
1450         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1451         based on the time/date we'll convert, not the current time.
1452         Otherwise, the moment we cross a DST boundary like today's in
1453         Europe, (CEST to CET), that offset ends up being one hour off.
1454
1455 2011-10-27  Bruno Haible  <bruno@clisp.org>
1456
1457         fstat: Tweak documentation.
1458         * modules/fstat (Description): More precise description.
1459
1460 2011-10-27  Bruno Haible  <bruno@clisp.org>
1461
1462         Update documentation regarding 'largefile' module.
1463         * doc/posix-functions/fstat.texi: Tweak wording.
1464         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1465         problems with huge directories and/or small ino_t types.
1466         * doc/posix-functions/readdir.texi: Likewise.
1467         * doc/posix-functions/rewinddir.texi: Likewise.
1468
1469 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1470
1471         maint.mk: don't maintain a second build-aux variable.
1472         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1473         depends on GNUmakefile, which already maintains a cfg.mk
1474         overridable $(_build-aux) for projects with a non-standard
1475         build-aux directory location, although without the $(srcdir)
1476         prefix.  Use that variable consistently instead of introducing a
1477         second one.  Adjust all call sites.
1478
1479 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1480
1481         Add stdalign module and use it in other modules.
1482         This is based on a previous proposal by Bruno Haible
1483         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1484
1485         stdalign: new module
1486         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1487         * modules/stdalign: New files.
1488         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1489         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1490
1491         stdalign-tests: new module
1492         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1493
1494         argp: use stdalign
1495         * lib/argp-parse.c: Include <stdalign.h>.
1496         (alignof): Remove.
1497         * modules/argp (Depends-on): Add stdalign.
1498
1499         crypto libraries: use stdalign
1500         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1501         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1502         Do not include <stdlib.h> twice, in md4.c.
1503         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1504         because we are accessing a pointer's bit-pattern, not a size.
1505         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1506         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1507         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1508         * modules/crypto/sha512: Likewise.
1509
1510         sys_socket: use stdalign, not alignof
1511         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1512         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1513
1514 2011-10-27  Bruno Haible  <bruno@clisp.org>
1515
1516         raise test: Avoid a test failure on Linux/MIPS.
1517         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1518         because 99 is a valid signal on Linux/MIPS.
1519
1520 2011-10-27  Bruno Haible  <bruno@clisp.org>
1521
1522         nonblocking tests: Fix test failure on Linux/MIPS.
1523         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1524         Set to 270000.
1525
1526 2011-10-27  Bruno Haible  <bruno@clisp.org>
1527
1528         utimensat: Work around problem on Linux/hppa.
1529         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1530         values.
1531         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1532
1533 2011-10-25  Jim Meyering  <meyering@redhat.com>
1534
1535         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1536         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1537         after symbols like NULL, size_t, etc.
1538         Reported by Alfred M. Szmidt.
1539
1540         maint.mk: exempt ENODATA from a syntax-check rule
1541         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1542         from the sc_prohibit_always-defined_macros syntax-check rule.
1543         Add a comment.  See this for more details:
1544         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1545
1546 2011-10-23  Jim Meyering  <meyering@redhat.com>
1547
1548         fts: close parent dir FD before returning from post-traversal fts_read
1549         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1550         unlink A, even though an FD open on A remained.  This is suboptimal
1551         (holding a file descriptor open longer than needed), but otherwise not
1552         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1553         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1554         that represents a real problem: it causes the removal of A to fail
1555         with e.g., "rm: cannot remove `A': Device or resource busy"
1556
1557         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1558         directory file descriptors.  After completing the final, FTS_DP,
1559         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1560         cache, but then proceeded to add a new FD to it via the subsequent
1561         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1562         final file descriptor would be closed only via fts_close's call to
1563         fd_ring_clear.  Now, it is usually closed earlier, via the final
1564         FTS_DP-returning fts_read call.
1565         * lib/fts.c (restore_initial_cwd): New function, converted from
1566         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1567         Update callers.
1568         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1569         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1570
1571 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1572             Bruno Haible  <bruno@clisp.org>
1573             Jim Meyering  <jim@meyering.net>
1574
1575         readme-release: improve safety of release prep instructions.
1576         * README-release: Don't git pull all branches when only master
1577         is needed for the release process.
1578         Run make maintainer-clean before changing trees and merging.
1579         Don't try to run ./configure right after git pull in case files
1580         that influence the bootstrap process have changed, move the
1581         ./configure step to after running ./bootstrap.
1582         Don't bootstrap "one last time"... it's the first time!
1583
1584 2011-10-22  Bruno Haible  <bruno@clisp.org>
1585
1586         errno, strerror-override: Support for MSVC 10.
1587         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1588         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1589         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1590         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1591         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1592         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1593         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1594         Assign values compatible with MSVC 10.
1595         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1596         New macros.
1597         (GNULIB_defined_EWINSOCK): New macro.
1598         * lib/strerror-override.c (strerror_override): Update accordingly.
1599         * lib/strerror-override.h: Likewise.
1600         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1601         longer equal to the corresponding errno value.
1602         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1603
1604 2011-10-22  Bruno Haible  <bruno@clisp.org>
1605
1606         perror: Recognize when test program crashes.
1607         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1608         strerror, set gl_cv_func_perror_works to no.
1609         Reported by Daniel Richard G. <skunk@iskunk.org>.
1610
1611         perror: Fix indentation.
1612         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1613
1614 2011-10-22  Bruno Haible  <bruno@clisp.org>
1615
1616         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1617         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1618         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1619         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1620         functions, not as a macro.
1621         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1622         macros.
1623         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1624         absence of macro.
1625         Suggested by Eric Blake.
1626         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1627
1628 2011-10-21  Bruno Haible  <bruno@clisp.org>
1629
1630         relocatable-prog-wrapper: Don't leave object files behind.
1631         * build-aux/install-reloc: Re-synchronize list of .o files to be
1632         removed with list of compilation units.
1633
1634 2011-10-20  Bruno Haible  <bruno@clisp.org>
1635
1636         openpty, posix_openpt: Remove code duplication.
1637         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1638         * lib/openpty.c: Include <stdlib.h>.
1639         (openpty): Use posix_openpt on all platforms except IRIX.
1640         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1641
1642 2011-10-20  Bruno Haible  <bruno@clisp.org>
1643
1644         unlockpt: Detect invalid argument.
1645         * lib/unlockpt.c: Include <fcntl.h>.
1646         (unlockpt): Check whether fd is valid, using fcntl().
1647         * modules/unlockpt (Depends-on): Add fcntl-h.
1648
1649 2011-10-20  Bruno Haible  <bruno@clisp.org>
1650
1651         openpty: Avoid compilation error on AIX 6.1.
1652         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1653
1654 2011-10-20  Bruno Haible  <bruno@clisp.org>
1655
1656         posix_openpt: Support for OpenBSD.
1657         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1658         (posix_openpt) [OpenBSD]: New code.
1659         * lib/grantpt.c: Include <fcntl.h>.
1660         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1661         * modules/grantpt (Depends-on): Add fcntl-h.
1662
1663 2011-10-20  Bruno Haible  <bruno@clisp.org>
1664
1665         posix_openpt test: Coding style.
1666         * tests/test-posix_openpt.c: Use GNU coding style.
1667
1668 2011-10-20  Bruno Haible  <bruno@clisp.org>
1669
1670         grantpt: Support --avoid=pt_chown.
1671         * modules/grantpt (Files): Add lib/pty-private.h.
1672
1673 2011-10-20  Bruno Haible  <bruno@clisp.org>
1674
1675         posix_openpt: Fix autoconf macro.
1676         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1677         unneeded check for _getpty.
1678
1679 2011-10-20  Bruno Haible  <bruno@clisp.org>
1680
1681         openpty: Update comments.
1682         * lib/openpty.c: Add comments about Minix.
1683
1684 2011-10-19  Eric Blake  <eblake@redhat.com>
1685
1686         openpty: relax license
1687         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1688
1689         pt_chown: use configmake to simplify build
1690         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1691
1692         ptsname and others: relax license
1693         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1694         * modules/unlockpt (License): Likewise.
1695         * modules/pt_chown (License): Likewise.
1696         * modules/ptsname (License): Likewise.
1697         * modules/ttyname_r (License): Likewise.
1698
1699 2011-10-19  Jim Meyering  <meyering@redhat.com>
1700
1701         posix_openpt: remove spurious #endif
1702         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1703
1704 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1705
1706         maint.mk: Respect $(build_aux) in web-manual rule.
1707         * top/maint.mk (web-manual): Find gen-announce script in user's
1708         $(build_aux) directory instead of hard-coding 'build-aux'.
1709
1710 2011-10-19  Bruno Haible  <bruno@clisp.org>
1711
1712         posix_openpt: Fix compilation error.
1713         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1714         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1715         Mention the openpty module as an alternative.
1716
1717 2011-10-19  Bruno Haible  <bruno@clisp.org>
1718
1719         Support for old NeXTstep 3.3 frexp().
1720         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1721         execution time of the test to 5 seconds.
1722         Reported by Daniel Richard G. <skunk@iskunk.org>.
1723
1724 2011-10-19  Bruno Haible  <bruno@clisp.org>
1725
1726         Support for old NeXTstep 3.3 sed.
1727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1728         part, use /.../, not \|...|. Escape periods in the header file name.
1729         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1730         Reported by Daniel Richard G. <skunk@iskunk.org>.
1731
1732 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1733
1734         Support for old NeXTstep 3.3 gcc.
1735         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1736         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1737         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1738         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1739         * lib/regex.h (_Restrict_arr_): Likewise.
1740         * lib/regex_internal.h (re_token_t): Likewise.
1741         * lib/regexec.c (check_node_accept_bytes): Likewise.
1742         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1743
1744 2011-10-18  Eric Blake  <eblake@redhat.com>
1745
1746         posix_openpt: new module
1747         * modules/posix_openpt: New module.
1748         * m4/posix_openpt.m4: New file.
1749         * lib/posix_openpt.c: Likewise.
1750         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1751         (gl_STDLIB_H_DEFAULTS): Set defaults.
1752         * modules/stdlib (Makefile.am): Substitute macros.
1753         * lib/stdlib.in.h (posix_openpt): Declare.
1754         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1755         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1756         * modules/posix_openpt-tests: New test module.
1757         * tests/test-posix_openpt.c: New test.
1758
1759 2011-10-15  Bruno Haible  <bruno@clisp.org>
1760
1761         xstrtoll: Fix compilation failure.
1762         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1763         from lib/strtol.c.
1764         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1765         some platforms.
1766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1767
1768 2011-10-15  Bruno Haible  <bruno@clisp.org>
1769
1770         vasnprintf: Optimize bit search operation.
1771         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1773         gl_DOUBLE_EXPONENT_LOCATION.
1774         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1775         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1776         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1777         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1778         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1779         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1780         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1781         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1782         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1783
1784 2011-10-15  Bruno Haible  <bruno@clisp.org>
1785
1786         vasnprintf: Fix comments.
1787         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1788
1789 2011-10-14  Bruno Haible  <bruno@clisp.org>
1790
1791         Tests for module 'integer_length_ll'.
1792         * modules/integer_length_ll-tests: New file.
1793         * tests/test-integer_length_ll.c: New file.
1794
1795         New module 'integer_length_ll'.
1796         * lib/integer_length_ll.c: New file.
1797         * modules/integer_length_ll: New file.
1798
1799 2011-10-14  Bruno Haible  <bruno@clisp.org>
1800
1801         Tests for module 'integer_length_l'.
1802         * modules/integer_length_l-tests: New file.
1803         * tests/test-integer_length_l.c: New file.
1804
1805         New module 'integer_length_l'.
1806         * lib/integer_length_l.c: New file.
1807         * modules/integer_length_l: New file.
1808
1809 2011-10-14  Bruno Haible  <bruno@clisp.org>
1810
1811         Tests for module 'integer_length'.
1812         * modules/integer_length-tests: New file.
1813         * tests/test-integer_length.c: New file.
1814
1815         New module 'integer_length'.
1816         * lib/integer_length.h: New file.
1817         * lib/integer_length.c: New file.
1818         * modules/integer_length: New file.
1819
1820 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1821
1822         popen: Fix dependency conditions.
1823         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1824
1825 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1826
1827         perror: Fix autoconf test.
1828         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1829         <stdlib.h> and <string.h>.
1830
1831 2011-10-14  Bruno Haible  <bruno@clisp.org>
1832
1833         ffsl: Optimize on 64-bit platforms.
1834         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1835         unrolling.
1836
1837 2011-10-13  Bruno Haible  <bruno@clisp.org>
1838
1839         ffsl: Optimize on 32-bit platforms.
1840         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1841         use ffs() without a loop.
1842
1843         ffsl, ffsll: Optimize for GCC.
1844         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1845         * lib/ffsl.c (GCC_BUILTIN): New macro.
1846         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1847
1848 2011-10-13  Bruno Haible  <bruno@clisp.org>
1849
1850         ffs, bcopy, memset: Support symbol renaming via config.h.
1851         * lib/ffs.c: Include <config.h>.
1852         * lib/bcopy.c: Likewise.
1853         * lib/memset.c: Likewise.
1854
1855 2011-10-10  Bruno Haible  <bruno@clisp.org>
1856
1857         atanl: Simplify for platforms where 'long double' == 'double'.
1858         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1859         alternative implementation.
1860         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1861         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1862         * modules/atanl (Depends-on): Add atan. Update conditions.
1863
1864 2011-10-10  Bruno Haible  <bruno@clisp.org>
1865
1866         acosl: Simplify for platforms where 'long double' == 'double'.
1867         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1868         alternative implementation.
1869         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1870         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1871         * modules/acosl (Depends-on): Add acos. Update conditions.
1872
1873 2011-10-10  Bruno Haible  <bruno@clisp.org>
1874
1875         asinl: Simplify for platforms where 'long double' == 'double'.
1876         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1877         alternative implementation.
1878         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1879         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1880         * modules/asinl (Depends-on): Add asin. Update conditions.
1881
1882 2011-10-10  Bruno Haible  <bruno@clisp.org>
1883
1884         tanl: Simplify for platforms where 'long double' == 'double'.
1885         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1886         implementation.
1887         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1888         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1889         * modules/tanl (Depends-on): Add tan. Update conditions.
1890         (configure.ac): Don't compile trigl.c if
1891         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1892
1893 2011-10-10  Bruno Haible  <bruno@clisp.org>
1894
1895         cosl: Simplify for platforms where 'long double' == 'double'.
1896         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1897         implementation.
1898         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1899         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1900         * modules/cosl (Depends-on): Add cos. Update conditions.
1901         (configure.ac): Don't compile sincosl.c and trigl.c if
1902         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1903
1904 2011-10-10  Bruno Haible  <bruno@clisp.org>
1905
1906         sinl: Simplify for platforms where 'long double' == 'double'.
1907         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1908         implementation.
1909         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1910         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1911         * modules/sinl (Depends-on): Add sin. Update conditions.
1912         (configure.ac): Don't compile sincosl.c and trigl.c if
1913         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1914
1915 2011-10-10  Bruno Haible  <bruno@clisp.org>
1916
1917         logl: Simplify for platforms where 'long double' == 'double'.
1918         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1919         implementation.
1920         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1921         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1922         * modules/logl (Depends-on): Add log. Update conditions.
1923
1924 2011-10-10  Bruno Haible  <bruno@clisp.org>
1925
1926         expl: Simplify for platforms where 'long double' == 'double'.
1927         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1928         implementation.
1929         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1930         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1931         * modules/expl (Depends-on): Add exp. Update conditions.
1932
1933 2011-10-10  Bruno Haible  <bruno@clisp.org>
1934
1935         sqrtl: Simplify for platforms where 'long double' == 'double'.
1936         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1937         alternative implementation.
1938         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1939         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1940         * modules/sqrtl (Depends-on): Update conditions.
1941
1942 2011-10-10  Bruno Haible  <bruno@clisp.org>
1943
1944         ldexpl: Simplify for platforms where 'long double' == 'double'.
1945         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1946         alternative implementation.
1947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1948         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1949         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1950
1951 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1952
1953         ffsll: set correct witness
1954         * modules/ffsll (configure.ac): Fix typo.
1955
1956 2011-10-10  Bruno Haible  <bruno@clisp.org>
1957
1958         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1959         * lib/printf-frexpl.c: Include <config.h>.
1960         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1961         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1962         second time.
1963         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1964         gl_LONG_DOUBLE_VS_DOUBLE.
1965         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1966         conditions.
1967
1968 2011-10-10  Bruno Haible  <bruno@clisp.org>
1969
1970         frexpl: Simplify for platforms where 'long double' == 'double'.
1971         * lib/frexpl.c: Include <config.h>.
1972         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1973         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1974         time.
1975         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1976         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1977         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1978         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1979         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1980         conditions.
1981
1982 2011-10-10  Jim Meyering  <meyering@redhat.com>
1983
1984         test-renameat: don't leave behind a temporary file
1985         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1986           ERROR: files left in build directory after distclean:
1987           ./gltests/test-renameat.too
1988           make[1]: *** [distcleancheck] Error 1
1989         Reported by Tom G. Christensen.
1990
1991 2011-10-09  Bruno Haible  <bruno@clisp.org>
1992
1993         rint: Determine RINT_LIBM correctly on AIX 7.
1994         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1995         directly, not only through a function pointer. Also accept an optional
1996         4th argument with extra code.
1997         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1998         rintf() call by gcc when optimizing.
1999
2000         mathfunc.m4: Refactor.
2001         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2002         m4 variable.
2003
2004 2011-10-09  Bruno Haible  <bruno@clisp.org>
2005
2006         rintl: Simplify for platforms where 'long double' == 'double'.
2007         * lib/rintl.c: Include <config.h>.
2008         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2009         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2010         time.
2011         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2012         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2013         * modules/rintl (Depends-on): Add rint. Update conditions.
2014
2015 2011-10-09  Bruno Haible  <bruno@clisp.org>
2016
2017         roundl: Simplify for platforms where 'long double' == 'double'.
2018         * lib/roundl.c: Include <config.h>.
2019         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2020         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2021         time.
2022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2023         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2024         * modules/roundl (Depends-on): Add round. Update conditions.
2025
2026 2011-10-09  Bruno Haible  <bruno@clisp.org>
2027
2028         truncl: Simplify for platforms where 'long double' == 'double'.
2029         * lib/truncl.c: Include <config.h>.
2030         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2031         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2032         time.
2033         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2034         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2035         * modules/truncl (Depends-on): Add trunc. Update conditions.
2036
2037 2011-10-09  Bruno Haible  <bruno@clisp.org>
2038
2039         ceill: Simplify for platforms where 'long double' == 'double'.
2040         * lib/ceill.c: Include <config.h>.
2041         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2042         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2043         time.
2044         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2045         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2046         * modules/ceill (Depends-on): Add ceil. Update conditions.
2047
2048 2011-10-09  Bruno Haible  <bruno@clisp.org>
2049
2050         floorl: Simplify for platforms where 'long double' == 'double'.
2051         * lib/floorl.c: Include <config.h>.
2052         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2053         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2054         time.
2055         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2056         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2057         * modules/floorl (Depends-on): Add floor. Update conditions.
2058
2059 2011-10-09  Bruno Haible  <bruno@clisp.org>
2060
2061         rint: Fix ordering constraints.
2062         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2063         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2064         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2065
2066 2011-10-09  Bruno Haible  <bruno@clisp.org>
2067
2068         copysignl: Simplify for platforms where 'long double' == 'double'.
2069         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2070         alternative.
2071         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2072         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2073         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2074
2075 2011-10-09  Bruno Haible  <bruno@clisp.org>
2076
2077         Tests for module 'rintl'.
2078         * modules/rintl-tests: New file.
2079         * tests/test-rintl.c: New file.
2080
2081         New module 'rintl'.
2082         * lib/math.in.h (rintl): New declaration.
2083         * lib/rintl.c: New file.
2084         * m4/rintl.m4: New file.
2085         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2087         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2088         * modules/rintl: New file.
2089         * tests/test-math-c++.cc: Check the declaration of rintl.
2090         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2091         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2092         * doc/posix-functions/rintl.texi: Mention the new module.
2093
2094 2011-10-09  Bruno Haible  <bruno@clisp.org>
2095
2096         Tests for module 'rintf'.
2097         * modules/rintf-tests: New file.
2098         * tests/test-rintf.c: New file.
2099
2100         New module 'rintf'.
2101         * lib/math.in.h (rintf): New declaration.
2102         * lib/rintf.c: New file.
2103         * m4/rintf.m4: New file.
2104         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2106         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2107         * modules/rintf: New file.
2108         * tests/test-math-c++.cc: Check the declaration of rintf.
2109         * doc/posix-functions/rintf.texi: Mention the new module.
2110
2111 2011-10-09  Bruno Haible  <bruno@clisp.org>
2112
2113         rint: Support for MSVC.
2114         * lib/math.in.h (rint): New declaration.
2115         * lib/rint.c: New file.
2116         * m4/rint.m4: New file.
2117         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2119         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2120         * modules/rint (Description): Fix.
2121         (Files): Add lib/rint.c, m4/rint.m4.
2122         (Depends-on): Add math.
2123         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2124         gl_MATH_MODULE_INDICATOR.
2125         * tests/test-math-c++.cc: Check the declaration of rint.
2126         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2127         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2128         * doc/posix-functions/rint.texi: Mention the replacement provided by
2129         the module.
2130
2131         rint tests: More tests.
2132         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2133         minus-zero.h, infinity.h, nan.h.
2134         (main): Skip the test if the current rounding mode is not standard. Add
2135         tests for negative numbers, minus zero, infinity, NaN.
2136         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2137         tests/nan.h.
2138         (Depends-on): Add isnand-nolibm.
2139
2140 2011-10-09  Bruno Haible  <bruno@clisp.org>
2141
2142         Tests for module 'copysignl'.
2143         * modules/copysignl-tests: New file.
2144         * tests/test-copysignl.c: New file.
2145
2146         New module 'copysignl'.
2147         * lib/math.in.h (copysignl): New declaration.
2148         * lib/copysignl.c: New file.
2149         * m4/copysignl.m4: New file.
2150         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2152         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2153         HAVE_COPYSIGNL.
2154         * modules/copysignl: New file.
2155         * tests/test-math-c++.cc: Check the declaration of copysignl.
2156         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2157         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2158         * doc/posix-functions/copysignl.texi: Mention the new module.
2159
2160 2011-10-09  Bruno Haible  <bruno@clisp.org>
2161
2162         Tests for module 'copysignf'.
2163         * modules/copysignf-tests: New file.
2164         * tests/test-copysignf.c: New file.
2165
2166         New module 'copysignf'.
2167         * lib/math.in.h (copysignf): New declaration.
2168         * lib/copysignf.c: New file.
2169         * m4/copysignf.m4: New file.
2170         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2172         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2173         HAVE_COPYSIGNF.
2174         * modules/copysignf: New file.
2175         * tests/test-math-c++.cc: Check the declaration of copysignf.
2176         * doc/posix-functions/copysignf.texi: Mention the new module.
2177
2178 2011-10-09  Bruno Haible  <bruno@clisp.org>
2179
2180         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2181         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2182         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2183         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2185         gl_SIGNAL_H_DEFAULTS.
2186
2187 2011-10-09  Bruno Haible  <bruno@clisp.org>
2188
2189         poll: Make macro safer.
2190         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2191         ac_cv_header_poll_h is not set.
2192
2193 2011-10-09  Bruno Haible  <bruno@clisp.org>
2194
2195         copysign: Provide replacement.
2196         * lib/math.in.h (copysign): New declaration.
2197         * lib/copysign.c: New file.
2198         * m4/copysign.m4: New file.
2199         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2201         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2202         HAVE_COPYSIGN.
2203         * modules/copysign (Description): Clarify.
2204         (Files): Add lib/copysign.c, m4/copysign.m4.
2205         (Depends-on): Add math, signbit.
2206         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2207         gl_MATH_MODULE_INDICATOR.
2208         * tests/test-math-c++.cc: Check the declaration of copysign.
2209         * doc/posix-functions/copysign.texi: Mention the effects of the module
2210         on Minix and MSVC.
2211
2212 2011-10-09  Bruno Haible  <bruno@clisp.org>
2213
2214         isinf: Ensure macro on AIX 5.1.
2215         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2216         macro.
2217         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2218
2219 2011-10-09  Bruno Haible  <bruno@clisp.org>
2220
2221         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2222         * modules/snprintf-posix-tests (configure.ac): Require
2223         gl_LONG_DOUBLE_VS_DOUBLE.
2224         * modules/sprintf-posix-tests (configure.ac): Likewise.
2225         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2226         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2227         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2228         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2229         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2230         tests on platforms where 'long double' is the same as 'double'.
2231         * tests/test-sprintf-posix.h (test_function): Likewise.
2232         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2233         * tests/test-vasprintf-posix.c (test_function): Likewise.
2234
2235         *printf: Fix for platforms where 'long double' == 'double'.
2236         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2237         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2238         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2239         * modules/fprintf-posix (Files): Likewise.
2240         * modules/obstack-printf-posix (Files): Likewise.
2241         * modules/snprintf-posix (Files): Likewise.
2242         * modules/sprintf-posix (Files): Likewise.
2243         * modules/vasnprintf (Files): Likewise.
2244         * modules/vasnprintf-posix (Files): Likewise.
2245         * modules/vasprintf-posix (Files): Likewise.
2246         * modules/vdprintf-posix (Files): Likewise.
2247         * modules/vfprintf-posix (Files): Likewise.
2248         * modules/vsnprintf-posix (Files): Likewise.
2249         * modules/vsprintf-posix (Files): Likewise.
2250         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2251         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2252         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2253         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2254         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2255         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2256         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2257
2258         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2259         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2260         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2261         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2262         'long double'.
2263         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2264
2265         isinf: Fix for platforms where 'long double' == 'double'.
2266         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2267         Don't blindly assume 80-bit 'long double'.
2268
2269         isfinite: Fix for platforms where 'long double' == 'double'.
2270         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2271         Don't blindly assume 80-bit 'long double'.
2272
2273         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2274         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2275         * modules/isfinite-tests (configure.ac): Require
2276         gl_LONG_DOUBLE_VS_DOUBLE.
2277         * modules/isinf-tests (configure.ac): Likewise.
2278         * modules/isnan-tests (configure.ac): Likewise.
2279         * modules/isnanl-tests (configure.ac): Likewise.
2280         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2281         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2282         tests on platforms where 'long double' is the same as 'double'.
2283         * tests/test-isinf.c (test_isinfl): Likewise.
2284         * tests/test-isnan.c (test_long_double): Likewise.
2285         * tests/test-isnanl.h (main): Likewise.
2286
2287 2011-10-08  Bruno Haible  <bruno@clisp.org>
2288
2289         Tests for module 'tanhf'.
2290         * modules/tanhf-tests: New file.
2291         * tests/test-tanhf.c: New file.
2292
2293         New module 'tanhf'.
2294         * lib/math.in.h (tanhf): New declaration.
2295         * lib/tanhf.c: New file.
2296         * m4/tanhf.m4: New file.
2297         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2299         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2300         * modules/tanhf: New file.
2301         * tests/test-math-c++.cc: Check the declaration of tanhf.
2302         * doc/posix-functions/tanhf.texi: Mention the new module.
2303
2304         tanh: Use a .m4 file.
2305         * m4/tanh.m4: New file.
2306         * modules/tanh (Files): Add it.
2307         (configure.ac): Just invoke gl_FUNC_TANH.
2308
2309 2011-10-08  Bruno Haible  <bruno@clisp.org>
2310
2311         Tests for module 'coshf'.
2312         * modules/coshf-tests: New file.
2313         * tests/test-coshf.c: New file.
2314
2315         New module 'coshf'.
2316         * lib/math.in.h (coshf): New declaration.
2317         * lib/coshf.c: New file.
2318         * m4/coshf.m4: New file.
2319         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2321         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2322         * modules/coshf: New file.
2323         * tests/test-math-c++.cc: Check the declaration of coshf.
2324         * doc/posix-functions/coshf.texi: Mention the new module.
2325
2326         cosh: Use a .m4 file.
2327         * m4/cosh.m4: New file.
2328         * modules/cosh (Files): Add it.
2329         (configure.ac): Just invoke gl_FUNC_COSH.
2330
2331 2011-10-08  Bruno Haible  <bruno@clisp.org>
2332
2333         Tests for module 'sinhf'.
2334         * modules/sinhf-tests: New file.
2335         * tests/test-sinhf.c: New file.
2336
2337         New module 'sinhf'.
2338         * lib/math.in.h (sinhf): New declaration.
2339         * lib/sinhf.c: New file.
2340         * m4/sinhf.m4: New file.
2341         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2343         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2344         * modules/sinhf: New file.
2345         * tests/test-math-c++.cc: Check the declaration of sinhf.
2346         * doc/posix-functions/sinhf.texi: Mention the new module.
2347
2348         sinh: Use a .m4 file.
2349         * m4/sinh.m4: New file.
2350         * modules/sinh (Files): Add it.
2351         (configure.ac): Just invoke gl_FUNC_SINH.
2352
2353 2011-10-08  Bruno Haible  <bruno@clisp.org>
2354
2355         Tests for module 'atan2f'.
2356         * modules/atan2f-tests: New file.
2357         * tests/test-atan2f.c: New file.
2358
2359         New module 'atan2f'.
2360         * lib/math.in.h (atan2f): New declaration.
2361         * lib/atan2f.c: New file.
2362         * m4/atan2f.m4: New file.
2363         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2365         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2366         * modules/atan2f: New file.
2367         * tests/test-math-c++.cc: Check the declaration of atan2f.
2368         * doc/posix-functions/atan2f.texi: Mention the new module.
2369
2370         atan2: Use a .m4 file.
2371         * m4/atan2.m4: New file.
2372         * modules/atan2 (Files): Add it.
2373         (configure.ac): Just invoke gl_FUNC_ATAN2.
2374
2375 2011-10-08  Bruno Haible  <bruno@clisp.org>
2376
2377         Tests for module 'atanf'.
2378         * modules/atanf-tests: New file.
2379         * tests/test-atanf.c: New file.
2380
2381         New module 'atanf'.
2382         * lib/math.in.h (atanf): New declaration.
2383         * lib/atanf.c: New file.
2384         * m4/atanf.m4: New file.
2385         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2387         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2388         * modules/atanf: New file.
2389         * tests/test-math-c++.cc: Check the declaration of atanf.
2390         * doc/posix-functions/atanf.texi: Mention the new module.
2391
2392         atan: Use a .m4 file.
2393         * m4/atan.m4: New file.
2394         * modules/atan (Files): Add it.
2395         (configure.ac): Just invoke gl_FUNC_ATAN.
2396
2397 2011-10-08  Bruno Haible  <bruno@clisp.org>
2398
2399         Tests for module 'acosf'.
2400         * modules/acosf-tests: New file.
2401         * tests/test-acosf.c: New file.
2402
2403         New module 'acosf'.
2404         * lib/math.in.h (acosf): New declaration.
2405         * lib/acosf.c: New file.
2406         * m4/acosf.m4: New file.
2407         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2409         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2410         * modules/acosf: New file.
2411         * tests/test-math-c++.cc: Check the declaration of acosf.
2412         * doc/posix-functions/acosf.texi: Mention the new module.
2413
2414         acos: Use a .m4 file.
2415         * m4/acos.m4: New file.
2416         * modules/acos (Files): Add it.
2417         (configure.ac): Just invoke gl_FUNC_ACOS.
2418
2419 2011-10-08  Bruno Haible  <bruno@clisp.org>
2420
2421         Tests for module 'asinf'.
2422         * modules/asinf-tests: New file.
2423         * tests/test-asinf.c: New file.
2424
2425         New module 'asinf'.
2426         * lib/math.in.h (asinf): New declaration.
2427         * lib/asinf.c: New file.
2428         * m4/asinf.m4: New file.
2429         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2431         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2432         * modules/asinf: New file.
2433         * tests/test-math-c++.cc: Check the declaration of asinf.
2434         * doc/posix-functions/asinf.texi: Mention the new module.
2435
2436         asin: Use a .m4 file.
2437         * m4/asin.m4: New file.
2438         * modules/asin (Files): Add it.
2439         (configure.ac): Just invoke gl_FUNC_ASIN.
2440
2441 2011-10-08  Bruno Haible  <bruno@clisp.org>
2442
2443         Tests for module 'tanf'.
2444         * modules/tanf-tests: New file.
2445         * tests/test-tanf.c: New file.
2446
2447         New module 'tanf'.
2448         * lib/math.in.h (tanf): New declaration.
2449         * lib/tanf.c: New file.
2450         * m4/tanf.m4: New file.
2451         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2453         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2454         * modules/tanf: New file.
2455         * tests/test-math-c++.cc: Check the declaration of tanf.
2456         * doc/posix-functions/tanf.texi: Mention the new module.
2457
2458         tan: Use a .m4 file.
2459         * m4/tan.m4: New file.
2460         * modules/tan (Files): Add it.
2461         (configure.ac): Just invoke gl_FUNC_TAN.
2462
2463 2011-10-08  Bruno Haible  <bruno@clisp.org>
2464
2465         Tests for module 'cosf'.
2466         * modules/cosf-tests: New file.
2467         * tests/test-cosf.c: New file.
2468
2469         New module 'cosf'.
2470         * lib/math.in.h (cosf): New declaration.
2471         * lib/cosf.c: New file.
2472         * m4/cosf.m4: New file.
2473         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2475         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2476         * modules/cosf: New file.
2477         * tests/test-math-c++.cc: Check the declaration of cosf.
2478         * doc/posix-functions/cosf.texi: Mention the new module.
2479
2480         cos: Use a .m4 file.
2481         * m4/cos.m4: New file.
2482         * modules/cos (Files): Add it.
2483         (configure.ac): Just invoke gl_FUNC_COS.
2484
2485 2011-10-08  Bruno Haible  <bruno@clisp.org>
2486
2487         Tests for module 'sinf'.
2488         * modules/sinf-tests: New file.
2489         * tests/test-sinf.c: New file.
2490
2491         New module 'sinf'.
2492         * lib/math.in.h (sinf): New declaration.
2493         * lib/sinf.c: New file.
2494         * m4/sinf.m4: New file.
2495         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2497         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2498         * modules/sinf: New file.
2499         * tests/test-math-c++.cc: Check the declaration of sinf.
2500         * doc/posix-functions/sinf.texi: Mention the new module.
2501
2502         sin: Use a .m4 file.
2503         * m4/sin.m4: New file.
2504         * modules/sin (Files): Add it.
2505         (configure.ac): Just invoke gl_FUNC_SIN.
2506
2507 2011-10-08  Bruno Haible  <bruno@clisp.org>
2508
2509         Tests for module 'powf'.
2510         * modules/powf-tests: New file.
2511         * tests/test-powf.c: New file.
2512
2513         New module 'powf'.
2514         * lib/math.in.h (powf): New declaration.
2515         * lib/powf.c: New file.
2516         * m4/powf.m4: New file.
2517         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2519         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2520         * modules/powf: New file.
2521         * tests/test-math-c++.cc: Check the declaration of powf.
2522         * doc/posix-functions/powf.texi: Mention the new module.
2523
2524         pow: Use a .m4 file.
2525         * m4/pow.m4: New file.
2526         * modules/pow (Files): Add it.
2527         (configure.ac): Just invoke gl_FUNC_POW.
2528
2529 2011-10-08  Bruno Haible  <bruno@clisp.org>
2530
2531         Tests for module 'log10f'.
2532         * modules/log10f-tests: New file.
2533         * tests/test-log10f.c: New file.
2534
2535         New module 'log10f'.
2536         * lib/math.in.h (log10f): New declaration.
2537         * lib/log10f.c: New file.
2538         * m4/log10f.m4: New file.
2539         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2541         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2542         * modules/log10f: New file.
2543         * tests/test-math-c++.cc: Check the declaration of log10f.
2544         * doc/posix-functions/log10f.texi: Mention the new module.
2545
2546         log10: Use a .m4 file.
2547         * m4/log10.m4: New file.
2548         * modules/log10 (Files): Add it.
2549         (configure.ac): Just invoke gl_FUNC_LOG10.
2550
2551 2011-10-08  Bruno Haible  <bruno@clisp.org>
2552
2553         Tests for module 'logf'.
2554         * modules/logf-tests: New file.
2555         * tests/test-logf.c: New file.
2556
2557         New module 'logf'.
2558         * lib/math.in.h (logf): New declaration.
2559         * lib/logf.c: New file.
2560         * m4/logf.m4: New file.
2561         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2563         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2564         * modules/logf: New file.
2565         * tests/test-math-c++.cc: Check the declaration of logf.
2566         * doc/posix-functions/logf.texi: Mention the new module.
2567
2568         log: Use a .m4 file.
2569         * m4/log.m4: New file.
2570         * modules/log (Files): Add it.
2571         (configure.ac): Just invoke gl_FUNC_LOG.
2572
2573 2011-10-08  Bruno Haible  <bruno@clisp.org>
2574
2575         Tests for module 'expf'.
2576         * modules/expf-tests: New file.
2577         * tests/test-expf.c: New file.
2578
2579         New module 'expf'.
2580         * lib/math.in.h (expf): New declaration.
2581         * lib/expf.c: New file.
2582         * m4/expf.m4: New file.
2583         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2585         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2586         * modules/expf: New file.
2587         * tests/test-math-c++.cc: Check the declaration of expf.
2588         * doc/posix-functions/expf.texi: Mention the new module.
2589
2590         exp: Use a .m4 file.
2591         * m4/exp.m4: New file.
2592         * modules/exp (Files): Add it.
2593         (configure.ac): Just invoke gl_FUNC_EXP.
2594
2595 2011-10-08  Bruno Haible  <bruno@clisp.org>
2596
2597         Tests for module 'sqrtf'.
2598         * modules/sqrtf-tests: New file.
2599         * tests/test-sqrtf.c: New file.
2600
2601         New module 'sqrtf'.
2602         * lib/math.in.h (sqrtf): New declaration.
2603         * lib/sqrtf.c: New file.
2604         * m4/sqrtf.m4: New file.
2605         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2607         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2608         * modules/sqrtf: New file.
2609         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2610         * doc/posix-functions/sqrtf.texi: Mention the new module.
2611
2612 2011-10-08  Bruno Haible  <bruno@clisp.org>
2613
2614         Tests: Avoid link failures w.r.t. libintl.
2615         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2616         $(LIBINTL).
2617         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2618         $(LIBINTL).
2619         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2620         against $(LIBINTL).
2621         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2622         $(LIBINTL).
2623         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2624         $(LIBINTL).
2625         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2626
2627 2011-10-08  Bruno Haible  <bruno@clisp.org>
2628
2629         pow tests: Defeat compiler optimizations.
2630         * tests/test-pow.c (main): Assign arguments to x and y before use.
2631
2632 2011-10-08  Bruno Haible  <bruno@clisp.org>
2633
2634         gnulib-tool: Improve last commit.
2635         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2636         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2637         ignore dependencies that are not among the modules list.
2638
2639 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2640
2641         gnulib-tool: don't follow dependencies to avoided modules
2642         This fixes a bug that is related to the previous one.
2643         * gnulib-tool (func_modules_transitive_closure)
2644         (func_emit_autoconf_snippets):
2645         Check whether a dependency is acceptable before using it.
2646         (--extract-dependencies): Report an error if --avoid is also used,
2647         since this combination of options is not yet supported.
2648
2649         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2650         Problem reported by Peter Dyballa in
2651         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2652         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2653         when echoing "$condition".
2654
2655 2011-10-07  Bruno Haible  <bruno@clisp.org>
2656
2657         Fix documentation about math functions on MacOS X.
2658         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2659         MacOS X 10.5.
2660         * doc/posix-functions/fdim.texi: Likewise.
2661         * doc/posix-functions/feclearexcept.texi: Likewise.
2662         * doc/posix-functions/fegetenv.texi: Likewise.
2663         * doc/posix-functions/fegetround.texi: Likewise.
2664         * doc/posix-functions/feholdexcept.texi: Likewise.
2665         * doc/posix-functions/feraiseexcept.texi: Likewise.
2666         * doc/posix-functions/fesetenv.texi: Likewise.
2667         * doc/posix-functions/fesetround.texi: Likewise.
2668         * doc/posix-functions/fetestexcept.texi: Likewise.
2669         * doc/posix-functions/feupdateenv.texi: Likewise.
2670         * doc/posix-functions/fmax.texi: Likewise.
2671         * doc/posix-functions/fmin.texi: Likewise.
2672         * doc/posix-functions/log2.texi: Likewise.
2673         * doc/posix-functions/modff.texi: Likewise.
2674         * doc/posix-functions/nan.texi: Likewise.
2675         * doc/posix-functions/nanf.texi: Likewise.
2676         * doc/posix-functions/nextafterf.texi: Likewise.
2677         * doc/posix-functions/remquo.texi: Likewise.
2678
2679 2011-10-07  Bruno Haible  <bruno@clisp.org>
2680
2681         modff: Drop assumption about library that defines modff.
2682         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2683         AC_CHECK_FUNCS.
2684         * modules/modff (Files): Add m4/mathfunc.m4.
2685
2686 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2687
2688         raise tests: Avoid a GCC warning.
2689         * tests/test-raise.c (handler): Use _Noreturn.
2690
2691 2011-10-07  Bruno Haible  <bruno@clisp.org>
2692
2693         Tests for module 'ldexpf'.
2694         * modules/ldexpf-tests: New file.
2695         * tests/test-ldexpf.c: New file.
2696
2697         New module 'ldexpf'.
2698         * lib/math.in.h (ldexpf): New declaration.
2699         * lib/ldexpf.c: New file.
2700         * m4/ldexpf.m4: New file.
2701         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2703         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2704         * modules/ldexpf: New file.
2705         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2706         * doc/posix-functions/ldexpf.texi: Mention the new module.
2707
2708 2011-10-06  Bruno Haible  <bruno@clisp.org>
2709
2710         frexpf: Work around problems on IRIX and mingw.
2711         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2713         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2714         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2715         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2716         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2717         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2718
2719 2011-10-06  Bruno Haible  <bruno@clisp.org>
2720
2721         fabsf: Drop assumption about library that defines fabsf.
2722         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2723         AC_CHECK_FUNCS.
2724         * modules/fabsf (Files): Add m4/mathfunc.m4.
2725
2726 2011-10-06  Bruno Haible  <bruno@clisp.org>
2727
2728         frexpf: Drop assumption about library that defines frexpf.
2729         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2730         'int *', 'float *', 'long double *', 'float', 'long double'.
2731         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2732         AC_CHECK_FUNCS.
2733         * modules/frexpf (Files): Add m4/mathfunc.m4.
2734
2735         Tests for module 'frexpf'.
2736         * modules/frexpf-tests: New file.
2737         * tests/test-frexpf.c: New file.
2738
2739         New module 'frexpf'.
2740         * lib/math.in.h (frexpf): New declaration.
2741         * lib/frexpf.c: New file.
2742         * m4/frexpf.m4: New file.
2743         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2745         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2746         * modules/frexpf: New file.
2747         * tests/test-math-c++.cc: Check the declaration of frexpf.
2748         * doc/posix-functions/frexpf.texi: Mention the new module.
2749
2750 2011-10-06  Bruno Haible  <bruno@clisp.org>
2751
2752         math: Sort function declarations of math.in.h.
2753         * lib/math.in.h (frexp, logb): Move declarations.
2754
2755 2011-10-05  Bruno Haible  <bruno@clisp.org>
2756
2757         Tests for module 'modff'.
2758         * modules/modff-tests: New file.
2759         * tests/test-modff.c: New file.
2760
2761         New module 'modff'.
2762         * lib/math.in.h (modff): New declaration.
2763         * lib/modff.c: New file.
2764         * m4/modff.m4: New file.
2765         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2767         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2768         * modules/modff: New file.
2769         * tests/test-math-c++.cc: Check the declaration of modff.
2770         * doc/posix-functions/modff.texi: Mention the new module.
2771
2772         modf tests: Make test sharper.
2773         * tests/test-modf.c (main): Strengthen upper bound.
2774
2775         modf: Use a .m4 file.
2776         * m4/modf.m4: New file.
2777         * modules/modf (Files): Add it.
2778         (configure.ac): Just invoke gl_FUNC_MODF.
2779
2780 2011-10-05  Bruno Haible  <bruno@clisp.org>
2781
2782         Tests for module 'fmodf'.
2783         * modules/fmodf-tests: New file.
2784         * tests/test-fmodf.c: New file.
2785
2786         New module 'fmodf'.
2787         * lib/math.in.h (fmodf): New declaration.
2788         * lib/fmodf.c: New file.
2789         * m4/fmodf.m4: New file.
2790         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2792         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2793         * modules/fmodf: New file.
2794         * tests/test-math-c++.cc: Check the declaration of fmodf.
2795         * doc/posix-functions/fmodf.texi: Mention the new module.
2796
2797         fmod: Use a .m4 file.
2798         * m4/fmod.m4: New file.
2799         * modules/fmod (Files): Add it.
2800         (configure.ac): Just invoke gl_FUNC_FMOD.
2801
2802 2011-10-05  Bruno Haible  <bruno@clisp.org>
2803
2804         Tests for module 'fabsf'.
2805         * modules/fabsf-tests: New file.
2806         * tests/test-fabsf.c: New file.
2807
2808         New module 'fabsf'.
2809         * lib/math.in.h (fabsf): New declaration.
2810         * lib/fabsf.c: New file.
2811         * m4/fabsf.m4: New file.
2812         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2814         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2815         * modules/fabsf: New file.
2816         * tests/test-math-c++.cc: Check the declaration of fabsf.
2817         * doc/posix-functions/fabsf.texi: Mention the new module.
2818
2819         fabs: Use a .m4 file.
2820         * m4/fabs.m4: New file.
2821         * modules/fabs (Files): Add it.
2822         (configure.ac): Just invoke gl_FUNC_FABS.
2823
2824 2011-10-05  Jim Meyering  <meyering@redhat.com>
2825
2826         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2827         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2828         ls -lL regression introduced in coreutils-8.12, it does so at the
2829         cost of an additional stat call in the common case.  Besides, now
2830         that the kernel change that prompted commit 95f7c57f has been reverted
2831         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2832         we have no use for commit 95f7c57f, "file-has-acl: use
2833         acl_extended_file_nofollow if available".
2834
2835 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2836
2837         file-has-acl: revert unintended change in behavior of ls -L
2838         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2839         derived from...
2840         (file_has_acl): ...code here.  Call it.
2841         This problem was introduced with 2011-07-22 commit 95f7c57f,
2842         "file-has-acl: use acl_extended_file_nofollow if available".
2843         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2844
2845 2011-10-03  Bruno Haible  <bruno@clisp.org>
2846
2847         poll: Avoid link errors on MSVC.
2848         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2849         * modules/poll (Depends-on): Add sockets.
2850         (Link): New section.
2851         * NEWS: Mention the change.
2852         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2853         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2854         $(LIB_POLL) instead of $(LIBSOCKET).
2855
2856 2011-10-03  Bruno Haible  <bruno@clisp.org>
2857
2858         sys_select tests: Fix link error on MSVC 9.
2859         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2860         with $(LIB_SELECT) instead of $(LIBSOCKET).
2861
2862 2011-10-03  Bruno Haible  <bruno@clisp.org>
2863
2864         sys_select: Fix compilation error on mingw.
2865         * lib/sys_select.in.h: On native Windows, include <io.h>.
2866
2867 2011-10-03  Bruno Haible  <bruno@clisp.org>
2868
2869         wmemset: Support for MSVC.
2870         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2871         whether wmemset() exists.
2872
2873 2011-10-03  Bruno Haible  <bruno@clisp.org>
2874
2875         wmemmove: Support for MSVC.
2876         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2877         whether wmemmove() exists.
2878
2879 2011-10-03  Bruno Haible  <bruno@clisp.org>
2880
2881         wmemcpy: Support for MSVC.
2882         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2883         whether wmemcpy() exists.
2884
2885 2011-10-03  Bruno Haible  <bruno@clisp.org>
2886
2887         wmemcmp: Support for MSVC.
2888         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2889         whether wmemcmp() exists.
2890
2891 2011-10-03  Bruno Haible  <bruno@clisp.org>
2892
2893         wmemchr: Support for MSVC.
2894         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2895         whether wmemchr() exists.
2896
2897 2011-10-03  Bruno Haible  <bruno@clisp.org>
2898
2899         glthread/*, strsignal: Support for MSVC.
2900         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2901         including <winsock.h> on MSVC 9.
2902         * lib/glthread/lock.h: Likewise.
2903         * lib/glthread/thread.h: Likewise.
2904         * lib/glthread/tls.h: Likewise.
2905         * lib/glthread/yield.h: Likewise.
2906         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2907         if HAVE_UNISTD_H is false.
2908         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2909
2910 2011-10-03  Bruno Haible  <bruno@clisp.org>
2911
2912         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2913         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2914         Set to 100000.
2915
2916 2011-10-03  Bruno Haible  <bruno@clisp.org>
2917
2918         acl: Fix specification.
2919         * lib/file-has-acl.c (file_has_acl): Fix specification.
2920
2921 2011-10-03  Bruno Haible  <bruno@clisp.org>
2922
2923         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2924         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2925         (compute_curr_prefix, shared_library_fullname,
2926         find_shared_library_fullname, get_shared_library_fullname, relocate):
2927         Use it together with PIC && INSTALLDIR.
2928         Reported by <jojelino@gmail.com>
2929         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2930
2931 2011-10-01  Jim Meyering  <meyering@redhat.com>
2932
2933         maint.mk: adjust a release-related rule not to require use of gzip
2934         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2935         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2936         projects that build only .tar.xz files.  Also fix an erroneous test.
2937
2938         test-linkat: don't leave behind a temporary file
2939         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2940         Otherwise, coreutils' "make distcheck" would fail with this:
2941           Only in /c/cu/tests/torture/coreutils/test/\
2942             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2943           make[2]: *** [my-distcheck] Error 1
2944
2945         float, math: add omitted file
2946         * lib/itold.c: Add file, required for yesterday's float change.
2947
2948 2011-10-01  Bruno Haible  <bruno@clisp.org>
2949
2950         isinf: Fix for OpenBSD/x86.
2951         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2952         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2953         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2954
2955 2011-10-01  Bruno Haible  <bruno@clisp.org>
2956
2957         isfinite: Fix syntax error in configure test.
2958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2959
2960         isfinite: Fix typo.
2961         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2962         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2963
2964 2011-10-01  Bruno Haible  <bruno@clisp.org>
2965
2966         nonblocking tests: Fix test failure on Linux/IA-64.
2967         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2968         Set to 270000.
2969
2970 2011-10-01  Bruno Haible  <bruno@clisp.org>
2971
2972         mkfifoat tests: Fix a test failure on mingw.
2973         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2974         with error ENOSYS.
2975
2976 2011-09-30  Bruno Haible  <bruno@clisp.org>
2977
2978         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2979         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2980         'long double'. Set REPLACE_ITOLD.
2981         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2982         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2983         * lib/itold.c: New file.
2984         * modules/float (Files): Add lib/itold.c.
2985         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2986         (Makefile.am): Substitute REPLACE_ITOLD.
2987         * modules/math (Depends-on): Add float.
2988         (Makefile.am): Substitute REPLACE_ITOLD.
2989         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2990         * doc/posix-headers/math.texi: Likewise.
2991         * doc/posix-functions/logl.texi: Likewise.
2992
2993 2011-09-30  Bruno Haible  <bruno@clisp.org>
2994
2995         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2996         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2997         Set to 140000.
2998
2999 2011-09-30  Bruno Haible  <bruno@clisp.org>
3000
3001         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3002         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3003         invocation, say "right after AC_PROG_CC_STDC", not "right after
3004         AC_PROG_CC".
3005         Reported by Gary V. Vaughan <gary@gnu.org>.
3006
3007 2011-09-30  Bruno Haible  <bruno@clisp.org>
3008
3009         Centralize C99 requirement.
3010         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3011         * modules/stdarg (configure.ac-early): Invoke it instead of
3012         AC_PROG_CC_STDC.
3013         Reported by Gary V. Vaughan and Paul Eggert.
3014
3015 2011-09-29  Bruno Haible  <bruno@clisp.org>
3016
3017         float: Fix LDBL_MAX value on Linux/PowerPC.
3018         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3019         on Linux/PowerPC.
3020         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3021         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3022         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3023         platform.
3024         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3025
3026 2011-09-29  Bruno Haible  <bruno@clisp.org>
3027
3028         doc: Improve doc about gl_EARLY.
3029         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3030         AC_PROG_CC_STDC invocation.
3031         Reported by Gary V. Vaughan <gary@gnu.org>.
3032
3033 2011-09-28  Bruno Haible  <bruno@clisp.org>
3034
3035         fgetc, fputc, fread, fwrite tests: Fix link error.
3036         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3037         on non-MSVC platforms.
3038         * tests/test-fputc.c (main): Likewise.
3039         * tests/test-fread.c (main): Likewise.
3040         * tests/test-fwrite.c (main): Likewise.
3041         Reported by Jim Meyering.
3042
3043 2011-09-27  Bruno Haible  <bruno@clisp.org>
3044
3045         fputc, fwrite tests: Avoid test failure on MSVC.
3046         * tests/test-fgetc.c: Include msvc-inval.h.
3047         (main): Invoke gl_msvc_inval_ensure_handler.
3048         * tests/test-fputc.c: Include msvc-inval.h.
3049         (main): Invoke gl_msvc_inval_ensure_handler.
3050         * tests/test-fread.c: Include msvc-inval.h.
3051         (main): Invoke gl_msvc_inval_ensure_handler.
3052         * tests/test-fwrite.c: Include msvc-inval.h.
3053         (main): Invoke gl_msvc_inval_ensure_handler.
3054         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3055         * modules/fputc-tests (Depends-on): Likewise.
3056         * modules/fread-tests (Depends-on): Likewise.
3057         * modules/fwrite-tests (Depends-on): Likewise.
3058
3059 2011-09-27  Bruno Haible  <bruno@clisp.org>
3060
3061         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3062         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3063         (raise): Remove older, duplicated declaration.
3064         (_gl_raise_SIGPIPE): New declaration.
3065         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3066         (rpl_raise): Remove function.
3067         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3068         a gnulib-defined SIGPIPE here.
3069         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3070         'sigprocmask' has detected missing signal-blocking and the module
3071         'sigpipe' is enabled.
3072         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3073
3074 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3075
3076         base64-tests: avoid memory leak
3077         * tests/test-base64.c (main): Plug memory leak.
3078
3079         base32: new module
3080         * modules/base32: New module.
3081         * lib/base32.c: New file.
3082         * lib/base32.h: Likewise.
3083         * m4/base32.m4: Likewise.
3084         * modules/base32-tests: New test.
3085         * tests/test-base32.c: Likewise.
3086         * MODULES.html.sh (Misc): Mention it.
3087
3088 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         gnulib: use more-standard license notice wording
3091         * gnulib-tool (func_emit_copyright_notice): When emitting a
3092         license notice into a file, use the standard wording as suggested
3093         by the current information for GNU maintainers, except say "file"
3094         rather than "program".  The new wording gives a license version
3095         number, which addresses an issue raised by Glenn Morris in
3096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3097         * m4/onceonly.m4: Use that same wording here, too.
3098
3099         dup2: minor simplification
3100         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3101         as lib/dup2.c no longer uses 'inline'.
3102
3103 2011-09-25  Bruno Haible  <bruno@clisp.org>
3104
3105         strings: Fix compilation error on MSVC.
3106         * lib/strings.in.h: Include <stddef.h> for size_t.
3107
3108 2011-09-25  Bruno Haible  <bruno@clisp.org>
3109
3110         fflush et al.: Document limitation on MSVC.
3111         * doc/posix-functions/fflush.texi: Document possible crash in handling
3112         mode other than DEFAULT_HANDLING.
3113         * doc/posix-functions/fgetc.texi: Likewise.
3114         * doc/posix-functions/fputc.texi: Likewise.
3115         * doc/posix-functions/fread.texi: Likewise.
3116         * doc/posix-functions/fwrite.texi: Likewise.
3117
3118 2011-09-25  Bruno Haible  <bruno@clisp.org>
3119
3120         msvc-inval: Allow three invalid parameter handling modes.
3121         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3122         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3123         macros.
3124         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3125         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3126         SANE_LIBRARY_HANDLING as a no-op.
3127         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3128         <stdlib.h>.
3129         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3130
3131 2011-09-25  Bruno Haible  <bruno@clisp.org>
3132
3133         msvc-inval: Make handler multithread-safe.
3134         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3135         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3136         declarations.
3137         (gl_msvc_inval_current): New declaration.
3138         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3139         Operate on the structure returned by gl_msvc_inval_current().
3140         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3141         Remove varaiables.
3142         (tls_index, tls_initialized): New variables.
3143         (not_per_thread): New variable.
3144         (gl_msvc_inval_current): New function.
3145         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3146         returned by gl_msvc_inval_current().
3147
3148 2011-09-25  Bruno Haible  <bruno@clisp.org>
3149
3150         msvc-inval: Install handler globally.
3151         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3152         !_MSC_VER.
3153         (gl_msvc_invalid_parameter_handler): Remove declaration.
3154         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3155         declarations.
3156         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3157         Install the handler globally, don't uninstall it.
3158         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3159         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3160         currently valid, call RaiseException instead.
3161         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3162         for !_MSC_VER.
3163
3164 2011-09-25  Bruno Haible  <bruno@clisp.org>
3165
3166         strerror_r-posix: Fix for MSVC 9.
3167         * lib/strerror_r.c (local_snprintf): New function.
3168         (snprintf): Define to local_snprintf, not to _snprintf.
3169
3170 2011-09-25  Bruno Haible  <bruno@clisp.org>
3171
3172         ftruncate: Support for MSVC 9.
3173         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3174         (chsize_nothrow): New function.
3175         (chsize): Redefine as a macro.
3176         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3177         * modules/ftruncate (Depends-on): Add msvc-inval.
3178
3179 2011-09-25  Bruno Haible  <bruno@clisp.org>
3180
3181         New module 'fstat'.
3182         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3183         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3184         * lib/fchdir.c (rpl_fstat): Remove function.
3185         * m4/fstat.m4: New file.
3186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3187         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3188         declared.
3189         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3190         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3191         * modules/fstat: New file.
3192         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3193         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3194         is set.
3195         * doc/posix-functions/fstat.texi: Mention the new module and the
3196         problem on MSVC.
3197         * NEWS: Mention the change.
3198         * modules/acl (Depends-on): Add fstat.
3199         * modules/chdir-safer (Depends-on): Likewise.
3200         * modules/chown (Depends-on): Likewise.
3201         * modules/copy-file (Depends-on): Likewise.
3202         * modules/fchdir (Depends-on): Likewise.
3203         * modules/fdopendir (Depends-on): Likewise.
3204         * modules/fopen (Depends-on): Likewise.
3205         * modules/fts (Depends-on): Likewise.
3206         * modules/getcwd (Depends-on): Likewise.
3207         * modules/isapipe (Depends-on): Likewise.
3208         * modules/linkat (Depends-on): Likewise.
3209         * modules/lseek (Depends-on): Likewise.
3210         * modules/mkdir-p (Depends-on): Likewise.
3211         * modules/open (Depends-on): Likewise.
3212         * modules/openat (Depends-on): Likewise.
3213         * modules/read-file (Depends-on): Likewise.
3214         * modules/renameat (Depends-on): Likewise.
3215         * modules/utimens (Depends-on): Likewise.
3216
3217 2011-09-25  Bruno Haible  <bruno@clisp.org>
3218
3219         linkat: Fix compilation on MSVC 9.
3220         * lib/linkat.c: Don't include <stdint.h>.
3221
3222 2011-09-25  Bruno Haible  <bruno@clisp.org>
3223
3224         fclose: Support for MSVC 9.
3225         * lib/fclose.c: Include msvc-inval.h.
3226         (fclose_nothrow): New function.
3227         (rpl_fclose): Use it.
3228         * modules/fclose (Depends-on): Add msvc-inval.
3229         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3230
3231 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         dup2: minor simplifications
3234         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3235         that it's a performance win.
3236         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3237         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3238
3239 2011-09-24  Jim Meyering  <meyering@redhat.com>
3240
3241         test-futimens: avoid a warning from gcc -Wshadow
3242         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3243         to avoid a shadowing warning.
3244
3245 2011-09-24  Bruno Haible  <bruno@clisp.org>
3246
3247         fdopen: Support for MSVC 9.
3248         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3249         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3250         * lib/fdopen.c: Include msvc-inval.h.
3251         (fdopen_nothrow): New function.
3252         (rpl_fdopen): Use it.
3253         * modules/fdopen (Depends-on): Add msvc-inval.
3254         * modules/fclose-tests (Depends-on): Add fdopen.
3255         * modules/fflush-tests (Depends-on): Likewise.
3256         * modules/fgetc-tests (Depends-on): Likewise.
3257         * modules/fputc-tests (Depends-on): Likewise.
3258         * modules/fread-tests (Depends-on): Likewise.
3259         * modules/freopen-tests (Depends-on): Likewise.
3260         * modules/fseeko-tests (Depends-on): Likewise.
3261         * modules/ftello-tests (Depends-on): Likewise.
3262         * modules/fwrite-tests  (Depends-on): Likewise.
3263         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3264
3265 2011-09-24  Bruno Haible  <bruno@clisp.org>
3266
3267         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3268         * modules/fgetc-tests (Depends-on): Add unistd.
3269         * modules/fputc-tests (Depends-on): Likewise.
3270         * modules/fread-tests (Depends-on): Likewise.
3271         * modules/fwrite-tests (Depends-on): Likewise.
3272
3273 2011-09-24  Bruno Haible  <bruno@clisp.org>
3274
3275         dup: Simplify autoconf test.
3276         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3277         on gl_MSVC_INVAL's result.
3278
3279 2011-09-24  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for function fwrite().
3282         * modules/fwrite-tests: New file.
3283         * tests/test-fwrite.c: New file.
3284         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3285
3286         Tests for function fread().
3287         * modules/fread-tests: New file.
3288         * tests/test-fread.c: New file.
3289         * modules/stdio-tests (Depends-on): Add fread-tests.
3290
3291         Activate fputc tests.
3292         * modules/stdio-tests (Depends-on): Add fputc-tests.
3293
3294         Enhance fgetc, fputc tests.
3295         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3296         * tests/test-fputc.c (main): Likewise.
3297
3298 2011-09-24  Bruno Haible  <bruno@clisp.org>
3299
3300         write: Support for MSVC 9.
3301         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3302         is not 1.
3303         * lib/write.c (write_nothrow): New function.
3304         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3305         not 1. Use write_nothrow.
3306         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3307         invalid parameter handler.
3308         (gl_PREREQ_WRITE): New macro.
3309         * modules/write (Depends-on): Add msvc-inval.
3310         (configure.ac): Invoke gl_PREREQ_WRITE.
3311         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3312
3313 2011-09-24  Bruno Haible  <bruno@clisp.org>
3314
3315         read: Fix last commit.
3316         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3317
3318 2011-09-24  Bruno Haible  <bruno@clisp.org>
3319
3320         dup2: Fix last commit.
3321         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3322         (rpl_dup2): Disable fcntl workaround on native Windows.
3323
3324         sigprocmask: Make code safer.
3325         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3326         section that changes macro definitions for this compilation unit.
3327
3328 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         dup2: clarify by coalescing Windows-specific material
3331         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3332         "msvc-nothrow.h"' to the Windows-specific section, so that the
3333         Emacs source need not contain these include files.
3334         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3335         Windows-specific fixes into this function rather than just the
3336         nothrow fix, as this shortens and clarifies the code.  Always
3337         define as a function, as that's a bit cleaner than having it be
3338         sometimes a function and sometimes a macro.
3339         (rpl_dup2): Move the Windows-specific stuff out of here and into
3340         ms_windows_dup2.  Don't protect the Haiku-related fix with
3341         "#if !defined __linux__", as the same code also works around
3342         a Linux kernel bug, and it doesn't add any system calls on any
3343         platform.  Add comment about FreeBSD 6.1.
3344
3345         sigprocmask: move #include directive
3346         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3347         Windows-specific section, so that the Emacs source need not
3348         contain msvc-inval.h.
3349
3350 2011-09-23  Bruno Haible  <bruno@clisp.org>
3351
3352         read: Support for MSVC 9.
3353         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3354         is not 1.
3355         * lib/read.c (read_nothrow): New function.
3356         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3357         read_nothrow.
3358         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3359         invalid parameter handler.
3360         (gl_PREREQ_READ): New macro.
3361         * modules/read (Depends-on): Add msvc-inval.
3362         (configure.ac): Invoke gl_PREREQ_READ.
3363         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3364
3365 2011-09-23  Bruno Haible  <bruno@clisp.org>
3366
3367         close: Support for MSVC 9.
3368         * lib/close.c: Include <errno.h>, msvc-inval.h.
3369         (close_nothrow): New function.
3370         (rpl_close): Use it.
3371         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3372         invalid parameter handler.
3373         * modules/close (Depends-on): Add msvc-inval.
3374         * modules/dup2-tests (Depends-on): Add close.
3375         * modules/dup3-tests (Depends-on): Likewise.
3376         * modules/fcntl-tests (Depends-on): Likewise.
3377         * modules/spawn-pipe-tests (Depends-on): Likewise.
3378         * modules/unistd-safer-tests (Depends-on): Likewise.
3379         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3380
3381 2011-09-23  Bruno Haible  <bruno@clisp.org>
3382
3383         New module 'dup'.
3384         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3385         Allow replacement.
3386         * lib/dup.c: New file.
3387         * lib/fchdir.c (rpl_dup): Remove function.
3388         * m4/dup.m4: New file.
3389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3390         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3391         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3392         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3393         * modules/dup: New file.
3394         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3395         'dup' module is in use.
3396         * modules/fdopendir (Depends-on): Add dup.
3397         * modules/fdutimensat-tests (Depends-on): Likewise.
3398         * modules/fts (Depends-on): Likewise.
3399         * modules/futimens-tests (Depends-on): Likewise.
3400         * modules/posix_spawnp-tests (Depends-on): Likewise.
3401         * modules/unistd-safer-tests (Depends-on): Likewise.
3402         * modules/utimens-tests (Depends-on): Likewise.
3403         * doc/posix-functions/dup.texi: Mention the new module and the problem
3404         on MSVC.
3405
3406 2011-09-23  Bruno Haible  <bruno@clisp.org>
3407
3408         getdtablesize: Support for MSVC 9.
3409         * lib/getdtablesize.c: Include msvc-inval.h.
3410         (_setmaxstdio_nothrow): New function.
3411         (_setmaxstdio): Redefine it.
3412         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3413         * modules/getdtablesize (Depends-on): Add msvc-inval.
3414         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3415
3416 2011-09-23  Bruno Haible  <bruno@clisp.org>
3417
3418         signal-h: Rename from signal.
3419         * modules/signal-h: Renamed from modules/signal.
3420         * modules/pthread_sigmask (Depends-on): Update.
3421         * modules/raise (Depends-on): Likewise.
3422         * modules/sigaction (Depends-on): Likewise.
3423         * modules/sigpipe (Depends-on): Likewise.
3424         * modules/sigprocmask (Depends-on): Likewise.
3425         * modules/sys_select (Depends-on): Likewise.
3426         * modules/signal-h-tests: Renamed from modules/signal-tests.
3427         (Files, Depends-on, Makefile.am): Update.
3428         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3429         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3430         (Files, Makefile.am): Update.
3431         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3432         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3433         * modules/signal: New placeholder file.
3434         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3435         * doc/posix-headers/signal.texi: Update.
3436         * NEWS: Mention the change.
3437
3438 2011-09-23  Bruno Haible  <bruno@clisp.org>
3439
3440         sigprocmask: Avoid crashes through signal() on MSVC 9.
3441         * lib/sigprocmask.c: Include msvc-inval.h.
3442         (signal_nothrow): New function.
3443         (signal): Redefine it.
3444         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3445         * modules/sigprocmask (Depends-on): Add msvc-inval.
3446         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3447
3448 2011-09-23  Bruno Haible  <bruno@clisp.org>
3449
3450         Tests for module 'raise'.
3451         * modules/raise-tests: New file.
3452         * tests/test-raise.c: New file.
3453
3454         raise: Support for MSVC.
3455         * lib/signal.in.h (raise): New declaration.
3456         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3457         for native Windows platforms.
3458         * m4/raise.m4: New file.
3459         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3460         HAVE_RAISE, REPLACE_RAISE.
3461         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3462         REPLACE_RAISE.
3463         * modules/raise (Status, Notice): Remove fields.
3464         (Files): Add m4/raise.m4.
3465         (Depends-on): Add signal, msvc-inval.
3466         (configure.ac): Use the common idioms.
3467         (Maintainer): Add me.
3468         * tests/test-signal-c++.cc: Check the signature of raise.
3469         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3470
3471 2011-09-23  Bruno Haible  <bruno@clisp.org>
3472
3473         pipe2: Fix compilation on pre-C99 compilers.
3474         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3475
3476 2011-09-23  Bruno Haible  <bruno@clisp.org>
3477
3478         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3479         * lib/msvc-nothrow.h: New file.
3480         * lib/msvc-nothrow.c: New file.
3481         * m4/msvc-nothrow.m4: New file.
3482         * modules/msvc-nothrow: New file.
3483         * lib/dup2.c: Include msvc-nothrow.h.
3484         (rpl_dup2): No need to protect _get_osfhandle call here.
3485         * lib/accept4.c: Include msvc-nothrow.h.
3486         * lib/error.c: Likewise.
3487         * lib/fcntl.c: Likewise.
3488         * lib/lseek.c: Likewise.
3489         * lib/nonblocking.c: Likewise.
3490         * lib/poll.c: Likewise.
3491         * lib/read.c: Likewise.
3492         * lib/select.c: Likewise.
3493         * lib/sockets.h: Likewise.
3494         * lib/sockets.c: Likewise.
3495         * lib/stdio-read.c: Likewise.
3496         * lib/stdio-write.c: Likewise.
3497         * lib/write.c: Likewise.
3498         * lib/w32sock.h: Likewise.
3499         * lib/w32spawn.h: Likewise.
3500         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3501         * lib/fsync.c: Likewise.
3502         * lib/isapipe.c: Likewise.
3503         * modules/dup2 (Depends-on): Add msvc-nothrow.
3504         * modules/accept4 (Depends-on): Likewise.
3505         * modules/error (Depends-on): Likewise.
3506         * modules/fcntl (Depends-on): Likewise.
3507         * modules/lseek (Depends-on): Likewise.
3508         * modules/nonblocking (Depends-on): Likewise.
3509         * modules/poll (Depends-on): Likewise.
3510         * modules/read (Depends-on): Likewise.
3511         * modules/select (Depends-on): Likewise.
3512         * modules/sockets (Depends-on): Likewise.
3513         * modules/sigpipe (Depends-on): Likewise.
3514         * modules/write (Depends-on): Likewise.
3515         * modules/accept (Depends-on): Likewise.
3516         * modules/bind (Depends-on): Likewise.
3517         * modules/connect (Depends-on): Likewise.
3518         * modules/gethostname (Depends-on): Likewise.
3519         * modules/getpeername (Depends-on): Likewise.
3520         * modules/getsockname (Depends-on): Likewise.
3521         * modules/getsockopt (Depends-on): Likewise.
3522         * modules/ioctl (Depends-on): Likewise.
3523         * modules/listen (Depends-on): Likewise.
3524         * modules/recv (Depends-on): Likewise.
3525         * modules/recvfrom (Depends-on): Likewise.
3526         * modules/send (Depends-on): Likewise.
3527         * modules/sendto (Depends-on): Likewise.
3528         * modules/setsockopt (Depends-on): Likewise.
3529         * modules/shutdown (Depends-on): Likewise.
3530         * modules/socket (Depends-on): Likewise.
3531         * modules/execute (Depends-on): Likewise.
3532         * modules/spawn-pipe (Depends-on): Likewise.
3533         * modules/flock (Depends-on): Likewise.
3534         * modules/fsync (Depends-on): Likewise.
3535         * modules/isapipe (Depends-on): Likewise.
3536         * tests/test-cloexec.c: Include msvc-nothrow.h.
3537         * tests/test-dup-safer.c: Likewise.
3538         * tests/test-dup2.c: Likewise.
3539         * tests/test-dup3.c: Likewise.
3540         * tests/test-fcntl.c: Likewise.
3541         * tests/test-pipe.c: Likewise.
3542         * tests/test-pipe2.c: Likewise.
3543         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3544         * modules/unistd-safer-tests (Depends-on): Likewise.
3545         * modules/dup2-tests (Depends-on): Likewise.
3546         * modules/dup3-tests (Depends-on): Likewise.
3547         * modules/fcntl-tests (Depends-on): Likewise.
3548         * modules/pipe-posix-tests (Depends-on): Likewise.
3549         * modules/pipe2-tests (Depends-on): Likewise.
3550
3551 2011-09-23  Bruno Haible  <bruno@clisp.org>
3552
3553         dup2: Make code more maintainable.
3554         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3555         (rpl_dup2): Use it.
3556         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3557         * modules/dup2 (configure.ac): Invoke it.
3558         Reported by Paul Eggert.
3559
3560 2011-09-23  Bruno Haible  <bruno@clisp.org>
3561
3562         msvc-inval: Fix compilation error.
3563         * lib/msvc-inval.h: Include <excpt.h>.
3564
3565 2011-09-23  Bruno Haible  <bruno@clisp.org>
3566
3567         mkdir: Tweak for MSVC 9.
3568         * lib/sys_stat.in.h: Update comments.
3569         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3570
3571         Tests for module 'chdir'.
3572         * modules/chdir-tests: New file.
3573         * tests/test-chdir.c: New file.
3574
3575         New module 'chdir'.
3576         * modules/chdir: New file.
3577         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3578         (chdir): New declaration.
3579         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3580         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3581         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3582         * tests/test-unistd-c++.cc: Check signature of chdir.
3583         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3584         * modules/chdir-long (Depends-on): Add chdir.
3585         * modules/fchdir (Depends-on): Likewise.
3586         * modules/rename (Depends-on): Likewise.
3587         * modules/savewd (Depends-on): Likewise.
3588
3589         rmdir: Support for mingw, MSVC 9.
3590         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3591         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3592
3593         getcwd: Tweak for MSVC 9.
3594         * lib/unistd.in.h: Update comments.
3595         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3596
3597 2011-09-22  Bruno Haible  <bruno@clisp.org>
3598
3599         strerror_r-posix: Avoid a link error on MSVC.
3600         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3601         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3602
3603 2011-09-22  Bruno Haible  <bruno@clisp.org>
3604
3605         select: Avoid link errors on MSVC.
3606         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3607         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3608         * modules/pselect (Link): Likewise.
3609         * NEWS: Mention the change.
3610         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3611         test-select-stdin against $(LIB_SELECT).
3612         * modules/pselect-tests (Makefile.am): Link test-pselect against
3613         $(LIB_SELECT).
3614
3615 2011-09-22  Bruno Haible  <bruno@clisp.org>
3616
3617         select: Avoid compilation error on MSVC.
3618         * lib/select.c: Don't include <stdbool.h>.
3619
3620 2011-09-21  Bruno Haible  <bruno@clisp.org>
3621
3622         Consolidate all uses of PATH_MAX in *.m4 files.
3623         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3624         macros.
3625         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3626         and gl_PATHMAX_SNIPPET.
3627         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3629         * modules/chdir-long (Files): Add m4/pathmax.m4.
3630         * modules/getcwd (Files): Likewise.
3631
3632 2011-09-21  Bruno Haible  <bruno@clisp.org>
3633
3634         ftruncate: Un-deprecate, concentrate on Win32 support.
3635         * modules/ftruncate (Status, Notice): Remove sections.
3636         (Depends-on): Add largefile.
3637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3638         non-mingw platforms.
3639         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3640         include <io.h>.
3641         * modules/perror-tests (Depends-on): Add ftruncate.
3642         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3643         'ftruncate' module.
3644
3645 2011-09-21  Bruno Haible  <bruno@clisp.org>
3646
3647         Add dependencies to new dirent related modules.
3648         * modules/opendir (Depends-on): Add closedir.
3649         * modules/getcwd (Depends-on): Add opendir, closedir.
3650         * modules/dirent-safer-tests (Depends-on): Likewise.
3651         * modules/fdopendir-tests (Depends-on): Likewise.
3652         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3653         * modules/renameat-tests (Depends-on): Likewise.
3654
3655 2011-09-21  Bruno Haible  <bruno@clisp.org>
3656
3657         opendir: Avoid compilation error on mingw.
3658         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3659         * modules/opendir (Depends-on): Add unistd.
3660
3661 2011-09-21  Bruno Haible  <bruno@clisp.org>
3662
3663         ftruncate tests: Avoid a test failure on mingw.
3664         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3665
3666 2011-09-21  Bruno Haible  <bruno@clisp.org>
3667
3668         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3669         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3670         native Windows.
3671
3672 2011-09-21  Bruno Haible  <bruno@clisp.org>
3673
3674         New module 'fdopen'.
3675         * lib/stdio.in.h (fdopen): New declaration.
3676         * lib/fdopen.c: New file.
3677         * m4/fdopen.m4: New file.
3678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3679         REPLACE_FDOPEN.
3680         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3681         REPLACE_FDOPEN.
3682         * modules/fdopen: New file.
3683         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3684         * tests/test-stdio-c++.cc: Check signature of fdopen.
3685         * doc/posix-functions/fdopen.texi: Mention the new module.
3686
3687 2011-09-21  Bruno Haible  <bruno@clisp.org>
3688
3689         unlockpt tests: Avoid test failure on NetBSD 5.1.
3690         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3691         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3692
3693 2011-09-21  Bruno Haible  <bruno@clisp.org>
3694
3695         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3696         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3697         * tests/test-getlogin_r.c (main): Likewise.
3698
3699 2011-09-20  Bruno Haible  <bruno@clisp.org>
3700
3701         time tests: Don't require pid_t.
3702         * doc/posix-headers/time.texi: Revert last change.
3703         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3704         * tests/test-time.c: Comment out the check for pid_t.
3705
3706 2011-09-20  Bruno Haible  <bruno@clisp.org>
3707
3708         fsync tests: Avoid a test failure on mingw.
3709         * tests/test-fsync.c (main): Allow a failure with EIO.
3710
3711 2011-09-20  Bruno Haible  <bruno@clisp.org>
3712
3713         euidaccess: Update comments.
3714         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3715
3716 2011-09-20  Bruno Haible  <bruno@clisp.org>
3717
3718         Ensure EBADF returns for socket functions on mingw.
3719         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3720         descriptor is invalid.
3721         * lib/bind.c (rpl_bind): Likewise.
3722         * lib/connect.c (rpl_connect): Likewise.
3723         * lib/getpeername.c (rpl_getpeername): Likewise.
3724         * lib/getsockname.c (rpl_getsockname): Likewise.
3725         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3726         * lib/listen.c (rpl_listen): Likewise.
3727         * lib/recv.c (rpl_recv): Likewise.
3728         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3729         * lib/send.c (rpl_send): Likewise.
3730         * lib/sendto.c (rpl_sendto): Likewise.
3731         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3732         * lib/shutdown.c (rpl_shutdown): Likewise.
3733
3734 2011-09-20  Bruno Haible  <bruno@clisp.org>
3735
3736         select tests: EBADF tests.
3737         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3738         test_bad_fd): New functions.
3739         (test_function): Invoke also test_bad_fd.
3740
3741 2011-09-20  Bruno Haible  <bruno@clisp.org>
3742
3743         Tests for module 'posix_spawn_file_actions_addopen.
3744         * modules/posix_spawn_file_actions_addopen-tests: New file.
3745         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3746
3747         Tests for module 'posix_spawn_file_actions_adddup2'.
3748         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3749         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3750
3751         Tests for module 'posix_spawn_file_actions_addclose'.
3752         * modules/posix_spawn_file_actions_addclose-tests: New file.
3753         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3754
3755 2011-09-20  Bruno Haible  <bruno@clisp.org>
3756
3757         Tests for module 'unlockpt'.
3758         * modules/unlockpt-tests: New file.
3759         * tests/test-unlockpt.c: New file.
3760         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3761
3762         Tests for module 'grantpt'.
3763         * modules/grantpt-tests: New file.
3764         * tests/test-grantpt.c: New file.
3765         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3766
3767 2011-09-20  Bruno Haible  <bruno@clisp.org>
3768
3769         freopen tests: EBADF tests.
3770         * tests/test-freopen.c: Include errno.h, unistd.h.
3771         (main): Add tests for EBADF, commented out for the moment.
3772
3773         fclose tests: EBADF tests.
3774         * tests/test-fclose.c (main): Add tests for EBADF.
3775
3776         fflush tests: EBADF tests.
3777         * tests/test-fflush.c: Include errno.h, macros.h.
3778         (main): Add tests for EBADF.
3779
3780         ftello tests: EBADF tests.
3781         * tests/test-ftello4.sh: New file.
3782         * tests/test-ftello4.c: New file.
3783         * modules/ftello-tests (Files): Add them.
3784         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3785
3786         fseeko tests: EBADF tests.
3787         * tests/test-fseeko4.sh: New file.
3788         * tests/test-fseeko4.c: New file.
3789         * modules/fseeko-tests (Files): Add them.
3790         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3791
3792         Tests for function fputc().
3793         * modules/fputc-tests: New file.
3794         * tests/test-fputc.c: New file.
3795         * modules/stdio-tests (Depends-on): Add fputc-tests.
3796
3797         Tests for function fgetc().
3798         * modules/fgetc-tests: New file.
3799         * tests/test-fgetc.c: New file.
3800         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3801
3802         Tests for function fdopen().
3803         * modules/fdopen-tests: New file.
3804         * tests/test-fdopen.c: New file.
3805         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3806
3807         Tests for module 'vdprintf'.
3808         * modules/vdprintf-tests: New file.
3809         * tests/test-vdprintf.c: New file.
3810
3811         Tests for module 'dprintf'.
3812         * modules/dprintf-tests: New file.
3813         * tests/test-dprintf.c: New file.
3814
3815 2011-09-20  Bruno Haible  <bruno@clisp.org>
3816
3817         Tests for module 'ioctl'.
3818         * modules/ioctl-tests: New file.
3819         * tests/test-ioctl.c: New file.
3820
3821 2011-09-20  Bruno Haible  <bruno@clisp.org>
3822
3823         fcntl tests: EBADF tests.
3824         * tests/test-fcntl.c (main): Add more tests for EBADF.
3825
3826 2011-09-20  Bruno Haible  <bruno@clisp.org>
3827
3828         utimensat tests: EBADF tests.
3829         * tests/test-utimensat.c (main): Add tests for EBADF.
3830
3831         renameat tests: EBADF tests.
3832         * tests/test-renameat.c (main): Add tests for EBADF.
3833
3834         mkfifoat tests: EBADF tests.
3835         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3836
3837         readlinkat tests: EBADF tests.
3838         * tests/test-readlinkat.c (main): Add tests for EBADF.
3839
3840         symlinkat tests: EBADF tests.
3841         * tests/test-symlinkat.c (main): Add tests for EBADF.
3842
3843         linkat tests: EBADF tests.
3844         * tests/test-linkat.c (main): Add tests for EBADF.
3845
3846         Tests for module 'faccessat'.
3847         * modules/faccessat-tests: New file.
3848         * tests/test-faccessat.c: New file.
3849
3850         fdopendir tests: EBADF tests.
3851         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3852
3853         openat tests: EBADF tests.
3854         * tests/test-fchownat.c (main): Add tests for EBADF.
3855         * tests/test-fstatat.c (main): Likewise.
3856         * tests/test-mkdirat.c (main): Likewise.
3857         * tests/test-openat.c (main): Likewise.
3858         * tests/test-unlinkat.c (main): Likewise.
3859         * tests/test-fchmodat.c: New file.
3860         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3861         (Makefile.am): Also run 'test-fchmodat'.
3862
3863 2011-09-20  Bruno Haible  <bruno@clisp.org>
3864
3865         utimens, futimens, fdutimensat tests: EBADF tests.
3866         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3867
3868         Tests for function fstat().
3869         * modules/fstat-tests: New file.
3870         * tests/test-fstat.c: New file.
3871         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3872
3873 2011-09-20  Bruno Haible  <bruno@clisp.org>
3874
3875         test-ttyname_r tests: EBADF tests.
3876         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3877
3878         Tests for module 'isatty'.
3879         * modules/isatty-tests: New file.
3880         * tests/test-isatty.c: New file.
3881
3882         Tests for module 'write'.
3883         * modules/write-tests: New file.
3884         * tests/test-write.c: New file.
3885
3886         Tests for module 'read'.
3887         * modules/read-tests: New file.
3888         * tests/test-read.c: New file.
3889
3890         pwrite tests: EBADF tests.
3891         * tests/test-pwrite.c (main): Add tests for EBADF.
3892
3893         pread tests: EBADF tests.
3894         * tests/test-pread.c (main): Add tests for EBADF.
3895
3896         lseek tests: EBADF tests.
3897         * tests/test-lseek.c (main): Add more tests for EBADF.
3898
3899         Tests for module 'ftruncate'.
3900         * modules/ftruncate-tests: New file.
3901         * tests/test-ftruncate.sh: New file.
3902         * tests/test-ftruncate.c: New file.
3903
3904         fsync tests: EBADF tests.
3905         * tests/test-fsync.c (main): Add more tests for EBADF.
3906
3907         fdatasync tests: EBADF tests.
3908         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3909
3910         Tests for module 'fchown'.
3911         * modules/fchown-tests: New file.
3912         * tests/test-fchown.c: New file.
3913
3914         Tests for module 'fchmod'.
3915         * modules/fchmod-tests: New file.
3916         * tests/test-fchmod.c: New file.
3917
3918         fchdir tests: EBADF tests.
3919         * tests/test-fchdir.c (main): Add more tests for EBADF.
3920
3921         dup2 tests: EBADF tests.
3922         * tests/test-dup2.c (main): Add more tests for EBADF.
3923
3924         Tests for module 'dup'.
3925         * modules/dup-tests: New file.
3926         * tests/test-dup.c: New file.
3927
3928         Tests for module 'close'.
3929         * modules/close-tests: New file.
3930         * tests/test-close.c: New file.
3931
3932 2011-09-20  Bruno Haible  <bruno@clisp.org>
3933
3934         Tests for module 'shutdown'.
3935         * modules/shutdown-tests: New file.
3936         * tests/test-shutdown.c: New file.
3937
3938         Tests for module 'setsockopt'.
3939         * modules/setsockopt-tests: New file.
3940         * tests/test-setsockopt.c: New file.
3941
3942         Tests for module 'sendto'.
3943         * modules/sendto-tests: New file.
3944         * tests/test-sendto.c: New file.
3945
3946         Tests for module 'send'.
3947         * modules/send-tests: New file.
3948         * tests/test-send.c: New file.
3949
3950         Tests for module 'recvfrom'.
3951         * modules/recvfrom-tests: New file.
3952         * tests/test-recvfrom.c: New file.
3953
3954         Tests for module 'recv'.
3955         * modules/recv-tests: New file.
3956         * tests/test-recv.c: New file.
3957
3958         Tests for module 'listen'.
3959         * modules/listen-tests: New file.
3960         * tests/test-listen.c: New file.
3961
3962         Tests for module 'getsockopt'.
3963         * modules/getsockopt-tests: New file.
3964         * tests/test-getsockopt.c: New file.
3965
3966         Tests for module 'getsockname'.
3967         * modules/getsockname-tests: New file.
3968         * tests/test-getsockname.c: New file.
3969
3970         Tests for module 'getpeername'.
3971         * modules/getpeername-tests: New file.
3972         * tests/test-getpeername.c: New file.
3973
3974         Tests for module 'connect'.
3975         * modules/connect-tests: New file.
3976         * tests/test-connect.c: New file.
3977
3978         Tests for module 'bind'.
3979         * modules/bind-tests: New file.
3980         * tests/test-bind.c: New file.
3981
3982         accept4 tests: Fix for native Windows.
3983         * tests/test-accept4.c: Include sockets.h.
3984         (main): Invoke gl_sockets_startup.
3985         * modules/accept4-tests (Depends-on): Add sockets.
3986
3987         accept tests: Fix for native Windows.
3988         * tests/test-accept.c: Include sockets.h.
3989         (main): Invoke gl_sockets_startup.
3990         * modules/accept-tests (Depends-on): Add sockets.
3991
3992 2011-09-19  Bruno Haible  <bruno@clisp.org>
3993
3994         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3995         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3996         do...while(0).
3997         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3998         Suggested by Paul Eggert.
3999
4000 2011-09-19  Bruno Haible  <bruno@clisp.org>
4001
4002         sched: Ensure pid_t is defined.
4003         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4004         not define pid_t.
4005         * lib/sched.in.h: Include <sys/types.h>.
4006         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4008
4009 2011-09-19  Bruno Haible  <bruno@clisp.org>
4010
4011         msvc-inval: Ensure the entire expansion is a single statement.
4012         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4013         of braces.
4014
4015 2011-09-19  Jim Meyering  <meyering@redhat.com>
4016
4017         tests: use printf, not echo in init.sh's warn_ function
4018         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4019         misbehave when given strings containing a backslash or starting
4020         with e.g., -n.  James Youngman suggested setting IFS.
4021
4022 2011-09-19  Eric Blake  <eblake@redhat.com>
4023
4024         futimens: enhance test
4025         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4026         closed non-negative fd.
4027
4028         date: accept 'hence' as opposite of 'ago'
4029         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4030         * tests/test-parse-datetime.c (main): Enhance test.
4031         Suggested by Jesse Wilson.
4032
4033 2011-09-19  Jim Meyering  <meyering@redhat.com>
4034
4035         getcwd: don't fail in a deep directory on a system without openat
4036         Before this change, getcwd would fail when called from a directory
4037         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4038         the non-openat implementation used "..", "../..", "../../..", etc.
4039         to access ancestor directories.  With too many, that string would
4040         be longer than PATH_MAX.
4041         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4042         using gnulib's openat replacement.
4043         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4044         we're using the replacement function.
4045
4046 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4047
4048         maint.mk: avoid warnings from perl about missing files
4049         * top/maint.mk (def_sym_regex): Ignore files listed in
4050         $(gl_other_headers_) that do not exist, say because a project
4051         does not use a corresponding module.
4052
4053 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4054
4055         stat: use pathmax.h only if needed
4056         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4057         This is better for Emacs, which does not have a mingw port and
4058         therefore can avoid the pathmax module.
4059
4060         utimens: remove dependency on dup2
4061         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4062         to work around the Linux kernel bug.
4063         * modules/utimens (Depends-on): Remove dup2.
4064
4065 2011-09-18  Bruno Haible  <bruno@clisp.org>
4066
4067         inet_ntop, inet_pton: Look for it also in libresolv.
4068         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4069         libnsl, search for it in libresolv.
4070         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4071         Needed on Solaris 7.
4072
4073 2011-09-18  Bruno Haible  <bruno@clisp.org>
4074
4075         accept, accept4 tests: Avoid link error on Solaris.
4076         * modules/accept-tests (Makefile.am): Link test-accept against
4077         $(LIBSOCKET).
4078         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4079         $(LIBSOCKET).
4080
4081         accept4: Avoid link error on Solaris.
4082         * modules/accept4 (Link): New section.
4083
4084         socket functions: Avoid link errors on Solaris.
4085         * modules/accept (Depends-on): Add socketlib.
4086         (Link): New section.
4087         * modules/bind (Depends-on): Add socketlib.
4088         (Link): New section.
4089         * modules/connect (Depends-on): Add socketlib.
4090         (Link): New section.
4091         * modules/getpeername (Depends-on): Add socketlib.
4092         (Link): New section.
4093         * modules/getsockname (Depends-on): Add socketlib.
4094         (Link): New section.
4095         * modules/getsockopt (Depends-on): Add socketlib.
4096         (Link): New section.
4097         * modules/listen (Depends-on): Add socketlib.
4098         (Link): New section.
4099         * modules/recv (Depends-on): Add socketlib.
4100         (Link): New section.
4101         * modules/recvfrom (Depends-on): Add socketlib.
4102         (Link): New section.
4103         * modules/send (Depends-on): Add socketlib.
4104         (Link): New section.
4105         * modules/sendto (Depends-on): Add socketlib.
4106         (Link): New section.
4107         * modules/setsockopt (Depends-on): Add socketlib.
4108         (Link): New section.
4109         * modules/shutdown (Depends-on): Add socketlib.
4110         (Link): New section.
4111         * modules/socket (Depends-on): Add socketlib.
4112         (Link): New section.
4113
4114 2011-09-18  Bruno Haible  <bruno@clisp.org>
4115
4116         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4117         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4118         than 5 seconds.
4119         * modules/ptsname-tests (configure.ac): Test for alarm.
4120
4121 2011-09-18  Bruno Haible  <bruno@clisp.org>
4122
4123         posix_spawn_file_actions_add*: Fix module dependencies.
4124         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4125         posix_spawn_file_actions_init.
4126         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4127         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4128
4129 2011-09-18  Bruno Haible  <bruno@clisp.org>
4130
4131         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4132         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4133         * tests/test-renameat.c (main): Likewise.
4134
4135 2011-09-18  Bruno Haible  <bruno@clisp.org>
4136
4137         Tests for module 'accept4'.
4138         * modules/accept4-tests: New file.
4139         * tests/test-accept4.c: New file.
4140
4141 2011-09-18  Bruno Haible  <bruno@clisp.org>
4142
4143         Tests for module 'accept'.
4144         * modules/accept-tests: New file.
4145         * tests/test-accept.c: New file.
4146
4147 2011-09-18  Bruno Haible  <bruno@clisp.org>
4148
4149         dup2: Support for MSVC.
4150         * lib/dup2.c: Include msvc-inval.h.
4151         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4152         _get_osfhandle calls.
4153         * modules/dup2 (Depends-on): Add msvc-inval.
4154         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4155
4156         New module 'msvc-inval'.
4157         * lib/msvc-inval.h: New file.
4158         * lib/msvc-inval.c: New file.
4159         * m4/msvc-inval.m4: New file.
4160         * modules/msvc-inval: New file.
4161
4162 2011-09-17  Bruno Haible  <bruno@clisp.org>
4163
4164         Tests for module 'pclose'.
4165         * modules/pclose-tests: New file.
4166
4167         New module 'pclose'.
4168         * lib/stdio.in.h (pclose): New declaration.
4169         * lib/pclose.c: New file.
4170         * m4/pclose.m4: New file.
4171         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4172         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4173         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4174         * modules/pclose: New file.
4175         * modules/popen-tests (Depends-on): Add pclose.
4176         * modules/popen-safer-tests (Depends-on): Likewise.
4177         * doc/posix-functions/pclose.texi: Mention the new module.
4178
4179 2011-09-17  Bruno Haible  <bruno@clisp.org>
4180
4181         popen: Support for MSVC.
4182         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4183         * lib/popen.c (popen): Provide alternate definition for native Windows.
4184         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4186         * modules/popen (Depends-on, configure.ac): Update condition.
4187         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4188         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4189         fixed.
4190
4191 2011-09-17  Bruno Haible  <bruno@clisp.org>
4192
4193         isnanl, isnand, isnanf: Work around MSVC bug.
4194         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4195
4196 2011-09-17  Bruno Haible  <bruno@clisp.org>
4197
4198         sys_socket tests: Fix recent mistake.
4199         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4200
4201 2011-09-17  Bruno Haible  <bruno@clisp.org>
4202
4203         putenv: Support for MSVC.
4204         * modules/putenv (Depends-on): Add environ.
4205         * lib/putenv.c (environ): Disable declaration.
4206         * lib/unistd.in.h: Update comment.
4207
4208 2011-09-17  Bruno Haible  <bruno@clisp.org>
4209
4210         math: Avoid macro redefinition warnings on MSVC.
4211         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4212         Undefine before redefining.
4213
4214 2011-09-17  Bruno Haible  <bruno@clisp.org>
4215
4216         doc: Mention functions which are declared as macros.
4217         * doc/posix-functions/*[fl].texi: Mention that some functions are
4218         defined as macros with arguments only.
4219
4220 2011-09-17  Bruno Haible  <bruno@clisp.org>
4221
4222         Add dependencies to new dirent related modules.
4223         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4224         * modules/fts (Depends-on): Likewise.
4225         * modules/glob (Depends-on): Likewise.
4226         * modules/savedir (Depends-on): Likewise.
4227         * modules/scandir (Depends-on): Likewise.
4228         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4229         * modules/fdopendir (Depends-on): Add opendir.
4230
4231 2011-09-17  Bruno Haible  <bruno@clisp.org>
4232
4233         inet_pton: Support for MSVC on Windows Vista or newer.
4234         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4235         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4236         HAVE_DECL_INET_PTON is defined.
4237         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4238         On platforms with <winsock2.h>, test whether inet_pton is declared in
4239         <ws2tcpip.h>. If so, arrange to replace it.
4240         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4241         REPLACE_INET_PTON.
4242         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4243         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4244         (Depends-on, configure.ac): Update condition.
4245         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4246
4247 2011-09-17  Bruno Haible  <bruno@clisp.org>
4248
4249         inet_ntop: Support for MSVC on Windows Vista or newer.
4250         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4251         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4252         HAVE_DECL_INET_NTOP is defined.
4253         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4254         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4255         <ws2tcpip.h>. If so, arrange to replace it.
4256         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4257         REPLACE_INET_NTOP.
4258         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4259         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4260         (Depends-on, configure.ac): Update condition.
4261         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4262
4263 2011-09-16  Eric Blake  <eblake@redhat.com>
4264
4265         test-fsync: yet another enhancement
4266         * tests/test-fsync.c (main): Also test behavior on read-only text
4267         file.
4268
4269 2011-09-16  Bruno Haible  <bruno@clisp.org>
4270
4271         Enhance fsync, fdatasync tests.
4272         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4273         * tests/test-fdatasync.c (main): Likewise.
4274
4275 2011-09-16  Bruno Haible  <bruno@clisp.org>
4276
4277         Support for MSVC compiler: Ensure mode_t gets defined.
4278         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4279         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4281         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4282         * tests/test-fcntl-h.c: Check that mode_t is defined.
4283         * tests/test-sys_stat.c: Likewise.
4284         * tests/test-sys_types.c: Likewise.
4285         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4286         * doc/posix-headers/sys_stat.texi: Likewise.
4287         * doc/posix-headers/sys_types.texi: Likewise.
4288
4289 2011-09-16  Bruno Haible  <bruno@clisp.org>
4290
4291         sys_stat: Support for MSVC.
4292         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4293         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4294         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4295         MSVC.
4296
4297 2011-09-16  Bruno Haible  <bruno@clisp.org>
4298
4299         Support for MSVC compiler: Ensure off_t gets defined.
4300         * lib/unistd.in.h: Include <sys/types.h>.
4301         * tests/test-fcntl-h.c: Check that off_t is defined.
4302         * tests/test-sys_stat.c: Likewise.
4303         * tests/test-sys_types.c: Likewise.
4304
4305 2011-09-16  Eric Blake  <eblake@redhat.com>
4306
4307         fdatasync: port to Solaris
4308         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4309         * modules/fdatasync (Link): Document it.
4310         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4311
4312         fdatasync: port to MacOS X 10.7
4313         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4314         declared.
4315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4316         * modules/unistd (Makefile.am): Substitute it.
4317         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4318         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4319
4320         fdatasync: minor improvements
4321         * modules/fdatasync (Depends-on): Add condition for fsync.
4322         * lib/fdatasync.c (fdatasync): Add comment.
4323         * tests/test-unistd-c++.cc: Test fdatasync.
4324
4325         unistd: update refs to newer POSIX
4326         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4327         Suggested by Bruno Haible.
4328
4329         fdatasync: new module
4330         * modules/fsync (Description): Document difference to fdatasync.
4331         * modules/fdatasync: New module.
4332         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4333         * lib/fdatasync.c (fdatasync): Likewise.
4334         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4335         defaults.
4336         * modules/unistd (Makefile.am): Set witnesses.
4337         * lib/unistd.in.h (fdatasync): Declare.
4338         * MODULES.html.sh: Document it.
4339         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4340         * modules/fdatasync-tests: New test.
4341         * tests/test-fdatasync.c: Likewise.
4342
4343 2011-09-16  Eric Blake  <eblake@redhat.com>
4344
4345         test-fsync: enhance tests
4346         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4347         * tests/test-fsync.c (main): Enhance test.
4348
4349 2011-09-15  Bruno Haible  <bruno@clisp.org>
4350
4351         Support for MSVC compiler: Ensure ssize_t gets defined.
4352         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4353         * doc/posix-headers/stdio.texi: Likewise.
4354         * modules/stdio (Depends-on): Add ssize_t.
4355         * modules/sys_socket (Depends-on): Likewise.
4356         * modules/sys_types (Depends-on): Likewise.
4357         * modules/sys_uio (Depends-on): Likewise.
4358         * modules/unistd (Depends-on): Likewise.
4359         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4360         * tests/test-sys_types.c: Check that ssize_t is defined.
4361
4362 2011-09-14  Bruno Haible  <bruno@clisp.org>
4363
4364         Avoid using #, the m4 comment starter character, near brackets.
4365         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4366         delimiter character in sed expressions.
4367         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4368         Suggested by Eric Blake.
4369
4370         Properly quote AC_CHECK_DECLS' 4th argument.
4371         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4372         argument.
4373         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4375         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4376         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4377         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4378         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4379         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4380         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4381         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4382         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4383         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4384         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4385         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4386         * m4/isinf.m4 (gl_ISINF): Likewise.
4387         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4388         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4389         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4390         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4391         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4392         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4393         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4394         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4395         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4396         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4397         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4398         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4400         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4402         Reported by Eric Blake.
4403
4404         Properly quote AC_CHECK_DECL's 4th argument.
4405         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4406         argument.
4407         * m4/argp.m4 (gl_ARGP): Likewise.
4408         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4409         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4410         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4411         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4412         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4413         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4415         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4416         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4417         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4418         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4419         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4420         Reported by Eric Blake.
4421
4422 2011-09-14  Eric Blake  <eblake@redhat.com>
4423
4424         opendir: avoid compile warning
4425         * lib/opendir.c (includes): Always include errno.h.
4426         Reported by Tatsuro MATSUOKA.
4427
4428 2011-09-14  Jim Meyering  <meyering@redhat.com>
4429
4430         maint.mk: sc_tight_scope: propagate failure from sub-make
4431         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4432         Reported by Martin von Gagern.
4433
4434 2011-09-13  Bruno Haible  <bruno@clisp.org>
4435
4436         tempname: Support for MSVC.
4437         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4438         MSVC.
4439         * modules/tempname (Depends-on): Add fcntl-h.
4440
4441 2011-09-13  Bruno Haible  <bruno@clisp.org>
4442
4443         sys_time: Support for MSVC.
4444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4445         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4446         include <winsock2.h>.
4447         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4448         function declarations that collide with POSIX.
4449         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4450         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4451
4452 2011-09-13  Bruno Haible  <bruno@clisp.org>
4453
4454         stat: Support for MSVC.
4455         * lib/stat.c: Include pathmax.h.
4456         * modules/stat (Depends-on): Add pathmax.
4457
4458         pathmax: Support for native Windows.
4459         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4460
4461 2011-09-12  Bruno Haible  <bruno@clisp.org>
4462
4463         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4464         * lib/dirent.in.h (struct dirent): New type.
4465         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4466         DT_WHT): New macros.
4467         (DIR): New type.
4468         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4469         (readdir, rewinddir): New declarations.
4470         * lib/dirent-private.h: New file.
4471         * lib/opendir.c: New file.
4472         * lib/readdir.c: New file.
4473         * lib/rewinddir.c: New file.
4474         * lib/closedir.c: New file.
4475         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4476         * m4/opendir.m4: New file.
4477         * m4/readdir.m4: New file.
4478         * m4/rewinddir.m4: New file.
4479         * m4/closedir.m4: New file.
4480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4481         REPLACE_CLOSEDIR here.
4482         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4483         readdir, rewinddir are declared.
4484         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4485         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4486         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4487         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4488         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4489         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4490         * modules/opendir: New file.
4491         * modules/readdir: New file.
4492         * modules/rewinddir: New file.
4493         * modules/closedir: New file.
4494         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4495         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4496         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4497         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4498         * NEWS: Mention the 'fchdir' change.
4499
4500 2011-09-11  Bruno Haible  <bruno@clisp.org>
4501
4502         asm-underscore.m4: Support for MSVC.
4503         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4504         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4505
4506 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4507
4508         Doc about crypt functions.
4509         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4510         needing for _GNU_SOURCE to get crypt.
4511         * doc/posix-functions/encrypt.texi: Likewise.
4512         * doc/posix-functions/setkey.texi: Likewise.
4513
4514 2011-09-11  Bruno Haible  <bruno@clisp.org>
4515
4516         doc: Update regarding MSVC 9.
4517         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4518         tested".
4519         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4520         * doc/posix-headers/*.texi: Likewise.
4521         * doc/pastposix-functions/*.texi: Likewise.
4522         * doc/glibc-functions/*.texi: Likewise.
4523         * doc/glibc-headers/*.texi: Likewise.
4524
4525 2011-09-11  Bruno Haible  <bruno@clisp.org>
4526
4527         unistd et al.: Don't assume <unistd.h> exists.
4528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4529         does not exist.
4530         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4531         exist. But include <stdlib.h>.
4532         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4533         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4534         symlink() does not exist.
4535         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4536         include <io.h> instead.
4537         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4538         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4539         include <direct.h> instead.
4540         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4542         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4543         <io.h> instead.
4544         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4545         correctly if the system does not have hard links.
4546         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4547         <direct.h> instead.
4548         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4549         it when looking for function declarations.
4550         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4551         <direct.h> and <io.h> instead.
4552         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4553
4554 2011-09-11  Bruno Haible  <bruno@clisp.org>
4555
4556         strcase: Support for MSVC.
4557         * modules/strcase (Status, Notice): Remove obsoletion mark.
4558         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4559         * doc/posix-functions/strncasecmp.texi: Likewise.
4560
4561         strings: Don't assume <strings.h> exists.
4562         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4563         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4564         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4565         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4566
4567 2011-09-11  Bruno Haible  <bruno@clisp.org>
4568
4569         dirent: Don't assume <dirent.h> exists.
4570         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4571         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4572         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4573         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4574
4575 2011-09-11  Bruno Haible  <bruno@clisp.org>
4576
4577         Fix wint_t on MSVC.
4578         * lib/wchar.in.h (wint_t): On MSVC, override it.
4579         * lib/wctype.in.h (wint_t): Likewise.
4580         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4581         MSVC.
4582         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4583         * doc/posix-headers/wctype.texi: Likewise.
4584
4585 2011-09-11  Bruno Haible  <bruno@clisp.org>
4586
4587         sys_types: Fix typo.
4588         * lib/sys_types.in.h: Fix typo in comment.
4589         Reported by Paul Eggert.
4590
4591         Support for MSVC compiler: Ensure size_t gets defined.
4592         * modules/strings (Depends-on): Add 'sys_types'.
4593         * modules/sys_uio (Depends-on): Likewise.
4594         * lib/sys_uio.in.h: Update comment.
4595
4596         C++ tests for module 'sys_types'.
4597         * modules/sys_types-c++-tests: New file.
4598         * tests/test-sys_types-c++.cc: New file.
4599
4600         Tests for module 'sys_types'.
4601         * modules/sys_types-tests: New file.
4602         * tests/test-sys_types.c: New file.
4603
4604         New module 'sys_types'.
4605         * lib/sys_types.in.h: New file.
4606         * m4/sys_types_h.m4: New file.
4607         * modules/sys_types: New file.
4608         * doc/posix-headers/sys_types.texi: Mention the new module and the
4609         size_t problem on MSVC 9.
4610
4611 2011-09-11  Bruno Haible  <bruno@clisp.org>
4612
4613         Support for MSVC compiler: Avoid division by a literal 0.
4614         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4615         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4616         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4617         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4618         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4619         * tests/infinity.h: New file.
4620         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4621         on MSVC.
4622         * tests/test-ceilf1.c: Include infinity.h.
4623         (main): Use Infinityf.
4624         * tests/test-ceil1.c: Include infinity.h.
4625         (main): Use Infinityd.
4626         * tests/test-ceill.c: Include infinity.h.
4627         (main): Use Infinityl.
4628         * tests/test-dprintf-posix.c: Include infinity.h.
4629         (test_function): Use Infinityd.
4630         * tests/test-floorf1.c: Include infinity.h.
4631         (main): Use Infinityf.
4632         * tests/test-floor1.c: Include infinity.h.
4633         (main): Use Infinityd.
4634         * tests/test-floorl.c: Include infinity.h.
4635         (main): Use Infinityl.
4636         * tests/test-fprintf-posix.c: Include infinity.h.
4637         (test_function): Use Infinityd.
4638         * tests/test-frexp.c: Include infinity.h.
4639         (main): Use Infinityd.
4640         * tests/test-frexpl.c: Include infinity.h.
4641         (main): Use Infinityl.
4642         * tests/test-isfinite.c: Include infinity.h.
4643         (test_isfinitef): Use Infinityf.
4644         (test_isfinited): Use Infinityd.
4645         (test_isfinitel): Use Infinityl.
4646         * tests/test-isinf.c: Include infinity.h.
4647         (test_isinff): Use Infinityf.
4648         (test_isinfd): Use Infinityd.
4649         (test_isinfl): Use Infinityl.
4650         * tests/test-isnan.c: Include infinity.h.
4651         (test_float): Use Infinityf.
4652         (test_double): Use Infinityd.
4653         (test_long_double): Use Infinityl.
4654         * tests/test-isnanf.h: Include infinity.h.
4655         (main): Use Infinityf.
4656         * tests/test-isnand.h: Include infinity.h.
4657         (main): Use Infinityd.
4658         * tests/test-isnanl.h: Include infinity.h.
4659         (main): Use Infinityl.
4660         * tests/test-ldexpl.c: Include infinity.h.
4661         (main): Use Infinityl.
4662         * tests/test-printf-posix.h: Include infinity.h.
4663         (test_function): Use Infinityd.
4664         * tests/test-roundf1.c: Include infinity.h.
4665         (main): Use Infinityf.
4666         * tests/test-round1.c: Include infinity.h.
4667         (main): Use Infinityd.
4668         * tests/test-roundl.c: Include infinity.h.
4669         (main): Use Infinityl.
4670         * tests/test-signbit.c: Include infinity.h.
4671         (test_signbitf): Use Infinityf.
4672         (test_signbitd): Use Infinityd.
4673         (test_signbitl): Use Infinityl.
4674         * tests/test-snprintf-posix.h: Include infinity.h.
4675         (test_function): Use Infinityd, Infinityl.
4676         * tests/test-sprintf-posix.h: Include infinity.h.
4677         (test_function): Use Infinityd, Infinityl.
4678         * tests/test-truncf1.c: Include infinity.h.
4679         (main): Use Infinityf.
4680         * tests/test-trunc1.c: Include infinity.h.
4681         (main): Use Infinityd.
4682         * tests/test-truncl.c: Include infinity.h.
4683         (main): Use Infinityl.
4684         * tests/test-vasnprintf-posix.c: Include infinity.h.
4685         (test_function): Use Infinityd, Infinityl.
4686         * tests/test-vasprintf-posix.c: Include infinity.h.
4687         (test_function): Use Infinityd, Infinityl.
4688         * modules/ceilf-tests (Files): Add tests/infinity.h.
4689         * modules/ceil-tests (Files): Likewise.
4690         * modules/ceill-tests (Files): Likewise.
4691         * modules/dprintf-posix-tests (Files): Likewise.
4692         * modules/floorf-tests (Files): Likewise.
4693         * modules/floor-tests (Files): Likewise.
4694         * modules/floorl-tests (Files): Likewise.
4695         * modules/fprintf-posix-tests (Files): Likewise.
4696         * modules/frexp-tests (Files): Likewise.
4697         * modules/frexp-nolibm-tests (Files): Likewise.
4698         * modules/frexpl-tests (Files): Likewise.
4699         * modules/frexpl-nolibm-tests (Files): Likewise.
4700         * modules/isfinite-tests (Files): Likewise.
4701         * modules/isinf-tests (Files): Likewise.
4702         * modules/isnan-tests (Files): Likewise.
4703         * modules/isnanf-tests (Files): Likewise.
4704         * modules/isnanf-nolibm-tests (Files): Likewise.
4705         * modules/isnand-tests (Files): Likewise.
4706         * modules/isnand-nolibm-tests (Files): Likewise.
4707         * modules/isnanl-tests (Files): Likewise.
4708         * modules/isnanl-nolibm-tests (Files): Likewise.
4709         * modules/ldexpl-tests (Files): Likewise.
4710         * modules/printf-posix-tests (Files): Likewise.
4711         * modules/roundf-tests (Files): Likewise.
4712         * modules/round-tests (Files): Likewise.
4713         * modules/roundl-tests (Files): Likewise.
4714         * modules/signbit-tests (Files): Likewise.
4715         * modules/snprintf-posix-tests (Files): Likewise.
4716         * modules/sprintf-posix-tests (Files): Likewise.
4717         * modules/truncf-tests (Files): Likewise.
4718         * modules/trunc-tests (Files): Likewise.
4719         * modules/truncl-tests (Files): Likewise.
4720         * modules/vasnprintf-posix-tests (Files): Likewise.
4721         * modules/vasprintf-posix-tests (Files): Likewise.
4722         * modules/vdprintf-posix-tests (Files): Likewise.
4723         * modules/vfprintf-posix-tests (Files): Likewise.
4724         * modules/vprintf-posix-tests (Files): Likewise.
4725         * modules/vsnprintf-posix-tests (Files): Likewise.
4726         * modules/vsprintf-posix-tests (Files): Likewise.
4727         * modules/xprintf-posix-tests (Files): Likewise.
4728
4729 2011-09-11  Bruno Haible  <bruno@clisp.org>
4730
4731         Ensure pid_t gets defined.
4732         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4733         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4734         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4735         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4736         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4737         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4738         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4739         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4740         * tests/test-fcntl-h.c: Check that pid_t is defined.
4741         * tests/test-sched.c: Likewise.
4742         * tests/test-termios.c: Likewise.
4743         * tests/test-time.c: Likewise.
4744         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4745         * doc/posix-headers/signal.texi: Likewise.
4746         * doc/posix-headers/sys_types.texi: Likewise.
4747         * doc/posix-headers/time.texi: Likewise.
4748
4749 2011-09-11  Bruno Haible  <bruno@clisp.org>
4750
4751         acl: Fix compilation on Solaris 10 (older version).
4752         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4753         of ACE_EVERYONE.
4754         * lib/set-mode-acl.c (qset_acl): Likewise.
4755         Reported by Christian Jullien <eligis@orange.fr>.
4756
4757 2011-09-10  Bruno Haible  <bruno@clisp.org>
4758
4759         iconv, unsetenv: Add support for MSVC compiler.
4760         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4761         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4762
4763 2011-09-10  Bruno Haible  <bruno@clisp.org>
4764
4765         *printf: Add support for MSVC compiler.
4766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4767         handles the exception caused by the %n directive. When cross-compiling,
4768         guess no on native Windows.
4769         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4770         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4771         emulate it through vsnprintf.
4772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4773         * doc/posix-functions/dprintf.texi: Update documentation regarding
4774         MSVC 9.
4775         * doc/posix-functions/fprintf.texi: Likewise.
4776         * doc/posix-functions/printf.texi: Likewise.
4777         * doc/posix-functions/snprintf.texi: Likewise.
4778         * doc/posix-functions/sprintf.texi: Likewise.
4779         * doc/posix-functions/swprintf.texi: Likewise.
4780         * doc/posix-functions/vdprintf.texi: Likewise.
4781         * doc/posix-functions/vfprintf.texi: Likewise.
4782         * doc/posix-functions/vprintf.texi: Likewise.
4783         * doc/posix-functions/vsnprintf.texi: Likewise.
4784         * doc/posix-functions/vsprintf.texi: Likewise.
4785         * doc/glibc-functions/asprintf.texi: Likewise.
4786         * doc/glibc-functions/obstack_printf.texi: Likewise.
4787         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4788         * doc/glibc-functions/vasprintf.texi: Likewise.
4789
4790 2011-09-10  Bruno Haible  <bruno@clisp.org>
4791
4792         nocrash: Add support for native Windows.
4793         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4794
4795 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4796             Bruno Haible  <bruno@clisp.org>
4797
4798         absolute-header, include-next: Add support for MSVC compiler.
4799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4800         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4801         directory separator in #line directives.
4802         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4803         recognize also backslash as directory separator in #line directives.
4804
4805 2011-09-08  Jim Meyering  <meyering@redhat.com>
4806
4807         maint.mk: mark the post-release commit log with "maint: " prefix
4808         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4809         one-line commit-log summary.
4810
4811 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4812             Bruno Haible  <bruno@clisp.org>
4813
4814         Doc about crypt functions.
4815         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4816         systems.
4817         * doc/posix-functions/encrypt.texi: Likewise.
4818         * doc/posix-functions/setkey.texi: Likewise.
4819
4820 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4821
4822         * lib/gc.h: Fix copyright header.
4823
4824 2011-09-07  Bruno Haible  <bruno@clisp.org>
4825
4826         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4827         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4828         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4829
4830 2011-09-07  Bruno Haible  <bruno@clisp.org>
4831
4832         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4833         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4834         * lib/freopen.c: Likewise.
4835         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4836         * lib/lstat.c: Likewise.
4837         * lib/stat.c: Likewise.
4838         * lib/open.c: Use different syntax for include of <fcntl.h>.
4839         * lib/openat.c: Include fcntl.h again, explicitly.
4840
4841 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4842
4843         parse-datetime: document the newly accepted format
4844         * doc/parse-datetime.texi (Combined date and time of day items):
4845         New section.
4846
4847 2011-09-06  Bruno Haible  <bruno@clisp.org>
4848
4849         acl: Fix a test failure on newer Solaris 10 with ZFS.
4850         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4851         ENOSYS as no ACL.
4852         Reported by Jim Meyering.
4853
4854 2011-09-06  Bruno Haible  <bruno@clisp.org>
4855
4856         acl: Update for AIX >= 5.3 with NFS.
4857         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4858         ENOSYS as no ACL.
4859
4860         acl: Fix a test failure on AIX >= 5.3 with NFS.
4861         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4862         as no ACL.
4863
4864 2011-09-06  Bruno Haible  <bruno@clisp.org>
4865
4866         acl: Fix a test failure on IRIX 6.5 with NFS.
4867         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4868         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4869         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4870         * lib/copy-acl.c (qcopy_acl): Likewise.
4871
4872 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4873
4874         openat: port to AIX 7.1 with large files
4875         AIX 7.1 does a "#define openat open64at" if large files are in use,
4876         so we can't simply #undef openat.  Use the orig_openat trick (similar
4877         to orig_open in lib/open.c) to work around the problem.  Problem
4878         reported by Kevin Brott for GNU tar, in the thread containing
4879         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4880         * lib/openat.c (__need_system_fcntl_h): Define first.
4881         Include <fcntl.h> and <sys/types.h> before undefining.
4882         (orig_openat) [HAVE_OPENAT]: New inline function.
4883         (openat) [HAVE_OPENAT]: Do not undef.
4884         (rpl_openat): Use orig_openat, not openat.
4885
4886 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4887             Bruno Haible  <bruno@clisp.org>
4888
4889         acl: Avoid errors on NonStop Kernel.
4890         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4891         ENOTSUP errors.
4892
4893 2011-09-05  Bruno Haible  <bruno@clisp.org>
4894
4895         acl: Clean up Solaris code.
4896         * lib/acl-internal.h: Remove no-op #if.
4897         * lib/file-has-acl.c: Likewise.
4898         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4899         * lib/copy-acl.c (qcopy_acl): Likewise.
4900
4901 2011-09-05  Bruno Haible  <bruno@clisp.org>
4902
4903         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4904         binaries built on the original Solaris 10.
4905         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4906         trivial.
4907
4908 2011-09-05  Bruno Haible  <bruno@clisp.org>
4909
4910         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4911         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4912         10.
4913         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4914         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4915         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4916         instead of acl_get, facl_get, acl_set, facl_set.
4917
4918 2011-09-05  Bruno Haible  <bruno@clisp.org>
4919
4920         copy-file: Try unit tests on more file systems.
4921         * tests/test-copy-file-1.sh: New file.
4922         * tests/test-copy-file-2.sh: New file.
4923         * modules/copy-file-tests (Files): Add them.
4924         (Makefile.am): Add them to TESTS.
4925
4926         acl: Try unit tests on more file systems.
4927         * tests/test-file-has-acl-1.sh: New file.
4928         * tests/test-file-has-acl-2.sh: New file.
4929         * tests/test-set-mode-acl-1.sh: New file.
4930         * tests/test-set-mode-acl-2.sh: New file.
4931         * tests/test-copy-acl-1.sh: New file.
4932         * tests/test-copy-acl-2.sh: New file.
4933         * modules/acl-tests (Files): Add them.
4934         (Makefile.am): Add them to TESTS.
4935
4936 2011-09-04  Bruno Haible  <bruno@clisp.org>
4937
4938         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4939         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4940         10.
4941         (OLD_ALLOW, OLD_DENY): New macros.
4942         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4943         ACE_ACCESS_ALLOWED_ACE_TYPE.
4944         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4945         ACE_ACCESS_DENIED_ACE_TYPE.
4946         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4947         (NEW_ACE_EXECUTE): Fix value.
4948         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4949         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4950         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4951         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4952         NEW_ACE_SYNCHRONIZE): New macros.
4953         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4954         instead of acl_fromtext, acl_set, facl_set.
4955         Fixes a coreutils/tests/cp/perm failure.
4956
4957 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4958
4959         openat: test for fstatat (..., 0) bug
4960         Further testing with tar suggests that fstatat (..., 0)
4961         does not work in general, on AIX 7.1; see
4962         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4963         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4964         replacement fstatat (which is what older AIX releases were using
4965         anyway).
4966         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4967         use is now changed to orig_fstatat.  This was probably the right
4968         thing to do anyway.
4969         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4970         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4971         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4972         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4973         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4974         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4975         if the bug is found.
4976
4977         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4978         This tests for another fstatat bug on AIX 7.1:
4979         fstatat (AT_FDCWD, ..., 0) does not work.  See
4980         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4981         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4982         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4983         (rpl_fstatat): Adjust so that it works around either (or both)
4984         bugs if present.
4985         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4986
4987 2011-09-03  Karl Berry  <karl@gnu.org>
4988
4989         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4990         in index entries.
4991
4992 2011-09-02  Bruno Haible  <bruno@clisp.org>
4993
4994         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4995         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4996         values of AR, ARFLAGS, RANLIB.
4997         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4998
4999 2011-09-02  Bruno Haible  <bruno@clisp.org>
5000
5001         Find 'ar' program that fits with --host argument.
5002         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5003
5004 2011-09-02  Bruno Haible  <bruno@clisp.org>
5005
5006         tests: init.sh: Support any non-GNU diff.
5007         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5008         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5009         Solaris 8.
5010
5011 2011-09-02  Bruno Haible  <bruno@clisp.org>
5012
5013         tests: init.sh: work also with any non-GNU diff that supports -u
5014         * tests/init.sh: Relax check for diff -u support.
5015         Rather than checking for GNU diff via --version, simply check
5016         for support for -u itself.  Useful at least on OpenBSD 4.9,
5017         AIX 7.1, IRIX 6.5, and Solaris 10.
5018
5019 2011-09-01  Bruno Haible  <bruno@clisp.org>
5020
5021         strtoimax, strtoumax: Document problem on HP-UX 11.
5022         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5023         * doc/posix-functions/strtoumax.texi: Likewise.
5024
5025 2011-09-01  Bruno Haible  <bruno@clisp.org>
5026
5027         strtoumax: Avoid link error on OSF/1 with DTK cc.
5028         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5029         defined as a function.
5030         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5031         strtoumax is defined, not whether it is declared.
5032
5033 2011-09-01  Bruno Haible  <bruno@clisp.org>
5034
5035         strtoimax: Avoid link error on OSF/1 with DTK cc.
5036         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5037         defined as a function.
5038         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5039         strtoimax is defined, not whether it is declared.
5040
5041 2011-09-01  Bruno Haible  <bruno@clisp.org>
5042
5043         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5044         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5045         as a function.
5046         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5047         whether it is declared.
5048
5049 2011-09-01  Bruno Haible  <bruno@clisp.org>
5050
5051         imaxabs: Avoid link error on OSF/1 with DTK cc.
5052         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5053         as a function.
5054         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5055         whether it is declared.
5056
5057 2011-09-01  Bruno Haible  <bruno@clisp.org>
5058
5059         Tests for module 'strtoumax'.
5060         * modules/strtoumax-tests: New file.
5061         * tests/test-strtoumax.c: New file.
5062
5063         Tests for module 'strtoimax'.
5064         * modules/strtoimax-tests: New file.
5065         * tests/test-strtoimax.c: New file.
5066
5067         Tests for module 'imaxdiv'.
5068         * modules/imaxdiv-tests: New file.
5069         * tests/test-imaxdiv.c: New file.
5070
5071         Tests for module 'imaxabs'.
5072         * modules/imaxabs-tests: New file.
5073         * tests/test-imaxabs.c: New file.
5074
5075 2011-09-01  Bruno Haible  <bruno@clisp.org>
5076
5077         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5078         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5079         pthread_create.
5080
5081 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5082
5083         openat: work around AIX 7.1 fstatat issue
5084         This should fix the problem that was not properly fixed
5085         in the previous change, dated 2011-08-30.
5086         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5087         __need_system_stat_h defined.
5088         (orig_fstatat) [HAVE_FSTATAT]: New function.
5089         (rpl_fstatat): Go back to the old way of doing things,
5090         except call orig_fstatat instead of fstatat.
5091         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5092         Remove unnecessary check whether fstatat fills in st_size etc.
5093
5094 2011-09-01  Bruno Haible  <bruno@clisp.org>
5095
5096         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5097         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5098         just include the system's header.
5099
5100 2011-08-31  Jim Meyering  <meyering@redhat.com>
5101
5102         tests: avoid spurious assertion failure in test-float.c on ppc64
5103         * tests/test-float.c (test_long_double): Comment out an assertion,
5104         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5105         with gcc-4.4.4.
5106
5107         maint: indent with spaces, not TABs
5108         I need to get in the habit of running gnulib's "make check".
5109         Both of these would have been caught.
5110         * m4/largefile.m4: Indent with spaces, not TABs.
5111         * lib/parse-datetime.y (iso_8601_time): Likewise.
5112         Spotted by Pádraig Brady.
5113
5114         test-parse-datetime.c: accommodate a relatively strict gcc warning
5115         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5116         to avoid a warning from gcc's -Werror=missing-declarations.
5117         Insert a few spaces-before-funcall-parenthesis.
5118
5119 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5120
5121         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5122         The parser now accepts ISO 8601 date-time strings with "T" as the
5123         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5124         with a space between the date and time strings.  Now it also parses
5125         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5126         variants like "2004-02-29T16:21:42.333-07:00"
5127         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5128         of day representation using the 'T' separator character.
5129         * doc/parse-datetime.texi (General date syntax): replace use of
5130         deprecated --iso-8601 option with --rfc-3339 in example of date
5131         command output formats that can be parsed.
5132         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5133         lib/parse-datetime.y.
5134         (gmt_offset): New function.
5135         (main): Add additional test cases to validate ISO8601 extended
5136         date and time of day parsing.
5137
5138 2011-08-31  Bruno Haible  <bruno@clisp.org>
5139
5140         freopen: Documentation.
5141         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5142         name.
5143         Reported by Claudio Bley <claudio.bley@gmail.com>.
5144
5145 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5146
5147         freopen: Don't crash if the filename argument is NULL.
5148         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5149         NULL.
5150
5151 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5152
5153         openat: work around AIX 7.1 fstatat bug
5154         Problem reported by Kevin Brott for GNU tar, in the thread containing
5155         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5156         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5157         FSTATAT_ST_SIZE_ETC_BROKEN.
5158         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5159         rpl_fstatat.
5160         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5161         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5162         AC_CHECK_FUNCS_ONCE for fstatat.
5163         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5164         fchmodat, mkdirat, openat and unlinkat.
5165
5166 2011-08-30  Bruno Haible  <bruno@clisp.org>
5167
5168         Avoid endless recursions if config.h includes some header files.
5169         * lib/fopen.c (__need_FILE): Define already before including config.h.
5170         * lib/freopen.c (__need_FILE): Likewise.
5171         * lib/open.c (__need_system_fcntl_h): Likewise.
5172         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5173         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5174         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5175
5176 2011-08-25  Karl Berry  <karl@gnu.org>
5177
5178         * config/srclist.txt (ylwrap): new try.
5179         * build-aux/ylwrap: new file.
5180
5181 2011-08-23  Bruno Haible  <bruno@clisp.org>
5182
5183         tmpdir: Use a good default directory on native Windows.
5184         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5185         (P_tmpdir): Default to _P_tmpdir on native Windows.
5186         (path_search): On native Windows, try the value returned by GetTempPath
5187         before trying P_tmpdir.
5188         * modules/tmpdir (Depends-on): Add pathmax.
5189         Suggested by John Darrington <john@darrington.wattle.id.au>.
5190
5191 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5192
5193         doc: fix typo in README-release
5194         * top/README-release: Capitalize first word of a sentence.
5195
5196 2011-08-19  Jim Meyering  <meyering@redhat.com>
5197
5198         fts: do not exhaust memory when processing million-entry directories
5199         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5200         directory would require about 256*N bytes of memory.  Thus, it was
5201         easy to construct a directory too large to be processed by any of
5202         those tools.  With this change, fts' maximum memory utilization is
5203         now limited to around 30MB.
5204         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5205         (fts_read): When we've processed the final entry (i.e., when
5206         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5207         using the parent entry to read any remaining entries.  Dispatch
5208         depending on what fts_build returns:
5209         - NULL+stop, aka failure: stop
5210         - NULL otherwise: move up in the dir hierarchy
5211         - non-NULL: handle this new entry
5212         (fts_build): Declare and use new local, continue_readdir.
5213         Prepare to be called from fts_read, when the entries
5214         from a partially-read directory have just been exhausted.
5215         In that case, we'll skip the opendir and instead use the parent's
5216         fts_dirp and derive dir_fd from that.
5217         Finally, in the readdir loop, if we read max_entries entries,
5218         exit the loop ensuring *not* to call closedir.  This is required
5219         so that fts_dirp can be reused on a subsequent call.
5220         Prompted by Ben England's report of memory exhaustion in find
5221         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5222
5223         maint: fts: move decl of `dp' down into while loop; split a long line
5224         * lib/fts.c (fts_build): No semantic change.
5225
5226         fts: add/use new struct member, fts_dirp
5227         We are about to use this to manage any directory with
5228         too many entries to read all of them into memory at once.
5229         To do that, we'll need to save the DIR* pointer in each
5230         affected FTSENT struct.
5231         * lib/fts_.h: Include <dirent.h>.
5232         (struct FTSENT) [fts_dirp]: New member.
5233         * lib/fts.c (closedir_and_clear): Define.
5234         Use it in place of closedir so that we are sure to
5235         clear the new fts_dirp member when done with it.
5236         (fts_alloc): Initialize the new member.
5237         (fts_lfree): Free, if needed.
5238
5239         maint: fts: give __opendir2 a new parameter and rename
5240         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5241         than surreptitiously using sole caller's "dir_fd".
5242         (fts_opendir): Rename from __opendir2.
5243
5244         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5245         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5246
5247         maint: fts.c: correct off-by-one indentation
5248         * lib/fts.c (fts_build): Correct indentation, change style
5249         of a couple of block comments, and bracing style.
5250
5251         maint: fts.c: move __opendir2 #define "up" out of function body
5252         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5253
5254         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5255         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5256         out for a long time and besides was useful only on BSD systems.
5257
5258 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5259
5260         regex: port to Stratus OpenVOS
5261         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5262         define to empty, rather than attempting nonportable optimizations.
5263         Problem reported by Paul Green in:
5264         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5265         and fix suggested by Eric Blake in:
5266         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5267
5268 2011-08-17  Eric Blake  <eblake@redhat.com>
5269
5270         getcwd: fix test failures on mingw
5271         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5272         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5273         test if long directory cannot be created, and allow mingw errno.
5274
5275         getcwd-lgpl: fix m4 to match relaxed test for BSD
5276         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5277         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5278         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5279         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5280         signature problem.
5281
5282         getcwd: fix compilation on mingw64
5283         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5284         getcwd.
5285         Reported by Marc-André Lureau.
5286
5287         pipe2: silence compiler warning
5288         * lib/pipe2.c (pipe2): Hide label if it is not used.
5289
5290 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5291
5292         relocatable-prog: fix link error
5293         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5294         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5295         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5296         into modules/relocatable-lib without noticing that
5297         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5298         also needs to build relocatable.c.
5299
5300 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5301
5302         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5304         shell code: it contained a 'break' that was not in a loop.
5305         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5306         via a shell-language loop; this may have been true in old Autoconf
5307         versions, but it's not true in Autoconf 2.68.  I found this bug
5308         when testing coreutils git on Solaris 8, whose shell complains
5309         about the syntax error.
5310
5311 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5312
5313         * lib/base64.c: Fix comment to reference RFC 4648.
5314         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5315         <gvtulder@gmail.com>.
5316
5317 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5320
5321         po/Makefile.in.in: fix make -q problem
5322         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5323         rule, since there's no file named 'check-macro-version' and its
5324         use as a file breaks make -q.
5325         (all): Don't depend on check-macro-version.
5326         (CHECK_MACRO_VERSION): New macro.
5327         (stamp-po): Use it.
5328
5329         configmake: fix make -q problem
5330         * modules/configmake (configmake.h): Update configmake.h's time stamp
5331         even if the file does not change.  Otherwise, 'make -q' fails.
5332         Problem reported by Simon Josefsson in
5333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5334
5335 2011-08-11  Jim Meyering  <meyering@redhat.com>
5336
5337         git-version-gen: correct the advice in a comment
5338         * build-aux/git-version-gen: Correct comment.
5339         Don't recommend to list .tarball-version in .gitignore.
5340
5341 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5342
5343         base64: fix off-by-one buffer size bug
5344         Problem and (trivial) fix reported by Gijs van Tulder in
5345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5346         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5347         * tests/test-base64.c (main): Catch the bug.
5348
5349 2011-08-10  Eric Blake  <eblake@redhat.com>
5350
5351         closein: correct comments
5352         * lib/closein.c (close_stdin): Improve comments.
5353
5354 2011-08-09  Bruno Haible  <bruno@clisp.org>
5355
5356         More tests for 'fseeko'.
5357         * tests/test-fseeko3.c: New file, from Eric Blake.
5358         * tests/test-fseeko3.sh: New file.
5359         * modules/fseeko-tests (Files): Add them.
5360         (TESTS): Add test-fseeko3.sh.
5361         (check_PROGRAMS): Add test-fseeko3.
5362
5363 2011-08-09  Eric Blake  <eblake@redhat.com>
5364
5365         fseeko: remove unneeded hack
5366         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5367
5368         fseeko: fix bug on glibc
5369         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5370         Reported by John W. Eaton.
5371
5372 2011-08-08  Bruno Haible  <bruno@clisp.org>
5373
5374         unictype/base: Fix interoperability with preinstalled libunistring.
5375         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5376         Reported by Simon Josefsson.
5377
5378 2011-08-08  Bruno Haible  <bruno@clisp.org>
5379
5380         iswblank: Detect declaration correctly.
5381         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5382         AC_CHECK_DECLS invocation.
5383
5384 2011-08-08  Bruno Haible  <bruno@clisp.org>
5385
5386         tcgetsid: Detect declaration correctly.
5387         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5388         AC_CHECK_DECLS invocation.
5389         Reported by Simon Josefsson.
5390
5391 2011-08-08  Eric Blake  <eblake@redhat.com>
5392
5393         largefile: fix typo that regressed large file support
5394         * modules/largefile (configure.ac-early): Fix section name.
5395
5396 2011-08-06  Karl Berry  <karl@gnu.org>
5397
5398         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5399         a separate module.
5400
5401 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5402
5403         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5404         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5405         get prototype for free.
5406
5407 2011-08-04  Bruno Haible  <bruno@clisp.org>
5408
5409         Tests for module 'pathmax'.
5410         * modules/pathmax-tests: New file.
5411         * tests/test-pathmax.c: New file.
5412
5413         canonicalize-lgpl: Support larger filenames on the Hurd.
5414         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5415         Reported by Paul Eggert.
5416
5417         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5418         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5419         * lib/chdir-long.h: Include pathmax.h.
5420         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5421         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5422         (PATH_MAX): Remove code that is done by pathmax.h.
5423         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5424         * lib/tmpfile.c: Add a comment.
5425         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5426         * modules/chdir-long (Depends-on): Add pathmax.
5427         * modules/getcwd (Depends-on): Add pathmax.
5428         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5429         is not defined.
5430         * doc/posix-headers/limits.texi: Mention the pathmax module.
5431         * NEWS: Mention the change.
5432
5433 2011-08-02  Bruno Haible  <bruno@clisp.org>
5434
5435         pthread_sigmask: Actually use results of gl_THREADLIB.
5436         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5437         gl_THREADLIB, not gl_[]THREADLIB.
5438         Reported by Eric Blake.
5439
5440 2011-08-02  Jim Meyering  <meyering@redhat.com>
5441
5442         maint.mk: relax the default _gl_TS_function_match regexp
5443         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5444         space between function name and "(" in an "extern" declaration.
5445         That would fail to match a decl with no space there: extern void foo();
5446
5447 2011-07-31  Iain Nicol  <iain@thenicols.net>
5448
5449         git-version-gen: document that EXTRA_DIST must include .version
5450         * build-aux/git-version-gen: In the how-to-use comment, document
5451         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5452         will fail when run from an unpacked distribution tarball.
5453
5454 2011-08-01  Bruno Haible  <bruno@clisp.org>
5455
5456         wctype-h: Fix last change.
5457         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5458         REPLACE_TOWLOWER to 0.
5459         Reported by Sam Steingold <sds@gnu.org>.
5460
5461 2011-07-31  Bruno Haible  <bruno@clisp.org>
5462
5463         frexpl: Update autoconf test.
5464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5465         according to changes of 2011-06-20.
5466
5467 2011-07-31  Bruno Haible  <bruno@clisp.org>
5468
5469         sys_utsname: Add support for Minix.
5470         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5471         <sys/utsname.h>.
5472         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5473         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5474
5475 2011-07-31  Bruno Haible  <bruno@clisp.org>
5476
5477         strings: Add support for Minix.
5478         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5479         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5480         * doc/posix-headers/strings.texi: Document the Minix problem.
5481
5482 2011-07-31  Bruno Haible  <bruno@clisp.org>
5483
5484         wctype-h: Add support for Minix.
5485         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5486         REPLACE_TOWLOWER.
5487         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5488         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5489         REPLACE_ISWCNTRL.
5490
5491 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5492
5493         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5494         This is a performance improvement for 64-bit hosts: it causes the
5495         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5496
5497 2011-07-31  Bruno Haible  <bruno@clisp.org>
5498
5499         stdioext: Add support for Minix.
5500         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5501         * lib/fpurge.c (fpurge): Likewise.
5502         * lib/freadahead.c (freadahead): Likewise.
5503         * lib/freadable.c (freadable): Likewise.
5504         * lib/freading.c (freading): Likewise.
5505         * lib/freadptr.c (freadptr): Likewise.
5506         * lib/freadseek.c (freadptrinc): Likewise.
5507         * lib/fseeko.c (rpl_fseeko): Likewise.
5508         * lib/fseterr.c (fseterr): Likewise.
5509         * lib/fwritable.c (fwritable): Likewise.
5510         * lib/fwriting.c (fwriting): Likewise.
5511         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5512         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5513
5514 2011-07-31  Bruno Haible  <bruno@clisp.org>
5515
5516         errno: Port to Minix.
5517         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5518         ECONNABORTED are defined.
5519         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5520         GNULIB_defined_ECONNABORTED): New macros.
5521         * lib/strerror-override.h (strerror_override): Test also
5522         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5523         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5524         ECONNABORTED.
5525         * doc/posix-headers/errno.texi: Mention the Minix problem.
5526
5527 2011-07-31  Bruno Haible  <bruno@clisp.org>
5528
5529         Work around declaration collisions on Minix.
5530         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5531         defined, set REPLACE_MBSINIT.
5532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5533         defined, set REPLACE_MBRTOWC.
5534         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5535         set REPLACE_MBRLEN.
5536         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5537         defined, set REPLACE_MBSRTOWCS.
5538         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5539         defined, set REPLACE_WCRTOMB.
5540         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5541         defined, set REPLACE_WCSRTOMBS.
5542
5543 2011-07-31  Bruno Haible  <bruno@clisp.org>
5544
5545         Add support for Minix with ACK compiler.
5546         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5547         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5548         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5549
5550 2011-07-31  Bruno Haible  <bruno@clisp.org>
5551
5552         Documentation about Minix.
5553         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5554         * doc/glibc-headers/*.texi: Likewise.
5555         * doc/posix-functions/*.texi: Likewise.
5556         * doc/glibc-functions/*.texi: Likewise.
5557
5558 2011-07-31  Bruno Haible  <bruno@clisp.org>
5559
5560         snippet/warn-on-use: Fix indentation.
5561         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5562
5563 2011-07-25  Jim Meyering  <meyering@redhat.com>
5564
5565         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5566         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5567         commands.
5568
5569 2011-07-27  Jim Meyering  <meyering@redhat.com>
5570
5571         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5572         * top/maint.mk (gl_extract_significant_defines_): Now that
5573         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5574         gnulib/lib/signal.in.h, and now that we recommend to
5575         define-if-undefined those two symbols in application code,
5576         we must filter them out of the "significant" list.
5577         This avoids a "make syntax-check" failure in coreutils.
5578
5579 2011-07-26  Eric Blake  <eblake@redhat.com>
5580
5581         warnings: add comments about previous patch
5582         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5583         * m4/include_next.m4: Likewise.
5584         * m4/warn-on-use.m4: Likewise.
5585         * m4/warnings.m4: Likewise, and simplify use.
5586         Suggested by Stefano Lattarini.
5587
5588         include-next, warnings: support older autoconf
5589         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5590         AS_VAR_PUSHDEF in a way that works with older autoconf.
5591         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5592         Reported by Daniel P. Berrange.
5593
5594 2011-07-25  Bruno Haible  <bruno@clisp.org>
5595
5596         fseek, ftell: Fix doc.
5597         * doc/posix-functions/fseek.texi: Reword statement about
5598         AC_SYS_LARGEFILE.
5599         * doc/posix-functions/ftell.texi: Likewise.
5600
5601 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5602             Bruno Haible  <bruno@clisp.org>
5603
5604         Add dependencies to the 'largefile' module.
5605         * modules/fopen (Depends-on): Add 'largefile'.
5606         * modules/freopen (Depends-on): Likewise.
5607         * modules/fseeko (Depends-on): Likewise.
5608         * modules/ftello (Depends-on): Likewise.
5609         * modules/glob (Depends-on): Likewise.
5610         * modules/lseek (Depends-on): Likewise.
5611         * modules/lstat (Depends-on): Likewise.
5612         * modules/mkostemp (Depends-on): Likewise.
5613         * modules/mkostemps (Depends-on): Likewise.
5614         * modules/mkstemp (Depends-on): Likewise.
5615         * modules/mkstemps (Depends-on): Likewise.
5616         * modules/open (Depends-on): Likewise.
5617         * modules/openat (Depends-on): Likewise.
5618         * modules/pread (Depends-on): Likewise.
5619         * modules/pwrite (Depends-on): Likewise.
5620         * modules/scandir (Depends-on): Likewise.
5621         * modules/stat (Depends-on): Likewise.
5622         * modules/tmpfile (Depends-on): Likewise.
5623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5624         since the containing module now depends on the largefile module.
5625         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5626         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5627         off_t is fixed by gnulib.
5628         * doc/posix-functions/freopen.texi: Likewise.
5629         * doc/posix-functions/fseeko.texi: Likewise.
5630         * doc/posix-functions/fstatat.texi: Likewise.
5631         * doc/posix-functions/ftello.texi: Likewise.
5632         * doc/posix-functions/glob.texi: Likewise.
5633         * doc/posix-functions/lseek.texi: Likewise.
5634         * doc/posix-functions/lstat.texi: Likewise.
5635         * doc/posix-functions/mkstemp.texi: Likewise.
5636         * doc/posix-functions/open.texi: Likewise.
5637         * doc/posix-functions/openat.texi: Likewise.
5638         * doc/posix-functions/pread.texi: Likewise.
5639         * doc/posix-functions/pwrite.texi: Likewise.
5640         * doc/posix-functions/scandir.texi: Likewise.
5641         * doc/posix-functions/stat.texi: Likewise.
5642         * doc/posix-functions/tmpfile.texi: Likewise.
5643         * doc/glibc-functions/mkostemp.texi: Likewise.
5644         * doc/glibc-functions/mkostemps.texi: Likewise.
5645         * doc/glibc-functions/mkstemps.texi: Likewise.
5646
5647 2011-07-25  Bruno Haible  <bruno@clisp.org>
5648
5649         fcntl: Move AC_LIBOBJ invocation to module description.
5650         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5651         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5652
5653         fcntl: Remove call-in from fchdir.m4.
5654         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5656
5657         dup3: Remove potential call-in from fchdir.m4.
5658         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5660
5661         dup2: Move AC_LIBOBJ invocation to module description.
5662         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5663         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5664         Don't invoke AC_LIBOBJ.
5665         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5666
5667         dup2: Remove call-in from fchdir.m4.
5668         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5670
5671         fclose: Move AC_LIBOBJ invocation to module description.
5672         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5673         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5674         to 1.
5675         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5676
5677         fclose: Remove call-in from close.m4.
5678         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5679         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5680
5681         close: Move AC_LIBOBJ invocation to module description.
5682         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5683         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5684         1.
5685         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5686
5687         close: Remove call-in from fchdir.m4.
5688         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5690
5691         open: Move AC_LIBOBJ invocation to module description.
5692         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5693         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5694         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5695
5696         open: Remove call-in from fchdir.m4.
5697         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5699
5700         fchdir: Start to remove gl_REPLACE_* idiom.
5701         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5702         (gl_FUNC_FCHDIR): Invoke it.
5703
5704 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5705
5706         * lib/ftell.c (ftell): Comment out cast.
5707
5708         close: use gl_REPLACE_FCLOSE only if defined
5709         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5710         is defined.  The close module doesn't depend on the fclose module
5711         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5713         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5714
5715 2011-07-24  Jim Meyering  <meyering@redhat.com>
5716
5717         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5718         * tests/test-select.h (test_function): Declare as "static".
5719
5720 2011-07-24  Bruno Haible  <bruno@clisp.org>
5721
5722         doc: Mention the effects of AC_SYS_LARGEFILE.
5723         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5724         on this function.
5725         * doc/posix-functions/aio_error.texi: Likewise.
5726         * doc/posix-functions/aio_fsync.texi: Likewise.
5727         * doc/posix-functions/aio_read.texi: Likewise.
5728         * doc/posix-functions/aio_return.texi: Likewise.
5729         * doc/posix-functions/aio_suspend.texi: Likewise.
5730         * doc/posix-functions/aio_write.texi: Likewise.
5731         * doc/posix-functions/fgetpos.texi: Likewise.
5732         * doc/posix-functions/fopen.texi: Likewise.
5733         * doc/posix-functions/freopen.texi: Likewise.
5734         * doc/posix-functions/fsetpos.texi: Likewise.
5735         * doc/posix-functions/fstatvfs.texi: Likewise.
5736         * doc/posix-functions/ftruncate.texi: Likewise.
5737         * doc/posix-functions/ftw.texi: Likewise.
5738         * doc/posix-functions/getrlimit.texi: Likewise.
5739         * doc/posix-functions/glob.texi: Likewise.
5740         * doc/posix-functions/lio_listio.texi: Likewise.
5741         * doc/posix-functions/lockf.texi: Likewise.
5742         * doc/posix-functions/mkstemp.texi: Likewise.
5743         * doc/posix-functions/mmap.texi: Likewise.
5744         * doc/posix-functions/nftw.texi: Likewise.
5745         * doc/posix-functions/openat.texi: Likewise.
5746         * doc/posix-functions/opendir.texi: Likewise.
5747         * doc/posix-functions/posix_fadvise.texi: Likewise.
5748         * doc/posix-functions/posix_fallocate.texi: Likewise.
5749         * doc/posix-functions/pread.texi: Likewise.
5750         * doc/posix-functions/pwrite.texi: Likewise.
5751         * doc/posix-functions/readdir.texi: Likewise.
5752         * doc/posix-functions/readdir_r.texi: Likewise.
5753         * doc/posix-functions/rewinddir.texi: Likewise.
5754         * doc/posix-functions/scandir.texi: Likewise.
5755         * doc/posix-functions/seekdir.texi: Likewise.
5756         * doc/posix-functions/setrlimit.texi: Likewise.
5757         * doc/posix-functions/statvfs.texi: Likewise.
5758         * doc/posix-functions/telldir.texi: Likewise.
5759         * doc/posix-functions/tmpfile.texi: Likewise.
5760         * doc/posix-functions/truncate.texi: Likewise.
5761         * doc/glibc-functions/fallocate.texi: Likewise.
5762         * doc/glibc-functions/fstatfs.texi: Likewise.
5763         * doc/glibc-functions/fts_children.texi: Likewise.
5764         * doc/glibc-functions/fts_read.texi: Likewise.
5765         * doc/glibc-functions/getdirentries.texi: Likewise.
5766         * doc/glibc-functions/mkostemp.texi: Likewise.
5767         * doc/glibc-functions/mkostemps.texi: Likewise.
5768         * doc/glibc-functions/mkstemps.texi: Likewise.
5769         * doc/glibc-functions/preadv.texi: Likewise.
5770         * doc/glibc-functions/pwritev.texi: Likewise.
5771         * doc/glibc-functions/sendfile.texi: Likewise.
5772         * doc/glibc-functions/statfs.texi: Likewise.
5773
5774 2011-07-24  Bruno Haible  <bruno@clisp.org>
5775
5776         doc: Fix typo.
5777         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5778
5779 2011-07-24  Bruno Haible  <bruno@clisp.org>
5780
5781         doc: Mention fsusage.
5782         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5783
5784 2011-07-24  Bruno Haible  <bruno@clisp.org>
5785
5786         doc: Mention new glibc headers and functions.
5787         * doc/glibc-headers/gshadow.texi: New file.
5788         * doc/glibc-functions/endsgent.texi: New file.
5789         * doc/glibc-functions/fgetsgent.texi: New file.
5790         * doc/glibc-functions/fgetsgent_r.texi: New file.
5791         * doc/glibc-functions/getsgent.texi: New file.
5792         * doc/glibc-functions/getsgent_r.texi: New file.
5793         * doc/glibc-functions/getsgnam.texi: New file.
5794         * doc/glibc-functions/getsgnam_r.texi: New file.
5795         * doc/glibc-functions/putsgent.texi: New file.
5796         * doc/glibc-functions/setsgent.texi: New file.
5797         * doc/glibc-functions/sgetsgent.texi: New file.
5798         * doc/glibc-functions/sgetsgent_r.texi: New file.
5799         * doc/glibc-functions/malloc_info.texi: New file.
5800         * doc/glibc-functions/preadv.texi: New file.
5801         * doc/glibc-functions/pwritev.texi: New file.
5802         * doc/glibc-functions/register_printf_modifier.texi: New file.
5803         * doc/glibc-functions/register_printf_specifier.texi: New file.
5804         * doc/glibc-functions/register_printf_type.texi: New file.
5805         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5806         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5807         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5808         * doc/glibc-functions/pthread_getname_np.texi: New file.
5809         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5810         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5811         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5812         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5813         * doc/glibc-functions/pthread_setname_np.texi: New file.
5814         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5815         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5816         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5817         * doc/glibc-functions/qsort_r.texi: New file.
5818         * doc/glibc-functions/quick_exit.texi: New file.
5819         * doc/glibc-functions/syncfs.texi: New file.
5820         * doc/gnulib.texi: Include them.
5821         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5822         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5823         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5824         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5825         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5826         * doc/glibc-functions/execvpe.texi: Likewise.
5827
5828 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         ftell: don't include <unistd.h>
5831         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5832         guaranteed to define off_t, and the ftell module depends on the
5833         stdio module.
5834
5835         ftell: do not assume wraparound signed arithmetic
5836         * lib/ftell.c: Include <limits.h>.
5837         (ftell): Don't assume wraparound signed arithmetic.
5838
5839 2011-07-24  Bruno Haible  <bruno@clisp.org>
5840
5841         close: No longer depend on module 'fclose'.
5842         * modules/close (Depends-on): Remove fclose.
5843         * NEWS: Mention the change.
5844         Suggested by Sam Steingold <sds@gnu.org>.
5845
5846 2011-07-24  Bruno Haible  <bruno@clisp.org>
5847
5848         fsusage: Enable large volume support on AIX >= 5.2.
5849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5850         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5851         instead of STAT_STATVFS.
5852         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5853
5854         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5855         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5856         f_blocks field only on MacOS X.
5857
5858         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5859         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5860         * modules/fsusage (Depends-on): Add largefile.
5861
5862 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5863
5864         * README: Modernize discussion of signed integers.
5865         Assuming overflow wraparound is no longer safe.
5866         Mention ones' complement and signed magnitude.
5867
5868 2011-07-22  Bruno Haible  <bruno@clisp.org>
5869
5870         select tests, pselect tests: Refactor.
5871         * tests/test-select.h: New file, extracted from tests/test-select.c.
5872         (select_fn): New type.
5873         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5874         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5875         test_pipe): Add my_select argument.
5876         (test_function): Renamed from main. Add my_select argument.
5877         * tests/test-select.c: Move most code to tests/test-select.h. Include
5878         test-select.h.
5879         * modules/select-tests (Files): Add tests/test-select.h.
5880         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5881         (my_select, main): New functions.
5882         * modules/pselect-tests (Files): Add tests/test-select.h,
5883         tests/macros.h, tests/signature.h.
5884         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5885         (configure.ac): Check for <sys/wait.h>.
5886
5887 2011-07-22  Bruno Haible  <bruno@clisp.org>
5888
5889         sys_select tests: Check the signature of FD_*.
5890         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5891         signature tests from here...
5892         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5893         here.
5894         * modules/sys_select-tests (Files): Add tests/signature.h.
5895
5896 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5897
5898         largefile: new module, replacing large-inode
5899         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5900         * MODULES.html.sh: Add largefile, remove large-inode.
5901         * modules/largefile, m4/largefile.m4: New files.
5902         * modules/large-inode, m4/large-inode.m4: Remove.
5903
5904         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5906         implementations that use only 32 bits to count blocks.
5907         On typical hosts with 1024-byte blocks, this fails with file
5908         systems as small as 4 TiB.  Problem reported by Herb Wartens
5909         <http://debbugs.gnu.org/9140> and this should also fix a similar
5910         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5911
5912         large-inode: New module
5913         * MODULES.html.sh: Add it.
5914         * modules/large-inode, m4/large-inode.m4: New files.
5915
5916         extensions: Enable extensions on MacOS X 10.5 and later.
5917         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5918
5919 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5920
5921         file-has-acl: use acl_extended_file_nofollow if available
5922         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5923         (acl_extended_file): New macro.
5924         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5925         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5926
5927 2011-07-21  Bruno Haible  <bruno@clisp.org>
5928
5929         Declare system functions in a way that works with C++.
5930         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5931         declare fdopendir as extern "C".
5932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5933         declare frexpl as extern "C".
5934         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5935         declare gai_strerror as extern "C".
5936         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5937         programs, declare gai_strerror as extern "C".
5938         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5939         declare getlogin_r as extern "C".
5940         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5941         as extern "C".
5942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5943         declare ldexpl as extern "C".
5944         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5945         as extern "C".
5946         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5947         program, declare getmntinfo as extern "C".
5948         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5949         stpncpy as extern "C".
5950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5951         program, declare __xpg_strerror_r as extern "C".
5952         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5953         strndup as extern "C".
5954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5955         declare memset and bzero as extern "C".
5956         Reported by Sam Steingold <sds@gnu.org>.
5957
5958 2011-07-12  Jim Meyering  <meyering@redhat.com>
5959
5960         maint.mk: prohibit inclusion of "verify.h" without use
5961         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5962
5963 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5964
5965         timer-time: A new module to check for timer_settime()
5966         * m4/timer_time.m4: Check for the posix function.
5967         * modules/timer-time: Add the new module.
5968         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5969         Mention it.
5970
5971 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5972             Bruno Haible  <bruno@clisp.org>
5973
5974         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5975         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5976         not defined, assume POSIX threads and look for pthread_sigmask in
5977         $LIBS, without changing $CPPFLAGS.
5978
5979 2011-07-19  Bruno Haible  <bruno@clisp.org>
5980
5981         strstr: Update cross-compilation guess.
5982         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5983         CPUs, guess no, in view of glibc
5984         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5985         Suggested by Eric Blake. Reported by Reuben Thomas.
5986
5987 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5988
5989         getopt-gnu: suppress core dumps from detection code
5990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5991         to suppress core dumps that may well occur on glibc systems.
5992         * modules/getopt-gnu: Depend on nocrash.
5993
5994 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5995
5996         pthread_sigmask: ensure usleep is declared
5997         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5998         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5999
6000 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6001
6002         doc: Document NonStop portability issues.
6003         * doc/posix-functions/sigaction.texi (sigaction):
6004         * doc/posix-headers/signal.texi (signal.h):
6005         Document NonStop.  See Joachim Schmitz in
6006         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6007
6008 2011-07-15  Bruno Haible  <bruno@clisp.org>
6009
6010         ffsl, ffsll: Avoid unportable behaviour.
6011         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6012
6013 2011-07-15  Bruno Haible  <bruno@clisp.org>
6014
6015         ffs: More tests.
6016         * tests/test-ffs.c (NBITS): New macro.
6017         (main): Add more tests.
6018         * tests/test-ffsl.c (NBITS): New macro.
6019         (main): Add more tests.
6020         * tests/test-ffsll.c (NBITS): New macro.
6021         (main): Add more tests.
6022
6023 2011-07-15  Eric Blake  <eblake@redhat.com>
6024
6025         ffsl, ffsll: new modules
6026         * modules/ffsl: New file.
6027         * modules/ffsll: Likewise.
6028         * m4/ffsl.m4: Likewise.
6029         * m4/ffsll.m4: Likewise.
6030         * lib/ffsl.c: Likewise.
6031         * lib/ffsl.h: Likewise.
6032         * lib/ffsll.c: Likewise.
6033         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6034         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6035         * modules/string (Makefile.am): Substitute witnesses.
6036         * lib/strings.in.h (ffsl, ffsll): Declare.
6037         * modules/ffsl-tests: New test file.
6038         * modules/ffsll-tests: Likewise.
6039         * tests/test-ffsl.c: Likewise.
6040         * tests/test-ffsll.c: Likewise.
6041         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6042         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6043         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6044
6045         ffs: fix m4 prerequisite
6046         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6047
6048         ffs: avoid undefined behavior
6049         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6050         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6051         Reported by Bruno Haible.
6052
6053 2011-07-12  Bruno Haible  <bruno@clisp.org>
6054
6055         pthread_sigmask: Rely on module 'threadlib'.
6056         * modules/pthread_sigmask (Depends-on): Add threadlib.
6057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6058         is defined.
6059
6060 2011-07-12  Bruno Haible  <bruno@clisp.org>
6061
6062         regex: Depend on module 'strcase'.
6063         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6064
6065 2011-07-12  Jim Meyering  <meyering@redhat.com>
6066
6067         warn-on-use: fix typo in file name
6068         * modules/snippet/warn-on-use (Files): Correct file name:
6069         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6070
6071 2011-07-12  Bruno Haible  <bruno@clisp.org>
6072
6073         strings: Document module.
6074         * doc/posix-headers/strings.texi: Mention module 'strings'.
6075
6076 2011-07-12  Bruno Haible  <bruno@clisp.org>
6077
6078         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6079         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6080         (Files, Makefile.am): Update.
6081         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6082         * modules/stdlib (Depends-on): Update.
6083
6084 2011-07-12  Bruno Haible  <bruno@clisp.org>
6085
6086         * NEWS: Mention the changes.
6087
6088         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6089         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6090         (Files, Makefile.am): Update.
6091         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6092         * modules/arpa_inet (Depends-on): Update.
6093         * modules/ctype (Depends-on): Update.
6094         * modules/dirent (Depends-on): Update.
6095         * modules/fcntl-h (Depends-on): Update.
6096         * modules/glob (Depends-on): Update.
6097         * modules/iconv-h (Depends-on): Update.
6098         * modules/inttypes-incomplete (Depends-on): Update.
6099         * modules/langinfo (Depends-on): Update.
6100         * modules/locale (Depends-on): Update.
6101         * modules/math (Depends-on): Update.
6102         * modules/netdb (Depends-on): Update.
6103         * modules/poll-h (Depends-on): Update.
6104         * modules/pty (Depends-on): Update.
6105         * modules/search (Depends-on): Update.
6106         * modules/signal (Depends-on): Update.
6107         * modules/spawn (Depends-on): Update.
6108         * modules/stdio (Depends-on): Update.
6109         * modules/stdlib (Depends-on): Update.
6110         * modules/string (Depends-on): Update.
6111         * modules/strings (Depends-on): Update.
6112         * modules/sys_file (Depends-on): Update.
6113         * modules/sys_ioctl (Depends-on): Update.
6114         * modules/sys_select (Depends-on): Update.
6115         * modules/sys_socket (Depends-on): Update.
6116         * modules/sys_stat (Depends-on): Update.
6117         * modules/sys_time (Depends-on): Update.
6118         * modules/sys_times (Depends-on): Update.
6119         * modules/sys_utsname (Depends-on): Update.
6120         * modules/sys_wait (Depends-on): Update.
6121         * modules/termios (Depends-on): Update.
6122         * modules/time (Depends-on): Update.
6123         * modules/unistd (Depends-on): Update.
6124         * modules/wchar (Depends-on): Update.
6125         * modules/wctype-h (Depends-on): Update.
6126         * MODULES.html.sh (Support for building libraries and executables):
6127         Update.
6128
6129         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6130         * modules/snippet/unused-parameter: Renamed from
6131         modules/unused-parameter.
6132         (Files, Makefile.am): Update.
6133         * build-aux/snippet/unused-parameter.h: Renamed from
6134         build-aux/unused-parameter.h.
6135         * modules/selinux-h (Depends-on): Update.
6136         * modules/unistr/base (Depends-on): Update.
6137         * MODULES.html.sh (Core language properties): Update.
6138
6139         Rename module 'link-warning' to 'snippet/link-warning'.
6140         * modules/snippet/link-warning: Renamed from modules/link-warning.
6141         (Files, Makefile.am): Update.
6142         * build-aux/snippet/link-warning.h: Renamed from
6143         build-aux/link-warning.h.
6144         * MODULES.html.sh (Support for building libraries and executables):
6145         Update.
6146
6147         Rename module 'c++defs' to 'snippet/c++defs'.
6148         * modules/snippet/c++defs: Renamed from modules/c++defs.
6149         (Files, Makefile.am): Update.
6150         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6151         * modules/arpa_inet (Depends-on): Update.
6152         * modules/ctype (Depends-on): Update.
6153         * modules/dirent (Depends-on): Update.
6154         * modules/fcntl-h (Depends-on): Update.
6155         * modules/glob (Depends-on): Update.
6156         * modules/iconv-h (Depends-on): Update.
6157         * modules/langinfo (Depends-on): Update.
6158         * modules/locale (Depends-on): Update.
6159         * modules/math (Depends-on): Update.
6160         * modules/netdb (Depends-on): Update.
6161         * modules/poll-h (Depends-on): Update.
6162         * modules/pty (Depends-on): Update.
6163         * modules/search (Depends-on): Update.
6164         * modules/signal (Depends-on): Update.
6165         * modules/spawn (Depends-on): Update.
6166         * modules/stdio (Depends-on): Update.
6167         * modules/stdlib (Depends-on): Update.
6168         * modules/string (Depends-on): Update.
6169         * modules/strings (Depends-on): Update.
6170         * modules/sys_ioctl (Depends-on): Update.
6171         * modules/sys_select (Depends-on): Update.
6172         * modules/sys_socket (Depends-on): Update.
6173         * modules/sys_stat (Depends-on): Update.
6174         * modules/sys_time (Depends-on): Update.
6175         * modules/sys_wait (Depends-on): Update.
6176         * modules/termios (Depends-on): Update.
6177         * modules/time (Depends-on): Update.
6178         * modules/unistd (Depends-on): Update.
6179         * modules/wchar (Depends-on): Update.
6180         * modules/wctype-h (Depends-on): Update.
6181
6182         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6183         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6184         (Files, Makefile.am): Update.
6185         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6186         * modules/argv-iter (Depends-on): Update.
6187         * modules/arpa_inet (Depends-on): Update.
6188         * modules/dirent (Depends-on): Update.
6189         * modules/fcntl-h (Depends-on): Update.
6190         * modules/fnmatch (Depends-on): Update.
6191         * modules/getopt-posix (Depends-on): Update.
6192         * modules/glob (Depends-on): Update.
6193         * modules/iconv-h (Depends-on): Update.
6194         * modules/inttypes-incomplete (Depends-on): Update.
6195         * modules/locale (Depends-on): Update.
6196         * modules/math (Depends-on): Update.
6197         * modules/netdb (Depends-on): Update.
6198         * modules/search (Depends-on): Update.
6199         * modules/signal (Depends-on): Update.
6200         * modules/spawn (Depends-on): Update.
6201         * modules/stdio (Depends-on): Update.
6202         * modules/stdlib (Depends-on): Update.
6203         * modules/string (Depends-on): Update.
6204         * modules/strings (Depends-on): Update.
6205         * modules/sys_socket (Depends-on): Update.
6206         * modules/sys_stat (Depends-on): Update.
6207         * modules/sys_time (Depends-on): Update.
6208         * modules/sys_times (Depends-on): Update.
6209         * modules/sys_utsname (Depends-on): Update.
6210         * modules/time (Depends-on): Update.
6211         * modules/unistd (Depends-on): Update.
6212         * modules/wchar (Depends-on): Update.
6213         * MODULES.html.sh (Support for building libraries and executables):
6214         Update.
6215
6216 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         Improvements on _Noreturn and related modules.
6219
6220         modules/_Exit-tests: test _Noreturn too
6221         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6222         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6223         (main): Use them.
6224
6225         stdnoreturn, stdnoreturn-tests: remove modules
6226         They're not needed here and a bit premature for use elsewhere.  See
6227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6228         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6229         * tests/test-stdnoreturn.c: Remove files.
6230         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6231         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6232         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6233         and using noreturn.
6234         * modules/openat, modules/sigpipe-die, modules/xalloc:
6235         * modules/xmemdup0, modules/xstrtol:
6236         Remove dependency on stdnoreturn.
6237
6238         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6239         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6240         Reparenthesize to avoid GCC warning.
6241         Support Microsoft's syntax.
6242         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6243
6244         _Noreturn-tests: remove module
6245         * modules/_Noreturn-tests: Remove.
6246         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6247         * tests/test-_Noreturn.c: Remove.
6248         * tests/test-stdnoreturn.c: Merge from the old
6249         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6250
6251 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         _Noreturn, stdnoreturn, and related modules.
6254
6255         * top/maint.mk: Adjust to new noreturn support.
6256         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6257         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6258
6259         xalloc: use stdnoreturn.h
6260         * lib/xalloc.h: Include <stdnoreturn.h>.
6261         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6262         * modules/xalloc (Depends-on): Add stdnoreturn.
6263
6264         xstrtol: use stdnoreturn.h
6265         * lib/xstrtol.h: Include <stdnoreturn.h>.
6266         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6267         * modules/xstrtol (Depends-on): Add stdnoreturn.
6268
6269         xmemdup0: use stdnoreturn.h
6270         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6271         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6272         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6273
6274         sigpipe-die: use stdnoreturn.h
6275         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6276         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6277         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6278
6279         openat: use stdnoreturn.h
6280         * lib/openat.h: Include <stdnoreturn.h>.
6281         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6282         * modules/openat (Depends-on): Add stdnoreturn.
6283
6284         * lib/openat-die.c (openat_save_fail): Modernize comment.
6285
6286         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6287
6288         * lib/glthread/thread.h: Modernize comment.
6289
6290         obstack: use _Noreturn
6291         * lib/obstack.c (__attribute__): Remove macro.
6292         (print_and_abort): Use _Noreturn.
6293
6294         c-stack: use _Noreturn
6295         * lib/c-stack.c (die, overflow_handler, segv_handler):
6296         Use _Noreturn rather than __attribute__((noreturn)).
6297
6298         argmatch-tests, exclude_tests: use _Noreturn
6299         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6300         Remove.
6301         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6302
6303         stdlib: use _Noreturn
6304         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6305         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6306         * modules/stdlib (Depends-on): Add _Noreturn.
6307         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6308
6309         stdnoreturn-tests: new module
6310         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6311
6312         stdnoreturn: new module
6313         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6314         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6315
6316         _Noreturn-tests: new module
6317         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6318
6319         _Noreturn: new module
6320         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6321         New section, mentioning it.
6322         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6323
6324         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6325
6326 2011-07-11  Eric Blake  <eblake@redhat.com>
6327
6328         ffs: new module
6329         * modules/ffs: New file.
6330         * m4/ffs.m4: Likewise.
6331         * lib/ffs.c: Likewise.
6332         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6333         * modules/strings (Makefile.am): Substitute witness.
6334         (Depends-on): Add c++defs.
6335         * lib/strings.in.h (ffs): Declare.
6336         * modules/ffs-tests: New test file.
6337         * tests/test-ffs.c: Test new module.
6338         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6339         * doc/posix-functions/ffs.texi (ffs): Likewise.
6340
6341         regex: avoid compiler warning
6342         * lib/regex.c (includes): Include <strings.h>, for use of
6343         strcasecmp in regcomp.c.
6344         Reported by Joachim Schmitz.
6345
6346 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         stdint: respect system's intmax_t if INTMAX_MAX
6349         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6350         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6351         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6352         long but int64_t is long long, and where we will clash with the
6353         system intmax_t if we override it.  See
6354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6355         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6356         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6357         similarly for UINTMAX_C.
6358
6359 2011-07-08  Bruno Haible  <bruno@clisp.org>
6360
6361         pthread_sigmask tests: Avoid a compiler warning.
6362         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6363         non-zero.
6364
6365         sigprocmask tests: A better way to avoid a compiler warning.
6366         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6367         (main): Complain if system() returns non-zero.
6368         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6369
6370 2011-07-08  Bruno Haible  <bruno@clisp.org>
6371
6372         pthread_sigmask: Work around IRIX bug.
6373         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6374         bug.
6375         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6376         there may be unblocked pending signals.
6377         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6378
6379 2011-07-08  Bruno Haible  <bruno@clisp.org>
6380
6381         pthread_sigmask: Work around Cygwin bug.
6382         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6383         bug.
6384         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6385         the system's pthread_sigmask function.
6386         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6387
6388 2011-07-08  Bruno Haible  <bruno@clisp.org>
6389
6390         pthread_sigmask: Work around bug in single-threaded implementation.
6391         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6392         FreeBSD, HP-UX, Solaris bug.
6393         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6394         * lib/pthread_sigmask.c: Include <stddef.h>.
6395         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6396         the system's pthread_sigmask function.
6397         * modules/pthread_sigmask (configure.ac): Invoke
6398         gl_PREREQ_PTHREAD_SIGMASK.
6399         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6400         HP-UX, Solaris.
6401
6402 2011-07-08  Eric Blake  <eblake@redhat.com>
6403
6404         test-sigprocmask: avoid compiler warning
6405         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6406         * tests/test-sigprocmask.c (main): Use it to silence warning.
6407         Reported by Jim Meyering.
6408
6409         test-snprintf: avoid compiler warning
6410         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6411         * tests/test-vsnprintf.c (main): Likewise.
6412         Reported by Jim Meyering.
6413
6414 2011-07-08  Bruno Haible  <bruno@clisp.org>
6415
6416         Tests for module 'pthread_sigmask'.
6417         * modules/pthread_sigmask-tests: New file.
6418         * tests/test-pthread_sigmask1.c: New file, based on
6419         tests/test-sigprocmask.c.
6420         * tests/test-pthread_sigmask2.c: New file.
6421
6422 2011-07-08  Jim Meyering  <meyering@redhat.com>
6423
6424         test-getopt.h: avoid warning about an unused variable
6425         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6426
6427 2011-07-07  Jim Meyering  <meyering@redhat.com>
6428
6429         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6430         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6431         now that it no longer contains leading TABs.
6432         Remove unused "url=FIXME" statement.
6433
6434 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6435
6436         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6437         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6438         When gl_THREADLIB is not in use, assume that the POSIX sematics
6439         are desired.  This is better for Emacs, which uses POSIX semantics
6440         on GNUish and/or POSIXish platforms, and does not use threads at
6441         all otherwise.
6442
6443         pthread_sigmask: fix typo when testing for libraries
6444         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6445         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6446
6447 2011-07-08  Eric Blake  <eblake@redhat.com>
6448
6449         fts: introduce FTS_NOATIME
6450         * lib/fts_.h (FTS_NOATIME): New bit flag.
6451         (FTS_OPTIONMASK): Adjust.
6452         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6453         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6454
6455 2011-07-08  Bruno Haible  <bruno@clisp.org>
6456
6457         Tests for module 'thread'.
6458         * modules/thread-tests: New file.
6459         * tests/test-thread_self.c: New file.
6460         * tests/test-thread_create.cc: New file.
6461
6462 2011-07-08  Bruno Haible  <bruno@clisp.org>
6463
6464         thread: Avoid gcc warnings when using gl_thread_self().
6465         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6466         'void *'.
6467         (gl_thread_self_pointer): Update.
6468
6469 2011-07-07  Bruno Haible  <bruno@clisp.org>
6470
6471         signal-c++-tests: Check declaration of pthread_sigmask.
6472         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6473         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6474         $(LIB_PTHREAD_SIGMASK).
6475
6476 2011-07-07  Bruno Haible  <bruno@clisp.org>
6477
6478         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6479         * lib/signal.in.h (pthread_sigmask): Override if
6480         REPLACE_PTHREAD_SIGMASK is 1.
6481         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6482         REPLACE_PTHREAD_SIGMASK.
6483         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6484         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6485         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6486         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6487         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6488
6489 2011-07-07  Bruno Haible  <bruno@clisp.org>
6490
6491         pthread_sigmask: Ensure declaration in <signal.h>.
6492         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6493         include <pthread.h>.
6494         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6495         problem.
6496
6497 2011-07-07  Bruno Haible  <bruno@clisp.org>
6498
6499         pthread_sigmask: Document the module.
6500         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6501
6502 2011-07-07  Bruno Haible  <bruno@clisp.org>
6503
6504         pthread_sigmask: Follow gnulib conventions.
6505         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6506         gl_PTHREAD_SIGMASK.
6507         * modules/pthread_sigmask (configure.ac): Update.
6508
6509 2011-07-07  Bruno Haible  <bruno@clisp.org>
6510
6511         pthread_sigmask: Make declaration C++ safe.
6512         * lib/signal.in.h: In two special conditions, just do an #include_next.
6513         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6514         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6515         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6516         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6517         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6518         not REPLACE_PTHREAD_MASK.
6519         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6520         not REPLACE_PTHREAD_MASK.
6521         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6522
6523 2011-07-07  Bruno Haible  <bruno@clisp.org>
6524
6525         pthread_sigmask: Fix return value.
6526         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6527         * lib/pthread_sigmask.c: New file.
6528         * modules/pthread_sigmask (Files): Add it.
6529         (configure.ac): Invoke AC_LIBOBJ.
6530
6531 2011-07-07  Eric Blake  <eblake@redhat.com>
6532
6533         getopt: more portable argv creation
6534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6535         const, use char arrays rather than strings.
6536         Suggested by Paul Eggert.
6537
6538 2011-07-07  Bruno Haible  <bruno@clisp.org>
6539
6540         Tests for module 'sigprocmask'.
6541         * modules/sigprocmask-tests: New file.
6542         * tests/test-sigprocmask.c: New file.
6543
6544 2011-07-07  Bruno Haible  <bruno@clisp.org>
6545
6546         float tests: Tweak.
6547         * tests/test-float.c (main): Tweak skip message.
6548
6549 2011-07-07  Eric Blake  <eblake@redhat.com>
6550
6551         getopt: avoid compiler warning during configure
6552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6553         assigning string literals to non-const pointer.
6554
6555         getopt-gnu: avoid crash in glibc getopt
6556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6557         * tests/test-getopt.h (test_getopt): Enhance test.
6558         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6559         * doc/posix-functions/getopt.texi (getopt): Document it.
6560         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6561         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6562         Likewise.
6563
6564 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6565
6566         getopt: handle W; without long options in getopt [BZ #12922]
6567         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6568         but no long options are defined, just return 'W'.
6569
6570 2011-07-07  Bruno Haible  <bruno@clisp.org>
6571
6572         Avoid literal tabs.
6573         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6574         variable containing a tab instead of a literal tab.
6575         Reported by Jim Meyering.
6576
6577 2011-07-07  Bruno Haible  <bruno@clisp.org>
6578
6579         Comments.
6580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6581
6582 2011-07-06  Bruno Haible  <bruno@clisp.org>
6583
6584         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6585         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6586         <winsock2.h>.
6587         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6588         lib/sys_socket.in.h.
6589         (close, gethostname): Hide declarations from <winsock2.h>.
6590         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6591         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6592         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6593         (select): Don't override if gnulib's <sys/select.h> was already
6594         included.
6595         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6596         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6597         setsockopt, shutdown, select): Tweak indentation.
6598
6599 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6600
6601         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6602         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6603         in an application that does not use the sys_select module.
6604
6605 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6606
6607         poll: do not return 0 on timeout=-1
6608         * lib/poll.c: Loop with yield if no events occured
6609
6610 2011-07-06  Eric Blake  <eblake@redhat.com>
6611
6612         pthread_sigmask: always replace when not using pthread
6613         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6614         replacement when using some threading other than pthread.  Fix
6615         logic bug.
6616
6617 2011-07-06  Bruno Haible  <bruno@clisp.org>
6618
6619         Comments.
6620         * m4/printf.m4: Update comments about mingw.
6621
6622 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6623
6624         sys_select: define sigset_t more portably
6625         * lib/sys_select.in.h: Always include <sys/types.h>, since
6626         we now need sigset_t and mingw defines it there.
6627         Include <signal.h> before split inclusion guard, to avoid
6628         mishaps on Solaris, whose <signal.h> eventually includes us.
6629         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6630         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6631         which come from ...
6632         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6633         gl_CHECK_TYPE_SIGSET_T.
6634         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6635         does the real work.
6636         * modules/sys_select (Depends-on): Add 'signal'.
6637
6638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6639         Suggested by Bruno Haible.
6640
6641         pselect: Use pthread_sigmask, not sigprocmask.
6642         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6643         multithreaded apps better than sigprocmask does.
6644         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6645         sigprocmask directly.
6646
6647 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6648
6649         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6650         Don't #undef,  since we don't need any underlying pselect.
6651         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6652         (Depends-on): Add select.
6653         (Link): Add $(LIBSOCKET).
6654         These changes suggested by Bruno Haible.
6655
6656         pselect: document better
6657         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6658         * doc/posix-functions/pselect.texi (pselect): Document new module.
6659
6660         pthread_sigmask: new module
6661         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6662         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6663         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6664         This is done only as a macro; I don't know how well that'll
6665         work for C++.  Move <sys/types.h> include before the include_next,
6666         to avoid mishap on Solaris.
6667         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6668         * modules/signal (Makefile.am): Substitute the check's results.
6669         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6670
6671         test-pselect: new module
6672         * modules/pselect-tests, tests/test-pselect.c: New files.
6673         * tests/test-select.c, tests/test-sys_select-c++.cc:
6674         If TEST_PSELECT is defined, test pselect instead of testing select.
6675
6676         * tests/test-sys_select.c (sigset_t): Test for it, too.
6677         Suggested by Bruno Haible.
6678
6679 2011-07-05  Eric Blake  <eblake@redhat.com>
6680
6681         snprintf: guarantee %1$d, for libintl
6682         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6683         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6684         * doc/posix-functions/snprintf.texi (snprintf): Update.
6685         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6686         * tests/test-snprintf.c (main): Enhance test.
6687         * tests/test-vsnprintf.c (main): Likewise.
6688
6689 2011-07-05  Jim Meyering  <meyering@redhat.com>
6690
6691         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6692         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6693         per Bruno's request, to accommodate this idiom (no space after "#")
6694         even when the function is inside an #if block:
6695         char *
6696         gets (char *s)
6697         #undef gets
6698         {
6699           ...
6700         }
6701
6702 2011-07-04  Jim Meyering  <meyering@redhat.com>
6703
6704         maint: indent with spaces, not TABs, and add a rule to check this
6705         * tests/test-userspec.c: Indent with spaces, not TABs.
6706         * tests/test-argp.c: Likewise.
6707         * tests/test-c-stack2.sh: Likewise.
6708         * tests/test-parse-duration.sh: Likewise
6709         * m4/strtod.m4: Likewise.
6710         * m4/alloca.m4: Likewise.
6711         * m4/pselect.m4: Likewise.
6712         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6713
6714 2011-07-03  Jim Meyering  <meyering@redhat.com>
6715
6716         maint.mk: correct omissions in prohibit_argmatch_without_use check
6717         This rule would mistakenly report that argmatch.h is included without
6718         use even when both the argmatch and invalid_arg macro were used.
6719         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6720         of argmatch and invalid_arg.
6721
6722 2011-07-03  Bruno Haible  <bruno@clisp.org>
6723
6724         Comments about EINTR.
6725         * lib/safe-read.h: Explain the purpose of this module.
6726         * lib/safe-write.h: Likewise.
6727         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6728         module.
6729         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6730         module.
6731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6732
6733 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6734
6735         xnanosleep: Rewrite to use new dtotimespec module.
6736         It has the conversion code that used to be in xnanosleep.
6737         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6738         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6739         (TIME_T_MAX): Remove.
6740         (xnanosleep): Rewrite in terms of dtotimespec.
6741         * modules/xnanosleep (Depends-on): Add dtotimespec.
6742         Remove intprops, stdbool.
6743
6744         timespec-add, timespec-sub: new modules
6745         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6746         * lib/timespec-add.c, lib/timespec-sub.c:
6747         * modules/timespec-add, modules/timespec-sub: New files.
6748
6749         dtotimespec: new module
6750         * lib/timespec.h (dtotimespec): New decl.
6751         * lib/dtotimespec.c, modules/dtotimespec: New files.
6752
6753         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6754
6755         pselect: new module
6756         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6757         (pselect): New decls.
6758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6759         since the standard pselect decl uses 'restrict'.
6760         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6761         HAVE_PSELECT, REPLACE_PSELECT.
6762         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6763         HAVE_PSELECT, REPLACE_PSELECT.
6764         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6765
6766         sys_select: don't depend on sys_socket
6767         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6769         This fix works on GNU and GNU-like platforms, but has not been tested
6770         on native Windows.
6771         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6773         gl_HEADER_SYS_SOCKET.
6774         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6775         gl_PREREQ_SYS_H_WINSOCK2.
6776
6777 2011-06-29  Eric Blake  <eblake@redhat.com>
6778
6779         pipe2: fix C89 compile problem
6780         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6781         Reported by Bruno Haible.
6782
6783         pipe, pipe2: don't corrupt fd on error
6784         * lib/pipe.c (pipe): Leave fd unchanged on error.
6785         * lib/pipe2.c (pipe2): Likewise.
6786         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6787         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6788
6789 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6790
6791         mmap-anon: do not use regular expressions inadvertently
6792         * m4/mmap-anon.m4: Remove trailing period from strings sought
6793         in the output.
6794
6795 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6796
6797         nanosleep: fix integer overflow problem
6798         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6799         arithmetic wraps around on overflow.
6800
6801         nanosleep: simplify carrying
6802         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6803         first call to the underyling nanosleep, not for the last one.
6804         This doesn't fix any bugs, but it simplifies the computation of
6805         the remaining delay.  Found while auditing integer overflow issues.
6806
6807         dup2: remove test for existence of fcntl
6808         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6809         "#if HAVE_FCNTL", in the configure-time test program.
6810         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6811         and therefore speeds up "configure" a bit.  Found while
6812         adding the dup2 module to Emacs.
6813
6814 2011-06-24  Eric Blake  <eblake@redhat.com>
6815
6816         maint.mk: enhance useless header checks
6817         * top/maint.mk (_sc_header_without_use): Check both include
6818         styles.
6819         (sc_prohibit_assert_without_use)
6820         (sc_prohibit_close_stream_without_use)
6821         (sc_prohibit_getopt_without_use)
6822         (sc_prohibit_quotearg_without_use)
6823         (sc_prohibit_quote_without_use)
6824         (sc_prohibit_long_options_without_use)
6825         (sc_prohibit_inttostr_without_use)
6826         (sc_prohibit_ignore_value_without_use)
6827         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6828         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6829         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6830         (sc_prohibit_hash_pjw_without_use)
6831         (sc_prohibit_safe_read_without_use)
6832         (sc_prohibit_argmatch_without_use)
6833         (sc_prohibit_canonicalize_without_use)
6834         (sc_prohibit_root_dev_ino_without_use)
6835         (sc_prohibit_openat_without_use)
6836         (sc_prohibit_c_ctype_without_use)
6837         (sc_prohibit_signal_without_use)
6838         (sc_prohibit_stdio--_without_use)
6839         (sc_prohibit_stdio-safer_without_use)
6840         (sc_prohibit_strings_without_use)
6841         (sc_prohibit_intprops_without_use)
6842         (sc_prohibit_stddef_without_use)
6843         (sc_prohibit_xfreopen_without_use): Update clients.
6844
6845 2011-06-24  Jim Meyering  <meyering@redhat.com>
6846
6847         syntax-check: keep one maint.mk rule in sync with its header
6848         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6849         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6850         I prefer to avoid temporary files here, so use <(...), but that
6851         is not supported by /bin/sh, so...
6852         (SHELL): Define to /bin/bash.
6853
6854 2011-06-24  Eric Blake  <eblake@redhat.com>
6855
6856         maint.mk: update sc_prohibit_intprops_without_use
6857         * top/maint.mk (_intprops_names): Match recent changes.
6858
6859 2011-06-24  Bruno Haible  <bruno@clisp.org>
6860
6861         strerror-override: No-op tweak.
6862         * lib/strerror-override.h (strerror_override): Reorder conditions,
6863         for consistency with lib/strerror-override.c.
6864
6865 2011-06-23  Eric Blake  <eblake@redhat.com>
6866
6867         maint.mk: test further PATH_MAX issues
6868         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6869         (sc_prohibit_path_max_allocation): ...and also test alloca.
6870         Suggested by Jim Meyering.
6871
6872 2011-06-22  Eric Blake  <eblake@redhat.com>
6873
6874         maint.mk: add syntax-check to avoid char[PATH_MAX]
6875         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6876
6877         stat: be robust to PATH_MAX definition
6878         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6879         * modules/stat (Depends-on): Add verify.
6880
6881         link: work around IRIX bug
6882         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6883         * lib/link.c (rpl_link): Work around it.
6884         * tests/test-link.h (test_link): Enhance test.
6885         * doc/posix-functions/link.texi (link): Document the bug.
6886
6887         getopt: silence clang warning
6888         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6889         dereference.
6890         Reported by Gustavo Martin Domato.
6891
6892 2011-06-22  Jim Meyering  <meyering@redhat.com>
6893
6894         bootstrap: do not insert a blank line into each .gitignore file
6895         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6896
6897 2011-06-21  Eric Blake  <eblake@redhat.com>
6898
6899         perror: test for output mismatch
6900         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6901         perror on IRIX.
6902
6903         strerror_r: fix OpenBSD behavior on out-of-range
6904         * lib/strerror_r.c (strerror_r): Always use maximal string.
6905         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6906
6907         strerror_r: fix OpenBSD behavior on 0
6908         * lib/strerror-override.c (strerror_override): Also override 0
6909         when needed.
6910         * lib/strerror-override.h (strerror_override): Likewise.
6911         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6912         earlier.
6913         * lib/strerror_r.c (strerror_r): Likewise.
6914         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6915         behavior...
6916         (gl_FUNC_STRERROR_0): ...into new macro.
6917         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6918         is overridden.
6919         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6920         * modules/strerror-override (Files): Add strerror.m4.
6921         (configure.ac): Also provide override for 0 when needed.
6922         * doc/posix-functions/strerror.texi (strerror): Document this.
6923         * doc/posix-functions/perror.texi (perror): Likewise.
6924
6925         perror: adjust array size
6926         * modules/perror (Depends-on): Add strerror-override.
6927         * lib/perror.c (perror): Use it to avoid magic number.
6928
6929         strerror-override: reduce size
6930         * lib/strerror-override.c (strerror_override): Use fewer lines.
6931
6932 2011-06-20  Bruno Haible  <bruno@clisp.org>
6933
6934         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6935         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6936
6937 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6938
6939         alloca: port to compilers that can optimize like GCC 4.6.0
6940         * lib/alloca.c (find_stack_direction): New signature, taken from
6941         Autoconf git.  This works with GCC 4.6.0.  This code should never
6942         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6943         be used with other compilers that optimize as well as GCC 4.6.0 does.
6944         (alloca): Adjust to new signature.
6945         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6946         New macro, which patches Autoconf in a similar way.
6947
6948         c-stack: stop worrying about stack direction
6949         * lib/c-stack.c (find_stack_direction): Remove.
6950         (segv_handler): Don't worry about stack direction growth, as it's
6951         too much of a pain to configure this correctly, given how compilers
6952         are optimizing-away our stack-growth detection code.  Instead, assume
6953         that any access to just before or just after the stack is OK.
6954         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6955         Don't require AC_FUNC_ALLOCA; no longer needed.
6956
6957 2011-06-20  Eric Blake  <eblake@redhat.com>
6958
6959         test-stat: don't allocate PATH_MAX bytes
6960         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6961         PATH_MAX-sized buffer.
6962         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6963         * modules/stat-tests (Depends-on): Likewise.
6964         * tests/test-fstatat.c (includes): Drop pathmax.h.
6965         * tests/test-stat.c (includes): Likewise.
6966         Reported by Bruno Haible.
6967
6968 2011-06-20  Bruno Haible  <bruno@clisp.org>
6969
6970         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6971         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6972         * lib/float.c: New file.
6973         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6974         REPLACE_FLOAT_LDBL.
6975         * modules/float (Files): Add lib/float.c.
6976         (configure.ac): Invoke AC_LIBOBJ.
6977         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6978
6979 2011-06-20  Bruno Haible  <bruno@clisp.org>
6980
6981         Tests for module 'float'.
6982         * modules/float-tests: New file.
6983         * tests/test-float.c: New file.
6984
6985 2011-06-19  Bruno Haible  <bruno@clisp.org>
6986
6987         isinf: Coding style.
6988         * lib/isinf.c: Use GNU coding style.
6989
6990 2011-06-19  Bruno Haible  <bruno@clisp.org>
6991
6992         linkat test: Avoid test failure on AIX 7.1.
6993         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6994         * tests/test-link.h (test_link): Likewise.
6995
6996 2011-06-19  Bruno Haible  <bruno@clisp.org>
6997
6998         pread test: Avoid test failure on OpenBSD 4.9.
6999         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7000
7001 2011-06-19  Bruno Haible  <bruno@clisp.org>
7002
7003         sprintf-posix: Fix test failure on AIX 7.1.
7004         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7005         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7006         on AIX.
7007         * doc/posix-functions/fprintf.texi: Likewise.
7008         * doc/posix-functions/printf.texi: Likewise.
7009         * doc/posix-functions/snprintf.texi: Likewise.
7010         * doc/posix-functions/sprintf.texi: Likewise.
7011         * doc/posix-functions/vdprintf.texi: Likewise.
7012         * doc/posix-functions/vfprintf.texi: Likewise.
7013         * doc/posix-functions/vprintf.texi: Likewise.
7014         * doc/posix-functions/vsnprintf.texi: Likewise.
7015         * doc/posix-functions/vsprintf.texi: Likewise.
7016
7017 2011-06-19  Bruno Haible  <bruno@clisp.org>
7018
7019         roundl-ieee: Fix test failure on AIX 7.1.
7020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7021         * doc/posix-functions/roundl.texi: Mention problem with negative
7022         arguments.
7023
7024 2011-06-19  Bruno Haible  <bruno@clisp.org>
7025
7026         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7027         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7028         * doc/posix-functions/round.texi: Mention problem with negative
7029         arguments.
7030         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7031
7032 2011-06-19  Bruno Haible  <bruno@clisp.org>
7033
7034         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7035         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7036         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7037         * doc/posix-functions/roundf.texi: Mention problem with negative
7038         arguments.
7039         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7040
7041 2011-06-19  Bruno Haible  <bruno@clisp.org>
7042
7043         ceilf-ieee: Work around bug on MacOS X 10.5.
7044         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7045
7046         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7047         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7048         IEEE compliant, avoid compiler optimizations.
7049         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7050         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7051         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7052         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7053         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7054         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7055         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7057         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7058         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7059
7060 2011-06-19  Bruno Haible  <bruno@clisp.org>
7061
7062         ceilf-ieee: Work around bug on AIX 7.1.
7063         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7064         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7065
7066 2011-06-19  Bruno Haible  <bruno@clisp.org>
7067
7068         ceil-ieee: Work around bug on AIX 7.1.
7069         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7070         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7071
7072 2011-06-18  Bruno Haible  <bruno@clisp.org>
7073
7074         fsync test: Avoid test failure on MacOS X and AIX.
7075         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7076         EINVAL.
7077
7078 2011-06-18  Bruno Haible  <bruno@clisp.org>
7079
7080         openat, fdopendir tests: Fix link errors.
7081         * modules/openat-tests (Depends-on): Add progname.
7082         * modules/fdopendir-tests (Depends-on): Likewise.
7083         * tests/test-fchownat.c: Include progname.h.
7084         (main): Call set_program_name.
7085         * tests/test-fstatat.c: Include progname.h.
7086         (main): Call set_program_name.
7087         * tests/test-mkdirat.c: Include progname.h.
7088         (main): Call set_program_name.
7089         * tests/test-openat.c: Include progname.h.
7090         (main): Call set_program_name.
7091         * tests/test-unlinkat.c: Include progname.h.
7092         (main): Call set_program_name.
7093         * tests/test-fdopendir.c: Include progname.h.
7094         (main): Call set_program_name.
7095
7096 2011-06-18  Bruno Haible  <bruno@clisp.org>
7097
7098         Doc update.
7099         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7100         HP-UX.
7101         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7102
7103 2011-06-18  Bruno Haible  <bruno@clisp.org>
7104
7105         getcwd tests: Avoid compilation error on HP-UX 11.31.
7106         * modules/getcwd-tests (Depends-on): Add pathmax.
7107         * tests/test-getcwd.c: Include pathmax.h.
7108
7109 2011-06-18  Bruno Haible  <bruno@clisp.org>
7110
7111         isfinite, isinf: Fix link error on AIX 6 and 7.
7112         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7113         needed, also test the macro with a 'float' argument.
7114         * m4/isinf.m4 (gl_ISINF): Likewise.
7115
7116 2011-06-18  Bruno Haible  <bruno@clisp.org>
7117
7118         getloadavg: Don't clobber LIBS. Regression from previous commit.
7119         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7120         AC_CHECK_LIB from here...
7121         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7122         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7123         gl_func_getloadavg_done.
7124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7125
7126 2011-06-18  Bruno Haible  <bruno@clisp.org>
7127
7128         clean-temp: Improve documentation.
7129         * lib/clean-temp.h: Explain better how to use this module.
7130         Reported by John Darrington <john@darrington.wattle.id.au>.
7131
7132 2011-06-17  Bruno Haible  <bruno@clisp.org>
7133
7134         pread, pwrite: Avoid cc warning on AIX.
7135         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7136         (pwrite): Likewise.
7137
7138 2011-06-17  Bruno Haible  <bruno@clisp.org>
7139
7140         spawn-pipe tests: Fix link error.
7141         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7143
7144 2011-06-17  Bruno Haible  <bruno@clisp.org>
7145
7146         Tests: Remove unnecessary dependency.
7147         * modules/canonicalize-tests (Depends-on): Remove progname.
7148         * modules/chown-tests (Depends-on): Likewise.
7149         * modules/dirname-tests (Depends-on): Likewise.
7150         * modules/fdopendir-tests (Depends-on): Likewise.
7151         * modules/fdutimensat-tests (Depends-on): Likewise.
7152         * modules/hash-tests (Depends-on): Likewise.
7153         * modules/lchown-tests (Depends-on): Likewise.
7154         * modules/linkat-tests (Depends-on): Likewise.
7155         * modules/renameat-tests (Depends-on): Likewise.
7156         * modules/spawn-pipe-tests (Depends-on): Likewise.
7157         * modules/utimensat-tests (Depends-on): Likewise.
7158
7159 2011-06-17  Bruno Haible  <bruno@clisp.org>
7160
7161         spawn-pipe tests: Fix link error.
7162         * tests/test-spawn-pipe-child.c: Undefine fflush.
7163
7164 2011-06-17  Bruno Haible  <bruno@clisp.org>
7165
7166         Fix tests link errors.
7167         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7168         * modules/chown-tests (Makefile.am): Don't link test-chown with
7169         LIBINTL.
7170         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7171         LIBINTL.
7172         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7173         LIBINTL.
7174         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7175         LIBINTL.
7176
7177 2011-06-16  Bruno Haible  <bruno@clisp.org>
7178
7179         crypto/gc-sha1: Fix recent regression.
7180         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7181         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7182
7183         crypto/gc-md5: Fix recent regression.
7184         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7185
7186         crypto/gc-md4: Fix recent regression.
7187         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7188         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7189
7190         crypto/gc-arctwo: Fix recent regression.
7191         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7192         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7193
7194         crypto/gc-rijndael: Fix recent regression.
7195         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7196         (configure.ac): Invoke AC_LIBOBJ here.
7197         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7199
7200         crypto/gc-hmac-sha1: Fix recent regression.
7201         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7202         (configure.ac): Invoke AC_LIBOBJ here.
7203         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7205
7206         crypto/gc-hmac-md5: Fix recent regression.
7207         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7208         (configure.ac): Invoke AC_LIBOBJ here.
7209         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7210         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7211
7212         crypto/gc-des: Fix recent regression.
7213         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7214         (configure.ac): Invoke AC_LIBOBJ here.
7215         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7217
7218         crypto/gc-arcfour: Fix recent regression.
7219         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7220         (configure.ac): Invoke AC_LIBOBJ here.
7221         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7223
7224 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7225
7226         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7227         After the 2011-05-21 change, this macro requires
7228         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7229         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7230
7231 2011-06-16  Bruno Haible  <bruno@clisp.org>
7232
7233         fprintftime: Move AC_LIBOBJ invocations to module description.
7234         * m4/fprintftime.m4: Remove file.
7235         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7236         (configure.ac): Remove gl_FPRINTFTIME call.
7237         (Makefile.am): Augment lib_SOURCES.
7238         Reported by Jim Meyering.
7239
7240 2011-06-16  Bruno Haible  <bruno@clisp.org>
7241
7242         tmpfile-safer: Finish 2011-05-23 commit.
7243         * m4/stdio-safer.m4: Really remove file.
7244         Reported by Jim Meyering.
7245
7246 2011-06-16  Bruno Haible  <bruno@clisp.org>
7247
7248         syntax-check: Fix typo.
7249         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7250         printf-posix.m4.
7251         Reported by Jim Meyering.
7252
7253 2011-06-13  Jim Meyering  <meyering@redhat.com>
7254
7255         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7256         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7257
7258 2011-05-23  Bruno Haible  <bruno@clisp.org>
7259
7260         yesno: Move AC_LIBOBJ invocations to module description.
7261         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7262         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7263
7264 2011-05-23  Bruno Haible  <bruno@clisp.org>
7265
7266         xstrtol: Move AC_LIBOBJ invocations to module description.
7267         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7268         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         xstrtold: Move AC_LIBOBJ invocations to module description.
7273         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7274         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         xstrtod: Move AC_LIBOBJ invocations to module description.
7279         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7280         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         xnanosleep: Move AC_LIBOBJ invocations to module description.
7285         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7286         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         xgetcwd: Move AC_LIBOBJ invocations to module description.
7291         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7292         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7293
7294 2011-05-23  Bruno Haible  <bruno@clisp.org>
7295
7296         xalloc: Move AC_LIBOBJ invocations to module description.
7297         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7298         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7299
7300 2011-05-23  Bruno Haible  <bruno@clisp.org>
7301
7302         write-any-file: Move AC_LIBOBJ invocations to module description.
7303         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7304         invocation.
7305         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7306
7307 2011-05-23  Bruno Haible  <bruno@clisp.org>
7308
7309         utimens: Move AC_LIBOBJ invocations to module description.
7310         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7311         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7312
7313 2011-05-23  Bruno Haible  <bruno@clisp.org>
7314
7315         utimecmp: Move AC_LIBOBJ invocations to module description.
7316         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7317         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7318
7319 2011-05-23  Bruno Haible  <bruno@clisp.org>
7320
7321         userspec: Move AC_LIBOBJ invocations to module description.
7322         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7323         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7324
7325 2011-05-23  Bruno Haible  <bruno@clisp.org>
7326
7327         unlinkdir: Move AC_LIBOBJ invocations to module description.
7328         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7329         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7330
7331 2011-05-23  Bruno Haible  <bruno@clisp.org>
7332
7333         unistd-safer: Move AC_LIBOBJ invocations to module description.
7334         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7335         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7336
7337 2011-05-23  Bruno Haible  <bruno@clisp.org>
7338
7339         tempname: Move AC_LIBOBJ invocations to module description.
7340         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7341         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7342
7343 2011-05-23  Bruno Haible  <bruno@clisp.org>
7344
7345         strftime: Move AC_LIBOBJ invocations to module description.
7346         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7347         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7348
7349 2011-05-23  Bruno Haible  <bruno@clisp.org>
7350
7351         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7352         * m4/stdlib-safer.m4: Remove file.
7353         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7354         (configure.ac): Remove gl_STDLIB_SAFER call.
7355         (Makefile.am): Augment lib_SOURCES.
7356
7357 2011-05-23  Bruno Haible  <bruno@clisp.org>
7358
7359         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7360         * m4/stdio-safer.m4: Remove file.
7361         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7362         (configure.ac): Remove gl_TMPFILE_SAFER call.
7363         (Makefile.am): Augment lib_SOURCES.
7364
7365 2011-05-23  Bruno Haible  <bruno@clisp.org>
7366
7367         popen-safer: Move AC_LIBOBJ invocations to module description.
7368         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7369         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7370         (configure.ac): Remove gl_POPEN_SAFER call.
7371         (Makefile.am): Augment lib_SOURCES.
7372
7373 2011-05-23  Bruno Haible  <bruno@clisp.org>
7374
7375         freopen-safer: Move AC_LIBOBJ invocations to module description.
7376         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7377         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7378         (configure.ac): Remove gl_FREOPEN_SAFER call.
7379         (Makefile.am): Augment lib_SOURCES.
7380
7381 2011-05-23  Bruno Haible  <bruno@clisp.org>
7382
7383         fopen-safer: Move AC_LIBOBJ invocations to module description.
7384         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7385         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7386         (configure.ac): Remove gl_FOPEN_SAFER call.
7387         (Makefile.am): Augment lib_SOURCES.
7388
7389 2011-05-23  Bruno Haible  <bruno@clisp.org>
7390
7391         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7392         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7393         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7394
7395 2011-05-23  Bruno Haible  <bruno@clisp.org>
7396
7397         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7398         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7399         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7400
7401 2011-05-23  Bruno Haible  <bruno@clisp.org>
7402
7403         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7404         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7405         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7406
7407 2011-05-23  Bruno Haible  <bruno@clisp.org>
7408
7409         settime: Move AC_LIBOBJ invocations to module description.
7410         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7411         * modules/settime (Makefile.am): Augment lib_SOURCES.
7412
7413 2011-05-23  Bruno Haible  <bruno@clisp.org>
7414
7415         savedir: Move AC_LIBOBJ invocations to module description.
7416         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7417         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7418
7419 2011-05-23  Bruno Haible  <bruno@clisp.org>
7420
7421         save-cwd: Move AC_LIBOBJ invocations to module description.
7422         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7423         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7424
7425 2011-05-23  Bruno Haible  <bruno@clisp.org>
7426
7427         same: Move AC_LIBOBJ invocations to module description.
7428         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7429         * modules/same (Makefile.am): Augment lib_SOURCES.
7430
7431 2011-05-23  Bruno Haible  <bruno@clisp.org>
7432
7433         safe-write: Move AC_LIBOBJ invocations to module description.
7434         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7435         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7436         instead of gl_SAFE_WRITE.
7437         (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         safe-read: Move AC_LIBOBJ invocations to module description.
7442         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7443         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7444         of gl_SAFE_READ.
7445         (Makefile.am): Augment lib_SOURCES.
7446
7447 2011-05-23  Bruno Haible  <bruno@clisp.org>
7448
7449         safe-alloc: Move AC_LIBOBJ invocations to module description.
7450         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7451         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7452
7453 2011-05-23  Bruno Haible  <bruno@clisp.org>
7454
7455         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7456         * m4/rijndael.m4: Remove file.
7457         * modules/crypto/rijndael (Files): Remove it.
7458         (configure.ac): Remove gl_RIJNDAEL call.
7459         (Makefile.am): Augment lib_SOURCES.
7460
7461 2011-05-23  Bruno Haible  <bruno@clisp.org>
7462
7463         readtokens: Move AC_LIBOBJ invocations to module description.
7464         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7465         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7466
7467 2011-05-23  Bruno Haible  <bruno@clisp.org>
7468
7469         read-file: Move AC_LIBOBJ invocations to module description.
7470         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7471         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7472         of gl_FUNC_READ_FILE.
7473         (Makefile.am): Augment lib_SOURCES.
7474
7475 2011-05-23  Bruno Haible  <bruno@clisp.org>
7476
7477         quotearg: Move AC_LIBOBJ invocations to module description.
7478         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7479         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7480
7481 2011-05-23  Bruno Haible  <bruno@clisp.org>
7482
7483         quote: Move AC_LIBOBJ invocations to module description.
7484         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7485         * modules/quote (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         posixver: Move AC_LIBOBJ invocations to module description.
7490         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7491         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         posixtm: Move AC_LIBOBJ invocations to module description.
7496         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7497         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         physmem: Move AC_LIBOBJ invocations to module description.
7502         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7503         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7508         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7509         invocation.
7510         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7511
7512 2011-05-23  Bruno Haible  <bruno@clisp.org>
7513
7514         mpsort: Move AC_LIBOBJ invocations to module description.
7515         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7516         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7517
7518 2011-05-23  Bruno Haible  <bruno@clisp.org>
7519
7520         modechange: Move AC_LIBOBJ invocations to module description.
7521         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7522         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7523
7524 2011-05-23  Bruno Haible  <bruno@clisp.org>
7525
7526         mkdir-p: Move AC_LIBOBJ invocations to module description.
7527         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7528         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7529
7530 2011-05-23  Bruno Haible  <bruno@clisp.org>
7531
7532         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7533         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7534         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7535
7536 2011-05-23  Bruno Haible  <bruno@clisp.org>
7537
7538         mgetgroups: Move AC_LIBOBJ invocations to module description.
7539         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7540         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7541
7542 2011-05-23  Bruno Haible  <bruno@clisp.org>
7543
7544         memxor: Move AC_LIBOBJ invocations to module description.
7545         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7546         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7547
7548 2011-05-23  Bruno Haible  <bruno@clisp.org>
7549
7550         memcoll: Move AC_LIBOBJ invocations to module description.
7551         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7552         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7553
7554 2011-05-23  Bruno Haible  <bruno@clisp.org>
7555
7556         memcasecmp: Move AC_LIBOBJ invocations to module description.
7557         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7558         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7559
7560 2011-05-23  Bruno Haible  <bruno@clisp.org>
7561
7562         crypto/md5: Move AC_LIBOBJ invocations to module description.
7563         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7564         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7565
7566 2011-05-23  Bruno Haible  <bruno@clisp.org>
7567
7568         crypto/md4: Move AC_LIBOBJ invocations to module description.
7569         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7570         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7571
7572 2011-05-23  Bruno Haible  <bruno@clisp.org>
7573
7574         crypto/md2: Move AC_LIBOBJ invocations to module description.
7575         * m4/md2.m4: Remove file.
7576         * modules/crypto/md2 (Files): Remove it.
7577         (configure.ac): Remove gl_MD2 call.
7578         (Makefile.am): Augment lib_SOURCES.
7579
7580 2011-05-23  Bruno Haible  <bruno@clisp.org>
7581
7582         long-options: Move AC_LIBOBJ invocations to module description.
7583         * m4/long-options.m4: Remove file.
7584         * modules/long-options (Files): Remove it.
7585         (configure.ac): Remove gl_LONG_OPTIONS call.
7586         (Makefile.am): Augment lib_SOURCES.
7587
7588 2011-05-23  Bruno Haible  <bruno@clisp.org>
7589
7590         i-ring: Move AC_LIBOBJ invocations to module description.
7591         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7592         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7593
7594 2011-05-23  Bruno Haible  <bruno@clisp.org>
7595
7596         idcache: Move AC_LIBOBJ invocations to module description.
7597         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7598         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7599
7600 2011-05-23  Bruno Haible  <bruno@clisp.org>
7601
7602         human: Move AC_LIBOBJ invocations to module description.
7603         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7604         * modules/human (Makefile.am): Augment lib_SOURCES.
7605
7606 2011-05-23  Bruno Haible  <bruno@clisp.org>
7607
7608         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7609         * m4/hmac-sha1.m4: Remove file.
7610         * modules/crypto/hmac-sha1 (Files): Remove it.
7611         (configure.ac): Remove gl_HMAC_SHA1 call.
7612         (Makefile.am): Augment lib_SOURCES.
7613
7614 2011-05-23  Bruno Haible  <bruno@clisp.org>
7615
7616         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7617         * m4/hmac-md5.m4: Remove file.
7618         * modules/crypto/hmac-md5 (Files): Remove it.
7619         (configure.ac): Remove gl_HMAC_MD5 call.
7620         (Makefile.am): Augment lib_SOURCES.
7621
7622 2011-05-23  Bruno Haible  <bruno@clisp.org>
7623
7624         hash: Move AC_LIBOBJ invocations to module description.
7625         * m4/hash.m4: Remove file.
7626         * modules/hash (Files): Remove it.
7627         (configure.ac): Remove gl_HASH call.
7628         (Makefile.am): Augment lib_SOURCES.
7629
7630 2011-05-23  Bruno Haible  <bruno@clisp.org>
7631
7632         hard-locale: Move AC_LIBOBJ invocations to module description.
7633         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7634         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7635
7636 2011-05-23  Bruno Haible  <bruno@clisp.org>
7637
7638         getugroups: Move AC_LIBOBJ invocations to module description.
7639         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7640         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7641
7642 2011-05-23  Bruno Haible  <bruno@clisp.org>
7643
7644         gettime: Move AC_LIBOBJ invocations to module description.
7645         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7646         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7647
7648 2011-05-23  Bruno Haible  <bruno@clisp.org>
7649
7650         getndelim2: Move AC_LIBOBJ invocations to module description.
7651         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7652         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7653
7654 2011-05-23  Bruno Haible  <bruno@clisp.org>
7655
7656         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7657         * m4/gc-pbkdf2-sha1.m4: Remove file.
7658         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7659         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7660         (Makefile.am): Augment lib_SOURCES.
7661
7662 2011-05-23  Bruno Haible  <bruno@clisp.org>
7663
7664         fts: Move AC_LIBOBJ invocations to module description.
7665         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7666         * modules/fts (configure.ac): ... to here.
7667
7668 2011-05-23  Bruno Haible  <bruno@clisp.org>
7669
7670         file-type: Move AC_LIBOBJ invocations to module description.
7671         * m4/file-type.m4: Remove file.
7672         * modules/file-type (Files): Remove it.
7673         (configure.ac): Remove gl_FILE_TYPE call.
7674         (Makefile.am): Augment lib_SOURCES.
7675
7676 2011-05-23  Bruno Haible  <bruno@clisp.org>
7677
7678         filenamecat*: Respect rules for use of AC_LIBOBJ.
7679         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7680         Remove AC_LIBOBJ invocation.
7681         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7682         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7683
7684 2011-05-23  Bruno Haible  <bruno@clisp.org>
7685
7686         filemode: Move AC_LIBOBJ invocations to module description.
7687         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7688         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7689
7690 2011-05-23  Bruno Haible  <bruno@clisp.org>
7691
7692         openat-safer: Move AC_LIBOBJ invocations to module description.
7693         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7694         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7695
7696 2011-05-23  Bruno Haible  <bruno@clisp.org>
7697
7698         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7699         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7700         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7701
7702 2011-05-23  Bruno Haible  <bruno@clisp.org>
7703
7704         exclude: Move AC_LIBOBJ invocations to module description.
7705         * m4/exclude.m4: Remove file.
7706         * modules/exclude (Files): Remove it.
7707         (configure.ac): Remove gl_EXCLUDE call.
7708         (Makefile.am): Augment lib_SOURCES.
7709
7710 2011-05-23  Bruno Haible  <bruno@clisp.org>
7711
7712         dirname*: Respect rules for use of AC_LIBOBJ.
7713         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7714         invocations.
7715         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7716         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7717
7718 2011-05-23  Bruno Haible  <bruno@clisp.org>
7719
7720         dirent-safer: Move AC_LIBOBJ invocations to module description.
7721         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7722         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7723
7724 2011-05-23  Bruno Haible  <bruno@clisp.org>
7725
7726         crypto/des: Move AC_LIBOBJ invocations to module description.
7727         * m4/des.m4: Remove file.
7728         * modules/crypto/des (Files): Remove it.
7729         (configure.ac): Remove gl_DES call.
7730         (Makefile.am): Augment lib_SOURCES.
7731
7732 2011-05-23  Bruno Haible  <bruno@clisp.org>
7733
7734         cycle-check: Move AC_LIBOBJ invocations to module description.
7735         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7736         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7737
7738 2011-05-23  Bruno Haible  <bruno@clisp.org>
7739
7740         c-strtold: Move AC_LIBOBJ invocations to module description.
7741         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7742         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7743
7744 2011-05-23  Bruno Haible  <bruno@clisp.org>
7745
7746         c-strtod: Move AC_LIBOBJ invocations to module description.
7747         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7748         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7749
7750 2011-05-23  Bruno Haible  <bruno@clisp.org>
7751
7752         crc: Move AC_LIBOBJ invocations to module description.
7753         * m4/crc.m4: Remove file.
7754         * modules/crc (Files): Remove it.
7755         (configure.ac): Remove gl_CRC call.
7756         (Makefile.am): Augment lib_SOURCES.
7757
7758 2011-05-23  Bruno Haible  <bruno@clisp.org>
7759
7760         close-stream: Move AC_LIBOBJ invocations to module description.
7761         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7762         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7763
7764 2011-05-23  Bruno Haible  <bruno@clisp.org>
7765
7766         closeout: Move AC_LIBOBJ invocations to module description.
7767         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7768         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7769
7770 2011-05-23  Bruno Haible  <bruno@clisp.org>
7771
7772         closein: Move AC_LIBOBJ invocations to module description.
7773         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7774         * modules/closein (Makefile.am): Augment lib_SOURCES.
7775
7776 2011-05-23  Bruno Haible  <bruno@clisp.org>
7777
7778         cloexec: Move AC_LIBOBJ invocations to module description.
7779         * m4/cloexec.m4: Remove file.
7780         * modules/cloexec (Files): Remove it.
7781         (configure.ac): Remove gl_CLOEXEC call.
7782         (Makefile.am): Augment lib_SOURCES.
7783
7784 2011-05-23  Bruno Haible  <bruno@clisp.org>
7785
7786         check-version: Move AC_LIBOBJ invocations to module description.
7787         * m4/check-version.m4: Remove file.
7788         * modules/check-version (Files): Remove it.
7789         (configure.ac): Remove gl_CHECK_VERSION call.
7790         (Makefile.am): Augment lib_SOURCES.
7791
7792 2011-05-23  Bruno Haible  <bruno@clisp.org>
7793
7794         chdir-safer: Move AC_LIBOBJ invocations to module description.
7795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7796         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7797
7798 2011-05-23  Bruno Haible  <bruno@clisp.org>
7799
7800         canonicalize: Move AC_LIBOBJ invocations to module description.
7801         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7802         AC_LIBOBJ invocation.
7803         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7804
7805 2011-05-23  Bruno Haible  <bruno@clisp.org>
7806
7807         canon-host: Move AC_LIBOBJ invocations to module description.
7808         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7809         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7810         instead of gl_CANON_HOST.
7811         (Makefile.am): Augment lib_SOURCES.
7812
7813 2011-05-23  Bruno Haible  <bruno@clisp.org>
7814
7815         backupfile: Move AC_LIBOBJ invocations to module description.
7816         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7817         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7818
7819 2011-05-23  Bruno Haible  <bruno@clisp.org>
7820
7821         argmatch: Move AC_LIBOBJ invocations to module description.
7822         * m4/argmatch.m4: Remove file.
7823         * modules/argmatch (Files): Remove it.
7824         (configure.ac): Remove gl_ARGMATCH call.
7825         (Makefile.am): Augment lib_SOURCES.
7826
7827 2011-05-23  Bruno Haible  <bruno@clisp.org>
7828
7829         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7830         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7831         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7832
7833 2011-05-23  Bruno Haible  <bruno@clisp.org>
7834
7835         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7836         * m4/arcfour.m4: Remove file.
7837         * modules/crypto/arcfour (Files): Remove it.
7838         (configure.ac): Remove gl_ARCFOUR call.
7839         (Makefile.am): Augment lib_SOURCES.
7840
7841 2011-05-22  Bruno Haible  <bruno@clisp.org>
7842
7843         write: Move AC_LIBOBJ invocations to module description.
7844         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7845         * modules/write (configure.ac): ... to here.
7846
7847 2011-05-22  Bruno Haible  <bruno@clisp.org>
7848
7849         wmemset: Move AC_LIBOBJ invocations to module description.
7850         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7851         here...
7852         * modules/wmemset (configure.ac): ... to here.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         wmemmove: Move AC_LIBOBJ invocations to module description.
7857         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7858         here...
7859         * modules/wmemmove (configure.ac): ... to here.
7860
7861 2011-05-22  Bruno Haible  <bruno@clisp.org>
7862
7863         wmemcpy: Move AC_LIBOBJ invocations to module description.
7864         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7865         here...
7866         * modules/wmemcpy (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         wmemcmp: Move AC_LIBOBJ invocations to module description.
7871         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7872         here...
7873         * modules/wmemcmp (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         wmemchr: Move AC_LIBOBJ invocations to module description.
7878         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7879         here...
7880         * modules/wmemchr (configure.ac): ... to here.
7881
7882 2011-05-22  Bruno Haible  <bruno@clisp.org>
7883
7884         wcswidth: Move AC_LIBOBJ invocations to module description.
7885         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7886         here...
7887         * modules/wcswidth (configure.ac): ... to here.
7888
7889 2011-05-22  Bruno Haible  <bruno@clisp.org>
7890
7891         wcwidth: Respect rules for use of AC_LIBOBJ.
7892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7893         invocation from here...
7894         * modules/wcwidth (configure.ac): ... to here.
7895         (Depends-on): Update conditions.
7896
7897 2011-05-22  Bruno Haible  <bruno@clisp.org>
7898
7899         wctype: Move AC_LIBOBJ invocations to module description.
7900         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7901         invocation from here...
7902         * modules/wctype (configure.ac): ... to here.
7903         (Depends-on): Update conditions.
7904
7905 2011-05-22  Bruno Haible  <bruno@clisp.org>
7906
7907         wctrans: Move AC_LIBOBJ invocations to module description.
7908         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7909         invocation from here...
7910         * modules/wctrans (configure.ac): ... to here.
7911
7912 2011-05-22  Bruno Haible  <bruno@clisp.org>
7913
7914         wctomb: Move AC_LIBOBJ invocations to module description.
7915         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7916         invocations from here...
7917         * modules/wctomb (configure.ac): ... to here.
7918
7919 2011-05-22  Bruno Haible  <bruno@clisp.org>
7920
7921         wctob: Move AC_LIBOBJ invocations to module description.
7922         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7923         gl_PREREQ_WCTOB invocations from here...
7924         * modules/wctob (configure.ac): ... to here.
7925         (Depends-on): Update conditions.
7926
7927 2011-05-22  Bruno Haible  <bruno@clisp.org>
7928
7929         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7930         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7931         here...
7932         * modules/wcsxfrm (configure.ac): ... to here.
7933
7934 2011-05-22  Bruno Haible  <bruno@clisp.org>
7935
7936         wcstok: Move AC_LIBOBJ invocations to module description.
7937         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7938         * modules/wcstok (configure.ac): ... to here.
7939
7940 2011-05-22  Bruno Haible  <bruno@clisp.org>
7941
7942         wcsstr: Move AC_LIBOBJ invocations to module description.
7943         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7944         * modules/wcsstr (configure.ac): ... to here.
7945
7946 2011-05-22  Bruno Haible  <bruno@clisp.org>
7947
7948         wcsspn: Move AC_LIBOBJ invocations to module description.
7949         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7950         * modules/wcsspn (configure.ac): ... to here.
7951
7952 2011-05-22  Bruno Haible  <bruno@clisp.org>
7953
7954         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7955         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7956         gl_PREREQ_WCSRTOMBS invocations from here...
7957         * modules/wcsrtombs (configure.ac): ... to here.
7958
7959 2011-05-22  Bruno Haible  <bruno@clisp.org>
7960
7961         wcsrchr: Move AC_LIBOBJ invocations to module description.
7962         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7963         here...
7964         * modules/wcsrchr (configure.ac): ... to here.
7965
7966 2011-05-22  Bruno Haible  <bruno@clisp.org>
7967
7968         wcspbrk: Move AC_LIBOBJ invocations to module description.
7969         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7970         here...
7971         * modules/wcspbrk (configure.ac): ... to here.
7972
7973 2011-05-22  Bruno Haible  <bruno@clisp.org>
7974
7975         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7976         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7977         gl_PREREQ_WCSNRTOMBS invocations from here...
7978         * modules/wcsnrtombs (configure.ac): ... to here.
7979
7980 2011-05-22  Bruno Haible  <bruno@clisp.org>
7981
7982         wcsnlen: Move AC_LIBOBJ invocations to module description.
7983         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7984         here...
7985         * modules/wcsnlen (configure.ac): ... to here.
7986
7987 2011-05-22  Bruno Haible  <bruno@clisp.org>
7988
7989         wcsncpy: Move AC_LIBOBJ invocations to module description.
7990         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7991         here...
7992         * modules/wcsncpy (configure.ac): ... to here.
7993
7994 2011-05-22  Bruno Haible  <bruno@clisp.org>
7995
7996         wcsncmp: Move AC_LIBOBJ invocations to module description.
7997         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7998         here...
7999         * modules/wcsncmp (configure.ac): ... to here.
8000
8001 2011-05-22  Bruno Haible  <bruno@clisp.org>
8002
8003         wcsncat: Move AC_LIBOBJ invocations to module description.
8004         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8005         here...
8006         * modules/wcsncat (configure.ac): ... to here.
8007
8008 2011-05-22  Bruno Haible  <bruno@clisp.org>
8009
8010         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8011         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8012         from here...
8013         * modules/wcsncasecmp (configure.ac): ... to here.
8014
8015 2011-05-22  Bruno Haible  <bruno@clisp.org>
8016
8017         wcslen: Move AC_LIBOBJ invocations to module description.
8018         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8019         * modules/wcslen (configure.ac): ... to here.
8020
8021 2011-05-22  Bruno Haible  <bruno@clisp.org>
8022
8023         wcsdup: Move AC_LIBOBJ invocations to module description.
8024         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8025         * modules/wcsdup (configure.ac): ... to here.
8026
8027 2011-05-22  Bruno Haible  <bruno@clisp.org>
8028
8029         wcscspn: Move AC_LIBOBJ invocations to module description.
8030         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8031         here...
8032         * modules/wcscspn (configure.ac): ... to here.
8033
8034 2011-05-22  Bruno Haible  <bruno@clisp.org>
8035
8036         wcscpy: Move AC_LIBOBJ invocations to module description.
8037         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8038         * modules/wcscpy (configure.ac): ... to here.
8039
8040 2011-05-22  Bruno Haible  <bruno@clisp.org>
8041
8042         wcscoll: Move AC_LIBOBJ invocations to module description.
8043         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8044         here...
8045         * modules/wcscoll (configure.ac): ... to here.
8046
8047 2011-05-22  Bruno Haible  <bruno@clisp.org>
8048
8049         wcscmp: Move AC_LIBOBJ invocations to module description.
8050         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8051         * modules/wcscmp (configure.ac): ... to here.
8052
8053 2011-05-22  Bruno Haible  <bruno@clisp.org>
8054
8055         wcschr: Move AC_LIBOBJ invocations to module description.
8056         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8057         * modules/wcschr (configure.ac): ... to here.
8058
8059 2011-05-22  Bruno Haible  <bruno@clisp.org>
8060
8061         wcscat: Move AC_LIBOBJ invocations to module description.
8062         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8063         * modules/wcscat (configure.ac): ... to here.
8064
8065 2011-05-22  Bruno Haible  <bruno@clisp.org>
8066
8067         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8068         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8069         here...
8070         * modules/wcscasecmp (configure.ac): ... to here.
8071
8072 2011-05-22  Bruno Haible  <bruno@clisp.org>
8073
8074         wcrtomb: Move AC_LIBOBJ invocations to module description.
8075         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8076         invocations from here...
8077         * modules/wcrtomb (configure.ac): ... to here.
8078
8079 2011-05-22  Bruno Haible  <bruno@clisp.org>
8080
8081         wcpncpy: Move AC_LIBOBJ invocations to module description.
8082         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8083         here...
8084         * modules/wcpncpy (configure.ac): ... to here.
8085
8086 2011-05-22  Bruno Haible  <bruno@clisp.org>
8087
8088         wcpcpy: Move AC_LIBOBJ invocations to module description.
8089         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8090         * modules/wcpcpy (configure.ac): ... to here.
8091
8092 2011-05-22  Bruno Haible  <bruno@clisp.org>
8093
8094         waitpid: Move AC_LIBOBJ invocations to module description.
8095         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8096         invocation from here...
8097         * modules/waitpid (configure.ac): ... to here.
8098
8099 2011-05-22  Bruno Haible  <bruno@clisp.org>
8100
8101         utimensat: Move AC_LIBOBJ invocations to module description.
8102         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8103         here...
8104         * modules/utimensat (configure.ac): ... to here.
8105
8106 2011-05-22  Bruno Haible  <bruno@clisp.org>
8107
8108         usleep: Move AC_LIBOBJ invocations to module description.
8109         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8110         here...
8111         * modules/usleep (configure.ac): ... to here.
8112
8113 2011-05-22  Bruno Haible  <bruno@clisp.org>
8114
8115         unlockpt: Move AC_LIBOBJ invocations to module description.
8116         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8117         gl_PREREQ_UNLOCKPT invocations from here...
8118         * modules/unlockpt (configure.ac): ... to here.
8119
8120 2011-05-22  Bruno Haible  <bruno@clisp.org>
8121
8122         unlink: Respect rules for use of AC_LIBOBJ.
8123         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8124         * modules/unlink (configure.ac): ... to here.
8125
8126 2011-05-22  Bruno Haible  <bruno@clisp.org>
8127
8128         uname: Move AC_LIBOBJ invocations to module description.
8129         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8131         here...
8132         * modules/uname (configure.ac): ... to here.
8133
8134 2011-05-22  Bruno Haible  <bruno@clisp.org>
8135
8136         ttyname_r: Move AC_LIBOBJ invocations to module description.
8137         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8138         gl_PREREQ_TTYNAME_R invocations from here...
8139         * modules/ttyname_r (configure.ac): ... to here.
8140
8141 2011-05-22  Bruno Haible  <bruno@clisp.org>
8142
8143         tsearch: Move AC_LIBOBJ invocations to module description.
8144         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8145         invocations from here...
8146         * modules/tsearch (configure.ac): ... to here.
8147
8148 2011-05-22  Bruno Haible  <bruno@clisp.org>
8149
8150         towctrans: Move AC_LIBOBJ invocations to module description.
8151         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8152         AC_LIBOBJ invocation from here...
8153         * modules/towctrans (configure.ac): ... to here.
8154
8155 2011-05-22  Bruno Haible  <bruno@clisp.org>
8156
8157         tmpfile: Move AC_LIBOBJ invocations to module description.
8158         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8159         invocations from here...
8160         * modules/tmpfile (configure.ac): ... to here.
8161
8162 2011-05-22  Bruno Haible  <bruno@clisp.org>
8163
8164         times: Move AC_LIBOBJ invocations to module description.
8165         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8166         * modules/times (configure.ac): ... to here.
8167
8168 2011-05-22  Bruno Haible  <bruno@clisp.org>
8169
8170         time_r: Move AC_LIBOBJ invocations to module description.
8171         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8172         invocations from here...
8173         * modules/time_r (configure.ac): ... to here.
8174
8175 2011-05-22  Bruno Haible  <bruno@clisp.org>
8176
8177         timegm: Move AC_LIBOBJ invocations to module description.
8178         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8179         invocations from here...
8180         * modules/timegm (configure.ac): ... to here.
8181
8182 2011-05-22  Bruno Haible  <bruno@clisp.org>
8183
8184         tcgetsid: Move AC_LIBOBJ invocations to module description.
8185         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8186         and gl_PREREQ_TCGETSID invocations from here...
8187         * modules/tcgetsid (configure.ac): ... to here.
8188         (Depends-on): Update conditions.
8189
8190 2011-05-22  Bruno Haible  <bruno@clisp.org>
8191
8192         symlinkat: Move AC_LIBOBJ invocations to module description.
8193         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8194         here...
8195         * modules/symlinkat (configure.ac): ... to here.
8196
8197 2011-05-22  Bruno Haible  <bruno@clisp.org>
8198
8199         symlink: Move AC_LIBOBJ invocations to module description.
8200         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8201         here...
8202         * modules/symlink (configure.ac): ... to here.
8203
8204 2011-05-22  Bruno Haible  <bruno@clisp.org>
8205
8206         strverscmp: Move AC_LIBOBJ invocations to module description.
8207         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8209         from here...
8210         * modules/strverscmp (configure.ac): ... to here.
8211
8212 2011-05-22  Bruno Haible  <bruno@clisp.org>
8213
8214         strtok_r: Move AC_LIBOBJ invocations to module description.
8215         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8216         and gl_PREREQ_STRTOK_R invocations from here...
8217         * modules/strtok_r (configure.ac): ... to here.
8218         (Depends-on): Update conditions.
8219
8220 2011-05-22  Bruno Haible  <bruno@clisp.org>
8221
8222         strtoumax: Move AC_LIBOBJ invocations to module description.
8223         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8224         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8225         from here...
8226         * modules/strtoumax (configure.ac): ... to here.
8227
8228 2011-05-22  Bruno Haible  <bruno@clisp.org>
8229
8230         strtoimax: Move AC_LIBOBJ invocations to module description.
8231         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8232         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8233         from here...
8234         * modules/strtoimax (configure.ac): ... to here.
8235
8236 2011-05-22  Bruno Haible  <bruno@clisp.org>
8237
8238         strtoull: Move AC_LIBOBJ invocations to module description.
8239         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8240         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8241         from here...
8242         * modules/strtoull (configure.ac): ... to here.
8243
8244 2011-05-22  Bruno Haible  <bruno@clisp.org>
8245
8246         strtoll: Move AC_LIBOBJ invocations to module description.
8247         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8249         here...
8250         * modules/strtoll (configure.ac): ... to here.
8251
8252 2011-05-22  Bruno Haible  <bruno@clisp.org>
8253
8254         strtoul: Move AC_LIBOBJ invocations to module description.
8255         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8256         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8257         * modules/strtoul (configure.ac): ... to here.
8258
8259 2011-05-22  Bruno Haible  <bruno@clisp.org>
8260
8261         strtol: Move AC_LIBOBJ invocations to module description.
8262         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8263         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8264         * modules/strtol (configure.ac): ... to here.
8265
8266 2011-05-22  Bruno Haible  <bruno@clisp.org>
8267
8268         strtod: Move AC_LIBOBJ invocations to module description.
8269         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8270         invocations from here...
8271         * modules/strtod (configure.ac): ... to here.
8272
8273 2011-05-22  Bruno Haible  <bruno@clisp.org>
8274
8275         strstr*: Move AC_LIBOBJ invocations to module description.
8276         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8277         invocations from here...
8278         * modules/strstr-simple (configure.ac): ... to here.
8279         * modules/strstr (configure.ac): ... and here.
8280
8281 2011-05-22  Bruno Haible  <bruno@clisp.org>
8282
8283         strsignal: Move AC_LIBOBJ invocations to module description.
8284         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8285         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8286         * modules/strsignal (configure.ac): ... to here.
8287         (Depends-on): Update conditions.
8288
8289 2011-05-22  Bruno Haible  <bruno@clisp.org>
8290
8291         strsep: Move AC_LIBOBJ invocations to module description.
8292         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8294         here...
8295         * modules/strsep (configure.ac): ... to here.
8296
8297 2011-05-22  Bruno Haible  <bruno@clisp.org>
8298
8299         strptime: Move AC_LIBOBJ invocations to module description.
8300         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8301         gl_PREREQ_STRPTIME invocations from here...
8302         * modules/strptime (configure.ac): ... to here.
8303
8304 2011-05-22  Bruno Haible  <bruno@clisp.org>
8305
8306         strpbrk: Move AC_LIBOBJ invocations to module description.
8307         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8309         here...
8310         * modules/strpbrk (configure.ac): ... to here.
8311
8312 2011-05-22  Bruno Haible  <bruno@clisp.org>
8313
8314         strnlen: Move AC_LIBOBJ invocations to module description.
8315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8316         invocations from here...
8317         * modules/strnlen (configure.ac): ... to here.
8318
8319 2011-05-22  Bruno Haible  <bruno@clisp.org>
8320
8321         strndup: Move AC_LIBOBJ invocations to module description.
8322         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8323         invocations from here...
8324         * modules/strndup (configure.ac): ... to here.
8325         (Depends-on): Update conditions.
8326
8327 2011-05-22  Bruno Haible  <bruno@clisp.org>
8328
8329         strncat: Move AC_LIBOBJ invocations to module description.
8330         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8331         invocations from here...
8332         * modules/strncat (configure.ac): ... to here.
8333
8334 2011-05-22  Bruno Haible  <bruno@clisp.org>
8335
8336         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8337         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8338         invocations from here...
8339         * modules/strdup (configure.ac): ... to here.
8340         * modules/strdup-posix (configure.ac): ... and here.
8341
8342 2011-05-22  Bruno Haible  <bruno@clisp.org>
8343
8344         strcspn: Move AC_LIBOBJ invocations to module description.
8345         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8347         here...
8348         * modules/strcspn (configure.ac): ... to here.
8349
8350 2011-05-22  Bruno Haible  <bruno@clisp.org>
8351
8352         strchrnul: Move AC_LIBOBJ invocations to module description.
8353         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8354         gl_PREREQ_STRCHRNUL invocations from here...
8355         * modules/strchrnul (configure.ac): ... to here.
8356
8357 2011-05-22  Bruno Haible  <bruno@clisp.org>
8358
8359         strcasestr*: Move AC_LIBOBJ invocations to module description.
8360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8361         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8362         * modules/strcasestr-simple (configure.ac): ... to here.
8363         * modules/strcasestr (configure.ac): ... and here.
8364
8365 2011-05-22  Bruno Haible  <bruno@clisp.org>
8366
8367         strcase: Move AC_LIBOBJ invocations to module description.
8368         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8369         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8370         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8371         gl_PREREQ_STRNCASECMP invocations from here...
8372         * modules/strcase (configure.ac): ... to here.
8373
8374 2011-05-22  Bruno Haible  <bruno@clisp.org>
8375
8376         stpncpy: Move AC_LIBOBJ invocations to module description.
8377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8378         here...
8379         * modules/stpncpy (configure.ac): ... to here.
8380
8381 2011-05-22  Bruno Haible  <bruno@clisp.org>
8382
8383         stpcpy: Move AC_LIBOBJ invocations to module description.
8384         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8386         here...
8387         * modules/stpcpy (configure.ac): ... to here.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         stat: Move AC_LIBOBJ invocations to module description.
8392         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8393         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8394         here...
8395         * modules/stat (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         sleep: Move AC_LIBOBJ invocations to module description.
8400         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8401         * modules/sleep (configure.ac): ... to here.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         signbit: Move AC_LIBOBJ invocations to module description.
8406         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8407         * modules/signbit (configure.ac): ... to here.
8408
8409 2011-05-21  Bruno Haible  <bruno@clisp.org>
8410
8411         sigprocmask: Move AC_LIBOBJ invocations to module description.
8412         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8413         gl_PREREQ_SIGPROMASK invocations from here...
8414         * modules/sigprocmask (configure.ac): ... to here.
8415
8416 2011-05-21  Bruno Haible  <bruno@clisp.org>
8417
8418         sigaction: Move AC_LIBOBJ invocations to module description.
8419         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8420         gl_PREREQ_SIGACTION invocations from here...
8421         * modules/sigaction (configure.ac): ... to here.
8422
8423 2011-05-21  Bruno Haible  <bruno@clisp.org>
8424
8425         sig2str: Move AC_LIBOBJ invocations to module description.
8426         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8428         here...
8429         * modules/sig2str (configure.ac): ... to here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         setlocale: Move AC_LIBOBJ invocations to module description.
8434         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8435         gl_PREREQ_SETLOCALE invocations from here...
8436         * modules/setlocale (configure.ac): ... to here.
8437
8438 2011-05-21  Bruno Haible  <bruno@clisp.org>
8439
8440         unsetenv: Move AC_LIBOBJ invocations to module description.
8441         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8442         and gl_PREREQ_UNSETENV invocations from here...
8443         * modules/unsetenv (configure.ac): ... to here.
8444         (Depends-on): Update.
8445
8446 2011-05-21  Bruno Haible  <bruno@clisp.org>
8447
8448         setenv: Move AC_LIBOBJ invocations to module description.
8449         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8450         here...
8451         * modules/setenv (configure.ac): ... to here.
8452
8453 2011-05-21  Bruno Haible  <bruno@clisp.org>
8454
8455         selinux-h: Move AC_LIBOBJ invocations to module description.
8456         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8457         AC_LIBOBJ invocation from here...
8458         * modules/selinux-h (configure.ac): ... to here.
8459
8460 2011-05-21  Bruno Haible  <bruno@clisp.org>
8461
8462         select: Respect rules for use of AC_LIBOBJ.
8463         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8464         here...
8465         * modules/select (configure.ac): ... to here.
8466
8467 2011-05-21  Bruno Haible  <bruno@clisp.org>
8468
8469         scandir: Move AC_LIBOBJ invocations to module description.
8470         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8471         invocations from here...
8472         * modules/scandir (configure.ac): ... to here.
8473
8474 2011-05-21  Bruno Haible  <bruno@clisp.org>
8475
8476         rpmatch: Move AC_LIBOBJ invocations to module description.
8477         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8478         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8479         here...
8480         * modules/rpmatch (configure.ac): ... to here.
8481
8482 2011-05-21  Bruno Haible  <bruno@clisp.org>
8483
8484         rmdir: Respect rules for use of AC_LIBOBJ.
8485         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8486         * modules/rmdir (configure.ac): ... to here.
8487
8488 2011-05-21  Bruno Haible  <bruno@clisp.org>
8489
8490         renameat: Move AC_LIBOBJ invocations to module description.
8491         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8492         here...
8493         * modules/renameat (configure.ac): ... to here.
8494
8495 2011-05-21  Bruno Haible  <bruno@clisp.org>
8496
8497         rename: Respect rules for use of AC_LIBOBJ.
8498         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8499         here...
8500         * modules/rename (configure.ac): ... to here.
8501
8502 2011-05-21  Bruno Haible  <bruno@clisp.org>
8503
8504         remove: Move AC_LIBOBJ invocations to module description.
8505         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8506         here...
8507         * modules/remove (configure.ac): ... to here.
8508
8509 2011-05-21  Bruno Haible  <bruno@clisp.org>
8510
8511         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8512         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8513         macro.
8514         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8515         * modules/relocatable-lib (configure.ac): ... to here.
8516         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8517         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8518
8519 2011-05-21  Bruno Haible  <bruno@clisp.org>
8520
8521         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8522         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8523         here...
8524         * modules/relocatable-prog (configure.ac): ... to here.
8525
8526 2011-05-21  Bruno Haible  <bruno@clisp.org>
8527
8528         regex: Move AC_LIBOBJ invocations to module description.
8529         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8530         invocations from here...
8531         * modules/regex (configure.ac): ... to here.
8532
8533 2011-05-21  Bruno Haible  <bruno@clisp.org>
8534
8535         realloc-*: Move AC_LIBOBJ invocations to module description.
8536         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8537         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8538         AC_LIBOBJ invocations from here...
8539         * modules/realloc-gnu (configure.ac): ... to here.
8540         * modules/realloc-posix (configure.ac): ... and here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         readutmp: Move AC_LIBOBJ invocations to module description.
8545         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8546         * modules/readutmp (configure.ac): ... to here.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         readlinkat: Move AC_LIBOBJ invocations to module description.
8551         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8552         here...
8553         * modules/readlinkat (configure.ac): ... to here.
8554
8555 2011-05-21  Bruno Haible  <bruno@clisp.org>
8556
8557         readlink: Move AC_LIBOBJ invocations to module description.
8558         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8559         gl_PREREQ_READLINK invocations from here...
8560         * modules/readlink (configure.ac): ... to here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         readline: Move AC_LIBOBJ invocations to module description.
8565         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8566         gl_PREREQ_READLINE invocations from here...
8567         * modules/readline (configure.ac): ... to here.
8568
8569 2011-05-21  Bruno Haible  <bruno@clisp.org>
8570
8571         read: Move AC_LIBOBJ invocations to module description.
8572         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8573         * modules/read (configure.ac): ... to here.
8574
8575 2011-05-21  Bruno Haible  <bruno@clisp.org>
8576
8577         rawmemchr: Move AC_LIBOBJ invocations to module description.
8578         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8579         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8580         from here...
8581         * modules/rawmemchr (configure.ac): ... to here.
8582
8583 2011-05-21  Bruno Haible  <bruno@clisp.org>
8584
8585         random_r: Move AC_LIBOBJ invocations to module description.
8586         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8587         gl_PREREQ_RANDOM_R invocations from here...
8588         * modules/random_r (configure.ac): ... to here.
8589
8590 2011-05-21  Bruno Haible  <bruno@clisp.org>
8591
8592         pwrite: Move AC_LIBOBJ invocations to module description.
8593         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8594         * modules/pwrite (configure.ac): ... to here.
8595
8596 2011-05-21  Bruno Haible  <bruno@clisp.org>
8597
8598         putenv: Move AC_LIBOBJ invocations to module description.
8599         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8600         * modules/putenv (configure.ac): ... to here.
8601
8602 2011-05-21  Bruno Haible  <bruno@clisp.org>
8603
8604         login_tty: Move AC_LIBOBJ invocations to module description.
8605         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8606         * modules/login_tty (configure.ac): ... to here.
8607
8608 2011-05-21  Bruno Haible  <bruno@clisp.org>
8609
8610         openpty: Move AC_LIBOBJ invocations to module description.
8611         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8612         * modules/openpty (configure.ac): ... to here.
8613
8614 2011-05-21  Bruno Haible  <bruno@clisp.org>
8615
8616         forkpty: Move AC_LIBOBJ invocations to module description.
8617         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8618         * modules/forkpty (configure.ac): ... to here.
8619
8620 2011-05-21  Bruno Haible  <bruno@clisp.org>
8621
8622         ptsname: Move AC_LIBOBJ invocations to module description.
8623         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8624         invocations from here...
8625         * modules/ptsname (configure.ac): ... to here.
8626
8627 2011-05-21  Bruno Haible  <bruno@clisp.org>
8628
8629         pread: Move AC_LIBOBJ invocations to module description.
8630         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8631         * modules/pread (configure.ac): ... to here.
8632
8633 2011-05-21  Bruno Haible  <bruno@clisp.org>
8634
8635         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8636         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8637         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8638         * modules/posix_spawn (configure.ac): ... to here.
8639         * modules/posix_spawnp (configure.ac): ... and here.
8640
8641 2011-05-21  Bruno Haible  <bruno@clisp.org>
8642
8643         popen: Move AC_LIBOBJ invocations to module description.
8644         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8645         invocations from here...
8646         * modules/popen (configure.ac): ... to here.
8647
8648 2011-05-21  Bruno Haible  <bruno@clisp.org>
8649
8650         poll: Move AC_LIBOBJ invocations to module description.
8651         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8652         invocations from here...
8653         * modules/poll (configure.ac): ... to here.
8654
8655 2011-05-21  Bruno Haible  <bruno@clisp.org>
8656
8657         pipe-posix: Move AC_LIBOBJ invocations to module description.
8658         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8659         * modules/pipe-posix (configure.ac): ... to here.
8660
8661 2011-05-21  Bruno Haible  <bruno@clisp.org>
8662
8663         openat: Respect rules for use of AC_LIBOBJ.
8664         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8665         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8666         * modules/openat (configure.ac): ... to here.
8667
8668 2011-05-21  Bruno Haible  <bruno@clisp.org>
8669
8670         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8671         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8672         invocation from here...
8673         * modules/obstack-printf (configure.ac): ... to here.
8674         * modules/obstack-printf-posix (configure.ac): ... and here.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8679         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8680         from here...
8681         * modules/nl_langinfo (configure.ac): ... to here.
8682
8683 2011-05-21  Bruno Haible  <bruno@clisp.org>
8684
8685         nanosleep: Move AC_LIBOBJ invocations to module description.
8686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8687         gl_PREREQ_NANOSLEEP invocations from here...
8688         * modules/nanosleep (configure.ac): ... to here.
8689
8690 2011-05-21  Bruno Haible  <bruno@clisp.org>
8691
8692         mountlist: Move AC_LIBOBJ invocations to module description.
8693         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8694         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8695         * modules/mountlist (configure.ac): ... to here.
8696
8697 2011-05-21  Bruno Haible  <bruno@clisp.org>
8698
8699         mktime: Respect rules for use of AC_LIBOBJ.
8700         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8701         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8702         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8703         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8704         * modules/mktime (configure.ac): ... to here.
8705         * modules/mktime-internal (configure.ac): ... and here.
8706         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8707
8708 2011-05-21  Bruno Haible  <bruno@clisp.org>
8709
8710         mkstemps: Move AC_LIBOBJ invocations to module description.
8711         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8712         here...
8713         * modules/mkstemps (configure.ac): ... to here.
8714
8715 2011-05-21  Bruno Haible  <bruno@clisp.org>
8716
8717         mkstemp: Move AC_LIBOBJ invocations to module description.
8718         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8719         gl_PREREQ_MKSTEMP invocations from here...
8720         * modules/mkstemp (configure.ac): ... to here.
8721
8722 2011-05-21  Bruno Haible  <bruno@clisp.org>
8723
8724         mkostemps: Move AC_LIBOBJ invocations to module description.
8725         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8726         here...
8727         * modules/mkostemps (configure.ac): ... to here.
8728
8729 2011-05-21  Bruno Haible  <bruno@clisp.org>
8730
8731         mkostemp: Move AC_LIBOBJ invocations to module description.
8732         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8733         gl_PREREQ_MKOSTEMP invocations from here...
8734         * modules/mkostemp (configure.ac): ... to here.
8735
8736 2011-05-21  Bruno Haible  <bruno@clisp.org>
8737
8738         mknod: Move AC_LIBOBJ invocations to module description.
8739         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8740         * modules/mknod (configure.ac): ... to here.
8741
8742 2011-05-21  Bruno Haible  <bruno@clisp.org>
8743
8744         mkfifoat: Move AC_LIBOBJ invocations to module description.
8745         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8746         here...
8747         * modules/mkfifoat (configure.ac): ... to here.
8748
8749 2011-05-21  Bruno Haible  <bruno@clisp.org>
8750
8751         mkfifo: Respect rules for use of AC_LIBOBJ.
8752         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8753         here...
8754         * modules/mkfifo (configure.ac): ... to here.
8755
8756 2011-05-21  Bruno Haible  <bruno@clisp.org>
8757
8758         mkdtemp: Move AC_LIBOBJ invocations to module description.
8759         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8760         invocations from here...
8761         * modules/mkdtemp (configure.ac): ... to here.
8762
8763 2011-05-21  Bruno Haible  <bruno@clisp.org>
8764
8765         mkdir: Move AC_LIBOBJ invocations to module description.
8766         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8767         * modules/mkdir (configure.ac): ... to here.
8768
8769 2011-05-21  Bruno Haible  <bruno@clisp.org>
8770
8771         memset: Move AC_LIBOBJ invocations to module description.
8772         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8773         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8774         here...
8775         * modules/memset (configure.ac): ... to here.
8776
8777 2011-05-21  Bruno Haible  <bruno@clisp.org>
8778
8779         memrchr: Move AC_LIBOBJ invocations to module description.
8780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8782         here...
8783         * modules/memrchr (configure.ac): ... to here.
8784
8785 2011-05-21  Bruno Haible  <bruno@clisp.org>
8786
8787         mempcpy: Move AC_LIBOBJ invocations to module description.
8788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8789         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8790         here...
8791         * modules/mempcpy (configure.ac): ... to here.
8792
8793 2011-05-21  Bruno Haible  <bruno@clisp.org>
8794
8795         memmove: Move AC_LIBOBJ invocations to module description.
8796         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8797         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8798         here...
8799         * modules/memmove (configure.ac): ... to here.
8800
8801 2011-05-21  Bruno Haible  <bruno@clisp.org>
8802
8803         memmem*: Move AC_LIBOBJ invocations to module description.
8804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8805         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8806         here...
8807         (gl_FUNC_MEMMEM): ... and here...
8808         * modules/memmem-simple (configure.ac): ... to here.
8809         * modules/memmem (configure.ac): ... and here.
8810
8811 2011-05-21  Bruno Haible  <bruno@clisp.org>
8812
8813         memcpy: Move AC_LIBOBJ invocations to module description.
8814         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8815         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8816         here...
8817         * modules/memcpy (configure.ac): ... to here.
8818
8819 2011-05-21  Bruno Haible  <bruno@clisp.org>
8820
8821         memcmp: Simplify autoconf macro.
8822         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8823         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8824         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8825
8826 2011-05-21  Bruno Haible  <bruno@clisp.org>
8827
8828         memcmp: Move AC_LIBOBJ invocations to module description.
8829         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8830         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8831         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8832         * modules/memcmp (configure.ac): ... to here.
8833         (Depends-on): Update conditions.
8834
8835 2011-05-21  Bruno Haible  <bruno@clisp.org>
8836
8837         memchr: Respect rules for use of AC_LIBOBJ.
8838         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8839         invocations from here...
8840         * modules/memchr (configure.ac): ... to here.
8841
8842 2011-05-21  Bruno Haible  <bruno@clisp.org>
8843
8844         mbtowc: Move AC_LIBOBJ invocations to module description.
8845         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8846         invocations from here...
8847         * modules/mbtowc (configure.ac): ... to here.
8848
8849 2011-05-21  Bruno Haible  <bruno@clisp.org>
8850
8851         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8852         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8853         gl_PREREQ_MBSRTOWCS invocations from here...
8854         * modules/mbsrtowcs (configure.ac): ... to here.
8855
8856 2011-05-21  Bruno Haible  <bruno@clisp.org>
8857
8858         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8859         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8860         gl_PREREQ_MBSNRTOWCS invocations from here...
8861         * modules/mbsnrtowcs (configure.ac): ... to here.
8862
8863 2011-05-21  Bruno Haible  <bruno@clisp.org>
8864
8865         mbsinit: Move AC_LIBOBJ invocations to module description.
8866         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8867         invocations from here...
8868         * modules/mbsinit (configure.ac): ... to here.
8869
8870 2011-05-21  Bruno Haible  <bruno@clisp.org>
8871
8872         mbrlen: Move AC_LIBOBJ invocations to module description.
8873         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8874         invocations from here...
8875         * modules/mbrlen (configure.ac): ... to here.
8876
8877 2011-05-21  Bruno Haible  <bruno@clisp.org>
8878
8879         mbrtowc: Respect rules for use of AC_LIBOBJ.
8880         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8881         invocations from here...
8882         * modules/mbrtowc (configure.ac): ... to here.
8883
8884 2011-05-21  Bruno Haible  <bruno@clisp.org>
8885
8886         malloc-*: Move AC_LIBOBJ invocations to module description.
8887         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8888         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8889         AC_LIBOBJ invocations from here...
8890         * modules/malloc-gnu (configure.ac): ... to here.
8891         * modules/malloc-posix (configure.ac): ... and here.
8892
8893 2011-05-21  Bruno Haible  <bruno@clisp.org>
8894
8895         lstat, openat: Respect rules for use of AC_LIBOBJ.
8896         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8897         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8898         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8899         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8900         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8901         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8902         here.
8903         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8904
8905 2011-05-21  Bruno Haible  <bruno@clisp.org>
8906
8907         lseek: Move AC_LIBOBJ invocations to module description.
8908         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8909         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8910         * modules/lseek (configure.ac): ... to here.
8911
8912 2011-05-21  Bruno Haible  <bruno@clisp.org>
8913
8914         linkat: Move AC_LIBOBJ invocations to module description.
8915         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8916         here...
8917         * modules/linkat (configure.ac): ... to here.
8918
8919 2011-05-21  Bruno Haible  <bruno@clisp.org>
8920
8921         link: Respect rules for use of AC_LIBOBJ.
8922         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8923         * modules/link (configure.ac): ... to here.
8924
8925 2011-05-21  Bruno Haible  <bruno@clisp.org>
8926
8927         lchown: Move AC_LIBOBJ invocations to module description.
8928         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8929         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8930         * modules/lchown (configure.ac): ... to here.
8931
8932 2011-05-21  Bruno Haible  <bruno@clisp.org>
8933
8934         iswctype: Move AC_LIBOBJ invocations to module description.
8935         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8936         here...
8937         * modules/iswctype (configure.ac): ... to here.
8938
8939 2011-05-21  Bruno Haible  <bruno@clisp.org>
8940
8941         iswblank: Move AC_LIBOBJ invocations to module description.
8942         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8943         here...
8944         * modules/iswblank (configure.ac): ... to here.
8945
8946 2011-05-21  Bruno Haible  <bruno@clisp.org>
8947
8948         atanl: Move AC_LIBOBJ invocations to module description.
8949         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8950         * modules/atanl (configure.ac): ... to here.
8951
8952 2011-05-21  Bruno Haible  <bruno@clisp.org>
8953
8954         acosl: Move AC_LIBOBJ invocations to module description.
8955         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8956         * modules/acosl (configure.ac): ... to here.
8957
8958 2011-05-21  Bruno Haible  <bruno@clisp.org>
8959
8960         asinl: Respect rules for use of AC_LIBOBJ.
8961         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8962         * modules/asinl (configure.ac): ... to here.
8963
8964 2011-05-21  Bruno Haible  <bruno@clisp.org>
8965
8966         tanl: Move AC_LIBOBJ invocations to module description.
8967         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8968         * modules/tanl (configure.ac): ... to here.
8969
8970 2011-05-21  Bruno Haible  <bruno@clisp.org>
8971
8972         cosl: Move AC_LIBOBJ invocations to module description.
8973         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8974         * modules/cosl (configure.ac): ... to here.
8975
8976 2011-05-21  Bruno Haible  <bruno@clisp.org>
8977
8978         sinl: Move AC_LIBOBJ invocations to module description.
8979         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8980         * modules/sinl (configure.ac): ... to here.
8981
8982 2011-05-21  Bruno Haible  <bruno@clisp.org>
8983
8984         logl: Move AC_LIBOBJ invocations to module description.
8985         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8986         * modules/logl (configure.ac): ... to here.
8987
8988 2011-05-21  Bruno Haible  <bruno@clisp.org>
8989
8990         expl: Move AC_LIBOBJ invocations to module description.
8991         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8992         * modules/expl (configure.ac): ... to here.
8993
8994 2011-05-21  Bruno Haible  <bruno@clisp.org>
8995
8996         roundl: Move AC_LIBOBJ invocations to module description.
8997         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8998         * modules/roundl (configure.ac): ... to here.
8999
9000 2011-05-21  Bruno Haible  <bruno@clisp.org>
9001
9002         round: Move AC_LIBOBJ invocations to module description.
9003         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9004         * modules/round (configure.ac): ... to here.
9005
9006 2011-05-21  Bruno Haible  <bruno@clisp.org>
9007
9008         roundf: Move AC_LIBOBJ invocations to module description.
9009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9010         * modules/roundf (configure.ac): ... to here.
9011
9012 2011-05-21  Bruno Haible  <bruno@clisp.org>
9013
9014         truncl: Move AC_LIBOBJ invocations to module description.
9015         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9016         * modules/truncl (configure.ac): ... to here.
9017
9018 2011-05-21  Bruno Haible  <bruno@clisp.org>
9019
9020         trunc: Move AC_LIBOBJ invocations to module description.
9021         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9022         * modules/trunc (configure.ac): ... to here.
9023
9024 2011-05-21  Bruno Haible  <bruno@clisp.org>
9025
9026         truncf: Move AC_LIBOBJ invocations to module description.
9027         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9028         * modules/truncf (configure.ac): ... to here.
9029
9030 2011-05-21  Bruno Haible  <bruno@clisp.org>
9031
9032         ceill: Move AC_LIBOBJ invocations to module description.
9033         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9034         * modules/ceill (configure.ac): ... to here.
9035
9036 2011-05-21  Bruno Haible  <bruno@clisp.org>
9037
9038         ceil: Move AC_LIBOBJ invocations to module description.
9039         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9040         * modules/ceil (configure.ac): ... to here.
9041
9042 2011-05-21  Bruno Haible  <bruno@clisp.org>
9043
9044         ceilf: Move AC_LIBOBJ invocations to module description.
9045         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9046         * modules/ceilf (configure.ac): ... to here.
9047
9048 2011-05-21  Bruno Haible  <bruno@clisp.org>
9049
9050         floorl: Respect rules for use of AC_LIBOBJ.
9051         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9052         * modules/floorl (configure.ac): ... to here.
9053
9054 2011-05-21  Bruno Haible  <bruno@clisp.org>
9055
9056         floor: Respect rules for use of AC_LIBOBJ.
9057         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9058         * modules/floor (configure.ac): ... to here.
9059
9060 2011-05-21  Bruno Haible  <bruno@clisp.org>
9061
9062         floorf: Move AC_LIBOBJ invocations to module description.
9063         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9064         * modules/floorf (configure.ac): ... to here.
9065
9066 2011-05-20  Bruno Haible  <bruno@clisp.org>
9067
9068         sqrtl: Respect rules for use of AC_LIBOBJ.
9069         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9070         * modules/sqrtl (configure.ac): ... to here.
9071
9072 2011-05-20  Bruno Haible  <bruno@clisp.org>
9073
9074         ldexpl: Respect rules for use of AC_LIBOBJ.
9075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9076         * modules/ldexpl (configure.ac): ... to here.
9077
9078 2011-05-20  Bruno Haible  <bruno@clisp.org>
9079
9080         frexpl*: Respect rules for use of AC_LIBOBJ.
9081         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9082         invocation from here...
9083         * modules/frexpl (configure.ac): ... to here.
9084         * modules/frexpl-nolibm (configure.ac): ... and here.
9085
9086 2011-05-20  Bruno Haible  <bruno@clisp.org>
9087
9088         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9089         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9090         invocation from here...
9091         * modules/frexp (configure.ac): ... to here.
9092         * modules/frexp-nolibm (configure.ac): ... and here.
9093
9094 2011-05-20  Bruno Haible  <bruno@clisp.org>
9095
9096         isnan: Respect rules for use of AC_LIBOBJ.
9097         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9098         invocations here.
9099         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9100         REPLACE_ISNAN.
9101         * modules/isnand (configure.ac): Likewise.
9102         * modules/isnanl (configure.ac): Likewise.
9103
9104 2011-05-20  Bruno Haible  <bruno@clisp.org>
9105
9106         isnanl*: Respect rules for use of AC_LIBOBJ.
9107         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9108         invocation from here...
9109         * modules/isnanl (configure.ac): ... to here.
9110         * modules/isnanl-nolibm (configure.ac): ... and here.
9111
9112 2011-05-20  Bruno Haible  <bruno@clisp.org>
9113
9114         isnand*: Move AC_LIBOBJ invocations to module description.
9115         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9116         invocation from here...
9117         * modules/isnand (configure.ac): ... to here.
9118         * modules/isnand-nolibm (configure.ac): ... and here.
9119
9120 2011-05-20  Bruno Haible  <bruno@clisp.org>
9121
9122         isnanf*: Move AC_LIBOBJ invocations to module description.
9123         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9124         invocation from here...
9125         * modules/isnanf (configure.ac): ... to here.
9126         * modules/isnanf-nolibm (configure.ac): ... and here.
9127
9128 2011-05-20  Bruno Haible  <bruno@clisp.org>
9129
9130         isnan*: Separate the AC_LIBOBJ invocations.
9131         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9132         AC_LIBOBJ invocation.
9133         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9134         here.
9135         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9136         AC_LIBOBJ invocation.
9137         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9138         here.
9139         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9140         AC_LIBOBJ invocation.
9141         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9142         here.
9143         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9144
9145 2011-05-08  Bruno Haible  <bruno@clisp.org>
9146
9147         isinf: Move AC_LIBOBJ invocations to module description.
9148         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9149         * modules/isinf (configure.ac): ... to here.
9150
9151 2011-05-08  Bruno Haible  <bruno@clisp.org>
9152
9153         isfinite: Move AC_LIBOBJ invocations to module description.
9154         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9155         * modules/isfinite (configure.ac): ... to here.
9156
9157 2011-05-08  Bruno Haible  <bruno@clisp.org>
9158
9159         isblank: Move AC_LIBOBJ invocations to module description.
9160         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9161         here...
9162         * modules/isblank (configure.ac): ... to here.
9163
9164 2011-05-08  Bruno Haible  <bruno@clisp.org>
9165
9166         isapipe: Move AC_LIBOBJ invocations to module description.
9167         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9168         gl_PREREQ_ISAPIPE invocations from here...
9169         * modules/isapipe (configure.ac): ... to here.
9170         (Depends-on): Update condition.
9171
9172 2011-05-08  Bruno Haible  <bruno@clisp.org>
9173
9174         ioctl: Move AC_LIBOBJ invocations to module description.
9175         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9176         invocations from here...
9177         * modules/ioctl (configure.ac): ... to here.
9178         (Depends-on): Update condition.
9179
9180 2011-05-08  Bruno Haible  <bruno@clisp.org>
9181
9182         imaxdiv: Move AC_LIBOBJ invocations to module description.
9183         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9184         invocations from here...
9185         * modules/imaxdiv (configure.ac): ... to here.
9186
9187 2011-05-08  Bruno Haible  <bruno@clisp.org>
9188
9189         imaxabs: Move AC_LIBOBJ invocations to module description.
9190         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9191         invocations from here...
9192         * modules/imaxabs (configure.ac): ... to here.
9193
9194 2011-05-08  Bruno Haible  <bruno@clisp.org>
9195
9196         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9198         AC_LIBOBJ invocations from here...
9199         * modules/getaddrinfo (configure.ac): ... to here.
9200         (Depends-on): Add conditions.
9201
9202 2011-05-08  Bruno Haible  <bruno@clisp.org>
9203
9204         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9205         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9206         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9207         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9208         (gl_PREREQ_INET_PTON): ... from here.
9209         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9210         gl_PREREQ_INET_PTON here.
9211         (Depends-on): Update condition.
9212
9213 2011-05-08  Bruno Haible  <bruno@clisp.org>
9214
9215         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9216         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9217         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9218         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9219         (gl_PREREQ_INET_NTOP): ... from here.
9220         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9221         gl_PREREQ_INET_NTOP here.
9222         (Depends-on): Update condition.
9223
9224 2011-05-08  Bruno Haible  <bruno@clisp.org>
9225
9226         iconv_open: Move AC_LIBOBJ invocations to module description.
9227         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9228         AC_LIBOBJ invocations from here...
9229         * modules/iconv_open (configure.ac): ... to here.
9230
9231 2011-05-08  Bruno Haible  <bruno@clisp.org>
9232
9233         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9234         If module 'iconv_open' is among the main modules and module
9235         'iconv_open-utf' is among the tests dependencies, then
9236         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9237         return the special iconv_t values. Therefore iconv() and iconv_close()
9238         must support these special iconv_t values, already in lib, not only in
9239         tests.
9240         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9241         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9242         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9243         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9244         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9245         (Depends-on): Add the dependencies of iconv_open-utf.
9246         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9247         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9248         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9249
9250 2011-05-08  Bruno Haible  <bruno@clisp.org>
9251
9252         group-member: Move AC_LIBOBJ invocations to module description.
9253         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9254         gl_PREREQ_GROUP_MEMBER invocations from here...
9255         * modules/group-member (configure.ac): ... to here.
9256
9257 2011-05-08  Bruno Haible  <bruno@clisp.org>
9258
9259         grantpt: Move AC_LIBOBJ invocations to module description.
9260         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9261         invocations from here...
9262         * modules/grantpt (configure.ac): ... to here.
9263
9264 2011-05-08  Bruno Haible  <bruno@clisp.org>
9265
9266         glob: Move AC_LIBOBJ invocations to module description.
9267         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9268         from here...
9269         * modules/glob (configure.ac): ... to here.
9270
9271 2011-05-08  Bruno Haible  <bruno@clisp.org>
9272
9273         getusershell: Move AC_LIBOBJ invocations to module description.
9274         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9275         Move AC_LIBOBJ invocation from here...
9276         * modules/getusershell (configure.ac): ... to here.
9277         (Depends-on): Update condition.
9278
9279 2011-05-08  Bruno Haible  <bruno@clisp.org>
9280
9281         gettimeofday: Move AC_LIBOBJ invocations to module description.
9282         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9283         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9284         gl_PREREQ_GETTIMEOFDAY invocations from here...
9285         * modules/gettimeofday (configure.ac): ... to here.
9286
9287 2011-05-08  Bruno Haible  <bruno@clisp.org>
9288
9289         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9290         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9291         just gl_FUNC_TZSET.
9292         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9293         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9294         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9295         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9296
9297 2011-05-08  Bruno Haible  <bruno@clisp.org>
9298
9299         getsubopt: Move AC_LIBOBJ invocations to module description.
9300         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9301         gl_PREREQ_GETSUBOPT invocations from here...
9302         * modules/getsubopt (configure.ac): ... to here.
9303
9304 2011-05-08  Bruno Haible  <bruno@clisp.org>
9305
9306         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9307         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9308         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9309         * modules/getpass-gnu (configure.ac): ... to here.
9310
9311 2011-05-08  Bruno Haible  <bruno@clisp.org>
9312
9313         getpass: Move AC_LIBOBJ invocations to module description.
9314         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9315         gl_PREREQ_GETPASS invocations from here...
9316         * modules/getpass (configure.ac): ... to here.
9317
9318 2011-05-08  Bruno Haible  <bruno@clisp.org>
9319
9320         getpagesize: Move AC_LIBOBJ invocations to module description.
9321         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9322         from here...
9323         * modules/getpagesize (configure.ac): ... to here.
9324
9325 2011-05-08  Bruno Haible  <bruno@clisp.org>
9326
9327         getopt: Move AC_LIBOBJ invocations to module description.
9328         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9329         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9330         invocations from here...
9331         * modules/getopt-gnu (configure.ac): ... to here.
9332         * modules/getopt-posix (configure.ac): ... and here.
9333         (Depends-on): Update condition.
9334
9335 2011-05-08  Bruno Haible  <bruno@clisp.org>
9336
9337         getopt, argp: Respect rules for use of AC_LIBOBJ.
9338         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9339         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9340         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9341         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9342
9343 2011-05-08  Bruno Haible  <bruno@clisp.org>
9344
9345         getlogin_r: Move AC_LIBOBJ invocations to module description.
9346         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9347         gl_PREREQ_GETLOGIN_R invocations from here...
9348         * modules/getlogin_r (configure.ac): ... to here.
9349
9350 2011-05-08  Bruno Haible  <bruno@clisp.org>
9351
9352         getlogin: Move AC_LIBOBJ invocations to module description.
9353         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9354         here...
9355         * modules/getlogin (configure.ac): ... to here.
9356
9357 2011-05-08  Bruno Haible  <bruno@clisp.org>
9358
9359         getloadavg: Move AC_LIBOBJ invocations to module description.
9360         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9361         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9362         * modules/getloadavg (configure.ac): ... to here.
9363
9364 2011-05-08  Bruno Haible  <bruno@clisp.org>
9365
9366         gethrxtime: Move AC_LIBOBJ invocations to module description.
9367         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9368         LIB_GETHRXTIME from here...
9369         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9370         invocations from here...
9371         * modules/gethrxtime (configure.ac): ... to here.
9372
9373 2011-05-08  Bruno Haible  <bruno@clisp.org>
9374
9375         gethostname: Move AC_LIBOBJ invocations to module description.
9376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9377         gl_PREREQ_GETHOSTNAME invocations from here...
9378         * modules/gethostname (configure.ac): ... to here.
9379
9380 2011-05-08  Bruno Haible  <bruno@clisp.org>
9381
9382         getgroups: Move AC_LIBOBJ invocations to module description.
9383         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9384         here...
9385         * modules/getgroups (configure.ac): ... to here.
9386
9387 2011-05-08  Bruno Haible  <bruno@clisp.org>
9388
9389         getdtablesize: Move AC_LIBOBJ invocations to module description.
9390         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9391         invocation from here...
9392         * modules/getdtablesize (configure.ac): ... to here.
9393
9394 2011-05-08  Bruno Haible  <bruno@clisp.org>
9395
9396         getdomainname: Move AC_LIBOBJ invocations to module description.
9397         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9398         gl_PREREQ_GETDOMAINNAME invocations from here...
9399         * modules/getdomainname (configure.ac): ... to here.
9400
9401 2011-05-08  Bruno Haible  <bruno@clisp.org>
9402
9403         getline: Move AC_LIBOBJ invocations to module description.
9404         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9405         invocations from here...
9406         * modules/getline (configure.ac): ... to here.
9407
9408 2011-05-08  Bruno Haible  <bruno@clisp.org>
9409
9410         getline: Simplify.
9411         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9412         It's already handled through the module dependency.
9413
9414 2011-05-08  Bruno Haible  <bruno@clisp.org>
9415
9416         getdelim: Move AC_LIBOBJ invocations to module description.
9417         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9418         and gl_PREREQ_GETDELIM invocations from here...
9419         * modules/getdelim (configure.ac): ... to here.
9420         (Depends-on): Fix condition.
9421
9422 2011-05-08  Bruno Haible  <bruno@clisp.org>
9423
9424         getcwd: Move AC_LIBOBJ invocations to module description.
9425         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9426         invocations from here...
9427         * modules/getcwd (configure.ac): ... to here.
9428
9429 2011-05-08  Bruno Haible  <bruno@clisp.org>
9430
9431         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9432         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9433         here...
9434         * modules/getcwd-lgpl (configure.ac): ... to here.
9435
9436 2011-05-07  Bruno Haible  <bruno@clisp.org>
9437
9438         crypto/gc: Move AC_LIBOBJ invocations to module description.
9439         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9440         * modules/crypto/gc (configure.ac): ... to here.
9441
9442 2011-05-07  Bruno Haible  <bruno@clisp.org>
9443
9444         fwriting: Move AC_LIBOBJ invocations to module description.
9445         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9446         here...
9447         * modules/fwriting (configure.ac): ... to here.
9448
9449 2011-05-07  Bruno Haible  <bruno@clisp.org>
9450
9451         fwritable: Move AC_LIBOBJ invocations to module description.
9452         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9453         here...
9454         * modules/fwritable (configure.ac): ... to here.
9455
9456 2011-05-07  Bruno Haible  <bruno@clisp.org>
9457
9458         futimens: Move AC_LIBOBJ invocations to module description.
9459         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9460         here...
9461         * modules/futimens (configure.ac): ... to here.
9462
9463 2011-05-07  Bruno Haible  <bruno@clisp.org>
9464
9465         ftruncate: Move AC_LIBOBJ invocations to module description.
9466         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9467         gl_PREREQ_FTRUNCATE invocations from here...
9468         * modules/ftruncate (configure.ac): ... to here.
9469
9470 2011-05-07  Bruno Haible  <bruno@clisp.org>
9471
9472         fsync: Move AC_LIBOBJ invocations to module description.
9473         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9474         invocations from here...
9475         * modules/fsync (configure.ac): ... to here.
9476
9477 2011-05-07  Bruno Haible  <bruno@clisp.org>
9478
9479         fsusage: Move AC_LIBOBJ invocations to module description.
9480         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9481         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9482         * modules/fsusage (configure.ac): ... to here.
9483
9484 2011-05-07  Bruno Haible  <bruno@clisp.org>
9485
9486         freopen: Move AC_LIBOBJ invocations to module description.
9487         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9488         invocations from here...
9489         * modules/freopen (configure.ac): ... to here.
9490
9491 2011-05-07  Bruno Haible  <bruno@clisp.org>
9492
9493         free: Move AC_LIBOBJ invocations to module description.
9494         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9495         invocations from here...
9496         * modules/free (configure.ac): ... to here.
9497
9498 2011-05-07  Bruno Haible  <bruno@clisp.org>
9499
9500         freadable: Move AC_LIBOBJ invocations to module description.
9501         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9502         here...
9503         * modules/freadable (configure.ac): ... to here.
9504
9505 2011-05-07  Bruno Haible  <bruno@clisp.org>
9506
9507         fpurge: Move AC_LIBOBJ invocations to module description.
9508         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9509         invocations from here...
9510         * modules/fpurge (configure.ac): ... to here.
9511
9512 2011-05-07  Bruno Haible  <bruno@clisp.org>
9513
9514         fpending: Move AC_LIBOBJ invocations to module description.
9515         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9516         gl_FUNC_FPENDING.
9517         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9518         invocations from here...
9519         * modules/fpending (configure.ac): ... to here.
9520
9521 2011-05-07  Bruno Haible  <bruno@clisp.org>
9522
9523         fopen: Move AC_LIBOBJ invocations to module description.
9524         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9525         invocations from here...
9526         * modules/fopen (configure.ac): ... to here.
9527
9528 2011-05-07  Bruno Haible  <bruno@clisp.org>
9529
9530         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9531         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9532         gl_FUNC_FNMATCH_POSIX.
9533         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9534         invocations from here...
9535         * modules/fnmatch (configure.ac): ... to here.
9536         * modules/fnmatch-gnu (configure.ac): ... and here.
9537
9538 2011-05-07  Bruno Haible  <bruno@clisp.org>
9539
9540         flock: Move AC_LIBOBJ invocations to module description.
9541         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9542         invocations from here...
9543         * modules/flock (configure.ac): ... to here.
9544
9545 2011-05-07  Bruno Haible  <bruno@clisp.org>
9546
9547         fileblocks: Move AC_LIBOBJ invocations to module description.
9548         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9549         gl_PREREQ_FILEBLOCKS invocations from here...
9550         * modules/fileblocks (configure.ac): ... to here.
9551
9552 2011-05-06  Bruno Haible  <bruno@clisp.org>
9553
9554         fflush: Move AC_LIBOBJ invocations to module description.
9555         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9556         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9557         invocations from here...
9558         * modules/fflush (configure.ac): ... to here.
9559
9560 2011-05-06  Bruno Haible  <bruno@clisp.org>
9561
9562         fdopendir: Move AC_LIBOBJ invocations to module description.
9563         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9564         here...
9565         * modules/fdopendir (configure.ac): ... to here.
9566         (Depends-on): Improve conditions.
9567
9568 2011-05-06  Bruno Haible  <bruno@clisp.org>
9569
9570         _Exit: Move AC_LIBOBJ invocations to module description.
9571         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9572         invocations from here...
9573         * modules/_Exit (configure.ac): ... to here.
9574
9575 2011-05-21  Bruno Haible  <bruno@clisp.org>
9576
9577         euidaccess: Respect rules for use of AC_LIBOBJ.
9578         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9579         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9580         from here...
9581         * modules/euidaccess (configure.ac): ... to here.
9582
9583 2011-05-06  Bruno Haible  <bruno@clisp.org>
9584
9585         error: Move AC_LIBOBJ invocations to module description.
9586         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9587         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9588         invocations from here...
9589         * modules/error (configure.ac): ... to here.
9590
9591 2011-05-06  Bruno Haible  <bruno@clisp.org>
9592
9593         duplocale: Move AC_LIBOBJ invocations to module description.
9594         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9595         gl_PREREQ_DUPLOCALE invocations from here...
9596         * modules/duplocale (configure.ac): ... to here.
9597
9598 2011-05-05  Bruno Haible  <bruno@clisp.org>
9599
9600         dirfd: Move AC_LIBOBJ invocations to module description.
9601         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9602         gl_FUNC_DIRFD.
9603         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9604         here...
9605         * modules/dirfd (configure.ac): ... to here.
9606         (Depends-on): Fix condition.
9607
9608 2011-05-05  Bruno Haible  <bruno@clisp.org>
9609
9610         chown: Respect rules for use of AC_LIBOBJ.
9611         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9612         * modules/chown (configure.ac): ... to here.
9613
9614 2011-05-05  Bruno Haible  <bruno@clisp.org>
9615
9616         chdir-long: Move AC_LIBOBJ invocations to module description.
9617         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9618         gl_PREREQ_CHDIR_LONG invocations from here...
9619         * modules/chdir-long (configure.ac): ... to here.
9620
9621 2011-05-05  Bruno Haible  <bruno@clisp.org>
9622
9623         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9624         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9625         from here...
9626         * modules/canonicalize-lgpl (configure.ac): ... to here.
9627
9628 2011-05-05  Bruno Haible  <bruno@clisp.org>
9629
9630         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9631         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9632         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9633         REPLACE_CALLOC.
9634         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9635         * modules/calloc-gnu (configure.ac): Likewise.
9636
9637 2011-05-05  Bruno Haible  <bruno@clisp.org>
9638
9639         btowc: Move AC_LIBOBJ invocations to module description.
9640         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9641         invocations from here...
9642         * modules/btowc (configure.ac): ... to here.
9643
9644 2011-05-21  Bruno Haible  <bruno@clisp.org>
9645
9646         atexit: Move AC_LIBOBJ invocations to module description.
9647         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9648         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9649         here...
9650         * modules/atexit (configure.ac): ... to here.
9651
9652 2011-05-05  Bruno Haible  <bruno@clisp.org>
9653
9654         atoll: Move AC_LIBOBJ invocations to module description.
9655         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9656         invocations from here...
9657         * modules/atoll (configure.ac): ... to here.
9658
9659 2011-05-05  Bruno Haible  <bruno@clisp.org>
9660
9661         argz: Move AC_LIBOBJ invocations to module description.
9662         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9663         * modules/argz (configure.ac): ... to here.
9664
9665 2011-05-05  Bruno Haible  <bruno@clisp.org>
9666
9667         alphasort: Move AC_LIBOBJ invocations to module description.
9668         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9669         gl_PREREQ_ALPHASORT invocations from here...
9670         * modules/alphasort (configure.ac): ... to here.
9671
9672 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9673
9674         verify: new macro verify_expr; verify_true deprecated
9675         * NEWS: Mention this.
9676         * doc/verify.texi (Compile-time Assertions): Document this.
9677         * lib/verify.h (verify_true): Deprecate.
9678         (verify_expr): New macro.
9679         * tests/test-verify.c (function): Test verify_expr.
9680
9681 2011-06-14  Jim Meyering  <meyering@redhat.com>
9682
9683         init.sh: give more portable redirection-related advice in a comment
9684         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9685         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9686         for lots of discussion.  Stefano Lattarini suggested the solution
9687         of putting "9>&2" after the command.  Reported by Bruno Haible.
9688
9689 2011-06-13  Bruno Haible  <bruno@clisp.org>
9690
9691         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9692         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9693         'none'.
9694
9695 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9696
9697         ftoastr: use strtof only if HAVE_STRTOF
9698         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9700         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9701         * modules/ftoastr (configure.ac): Check for strtof.
9702
9703 2011-06-13  Bruno Haible  <bruno@clisp.org>
9704
9705         gnulib-tool: Addendum to 2011-06-08 commit.
9706         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9707         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9708
9709 2011-06-13  Bruno Haible  <bruno@clisp.org>
9710
9711         fseeko: Provide a non-inline replacement of fseek().
9712         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9713         * modules/fseeko (Depends-on): Add fseek.
9714         * modules/fseek (License): Change to LGPLv2+.
9715
9716 2011-06-13  Bruno Haible  <bruno@clisp.org>
9717
9718         ftello: Provide a non-inline replacement of ftell().
9719         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9720         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9721         not have ftello() (such as on mingw).
9722         * modules/ftello (Depends-on): Add ftell.
9723         * modules/ftell (License): Change to LGPLv2+.
9724
9725 2011-05-07  Bruno Haible  <bruno@clisp.org>
9726
9727         ftell: Move AC_LIBOBJ invocations to module description.
9728         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9729         * modules/ftell (configure.ac): ... to here.
9730
9731 2011-05-07  Bruno Haible  <bruno@clisp.org>
9732
9733         ftello: Respect rules for use of AC_LIBOBJ.
9734         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9735         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9736         here...
9737         * modules/ftello (configure.ac): ... to here.
9738
9739 2011-05-07  Bruno Haible  <bruno@clisp.org>
9740
9741         fseeko: Simplify.
9742         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9743         (gl_FUNC_FSEEKO): Inline it here.
9744
9745 2011-05-07  Bruno Haible  <bruno@clisp.org>
9746
9747         fseek: Move AC_LIBOBJ invocations to module description.
9748         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9749         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9750         * modules/fseek (configure.ac): ... to here.
9751
9752 2011-05-07  Bruno Haible  <bruno@clisp.org>
9753
9754         fseek: Respect rules for use of AC_LIBOBJ.
9755         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9756         here...
9757         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9758
9759 2011-05-07  Bruno Haible  <bruno@clisp.org>
9760
9761         fseeko: Respect rules for use of AC_LIBOBJ.
9762         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9763         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9764         here...
9765         * modules/fseeko (configure.ac): ... to here.
9766
9767 2011-06-13  Bruno Haible  <bruno@clisp.org>
9768
9769         gnulib-tool: Allow comments in the 'Depends-on' section.
9770         * doc/gnulib.texi (Module description): Mention comment syntax in the
9771         Depends-on section.
9772         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9773
9774 2011-06-13  Bruno Haible  <bruno@clisp.org>
9775
9776         file-set.h: guard __attibute__ use, now that it's not always defined
9777         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9778         versions that support it.  This fixes a coreutils build failure with
9779         the vendor cc on HP-UX 11.31.
9780
9781 2011-06-12  Bruno Haible  <bruno@clisp.org>
9782
9783         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9784         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9785         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9786         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9787         (acl, aclsort): New declarations.
9788         (aclv_nontrivial): New declaration.
9789         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9790         (file_has_acl): Read also the second kind of HP-UX ACLs.
9791         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9792         kind of HP-UX ACLs if the first kind fails.
9793         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9794         second kind of HP-UX ACLs.
9795         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9796         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9797         agree.
9798         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9799         hpuxjfs.
9800         Handle hpuxjfs.
9801         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9802         hpuxjfs.
9803         Handle hpuxjfs.
9804         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9805         (func_test_same_acls): Use both lsacl and getacl.
9806         Handle hpuxjfs.
9807         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9808         (func_test_same_acls): Use both lsacl and getacl.
9809         Handle hpuxjfs.
9810
9811 2011-06-12  Bruno Haible  <bruno@clisp.org>
9812
9813         acl: Complete the 2010-08-10 fix.
9814         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9815         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9816         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9817         explicitly.
9818         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9819         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9820
9821 2011-06-12  Bruno Haible  <bruno@clisp.org>
9822
9823         spawn-pipe tests: Comments.
9824         * tests/test-spawn-pipe-child.c (main): Update comment.
9825         Reported by James Youngman <jay@gnu.org>.
9826
9827 2011-06-11  James Youngman  <jay@gnu.org>
9828
9829         New module 'stat-size'.
9830         * modules/stat-size: New module.  Provides macros for accessing
9831         file size information in instances of struct stat.  Depends on the
9832         fileblocks module because it calls st_blocks.
9833         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9834         * doc/gnulib.texi: Include stat-size.texi.
9835         * doc/stat-size.texi: Documentation for this module.
9836         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9837         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9838         AC_STRUCT_ST_BLOCKS.
9839
9840 2011-06-09  Bruno Haible  <bruno@clisp.org>
9841
9842         thread: Support pthreads-win32.
9843         * lib/glthread/thread.h (gl_thread_self): Define differently on
9844         pthreads-win32.
9845         (gl_null_thread): New declaration.
9846         (gl_thread_self_pointer): New macro.
9847         * lib/glthread/thread.c (gl_null_thread): New constant.
9848         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9849         gl_thread_self.
9850         * tests/test-tls.c: Likewise.
9851         Suggested by Paul Eggert. Reported by Eric Blake.
9852
9853 2011-06-09  Bruno Haible  <bruno@clisp.org>
9854
9855         thread: Fix confusion between NULL and 0.
9856         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9857         Reported by Paul Eggert.
9858
9859 2011-06-09  Bruno Haible  <bruno@clisp.org>
9860
9861         spawn-pipe tests: Avoid test failure on HP-UX 11.
9862         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9863         is closed.
9864
9865 2011-06-09  Bruno Haible  <bruno@clisp.org>
9866
9867         acl tests: Fix compilation error on HP-UX 11.
9868         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9869
9870 2011-06-09  Bruno Haible  <bruno@clisp.org>
9871
9872         rmdir: Avoid test failure on HP-UX 10.20.
9873         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9874         EEXIST.
9875
9876 2011-06-08  Eric Blake  <eblake@redhat.com>
9877
9878         perror: fix test on mingw
9879         * modules/perror-tests (Depends-on): Add dup2.
9880
9881         strerror_r-posix: fix on MacOS
9882         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9884         logic bug.
9885         * lib/strerror_r.c (strerror_r): Fix the bug.
9886         * lib/strerror.c (strerror): Likewise.
9887         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9888         problem.
9889         * doc/posix-functions/strerror.texi (strerror): Likewise.
9890         * doc/posix-functions/perror.texi (perror): Likewise.
9891         * tests/test-strerror.c (main): Enhance test.
9892         * tests/test-strerror_r.c (main): Likewise.
9893
9894 2011-06-08  Bruno Haible  <bruno@clisp.org>
9895
9896         gnulib-tool: Better isolation between different gnulib-tool invocations.
9897         * gnulib-tool: New option --witness-c-macro.
9898         (witness_c_macro): New variable.
9899         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9900         AM_CPPFLAGS define it as a C macro.
9901         (func_emit_tests_Makefile_am): Likewise.
9902         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9903         read it from there.
9904         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9905         m4_define, not AC_DEFUN.
9906         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9907         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9908         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9909         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9910         s|...|...|, to substitute the values of the GNULIB_* module indicator
9911         variables.
9912         * modules/dirent (Makefile.am): Likewise.
9913         * modules/fcntl-h (Makefile.am): Likewise.
9914         * modules/iconv-h (Makefile.am): Likewise.
9915         * modules/langinfo (Makefile.am): Likewise.
9916         * modules/locale (Makefile.am): Likewise.
9917         * modules/math (Makefile.am): Likewise.
9918         * modules/netdb (Makefile.am): Likewise.
9919         * modules/poll-h (Makefile.am): Likewise.
9920         * modules/pty (Makefile.am): Likewise.
9921         * modules/search (Makefile.am): Likewise.
9922         * modules/signal (Makefile.am): Likewise.
9923         * modules/spawn (Makefile.am): Likewise.
9924         * modules/stdio (Makefile.am): Likewise.
9925         * modules/stdlib (Makefile.am): Likewise.
9926         * modules/string (Makefile.am): Likewise.
9927         * modules/sys_ioctl (Makefile.am): Likewise.
9928         * modules/sys_select (Makefile.am): Likewise.
9929         * modules/sys_socket (Makefile.am): Likewise.
9930         * modules/sys_stat (Makefile.am): Likewise.
9931         * modules/sys_times (Makefile.am): Likewise.
9932         * modules/sys_utsname (Makefile.am): Likewise.
9933         * modules/sys_wait (Makefile.am): Likewise.
9934         * modules/termios (Makefile.am): Likewise.
9935         * modules/time (Makefile.am): Likewise.
9936         * modules/unistd (Makefile.am): Likewise.
9937         * modules/wchar (Makefile.am): Likewise.
9938
9939 2011-06-08  Eric Blake  <eblake@redhat.com>
9940
9941         strerror: simplify replacement
9942         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9943         * modules/strerror (configure.ac): No prereqs needed here...
9944         * modules/strerror-override (configure.ac): ...but this needs it.
9945         (Files): Add file for needed prereq macro.
9946
9947 2011-06-08  Bruno Haible  <bruno@clisp.org>
9948
9949         strerror_r-posix: Tweaks.
9950         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9951         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9952         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9953         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9954         (gl_FUNC_STRERROR_R): ... to here.
9955         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9956
9957 2011-06-07  Eric Blake  <eblake@redhat.com>
9958
9959         perror: document fixed bugs
9960         * doc/posix-functions/perror.texi (perror): Document recent
9961         patches.
9962
9963 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9964
9965         stat-time: get_stat_birthtime failure is better-defined
9966         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9967         return a timestamp whose tv_sec and tv_nsec values are both -1.
9968         Previously, the spec said only that the tv_nsec value was negative.
9969         This upward-compatible change simplifies GNU tar a bit.
9970
9971 2011-06-07  Eric Blake  <eblake@redhat.com>
9972
9973         strerror_r-posix: work around cygwin 1.7.9
9974         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9975         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9976         bug without replacing strerror_r.
9977         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9978         strerror_r is buggy, but without requiring strerror_r compilation.
9979         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9980
9981         test-perror: relax test to ignore cygwin bug
9982         * tests/test-perror2.c (main): Relax test on requiring detection
9983         of stream errors, and use unbuffered stream.
9984         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9985         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9986         * doc/posix-functions/fputc.texi (fputc): Likewise.
9987         * doc/posix-functions/fputs.texi (fputs): Likewise.
9988         * doc/posix-functions/fputws.texi (fputws): Likewise.
9989         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9990         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9991         * doc/posix-functions/getopt.texi (getopt): Likewise.
9992         * doc/posix-functions/perror.texi (perror): Likewise.
9993         * doc/posix-functions/printf.texi (printf): Likewise.
9994         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9995         * doc/posix-functions/psignal.texi (psignal): Likewise.
9996         * doc/posix-functions/putc.texi (putc): Likewise.
9997         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9998         Likewise.
9999         * doc/posix-functions/putchar.texi (putchar): Likewise.
10000         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10001         Likewise.
10002         * doc/posix-functions/puts.texi (puts): Likewise.
10003         * doc/posix-functions/putwc.texi (putwc): Likewise.
10004         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10005         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10006         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10007         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10008         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10009         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10010         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10011         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10012
10013 2011-05-22  Bruno Haible  <bruno@clisp.org>
10014
10015         strerror: Move AC_LIBOBJ invocations to module description.
10016         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10017         gl_PREREQ_STRERROR invocations from here...
10018         * modules/strerror (configure.ac): ... to here.
10019
10020 2011-05-21  Bruno Haible  <bruno@clisp.org>
10021
10022         perror: Use common idiom.
10023         * modules/perror (configure.ac): Reorder statements.
10024
10025 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10026
10027         tests: fix usage message in 'mktempd_'
10028         * tests/init.sh (mktempd_): In the usage message, use literal
10029         'mktempd_', not '$ME' (which is even undefined), as the name of
10030         the subroutine.
10031
10032 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10033
10034         tests init: new function 'fatal_', for hard errors
10035         Before this patch, the only way offered by tests/init.sh to
10036         properly signal a hard error was the `framework_failure_'
10037         function.  But the error message issued by that function,
10038         as its name would suggest, refers to a set-up failure in the
10039         testsuite, while hard errors can obviously also be due to
10040         other reasons.  The best way to fix this inconsistency is to
10041         introduce a new function with a more general error message.
10042         * tests/init.sh (fatal_): New function.
10043
10044 2011-06-06  Eric Blake  <eblake@redhat.com>
10045
10046         canonicalize-lgpl: use common idiom
10047         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10048         over newer POSIX -Rf.
10049         Reported by Bruno Haible.
10050
10051         canonicalize-lgpl: work around AIX realpath bug
10052         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10053         * doc/posix-functions/realpath.texi (realpath): Document it.
10054         Reported by Bruno Haible.
10055
10056         strerror: work around FreeBSD bug
10057         * lib/strerror.c (strerror): Special case 0.
10058         Reported by Bruno Haible.
10059
10060         strerror-override: avoid bloating errno module
10061         * modules/errno (Files, configure.ac): Move replacement strings...
10062         * modules/strerror-override: ...to new module.
10063         * modules/strerror (Depends-on): Add strerror-override.
10064         * modules/strerror_r-posix (Depends-on): Likewise.
10065         * MODULES.html.sh: Document new module.
10066         Reported by Bruno Haible.
10067
10068 2011-06-06  Bruno Haible  <bruno@clisp.org>
10069
10070         spawn-pipe tests: Rename program.
10071         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10072         * tests/test-spawn-pipe-child.c: Update comment.
10073         * tests/test-spawn-pipe.sh: Update.
10074         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10075
10076         spawn-pipe tests: Link the child program only against libc.
10077         * tests/test-spawn-pipe-child.c: New file, extracted from
10078         tests/test-spawn-pipe.c.
10079         (main): Expect only one argument.
10080         (is_open): New function, copied from tests/test-pipe.c.
10081         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10082         (child_main): Remove function.
10083         (test_pipe): Pass only one argument to the child program.
10084         (main): Remove child process code. Expect the child program's name as
10085         first argument.
10086         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10087         argument.
10088         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10089         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10090         test-spawn-pipe-child against no libraries.
10091
10092 2011-06-06  Bruno Haible  <bruno@clisp.org>
10093
10094         careadlinkat: Avoid mismatch between ssize_t and int.
10095         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10096         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10097
10098 2011-06-06  Jim Meyering  <meyering@redhat.com>
10099
10100         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10101         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10102         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10103
10104 2011-06-05  Bruno Haible  <bruno@clisp.org>
10105
10106         ansi-c++-opt: Interoperability with libtool.
10107         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10108         set the variable to "no", not to ":".
10109         * NEWS: Mention the change.
10110
10111 2011-06-05  Bruno Haible  <bruno@clisp.org>
10112
10113         acl: Fix test failure on AIX 7.
10114         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10115         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10116
10117 2011-06-05  Bruno Haible  <bruno@clisp.org>
10118
10119         pipe-filter-ii: Fix test failure on AIX and IRIX.
10120         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10121         with EAGAIN, retry with a smaller buffer size.
10122
10123 2011-06-05  Bruno Haible  <bruno@clisp.org>
10124
10125         localename: Fix link dependencies.
10126         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10127         * modules/localename-tests (Makefile.am): Link test-localename with
10128         $(LIBTHREAD).
10129
10130 2011-06-05  Bruno Haible  <bruno@clisp.org>
10131
10132         error: Avoid gcc warning.
10133         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10134
10135 2011-06-05  Bruno Haible  <bruno@clisp.org>
10136
10137         unsetenv: Avoid gcc warning.
10138         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10139
10140 2011-06-05  Bruno Haible  <bruno@clisp.org>
10141
10142         setenv: Avoid gcc warning.
10143         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10144
10145 2011-06-05  Bruno Haible  <bruno@clisp.org>
10146
10147         sys_select: Ensure memset is declared also on AIX 7.
10148         * lib/sys_select.in.h: Include <string.h> also on AIX.
10149         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10150         self-contained also on AIX 7.1.
10151
10152 2011-06-04  Jim Meyering  <meyering@redhat.com>
10153
10154         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10155         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10156         function name, "error".
10157         (_gl_translatable_diag_func_re): New configurable variable.
10158
10159 2011-06-04  Bruno Haible  <bruno@clisp.org>
10160
10161         getopt: Avoid gcc warning.
10162         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10163
10164 2011-06-04  Bruno Haible  <bruno@clisp.org>
10165
10166         strerror_r: Fix comments.
10167         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10168         commit.
10169
10170 2011-06-04  Bruno Haible  <bruno@clisp.org>
10171
10172         perror: Fix compilation error.
10173         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10174         Undefine fprintf, not sprintf.
10175         * modules/perror (Depends-on): Remove intprops, verify.
10176
10177 2011-06-04  Bruno Haible  <bruno@clisp.org>
10178
10179         setlocale: Enable replacement on Cygwin 1.5.
10180         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10181         Cygwin 1.5.x.
10182         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10183         LC_CTYPE category also exists on Cygwin 1.5.x.
10184
10185 2011-06-04  Bruno Haible  <bruno@clisp.org>
10186
10187         strerror-override: Don't disable symbol renamings.
10188         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10189         * lib/strerror-override.c: Include config.h.
10190         (strerror_override): Don't undefine.
10191
10192 2011-06-03  Bruno Haible  <bruno@clisp.org>
10193
10194         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10195         * lib/localename.h: Update copyright header.
10196         * lib/localename.c: Likewise.
10197         * lib/relocatable.h: Likewise.
10198         * lib/relocatable.c: Likewise.
10199
10200 2011-06-02  Bruno Haible  <bruno@clisp.org>
10201
10202         doc: Fix a module name.
10203         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10204
10205 2011-06-02  Bruno Haible  <bruno@clisp.org>
10206
10207         pipe2: Remove dependency on 'nonblocking' module.
10208         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10209         O_NONBLOCK is defined by gnulib.
10210         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10211         is zero.
10212         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10213         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10214         defined by gnulib.
10215         (get_nonblocking_flag): New function.
10216         (main): Test O_NONBLOCK flag only if it is nonzero.
10217         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10218
10219 2011-06-03  Jim Meyering  <meyering@redhat.com>
10220
10221         maint: three new prohibit-header-without-use rules
10222         Prohibit use of cloexec.h, posixver.h, same.h without use.
10223         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10224         (sc_prohibit_posixver_without_use): Likewise.
10225         (sc_prohibit_same_without_use): Likewise.
10226
10227 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10228
10229         allocator: 'die' routine is now given requested size
10230         * lib/allocator.h (struct allocator.die): New size arg.
10231         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10232         If the actual problem is an ssize_t limitation, not a size_t or
10233         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10234
10235 2011-06-01  Eric Blake  <eblake@redhat.com>
10236
10237         strerror: drop strerror_r dependency
10238         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10239         * lib/strerror-override.c (strerror_override): ...to new file.
10240         * lib/strerror-override.h: Add prototype.
10241         * lib/strerror-impl.h: Delete.
10242         * lib/strerror.c (strerror): New implementation.
10243         * modules/errno (Files): Add new files.
10244         (configure.ac): Compile new file as appropriate.
10245         * modules/strerror (Files): Drop unused file.
10246         (Depends-on): Drop strerror_r-posix.
10247         * MODULES.html.sh: Document strerror_r-posix.
10248         Requested by Sam Steingold.
10249
10250         perror: call strerror_r directly
10251         * modules/perror (Files): Drop strerror-impl.h.
10252         * lib/perror.c (perror): Use our own stack buffer, rather than
10253         calling a wrapper that uses static storage.
10254         * doc/posix-functions/perror.texi (perror): Document a limitation
10255         of our replacement.
10256
10257         strerror_r: fix includes for FreeBSD
10258         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10259         since we use abort on some platforms.
10260         Reported by Matthias Bolte.
10261
10262 2011-05-31  Bruno Haible  <bruno@clisp.org>
10263
10264         Fix link errors in tests: openat-die uses gettext-h.
10265         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10266         against $(LIBINTL).
10267         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10268         against $(LIBINTL).
10269         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10270         $(LIBINTL).
10271         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10272         against $(LIBINTL).
10273         * modules/linkat-tests (Makefile.am): Link test-linkat against
10274         $(LIBINTL).
10275         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10276         $(LIBINTL).
10277         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10278         against $(LIBINTL).
10279         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10280         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10281         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10282         $(LIBINTL).
10283         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10284         $(LIBINTL).
10285         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10286         $(LIBINTL).
10287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10288
10289 2011-05-31  Bruno Haible  <bruno@clisp.org>
10290
10291         Fix link errors in tests: wait-process uses gettext-h.
10292         * modules/nonblocking-pipe-tests (Makefile.am): Set
10293         test_nonblocking_pipe_main_LDADD.
10294         * modules/nonblocking-socket-tests (Makefile.am): Link
10295         test-nonblocking-socket-main against $(LIBINTL).
10296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10297
10298 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10299
10300         assert-h: work around 'verify' incompatibility
10301         * lib/verify.h: Use @...@ directives, not ifdef.
10302         * modules/assert-h (assert.h): Implement the directives.
10303         (assert.h): Substitute the symbol-prefix more consistently.
10304
10305 2011-05-29  Jim Meyering  <meyering@redhat.com>
10306
10307         trim: remove three superfluous assignments
10308         * lib/trim.c (trim2): Remove three superfluous assignments
10309         and correct brace positioning.
10310
10311 2011-05-29  Bruno Haible  <bruno@clisp.org>
10312
10313         wctype-h: Avoid namespace pollution on Solaris 2.6.
10314         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10315         identifiers.
10316         * doc/posix-headers/wctype.texi: Mention the problem.
10317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10318
10319 2011-05-28  Jim Meyering  <meyering@redhat.com>
10320
10321         parse-datetime.y: accommodate -Wstrict-overflow
10322         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10323         placate -Wstrict-overflow.
10324
10325         trim: avoid a warning from -O2 -Wstrict-overflow
10326         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10327
10328 2011-05-29  Bruno Haible  <bruno@clisp.org>
10329
10330         gnulib-tool: Fix bug in yesterday's commit.
10331         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10332         twice.
10333
10334 2011-05-29  Bruno Haible  <bruno@clisp.org>
10335
10336         Allow multiple gnulib generated include files to be combined.
10337         * gnulib-tool (func_compute_include_guard_prefix): New function.
10338         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10339         ${gl_include_guard_prefix} references.
10340         (func_import, func_create_testdir): Invoke
10341         func_compute_include_guard_prefix.
10342         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10343         * lib/ctype.in.h: Likewise.
10344         * lib/dirent.in.h: Likewise.
10345         * lib/errno.in.h: Likewise.
10346         * lib/fcntl.in.h: Likewise.
10347         * lib/float.in.h: Likewise.
10348         * lib/getopt.in.h: Likewise.
10349         * lib/iconv.in.h: Likewise.
10350         * lib/langinfo.in.h: Likewise.
10351         * lib/locale.in.h: Likewise.
10352         * lib/math.in.h: Likewise.
10353         * lib/netdb.in.h: Likewise.
10354         * lib/netinet_in.in.h: Likewise.
10355         * lib/poll.in.h: Likewise.
10356         * lib/pthread.in.h: Likewise.
10357         * lib/pty.in.h: Likewise.
10358         * lib/sched.in.h: Likewise.
10359         * lib/se-selinux.in.h: Likewise.
10360         * lib/search.in.h: Likewise.
10361         * lib/signal.in.h: Likewise.
10362         * lib/spawn.in.h: Likewise.
10363         * lib/stdarg.in.h: Likewise.
10364         * lib/stddef.in.h: Likewise.
10365         * lib/stdint.in.h: Likewise.
10366         * lib/stdio.in.h: Likewise.
10367         * lib/stdlib.in.h: Likewise.
10368         * lib/string.in.h: Likewise.
10369         * lib/strings.in.h: Likewise.
10370         * lib/sys_file.in.h: Likewise.
10371         * lib/sys_ioctl.in.h: Likewise.
10372         * lib/sys_select.in.h: Likewise.
10373         * lib/sys_socket.in.h: Likewise.
10374         * lib/sys_stat.in.h: Likewise.
10375         * lib/sys_time.in.h: Likewise.
10376         * lib/sys_times.in.h: Likewise.
10377         * lib/sys_uio.in.h: Likewise.
10378         * lib/sys_utsname.in.h: Likewise.
10379         * lib/sys_wait.in.h: Likewise.
10380         * lib/sysexits.in.h: Likewise.
10381         * lib/termios.in.h: Likewise.
10382         * lib/time.in.h: Likewise.
10383         * lib/unistd.in.h: Likewise.
10384         * lib/wchar.in.h: Likewise.
10385         * lib/wctype.in.h: Likewise.
10386         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10387         * modules/ctype (Makefile.am): Likewise.
10388         * modules/dirent (Makefile.am): Likewise.
10389         * modules/errno (Makefile.am): Likewise.
10390         * modules/fcntl-h (Makefile.am): Likewise.
10391         * modules/float (Makefile.am): Likewise.
10392         * modules/getopt-posix (Makefile.am): Likewise.
10393         * modules/iconv-h (Makefile.am): Likewise.
10394         * modules/langinfo (Makefile.am): Likewise.
10395         * modules/locale (Makefile.am): Likewise.
10396         * modules/math (Makefile.am): Likewise.
10397         * modules/netdb (Makefile.am): Likewise.
10398         * modules/netinet_in (Makefile.am): Likewise.
10399         * modules/poll-h (Makefile.am): Likewise.
10400         * modules/pthread (Makefile.am): Likewise.
10401         * modules/pty (Makefile.am): Likewise.
10402         * modules/sched (Makefile.am): Likewise.
10403         * modules/search (Makefile.am): Likewise.
10404         * modules/selinux-h (Makefile.am): Likewise.
10405         * modules/signal (Makefile.am): Likewise.
10406         * modules/spawn (Makefile.am): Likewise.
10407         * modules/stdarg (Makefile.am): Likewise.
10408         * modules/stddef (Makefile.am): Likewise.
10409         * modules/stdint (Makefile.am): Likewise.
10410         * modules/stdio (Makefile.am): Likewise.
10411         * modules/stdlib (Makefile.am): Likewise.
10412         * modules/string (Makefile.am): Likewise.
10413         * modules/strings (Makefile.am): Likewise.
10414         * modules/sys_file (Makefile.am): Likewise.
10415         * modules/sys_ioctl (Makefile.am): Likewise.
10416         * modules/sys_select (Makefile.am): Likewise.
10417         * modules/sys_socket (Makefile.am): Likewise.
10418         * modules/sys_stat (Makefile.am): Likewise.
10419         * modules/sys_time (Makefile.am): Likewise.
10420         * modules/sys_times (Makefile.am): Likewise.
10421         * modules/sys_uio (Makefile.am): Likewise.
10422         * modules/sys_utsname (Makefile.am): Likewise.
10423         * modules/sys_wait (Makefile.am): Likewise.
10424         * modules/sysexits (Makefile.am): Likewise.
10425         * modules/termios (Makefile.am): Likewise.
10426         * modules/time (Makefile.am): Likewise.
10427         * modules/unistd (Makefile.am): Likewise.
10428         * modules/wchar (Makefile.am): Likewise.
10429         * modules/wctype-h (Makefile.am): Likewise.
10430         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10431
10432 2011-05-29  Bruno Haible  <bruno@clisp.org>
10433
10434         assert-h: Allow multiple gnulib generated replacements to coexist.
10435         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10436
10437 2011-05-29  Bruno Haible  <bruno@clisp.org>
10438
10439         argp: Allow coexistence with strerror_r-posix module.
10440         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10441         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10442         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10443         not the glibc signature.
10444
10445 2011-05-28  Bruno Haible  <bruno@clisp.org>
10446
10447         gnulib-tool: Alternative structure of testdirs, similar to --import.
10448         * gnulib-tool: New option --single-configure.
10449         (func_usage): Document it.
10450         (single_configure): New variable.
10451         (func_modules_transitive_closure_separately,
10452         func_modules_transitive_closure_separately,
10453         func_determine_use_libtests, func_modules_add_dummy_separately,
10454         func_modules_to_filelist_separately): New functions, extracted from
10455         func_import.
10456         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10457         (func_import): Use the new functions.
10458         (func_create_testdir): Set final_modules. Handle $single_configure =
10459         true case.
10460
10461 2011-05-28  Bruno Haible  <bruno@clisp.org>
10462
10463         getloadavg: Remove an unreliable safety check.
10464         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10465         getloadavg.c is in place.
10466         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10467         Reported by Sam Steingold <sds@gnu.org>.
10468
10469 2011-05-28  Bruno Haible  <bruno@clisp.org>
10470
10471         doc: Cleanup yet another file produced by texinfo.tex.
10472         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10473
10474 2011-05-28  Bruno Haible  <bruno@clisp.org>
10475
10476         Finish the conditional dependencies mechanism.
10477         * gnulib-tool: New option --no-conditional-dependencies.
10478         (func_usage): Document it. Don't mark --conditional-dependencies as
10479         experimental.
10480         (cond_dependencies): The possible values can now be true, false, empty.
10481         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10482         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10483         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10484
10485 2011-05-28  Bruno Haible  <bruno@clisp.org>
10486
10487         doc: Use a recent texinfo.tex.
10488         * doc/Makefile (tex_opts): New variable.
10489         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10490
10491 2011-05-28  Jim Meyering  <meyering@redhat.com>
10492
10493         intprops.h: adjust comment to match code change
10494         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10495         only once, it *may* have side effects.  Also fix an unrelated typo.
10496         (_GL_INT_SIGNED): Likewise.
10497
10498 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10499
10500         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10501
10502 2011-05-26  Bruno Haible  <bruno@clisp.org>
10503
10504         mbsrchr: Avoid collision with system function on Interix.
10505         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10506         Reported by Markus Duft <mduft@gentoo.org>.
10507
10508 2011-05-15  James Youngman  <jay@gnu.org>
10509
10510         getopt: for ambiguous options, enumerate the possibilities.
10511         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10512         the ambiguous options when an ambiguous prefix is given. This was
10513         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10514         glibc change was
10515         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10516
10517 2011-05-25  Eric Blake  <eblake@redhat.com>
10518
10519         getcwd: work around mingw bug
10520         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10521         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10522         Reported by Matthias Bolte.
10523
10524 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10525
10526         test-intprops: disable -Wtype-limits diagnostics
10527         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10528         diagnostics.  Otherwise, the integer overflow macros generate many
10529         diagnostics.  Reported by Jim Meyering in
10530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10531
10532         intprops: shorten, to pacify gcc -Woverlength-strings
10533         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10534         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10535         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10536         likely to run afoul of C compiler limits for string constant lengths.
10537         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10538
10539 2011-05-24  Eric Blake  <eblake@redhat.com>
10540
10541         docs: document recently fixed glibc printf bug
10542         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10543         * doc/posix-functions/printf.texi (printf): Likewise.
10544         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10545         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10546
10547         closein-tests: convert to init.sh
10548         * modules/closein-tests (Files): Add init.sh
10549         * tests/test-closein.sh Use it.
10550
10551         yesno-tests: convert to init.sh
10552         * modules/yesno-tests (Files): Add init.sh.
10553         * tests/test-yesno.sh: Use it.
10554
10555         atexit-tests: ensure reliable exit status
10556         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10557         Reported by Bruno Haible.
10558
10559 2011-05-24  Bruno Haible  <bruno@clisp.org>
10560
10561         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10562         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10563         gl_PREREQ_STRERROR_R invocations from here...
10564         * modules/strerror_r-posix (configure.ac): ... to here.
10565
10566 2011-05-24  Eric Blake  <eblake@redhat.com>
10567
10568         strerror_r: fix missing header
10569         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10570
10571         strerror_r: fix AIX test failures
10572         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10573         ERANGE failure.
10574
10575         strerror_r: fix Solaris test failures
10576         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10577         failures.
10578         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10579
10580         strerror_r: enforce POSIX recommendations
10581         * lib/strerror_r.c (safe_copy): New helper method.
10582         (strerror_r): Guarantee a non-empty string.
10583         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10584         recent POSIX rulings and to match our strerror guarantees.
10585         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10586
10587 2011-05-24  Jim Meyering  <meyering@redhat.com>
10588
10589         test-perror2.c: avoid warning about unused variable
10590         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10591
10592 2011-05-24  Eric Blake  <eblake@redhat.com>
10593
10594         perror: avoid spurious test failure on HP-UX
10595         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10596
10597         tests: fix logic bug in init.sh
10598         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10599         shell.
10600
10601 2011-05-24  Jim Meyering  <meyering@redhat.com>
10602
10603         utimensat: do not reference an out-of-scope buffer
10604         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10605         declared in an inner scope, yet "times" would be dereferenced outside
10606         the scope in which "ts" was valid.
10607         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10608         of ts[2] "out/up", so that the use of aliased "times" (via
10609         "times = ts;") does not end up referencing an out-of-scope "ts"
10610
10611         opendir-safer.c: don't clobber errno; don't close negative FD
10612         * lib/opendir-safer.c (opendir_safer):
10613         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10614         file descriptor, and more importantly, don't clobber the
10615         offending errno value with EINVAL.  Before, upon failure
10616         of dup_safer, we would pass the negative file descriptor to
10617         fdopendir, which would clobber errno.
10618
10619 2011-05-23  Bruno Haible  <bruno@clisp.org>
10620
10621         idcache: Fix module description.
10622         * modules/idcache (Include): Set to "idcache.h".
10623
10624 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10625
10626         gnulib-tool: fix portability problem with MacOS sed
10627         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10628         before the "}".  Problem reported by Leo in
10629         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10630         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10631         sed_extract_condition1, sed_extract_condition2.
10632
10633 2011-05-23  Bruno Haible  <bruno@clisp.org>
10634
10635         hash: Simplify autoconf macro.
10636         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10637
10638 2011-05-23  Bruno Haible  <bruno@clisp.org>
10639
10640         getugroups: Fix module description.
10641         * modules/getugroups (Include): Set to "getugroups.h".
10642
10643 2011-05-23  Bruno Haible  <bruno@clisp.org>
10644
10645         linkat: Simplify autoconf macro.
10646         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10647
10648 2011-05-23  Bruno Haible  <bruno@clisp.org>
10649             Eric Blake  <eblake@redhat.com>
10650
10651         linkat, renameat: Update dependencies.
10652         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10653         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10654         symlinkat.
10655
10656 2011-05-23  Jim Meyering  <meyering@redhat.com>
10657
10658         maint.mk: more tight_scope improvements
10659         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10660         (_gl_TS_headers): Define only in if-0'd block.
10661         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10662         sometimes we must *not* use it.  Adjust uses accordingly.
10663         (sc_tight_scope): Use much simpler grep-based test to determine
10664         whether we skip this rule.
10665
10666         maint.mk: generalize/improve the tight-scope rule
10667         * top/maint.mk: Emit a warning when the test is skipped.
10668         (_gl_TS_dir): Add $(srcdir)/ prefix.
10669         (_gl_TS_function_match): Simplify, rather than trying
10670         to enumerate common types.  Otherwise, it would fail to match an
10671         "extern unsigned char const *" declaration in idutils.
10672         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10673         a way to support use of that type of macro.
10674         (_gl_TS_var_match): Simplify regexp.
10675         (_gl_TS_obj_files): New configurable variable.
10676         (_gl_TS_headers): Likewise.
10677
10678 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         verify: fix bug when gnulib <assert.h> is also included
10681         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10682         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10683         Perhaps there's a better way, but this fixes the immediate problem.
10684         Problem reported by Bruno Haible in
10685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10686
10687 2011-05-22  Bruno Haible  <bruno@clisp.org>
10688
10689         xgetcwd: Simplify autoconf macro.
10690         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10691
10692 2011-05-22  Bruno Haible  <bruno@clisp.org>
10693
10694         New module 'mktime-internal'.
10695         * modules/mktime-internal: New file.
10696         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10697         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10698         mktime_internal as a C macro if libc has __mktime_internal.
10699         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10700         conditions.
10701         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10702
10703 2011-05-22  Bruno Haible  <bruno@clisp.org>
10704
10705         timegm: Correct mktime replacement statements.
10706         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10707         defining mktime as a C macro. This completes a 2009-07-28 commit.
10708
10709 2011-05-22  Bruno Haible  <bruno@clisp.org>
10710
10711         timegm: Simplify autoconf macro.
10712         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10713
10714 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10715
10716         clock-time: change to LGPLv2+.
10717         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10718         BSD-like but we have no mark for that; this is good enough for now.
10719
10720 2011-05-21  Bruno Haible  <bruno@clisp.org>
10721
10722         strerror_r: Fix comments.
10723         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10724
10725 2011-05-21  Bruno Haible  <bruno@clisp.org>
10726
10727         relocatable-prog-wrapper: Fix possible link error.
10728         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10729         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10730         (gl_FUNC_SETENV): ... to here.
10731         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10732         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10733
10734 2011-05-21  Bruno Haible  <bruno@clisp.org>
10735
10736         relocatable-prog-wrapper: Assume strerror() exists.
10737         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10738         m4/strerror.m4.
10739         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10740         * lib/relocwrapper.c: Remove mention of strerror module.
10741         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10742         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10743         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10744         C macro.
10745
10746 2011-05-21  Bruno Haible  <bruno@clisp.org>
10747
10748         select: Simplify replacement idiom.
10749         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10750         Win32 platforms.
10751         * lib/sys_select.in.h (select): Simplify accordingly.
10752         * modules/select (Depends-on): Likewise.
10753
10754 2011-05-21  Bruno Haible  <bruno@clisp.org>
10755
10756         mkdir-p: Simplify autoconf macro.
10757         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10758         gl_FUNC_LCHOWN.
10759
10760 2011-05-21  Eric Blake  <eblake@redhat.com>
10761
10762         strerror_r: avoid clobbering strerror on cygwin
10763         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10764         fall back instead to sys_errlist.
10765         * modules/strerror (configure.ac): Add witness.
10766         * tests/test-strerror_r.c (main): Enhance test.
10767         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10768         * tests/test-perror2.c (main): Free memory before exit.
10769
10770 2011-05-21  Bruno Haible  <bruno@clisp.org>
10771
10772         mkdtemp: Use gnulib naming conventions.
10773         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10774         * modules/mkdtemp (configure.ac): Update.
10775
10776 2011-05-20  Eric Blake  <eblake@redhat.com>
10777
10778         strerror_r: avoid corrupting errno on Solaris
10779         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10780         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10781
10782         strerror_r: avoid compiler warning
10783         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10784
10785         strerror_r: simplify AIX code
10786         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10787
10788         test-perror: avoid spurious failure on FreeBSD
10789         * modules/perror-tests (Depends-on): Add strerror, now that
10790         strerror_r no longer pulls it in.
10791
10792 2011-05-20  Bruno Haible  <bruno@clisp.org>
10793
10794         strerror_r-posix: Remove unused dependencies.
10795         * modules/strerror_r-posix (Depends-on): Remove strerror.
10796         Reported by Eric Blake.
10797
10798 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10799
10800         intprops: remove assumption about A|B representation
10801         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10802         is a valid integer if both A and B are.  Although this is true for
10803         all known practical hosts, the C standard doesn't guarantee it,
10804         and the code need not assume it.  Also, this change may work around
10805         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10807
10808 2011-05-20  Eric Blake  <eblake@redhat.com>
10809
10810         perror: work around FreeBSD bug
10811         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10812         is broken.  Move AC_LIBOBJ...
10813         * modules/perror (configure.ac): Here.
10814         * doc/posix-functions/perror.texi (perror): Document this.
10815         * tests/test-perror2.c (main): Enhance test.
10816
10817         test-perror: check for strerror interactions
10818         * tests/macros.h (STREQ): Add macro.
10819         * modules/perror-tests (Files): Add second test.
10820         * tests/test-perror2.c (main): New file.
10821         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10822
10823         test-perror: rewrite to use init script
10824         * modules/perror-tests (Files): Add init.sh.
10825         * tests/test-perror.sh: Use temporary directory.
10826
10827 2011-05-20  Jim Meyering  <meyering@redhat.com>
10828
10829         maint: replace misused "a" with "an"
10830         * doc/intprops.texi: "a integer"
10831         * doc/regex.texi: "a explanation"
10832         * lib/alignof.h: "a object"
10833         * lib/argmatch.h: "a explanation"
10834         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10835         * lib/stdint.in.h: "a integer"
10836         * lib/userspec.c: "a owner"
10837         * doc/gnulib.texi: Fix "a idea", and reword.
10838
10839 2011-05-19  Jim Meyering  <meyering@redhat.com>
10840
10841         maint: correct misuse of "a" and "an"
10842         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10843         * lib/argp-help.c: "an docum...": s/an/a/
10844         * lib/argp-parse.c: "An vector": s/An/A/
10845         * lib/execute.c: "an native": s/an/a/
10846         * lib/spawn-pipe.c: Likewise.
10847         * lib/gc.h: "an Gc_rc": s/an/a/
10848         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10849         * lib/fts.c: "an stat.st_dev": s/an/a/
10850
10851 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10852
10853         intprops-tests: work around HP-UX 11.23 cc bug with constants
10854         * tests/test-intprops.c (VERIFY): New macro.
10855         (main): Use it, instead of verify, to work around the compiler bug; see
10856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10857
10858         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10859         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10860         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10861         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10862         (_GL_REMAINDER_OVERFLOW): Use it.
10863
10864         intprops-tests: revert unsigned part of previous change
10865         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10866         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10867         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10869
10870 2011-05-19  Bruno Haible  <bruno@clisp.org>
10871
10872         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10873         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10874         strerror_r() returned without filling the buffer.
10875         Reported by Eric Blake.
10876
10877 2011-05-19  Eric Blake  <eblake@redhat.com>
10878
10879         strerror_r: guarantee unchanged errno
10880         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10881         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10882         failure.
10883         * tests/test-strerror_r.c (main): Enhance test.
10884
10885 2011-05-19  Bruno Haible  <bruno@clisp.org>
10886
10887         strerror_r: Reorder #if blocks.
10888         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10889         for consistency with the previous commit.
10890
10891 2011-05-19  Bruno Haible  <bruno@clisp.org>
10892
10893         perror: Avoid clobbering the strerror buffer when possible.
10894         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10895         * lib/strerror.c: Include it.
10896         * modules/strerror (Files): Add lib/strerror-impl.h.
10897         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10898         (my_strerror): New function, defined through lib/strerror-impl.h.
10899         (perror): Use it instead of strerror.
10900         * modules/perror (Files): Add lib/strerror-impl.h.
10901         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10902
10903 2011-05-19  Eric Blake  <eblake@redhat.com>
10904
10905         strerror_r: fix on newer cygwin
10906         * lib/strerror_r.c (strerror_r): Cygwin now has
10907         __xpg_strerror_r, use it.
10908
10909 2011-05-19  Bruno Haible  <bruno@clisp.org>
10910
10911         strerror_r: Avoid clobbering the strerror buffer when possible.
10912         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10913         (sys_nerr, sys_errlist): New declarations.
10914         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10915         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10916         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10917
10918 2011-05-19  Bruno Haible  <bruno@clisp.org>
10919
10920         strerror_r: Fix test failure on mingw.
10921         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10922         EXTEND_STRERROR_R.
10923         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10924         macros from errno.in.h instead.
10925
10926 2011-05-19  Eric Blake  <eblake@redhat.com>
10927
10928         strerror: relax test for Solaris
10929         * tests/test-strerror.c (main): Permit Solaris behavior.
10930         * tests/test-strerror_r.c (main): Likewise.
10931
10932         strerror: enforce POSIX ruling on strerror(0)
10933         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10934         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10935         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10936         * doc/posix-functions/strerror.texi (strerror): Document it.
10937         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10938         * tests/test-strerror.c (main): Strengthen test.
10939         * tests/test-strerror_r.c (main): Likewise.
10940
10941 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10942
10943         intprop-tests: port to older and more-pedantic compilers
10944         * modules/intprops-tests (Files): Add tests/macros.h.
10945         * tests/test-intprops.c: Include macros.h.
10946         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10947         it's no longer documented to expand to an integer constant expression.
10948         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10949         argument is floating point, as it's no longer documented to expand
10950         to an integer constant expression in that case.
10951         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10952         compiler bugs reported by Bruno Haible.  See
10953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10954         (U0, U1): New constants, to work around the same bugs.  Also,
10955         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10956
10957         intprops: work around C compiler bugs
10958         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10959         bug in Sun C 5.11 2010/08/13 and other compilers; see
10960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10961
10962         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10963         * doc/intprops.texi (Integer Type Determination): Fix
10964         documentation for TYPE_IS_INTEGER: it returns an constant
10965         expression, not an integer constant expression.  Fix doc for
10966         TYPE_SIGNED: it returns an integer constant expression only if its
10967         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10968         hardly worth documented that way....)
10969
10970 2011-05-18  Bruno Haible  <bruno@clisp.org>
10971
10972         strerror_r: Avoid clobbering the strerror buffer when possible.
10973         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10974         Handle gnulib defined errno values here. When strerror() returns NULL
10975         or an empty string, return EINVAL.
10976         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10977         gnulib defined errno values here.
10978         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10979
10980 2011-05-18  Eric Blake  <eblake@redhat.com>
10981
10982         fnmatch: avoid compiler warning
10983         * lib/fnmatch_loop.c (FCT): Use correct type.
10984         Reported by Matthias Bolte.
10985
10986 2011-05-13  Jim Meyering  <meyering@redhat.com>
10987
10988         maint.mk: three new prohibit_<HDR>_without_use rules
10989         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10990         (sc_prohibit_stdio-safer_without_use): Likewise.
10991         (sc_prohibit_xfreopen_without_use): Likewise.
10992
10993 2011-05-17  Jim Meyering  <meyering@redhat.com>
10994
10995         announce-gen: fail if the NEWS delta is empty
10996         If there's nothing noteworthy in NEWS, then either you forgot
10997         or you shouldn't be releasing.
10998         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10999
11000 2011-05-17  Pádraig Brady <P@draigBrady.com>
11001
11002         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11003         reserved symbols starting with double underscore from the check.
11004
11005 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         intprops: add doc
11008         * doc/intprops.texi: New file, documenting intprops.
11009         * doc/gnulib.texi (Particular Modules): Include it.
11010
11011         verify: add doc to gnulib manual and fix example
11012         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11013         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11014         (Compile-time Assertions): Fix example so it can't overflow.
11015
11016 2011-05-17  Jim Meyering  <meyering@redhat.com>
11017
11018         warnings.m4: don't usurp save_CPPFLAGS variable name
11019         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11020
11021         doc: fix typo
11022         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11023
11024 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11025             Bruno Haible  <bruno@clisp.org>
11026
11027         doc: Tweak recent change.
11028         * README (Portability guidelines): Tweak new text.
11029         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11030         Interix 6.1.
11031
11032 2011-05-16  Eric Blake  <eblake@redhat.com>
11033
11034         inttypes: avoid autoconf warning
11035         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11036         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11037
11038 2011-05-16  Sam Steingold <sds@gnu.org>
11039         and Eric Blake  <eblake@redhat.com>
11040
11041         vc-list-files: accept multiple directory operands
11042         * build-aux/vc-list-files: Iterate over all remaining operands.
11043
11044 2011-05-16  Bruno Haible  <bruno@clisp.org>
11045
11046         Fix confusion regarding deprecated modules.
11047         * modules/calloc (Status, Notice): Mark module as deprecated, not
11048         obsolete.
11049         * modules/fnmatch-posix (Status, Notice): Likewise.
11050         * modules/getdate (Status, Notice): Likewise.
11051         * modules/getopt (Status, Notice): Likewise.
11052         * modules/malloc (Status, Notice): Likewise.
11053         * modules/pipe (Status, Notice): Likewise.
11054         * modules/realloc (Status, Notice): Likewise.
11055         * modules/rename-dest-slash (Status, Notice): Likewise.
11056         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11057         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11058         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11059         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11060         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11061
11062 2011-05-16  Bruno Haible  <bruno@clisp.org>
11063
11064         doc: List the target platforms.
11065         * doc/gnulib-intro.texi (Target Platforms): New section.
11066         * doc/gnulib.texi (Introduction): Update menu.
11067         * README (Portability guidelines): Refer to the new section. Update
11068         statement about oldest supported environment. Remove rationale why
11069         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11070         unportable C89 function.
11071         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11072         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11073
11074 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11077
11078 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11079
11080         intprops-tests: new module
11081         * modules/intprops-tests, tests/test-intprops.c: New files.
11082
11083         intprops: add safe, portable integer overflow checking
11084         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11085         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11086         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11087         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11088         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11089         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11090         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11091         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11092         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11093         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11094         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11095
11096 2011-05-12  James Youngman  <jay@gnu.org>
11097
11098         Add a test for glibc's Bugzilla bug #12378.
11099         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11100         doesn't allow the literal matching of a lone "[" (which is
11101         required by POSIX).
11102         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11103
11104 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11105
11106         Sync glibc change fixing Bugzilla bug #12378.
11107         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11108         beginning and fall back to matching as normal character if the
11109         string ends before the matching ']' is found.  This is what POSIX
11110         requires.
11111
11112 2011-05-13  Eric Blake  <eblake@redhat.com>
11113
11114         getcwd-lgpl: relax test for FreeBSD
11115         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11116         issue.
11117         * tests/test-getcwd-lgpl.c (main): Relax test.
11118         Reported by Matthias Bolte.
11119
11120 2011-05-11  Eric Blake  <eblake@redhat.com>
11121
11122         test-fflush: silence compiler warning
11123         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11124
11125 2011-05-11  Bruno Haible  <bruno@clisp.org>
11126
11127         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11128         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11129         * modules/canonicalize (Depends-on): Add 'nocrash'.
11130         * modules/canonicalize-lgpl (Depends-on): Likewise.
11131         * doc/posix-functions/realpath.texi: Update platforms list.
11132         Reported by Ryan Schmidt <ryandesign@macports.org>.
11133
11134 2011-05-11  Bruno Haible  <bruno@clisp.org>
11135
11136         group-member: Declare function in <unistd.h>.
11137         * lib/unistd.in.h (group_member): New declaration.
11138         * lib/group-member.h: Remove file.
11139         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11140         * tests/test-unistd-c++.cc: Check signature of group_member.
11141         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11142         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11143         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11144         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11145         HAVE_GROUP_MEMBER.
11146         * modules/group-member (Files): Remove lib/group-member.h.
11147         (Depends-on): Add unistd. Specify conditions.
11148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11149         (Include): Change to <unistd.h>.
11150         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11151         HAVE_GROUP_MEMBER.
11152         * NEWS: Mention the change.
11153         * lib/euidaccess.c: Don't include group-member.h.
11154
11155 2011-05-11  Bruno Haible  <bruno@clisp.org>
11156
11157         group-member: Document module.
11158         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11159         module.
11160
11161 2011-05-11  Bruno Haible  <bruno@clisp.org>
11162
11163         fclose: Fix mistake earlier today.
11164         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11165
11166 2011-05-11  Eric Blake  <eblake@redhat.com>
11167
11168         fclose: preserve fflush errors
11169         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11170         Reported by Jim Meyering.
11171
11172         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11173         * build-aux/bootstrap (check_versions): When no specific version
11174         is required, merely check that the app produces an exit status
11175         that indicates its existence.
11176
11177         maint.mk: drop redundant check
11178         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11179         the same but better.
11180
11181 2011-05-11  Bruno Haible  <bruno@clisp.org>
11182
11183         fclose: Fix possible link error.
11184         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11185         unregister_shadow_fd. Improve comments.
11186         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11187         Eric Blake.
11188
11189 2011-05-11  Jim Meyering  <meyering@redhat.com>
11190
11191         maint.mk: improve "can not" detection and generalize rule name
11192         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11193         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11194         Use the same technique as in sc_prohibit_doubled_word, so that
11195         we recognize "can not" also when the words are separated by a newline.
11196         Suggested by Eric Blake.
11197         (perl_filename_lineno_text_): Define.  Factored out of...
11198         (prohibit_doubled_word_): ...here.  Use the new definition.
11199         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11200         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11201         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11202
11203 2011-05-10  Eric Blake  <eblake@redhat.com>
11204
11205         fclose: avoid double close race when possible
11206         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11207         all but WINDOWS_SOCKETS.
11208
11209 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11210
11211         openat: correct new comment
11212         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11213
11214 2011-05-10  Jim Meyering  <meyering@redhat.com>
11215
11216         openat: add comments
11217         * lib/openat-proc.c (openat_proc_name): Add comments,
11218         mostly from Eric Blake.
11219
11220 2011-05-09  Eric Blake  <eblake@redhat.com>
11221
11222         openat: reduce syscalls in first probe of /proc
11223         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11224         be a directory.  Simplify the probe for .. bugs.
11225         * modules/openat (Depends-on): Drop same-inode.
11226         Reported by Bastien ROUCARIES.
11227
11228 2011-05-09  Jim Meyering  <meyering@redhat.com>
11229
11230         maint.mk: change semantics/name of tight_scope variables
11231         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11232         Rename variables to align with semantics that make them more useful.
11233
11234         maint.mk: tweak new rule's name not to impinge
11235         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11236         (sc_tight_scope): Use new rule name rather than $@-0.
11237
11238         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11239         * top/maint.mk (sc_tight_scope): New rule.
11240         (sc_tight_scope-0): New rule, ifdef'd out.
11241         (_gl_TS_dir): Default.
11242         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11243         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11244
11245 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11246
11247         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11248         Haible <bruno@clisp.org>.
11249
11250 2011-05-08  Bruno Haible  <bruno@clisp.org>
11251
11252         Comments.
11253         * m4/isnanf.m4: Add comment.
11254         * m4/isnanl.m4: Likewise.
11255
11256 2011-05-08  Bruno Haible  <bruno@clisp.org>
11257
11258         glob: Remove obsolete macro.
11259         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11260
11261 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11262
11263         intprops: Sun C 5.11 supports __typeof__
11264         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11265         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11266         which is new.
11267         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11268
11269         intprops: switch to usual gnulib indenting and naming
11270         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11271         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11272
11273         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11274
11275 2011-05-08  Jim Meyering  <meyering@redhat.com>
11276
11277         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11278         * top/maint.mk (release-prep): Use make's --no-print-directory
11279         option when generating the announcement.  This eliminates the
11280         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11281         generated announcement template.
11282
11283 2011-05-08  Bruno Haible  <bruno@clisp.org>
11284
11285         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11286         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11287         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11288
11289 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11290
11291         ignore-value, verify: Omit include files from lib_SOURCES.
11292         * modules/ignore-value, modules/verify (Makefile.am):
11293         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11294         that leads Automake to duplicate use of am__objects_... variables
11295         in Makefile.in.  See
11296         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11297
11298 2011-05-07  Bruno Haible  <bruno@clisp.org>
11299
11300         fclose: Simplify autoconf macro.
11301         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11302         defined.
11303
11304 2011-05-07  Bruno Haible  <bruno@clisp.org>
11305
11306         canonicalize-lgpl: Fix autoconf macro ordering bug.
11307         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11308         gl_STDLIB_H_DEFAULTS.
11309
11310 2011-05-06  Eric Blake  <eblake@redhat.com>
11311
11312         maintainer-makefile: make sc_po_check easier to tune
11313         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11314         to probe for strings, such as an alternate location for gnulib.
11315
11316         fclose: guarantee behavior on seekable stdin
11317         * modules/fclose (Depends-on): Add fflush.
11318         * doc/posix-functions/fclose.texi (fclose): Document this.
11319         * tests/test-fclose.c (main): Make test for this unconditional.
11320
11321 2011-05-06  Bruno Haible  <bruno@clisp.org>
11322
11323         fflush, fpurge: Relicense under LGPLv2+.
11324         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11325         * modules/fpurge (License): Likewise.
11326         With permission from Eric Blake and Jim Meyering.
11327         Suggested by Eric Blake.
11328
11329 2011-05-06  Karl Berry  <karl@gnu.org>
11330
11331         * MODULES.html.sh (func_all_modules): remove exit.
11332
11333 2011-05-06  Jim Meyering  <meyering@redhat.com>
11334
11335         maint.mk: use info-gnu@ as the default only for a stable release
11336         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11337         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11338         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11340
11341 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11342
11343         assert-h: new module, which supports C1X-style static_assert
11344         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11345         * lib/verify.h: Revamp so that this can be copied into assert.h,
11346         while retaining the ability to use it standalone as before.
11347         Rename private identifiers so as not to encroach on the
11348         standard C namespace, since this is now used by assert.h.
11349         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11350         the old verify_true.
11351         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11352         the old verify_true.  Use _GL_VERIFY_TYPE.
11353         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11354         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11355         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11356         defined when this file is copied into the replacement assert.h.
11357         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11358         and _Static_assert is not built in.
11359         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11360         defined, and use the new macros mentioned above.
11361         * doc/posix-headers/assert.texi: Document this.
11362
11363 2011-05-05  Bruno Haible  <bruno@clisp.org>
11364
11365         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11366         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11367         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11368         gl_REPLACE_FCLOSE here.
11369         * modules/fflush (Depends-on): Remove fclose.
11370         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11371         combination with module 'fclose'.
11372
11373 2011-05-05  Bruno Haible  <bruno@clisp.org>
11374
11375         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11376         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11377         gl_FUNC_FFLUSH.
11378         (gl_FUNC_FFLUSH): Use it.
11379         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11381         gl_REPLACE_FSEEKO here.
11382
11383 2011-05-05  Bruno Haible  <bruno@clisp.org>
11384
11385         tzset: Relicense under LGPL.
11386         * modules/tzset (License): Change to LGPL.
11387         No agreement needed; it's a no-op.
11388
11389         strtoimax, strtoumax: Relicense under LGPL.
11390         * modules/strtoimax (License): Change to LGPL.
11391         * modules/strtoumax (License): Likewise.
11392         With permission from Jim Meyering, Paul Eggert:
11393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11395
11396         getgroups: Relicense under LGPL.
11397         * modules/getgroups (License): Change to LGPL.
11398         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11402
11403         nanosleep: Relicense under LGPL.
11404         * modules/nanosleep (License): Change to LGPL.
11405         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11406         Haible:
11407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11411
11412         futimens: Relicense under LGPL.
11413         * modules/futimens (License): Change to LGPL.
11414         With permission from Eric Blake:
11415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11416
11417         fflush: Relicense under LGPL.
11418         * modules/fflush (License): Change to LGPL.
11419         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11423
11424         tmpfile: Relicense under LGPL.
11425         * modules/tmpfile (License): Change to LGPL.
11426         With permission from Ben Pfaff:
11427         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11428
11429         isfinite: Relicense under LGPL.
11430         * modules/isfinite (License): Change to LGPL.
11431         With permission from Ben Pfaff, Bruno Haible:
11432         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11434
11435         acosl..tanl: Relicense under LGPL.
11436         * modules/acosl (License): Change to LGPL.
11437         * modules/asinl (License): Likewise.
11438         * modules/atanl (License): Likewise.
11439         * modules/cosl (License): Likewise.
11440         * modules/expl (License): Likewise.
11441         * modules/logl (License): Likewise.
11442         * modules/sinl (License): Likewise.
11443         * modules/sqrtl (License): Likewise.
11444         * modules/tanl (License): Likewise.
11445         Source code originally from glibc and Paolo Bonzini. Agreements:
11446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11448
11449 2011-05-05  Bruno Haible  <bruno@clisp.org>
11450
11451         signal: Define sighandler_t.
11452         * lib/signal.in.h (sighandler_t): New type.
11453         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11454         whether sighandler_t is defined.
11455         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11456         * modules/signal (Depends-on): Add extensions.
11457         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11458         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11459         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11460
11461 2011-05-05  Eric Blake  <eblake@redhat.com>
11462
11463         maint: remove useless REPLACE_*_H macros
11464         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11465         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11466         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11467         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11468         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11469         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11470         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11471         * m4/btowc.m4: Update callers.
11472         * m4/dirfd.m4: Likewise.
11473         * m4/duplocale.m4: Likewise.
11474         * m4/fchdir.m4: Likewise.
11475         * m4/fdopendir.m4: Likewise.
11476         * m4/inet_ntop.m4: Likewise.
11477         * m4/inet_pton.m4: Likewise.
11478         * m4/ioctl.m4: Likewise.
11479         * m4/mbrlen.m4: Likewise.
11480         * m4/mbrtowc.m4: Likewise.
11481         * m4/mbsinit.m4: Likewise.
11482         * m4/mbsnrtowcs.m4: Likewise.
11483         * m4/mbsrtowcs.m4: Likewise.
11484         * m4/poll.m4: Likewise.
11485         * m4/setlocale.m4: Likewise.
11486         * m4/wcrtomb.m4: Likewise.
11487         * m4/wcsnrtombs.m4: Likewise.
11488         * m4/wcsrtombs.m4: Likewise.
11489         * m4/wctob.m4: Likewise.
11490         * m4/wcwidth.m4: Likewise.
11491         * modules/posix_spawn: Likewise.
11492         * modules/posix_spawn_file_actions_addclose: Likewise.
11493         * modules/posix_spawn_file_actions_adddup2: Likewise.
11494         * modules/posix_spawn_file_actions_addopen: Likewise.
11495         * modules/posix_spawn_file_actions_destroy: Likewise.
11496         * modules/posix_spawn_file_actions_init: Likewise.
11497         * modules/posix_spawnattr_destroy: Likewise.
11498         * modules/posix_spawnattr_getflags: Likewise.
11499         * modules/posix_spawnattr_getpgroup: Likewise.
11500         * modules/posix_spawnattr_getschedparam: Likewise.
11501         * modules/posix_spawnattr_getschedpolicy: Likewise.
11502         * modules/posix_spawnattr_getsigdefault: Likewise.
11503         * modules/posix_spawnattr_getsigmask: Likewise.
11504         * modules/posix_spawnattr_init: Likewise.
11505         * modules/posix_spawnattr_setflags: Likewise.
11506         * modules/posix_spawnattr_setpgroup: Likewise.
11507         * modules/posix_spawnattr_setschedparam: Likewise.
11508         * modules/posix_spawnattr_setschedpolicy: Likewise.
11509         * modules/posix_spawnattr_setsigdefault: Likewise.
11510         * modules/posix_spawnattr_setsigmask: Likewise.
11511         * modules/posix_spawnp: Likewise.
11512
11513 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11514
11515         Add option to do-release-commit-and-tag to specify branch.
11516         * build-aux/do-release-commit-and-tag: Add --branch.
11517
11518 2011-05-03  Bruno Haible  <bruno@clisp.org>
11519
11520         Avoid unnecessary compilation units, through conditional dependencies.
11521         * modules/accept (Depends-on): Add conditions to the dependencies.
11522         * modules/acosl (Depends-on): Likewise.
11523         * modules/argz (Depends-on): Likewise.
11524         * modules/asinl (Depends-on): Likewise.
11525         * modules/atanl (Depends-on): Likewise.
11526         * modules/atoll (Depends-on): Likewise.
11527         * modules/bind (Depends-on): Likewise.
11528         * modules/btowc (Depends-on): Likewise.
11529         * modules/canonicalize-lgpl (Depends-on): Likewise.
11530         * modules/ceil (Depends-on): Likewise.
11531         * modules/ceilf (Depends-on): Likewise.
11532         * modules/ceill (Depends-on): Likewise.
11533         * modules/chdir-long (Depends-on): Likewise.
11534         * modules/chown (Depends-on): Likewise.
11535         * modules/close (Depends-on): Likewise.
11536         * modules/connect (Depends-on): Likewise.
11537         * modules/cosl (Depends-on): Likewise.
11538         * modules/dirfd (Depends-on): Likewise.
11539         * modules/dprintf (Depends-on): Likewise.
11540         * modules/dprintf-posix (Depends-on): Likewise.
11541         * modules/error (Depends-on): Likewise.
11542         * modules/euidaccess (Depends-on): Likewise.
11543         * modules/expl (Depends-on): Likewise.
11544         * modules/faccessat (Depends-on): Likewise.
11545         * modules/fchdir (Depends-on): Likewise.
11546         * modules/fclose (Depends-on): Likewise.
11547         * modules/fcntl (Depends-on): Likewise.
11548         * modules/fdopendir (Depends-on): Likewise.
11549         * modules/fflush (Depends-on): Likewise.
11550         * modules/floor (Depends-on): Likewise.
11551         * modules/floorf (Depends-on): Likewise.
11552         * modules/floorl (Depends-on): Likewise.
11553         * modules/fnmatch (Depends-on): Likewise.
11554         * modules/fopen (Depends-on): Likewise.
11555         * modules/fprintf-posix (Depends-on): Likewise.
11556         * modules/frexp (Depends-on): Likewise.
11557         * modules/frexp-nolibm (Depends-on): Likewise.
11558         * modules/frexpl (Depends-on): Likewise.
11559         * modules/frexpl-nolibm (Depends-on): Likewise.
11560         * modules/fseek (Depends-on): Likewise.
11561         * modules/fsusage (Depends-on): Likewise.
11562         * modules/ftell (Depends-on): Likewise.
11563         * modules/ftello (Depends-on): Likewise.
11564         * modules/futimens (Depends-on): Likewise.
11565         * modules/getcwd (Depends-on): Likewise.
11566         * modules/getcwd-lgpl (Depends-on): Likewise.
11567         * modules/getdelim (Depends-on): Likewise.
11568         * modules/getdomainname (Depends-on): Likewise.
11569         * modules/getgroups (Depends-on): Likewise.
11570         * modules/gethostname (Depends-on): Likewise.
11571         * modules/getline (Depends-on): Likewise.
11572         * modules/getlogin_r (Depends-on): Likewise.
11573         * modules/getopt-posix (Depends-on): Likewise.
11574         * modules/getpeername (Depends-on): Likewise.
11575         * modules/getsockname (Depends-on): Likewise.
11576         * modules/getsockopt (Depends-on): Likewise.
11577         * modules/getsubopt (Depends-on): Likewise.
11578         * modules/getusershell (Depends-on): Likewise.
11579         * modules/glob (Depends-on): Likewise.
11580         * modules/grantpt (Depends-on): Likewise.
11581         * modules/iconv_open (Depends-on): Likewise.
11582         * modules/iconv_open-utf (Depends-on): Likewise.
11583         * modules/inet_ntop (Depends-on): Likewise.
11584         * modules/inet_pton (Depends-on): Likewise.
11585         * modules/ioctl (Depends-on): Likewise.
11586         * modules/isapipe (Depends-on): Likewise.
11587         * modules/isfinite (Depends-on): Likewise.
11588         * modules/isinf (Depends-on): Likewise.
11589         * modules/lchown (Depends-on): Likewise.
11590         * modules/ldexpl (Depends-on): Likewise.
11591         * modules/link (Depends-on): Likewise.
11592         * modules/linkat (Depends-on): Likewise.
11593         * modules/listen (Depends-on): Likewise.
11594         * modules/logl (Depends-on): Likewise.
11595         * modules/lstat (Depends-on): Likewise.
11596         * modules/mbrlen (Depends-on): Likewise.
11597         * modules/mbrtowc (Depends-on): Likewise.
11598         * modules/mbsinit (Depends-on): Likewise.
11599         * modules/mbsnrtowcs (Depends-on): Likewise.
11600         * modules/mbsrtowcs (Depends-on): Likewise.
11601         * modules/mbtowc (Depends-on): Likewise.
11602         * modules/memcmp (Depends-on): Likewise.
11603         * modules/mkdir (Depends-on): Likewise.
11604         * modules/mkdtemp (Depends-on): Likewise.
11605         * modules/mkfifo (Depends-on): Likewise.
11606         * modules/mkfifoat (Depends-on): Likewise.
11607         * modules/mknod (Depends-on): Likewise.
11608         * modules/mkostemp (Depends-on): Likewise.
11609         * modules/mkostemps (Depends-on): Likewise.
11610         * modules/mkstemp (Depends-on): Likewise.
11611         * modules/mkstemps (Depends-on): Likewise.
11612         * modules/mktime (Depends-on): Likewise.
11613         * modules/nanosleep (Depends-on): Likewise.
11614         * modules/open (Depends-on): Likewise.
11615         * modules/openat (Depends-on): Likewise.
11616         * modules/perror (Depends-on): Likewise.
11617         * modules/poll (Depends-on): Likewise.
11618         * modules/popen (Depends-on): Likewise.
11619         * modules/posix_spawn (Depends-on): Likewise.
11620         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11621         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11622         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11623         * modules/posix_spawnp (Depends-on): Likewise.
11624         * modules/pread (Depends-on): Likewise.
11625         * modules/printf-posix (Depends-on): Likewise.
11626         * modules/ptsname (Depends-on): Likewise.
11627         * modules/putenv (Depends-on): Likewise.
11628         * modules/pwrite (Depends-on): Likewise.
11629         * modules/readline (Depends-on): Likewise.
11630         * modules/readlink (Depends-on): Likewise.
11631         * modules/readlinkat (Depends-on): Likewise.
11632         * modules/recv (Depends-on): Likewise.
11633         * modules/recvfrom (Depends-on): Likewise.
11634         * modules/regex (Depends-on): Likewise.
11635         * modules/remove (Depends-on): Likewise.
11636         * modules/rename (Depends-on): Likewise.
11637         * modules/renameat (Depends-on): Likewise.
11638         * modules/rmdir (Depends-on): Likewise.
11639         * modules/round (Depends-on): Likewise.
11640         * modules/roundf (Depends-on): Likewise.
11641         * modules/roundl (Depends-on): Likewise.
11642         * modules/rpmatch (Depends-on): Likewise.
11643         * modules/select (Depends-on): Likewise.
11644         * modules/send (Depends-on): Likewise.
11645         * modules/sendto (Depends-on): Likewise.
11646         * modules/setenv (Depends-on): Likewise.
11647         * modules/setlocale (Depends-on): Likewise.
11648         * modules/setsockopt (Depends-on): Likewise.
11649         * modules/shutdown (Depends-on): Likewise.
11650         * modules/sigaction (Depends-on): Likewise.
11651         * modules/signbit (Depends-on): Likewise.
11652         * modules/sigprocmask (Depends-on): Likewise.
11653         * modules/sinl (Depends-on): Likewise.
11654         * modules/sleep (Depends-on): Likewise.
11655         * modules/snprintf (Depends-on): Likewise.
11656         * modules/snprintf-posix (Depends-on): Likewise.
11657         * modules/socket (Depends-on): Likewise.
11658         * modules/sprintf-posix (Depends-on): Likewise.
11659         * modules/sqrtl (Depends-on): Likewise.
11660         * modules/stat (Depends-on): Likewise.
11661         * modules/strchrnul (Depends-on): Likewise.
11662         * modules/strdup-posix (Depends-on): Likewise.
11663         * modules/strerror (Depends-on): Likewise.
11664         * modules/strerror_r-posix (Depends-on): Likewise.
11665         * modules/strndup (Depends-on): Likewise.
11666         * modules/strnlen (Depends-on): Likewise.
11667         * modules/strptime (Depends-on): Likewise.
11668         * modules/strsep (Depends-on): Likewise.
11669         * modules/strsignal (Depends-on): Likewise.
11670         * modules/strstr-simple (Depends-on): Likewise.
11671         * modules/strtod (Depends-on): Likewise.
11672         * modules/strtoimax (Depends-on): Likewise.
11673         * modules/strtok_r (Depends-on): Likewise.
11674         * modules/strtoumax (Depends-on): Likewise.
11675         * modules/symlink (Depends-on): Likewise.
11676         * modules/symlinkat (Depends-on): Likewise.
11677         * modules/tanl (Depends-on): Likewise.
11678         * modules/tcgetsid (Depends-on): Likewise.
11679         * modules/tmpfile (Depends-on): Likewise.
11680         * modules/trunc (Depends-on): Likewise.
11681         * modules/truncf (Depends-on): Likewise.
11682         * modules/truncl (Depends-on): Likewise.
11683         * modules/uname (Depends-on): Likewise.
11684         * modules/unlink (Depends-on): Likewise.
11685         * modules/unlockpt (Depends-on): Likewise.
11686         * modules/unsetenv (Depends-on): Likewise.
11687         * modules/usleep (Depends-on): Likewise.
11688         * modules/utimensat (Depends-on): Likewise.
11689         * modules/vasprintf (Depends-on): Likewise.
11690         * modules/vdprintf (Depends-on): Likewise.
11691         * modules/vdprintf-posix (Depends-on): Likewise.
11692         * modules/vfprintf-posix (Depends-on): Likewise.
11693         * modules/vprintf-posix (Depends-on): Likewise.
11694         * modules/vsnprintf (Depends-on): Likewise.
11695         * modules/vsnprintf-posix (Depends-on): Likewise.
11696         * modules/vsprintf-posix (Depends-on): Likewise.
11697         * modules/wcrtomb (Depends-on): Likewise.
11698         * modules/wcscasecmp (Depends-on): Likewise.
11699         * modules/wcscspn (Depends-on): Likewise.
11700         * modules/wcsdup (Depends-on): Likewise.
11701         * modules/wcsncasecmp (Depends-on): Likewise.
11702         * modules/wcsnrtombs (Depends-on): Likewise.
11703         * modules/wcspbrk (Depends-on): Likewise.
11704         * modules/wcsrtombs (Depends-on): Likewise.
11705         * modules/wcsspn (Depends-on): Likewise.
11706         * modules/wcsstr (Depends-on): Likewise.
11707         * modules/wcstok (Depends-on): Likewise.
11708         * modules/wcswidth (Depends-on): Likewise.
11709         * modules/wctob (Depends-on): Likewise.
11710         * modules/wctomb (Depends-on): Likewise.
11711         * modules/wctype (Depends-on): Likewise.
11712         * modules/wcwidth (Depends-on): Likewise.
11713         * modules/write (Depends-on): Likewise.
11714
11715 2011-05-03  Bruno Haible  <bruno@clisp.org>
11716
11717         Support for conditional dependencies.
11718         * doc/gnulib.texi (Module description): Document the syntax of
11719         conditional dependencies.
11720         * gnulib-tool: New option --conditional-dependencies.
11721         (func_usage): Document it.
11722         (cond_dependencies): New variable.
11723         (func_get_automake_snippet_conditional,
11724         func_get_automake_snippet_unconditional): New functions, extracted from
11725         func_get_automake_snippet.
11726         (func_get_automake_snippet): Use them.
11727         (sed_first_32_chars): New variable.
11728         (func_module_shellfunc_name): New function.
11729         (func_module_shellvar_name): New function.
11730         (func_module_conditional_name): New function.
11731         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11732         func_cond_module_condition): New functions.
11733         (func_modules_transitive_closure): Add support for conditional
11734         dependencies.
11735         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11736         conditional automake snippet in an automake conditional.
11737         (func_emit_autoconf_snippets): Emit shell functions that contain the
11738         code for conditional modules.
11739         (func_import, func_create_testdir): Update specification.
11740
11741 2011-05-03  Eric Blake  <eblake@redhat.com>
11742
11743         test-getaddrinfo: report error information
11744         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11745
11746 2011-05-03  Jim Meyering  <meyering@redhat.com>
11747
11748         bootstrap: avoid build failure when $GZIP is set
11749         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11750         program name.  If defined at all, it is supposed to list gzip options.
11751         Reported by Alan Curry in http://debbugs.gnu.org/8609
11752
11753 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11754
11755         readme-release: new module with release instructions
11756         * modules/readme-release: New module.
11757         * top/README-release: New file, from coreutils, grep, diffutils.
11758         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11759
11760 2011-05-02  Eric Blake  <eblake@redhat.com>
11761
11762         fflush: also replace fclose when fixing fflush
11763         * modules/fflush (Depends-on): Add fclose.
11764         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11765         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11766         memstreams with no backing fd.
11767         * doc/posix-functions/fclose.texi (fclose): Document the use of
11768         fflush module to fix the bug.
11769         * tests/test-fclose.c (main): Relax test when fclose is used in
11770         isolation.
11771
11772         fclose: add some tests
11773         * modules/fclose-tests: New test module.
11774         * tests/test-fclose.c: New file.
11775         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11776
11777         fclose: reduced dependencies
11778         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11779         simpler lseek.
11780         * lib/fclose.c (rpl_fclose): Likewise.
11781         Reported by Simon Josefsson.
11782
11783         exit: drop remaining clients
11784         * modules/argmatch (Depends-on): Replace exit with stdlib.
11785         * modules/copy-file (Depends-on): Likewise.
11786         * modules/execute (Depends-on): Likewise.
11787         * modules/exitfail (Depends-on): Likewise.
11788         * modules/obstack (Depends-on): Likewise.
11789         * modules/pagealign_alloc (Depends-on): Likewise.
11790         * modules/pipe-filter-gi (Depends-on): Likewise.
11791         * modules/pipe-filter-ii (Depends-on): Likewise.
11792         * modules/savewd (Depends-on): Likewise.
11793         * modules/spawn-pipe (Depends-on): Likewise.
11794         * modules/wait-process (Depends-on): Likewise.
11795         * modules/xsetenv (Depends-on): Likewise.
11796         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11797         * modules/git-merge-changelog (Depends-on): Likewise.
11798         * modules/long-options (Depends-on): Likewise.
11799         * modules/pt_chown (Depends-on): Likewise.
11800         * modules/sysexits (Depends-on): Likewise.
11801
11802         freading: relax license from LGPLv3+ to LGPLv2+
11803         * modules/freading (License): Relax LGPL version.
11804
11805 2011-05-02  Bruno Haible  <bruno@clisp.org>
11806
11807         fchdir: Remove unused dependencies.
11808         * modules/fchdir (Depends-on): Remove include_next.
11809
11810 2011-05-02  Bruno Haible  <bruno@clisp.org>
11811
11812         gnulib-tool: Refactor.
11813         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11814         from func_emit_autoconf_snippets.
11815         (func_emit_autoconf_snippets): Use it.
11816
11817 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11818
11819         * NEWS: Document removal of 'exit'.
11820         * modules/exit: Remove file.
11821
11822 2011-05-01  Bruno Haible  <bruno@clisp.org>
11823
11824         Update DEPENDENCIES.
11825         * DEPENDENCIES (gettext): Recommend the newest release.
11826         Reported by Simon Josefsson.
11827
11828 2011-05-01  Bruno Haible  <bruno@clisp.org>
11829
11830         gnulib-tool: Reduce code duplication.
11831         * gnulib-tool (func_emit_autoconf_snippets): New function.
11832         (func_import, func_create_testdir): Use it.
11833
11834 2011-04-30  Eric Blake  <eblake@redhat.com>
11835
11836         fclose: don't fail on non-seekable input stream
11837         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11838         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11839         since fflush is allowed to fail in that case.
11840
11841 2011-04-30  Bruno Haible  <bruno@clisp.org>
11842
11843         dup3: cleanup
11844         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11845
11846 2011-04-30  Bruno Haible  <bruno@clisp.org>
11847
11848         netdb: Make it work in C++ mode.
11849         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11850         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11851         module.
11852         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11853         gl_MODULE_INDICATOR_FOR_TESTS.
11854         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11855         * modules/netdb-c++-tests: New file.
11856         * tests/test-netdb-c++.cc: New file.
11857
11858 2011-04-30  Bruno Haible  <bruno@clisp.org>
11859
11860         New modules 'vfscanf', 'vscanf'.
11861         * modules/vfscanf: New file.
11862         * modules/vscanf: New file.
11863         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11864         here.
11865         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11866         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11867
11868 2011-04-30  Bruno Haible  <bruno@clisp.org>
11869
11870         passfd: Add comments.
11871         * lib/passfd.c: Add comments about platforms.
11872
11873 2011-04-30  Bruno Haible  <bruno@clisp.org>
11874
11875         sys_uio: Make <sys/uio.h> self-contained.
11876         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11877         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11878
11879 2011-04-30  Bruno Haible  <bruno@clisp.org>
11880
11881         sys_socket: Ensure 'struct iovec' definition.
11882         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11883         <sys/socket.h>.
11884         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11885
11886 2011-04-30  Bruno Haible  <bruno@clisp.org>
11887
11888         sys_uio: Protect definition of 'struct iovec'.
11889         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11890         it as a C struct.
11891
11892 2011-04-30  Bruno Haible  <bruno@clisp.org>
11893
11894         manywarnings: fix indentation
11895         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11896
11897 2011-04-30  Pádraig Brady <P@draigBrady.com>
11898
11899         manywarnings: add -Wno-missing-field-initializers if needed.
11900         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11901         option if it's needed to allow initialization with { 0, }
11902
11903 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11904
11905         announce-gen: cosmetic improvement
11906         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11907
11908 2011-04-29  Jim Meyering  <meyering@redhat.com>
11909
11910         vc-list-files: indent with spaces, not TABs
11911         * build-aux/vc-list-files: Convert leading TABs to spaces,
11912         to match the style of most other files in gnulib.
11913
11914         announce-gen: indent with spaces, not TABs
11915         * build-aux/announce-gen: Convert all TABs to spaces, to match
11916         the style of most other files in gnulib.
11917
11918 2011-04-29  Eric Blake  <eblake@redhat.com>
11919
11920         quotearg: avoid uninitialized variable use
11921         * lib/quotearg.c (quoting_options_from_style): Initialize
11922         remaining fields, and ensure that custom styles are only used via
11923         quoting_options rather than quoting_style.
11924
11925 2011-04-29  Jim Meyering  <meyering@redhat.com>
11926
11927         maint.mk: remove unused VC-tag variable
11928         * top/maint.mk (VC-tag): Remove unused variable.
11929
11930 2011-04-29  Bruno Haible  <bruno@clisp.org>
11931
11932         netdb: fix gai_strerror replacements
11933         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11934         * modules/netdb: Substitute it.
11935
11936 2011-04-29  Jim Meyering  <meyering@redhat.com>
11937
11938         test-getcwd.c: avoid new set-but-not-used warning
11939         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11940         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11941         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11942         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11943
11944         test-hash.c: avoid a new shadowing warning
11945         * tests/test-hash.c (main): Don't shadow "dup".
11946
11947 2011-04-28  Eric Blake  <eblake@redhat.com>
11948
11949         getaddrinfo: fix gai_strerror signature
11950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11951         and work around mingw with UNICODE defined.
11952         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11953         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11954         * modules/netdb (Makefile.am): Substitute it.
11955         * lib/netdb.in.h (gai_strerror): Declare replacement.
11956         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11957         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11958         the fix.
11959
11960         getsockopt: avoid compiler warning
11961         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11962         Reported by Matthias Bolte.
11963
11964         tests: drop unused link dependency
11965         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11966         * modules/dirent-safer-tests (Makefile.am): Likewise.
11967         * modules/fdopendir-tests (Makefile.am): Likewise.
11968         * modules/mkfifoat-tests (Makefile.am): Likewise.
11969         * modules/openat-safer-tests (Makefile.am): Likewise.
11970         * modules/openat-tests (Makefile.am): Likewise.
11971         * modules/readlinkat-tests (Makefile.am): Likewise.
11972         * modules/symlinkat-tests (Makefile.am): Likewise.
11973         * modules/linkat-tests (Makefile.am): Likewise.
11974         (Depends-on): Switch to filenamecat-lgpl.
11975         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11976         LIBINTL.
11977         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11978         * tests/test-linkat.c (main): Don't require xalloc.
11979
11980         hash, mgetgroups: drop xalloc dependency
11981         * lib/hash.c (includes): Adjust includes.
11982         * lib/mgetgroups.c (includes): Likewise.
11983         (xgetgroups): Move...
11984         * lib/xgetgroups.c: ...to new file.
11985         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11986         * modules/xgetgroups: New file, split from...
11987         * modules/mgetgroups: ...here.
11988         (Depends-on): Add xalloc-oversized.
11989         * modules/hash (Depends-on): Likewise.
11990         * modules/hash-tests (Depends-on): Drop xalloc.
11991         (test_hash_LDADD): Drop unused library.
11992         * tests/test-hash.c (main): Break xalloc dependency.
11993         (includes): Drop unused include.
11994
11995         xalloc-oversized: new module
11996         * modules/xalloc-oversized: New module.
11997         * modules/xalloc (Depends-on): Add it.
11998         * lib/xalloc.h (xalloc_oversized): Move...
11999         * lib/xalloc-oversized.h: ...into new file.
12000
12001         utimecmp: drop dependency on xmalloc
12002         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12003         due to memory pressure.
12004         * modules/utimecmp (Depends-on): Drop xalloc.
12005
12006 2011-04-27  Eric Blake  <eblake@redhat.com>
12007
12008         getcwd: fix mingw bugs
12009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12010         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12011         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12012
12013 2011-04-27  Bruno Haible  <bruno@clisp.org>
12014
12015         mkstemps: Ensure declaration on MacOS X 10.5.
12016         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12017         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12018         MacOS X.
12019
12020 2011-04-27  Bruno Haible  <bruno@clisp.org>
12021
12022         mkstemp: More documentation.
12023         * doc/posix-functions/mkstemp.texi: Document header file problem on
12024         MacOS X.
12025
12026 2011-04-27  Bruno Haible  <bruno@clisp.org>
12027
12028         mkstemp: Tweak configure message when cross-compiling.
12029         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12030         result as a guess.
12031
12032 2011-04-27  Bruno Haible  <bruno@clisp.org>
12033
12034         clean-temp: Clarify what it does.
12035         * lib/clean-temp.h: Add more comments.
12036         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12037         module.
12038         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12039         * doc/glibc-functions/mkstemps.texi: Likewise.
12040         * doc/glibc-functions/mkostemps.texi: Likewise.
12041
12042 2011-04-27  Eric Blake  <eblake@redhat.com>
12043
12044         fchdir: avoid extra chdir and fix test
12045         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12046         getcwd-lgpl.
12047         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12048         have to be canonical.
12049         (canonicalize_file_name): Drop unused macro.
12050         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12051
12052         filenamecat-lgpl: fix licence
12053         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12054         when it was first created.
12055
12056         linkat, renameat: add missing dependency
12057         * modules/linkat (Depends-on): Require getcwd-lgpl.
12058         * modules/renameat (Depends-on): Likewise.
12059
12060         tests: reduce dependencies
12061         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12062         * tests/test-renameat.c (main): Likewise.
12063         * modules/linkat-tests (Depends-on): Relax dependency.
12064         * modules/renameat-tests (Depends-on): Likewise.
12065         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12066         dependency explicit.
12067
12068         save-cwd: reduce default dependency
12069         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12070         * lib/save-cwd.c: Update comments.
12071         * NEWS: Document the semantic change.
12072
12073         getcwd: enhance tests
12074         * tests/test-getcwd-lgpl.c: New file, taken from...
12075         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12076         repeat long path stress tests from m4 probe.
12077         * modules/getcwd-lgpl-tests: New module.
12078         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12079         * m4/getcwd-abort-bug.m4: Update comment.
12080         * m4/getcwd-path-max.m4: Likewise.
12081
12082         getcwd-lgpl: new module
12083         * modules/getcwd-lgpl: New module.
12084         * lib/getcwd-lgpl.c: New file.
12085         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12086         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12087         * modules/getcwd (configure.ac): Set C witness.
12088         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12089
12090         getcwd: tweak comments
12091         * m4/getcwd-abort-bug.m4: Fix comments.
12092         * m4/getcwd-path-max.m4: Likewise.
12093         * m4/getcwd.m4: Likewise.
12094
12095 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12096         and Eric Blake  <eblake@redhat.com>
12097
12098         mkstemp: replace if system version uses wrong permissions
12099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12100         read/write mode bits set in file created by mkstemp.
12101         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12102
12103 2011-04-27  Eric Blake  <eblake@redhat.com>
12104
12105         passfd: avoid compiler warning
12106         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12107         Reported by Laine Stump.
12108
12109 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12110
12111         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12112         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12113
12114 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12115         and Eric Blake  <eblake@redhat.com>
12116
12117         mkstemp: mention clean-temp module
12118         * lib/mkstemp.c: Add comment.
12119         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12120
12121 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12122
12123         inttypes: also provide default values for 32-bit tests
12124         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12125         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12126
12127 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12128
12129         strtoumax: remove dependency on strtoimax
12130         This is like the strtoull change of yesterday.
12131         * modules/strtoumax (Files): Add lib/strtoimax.c.
12132         (Depends-on): Remove strtoimax and add verify.
12133
12134         inttypes-incomplete: new module
12135         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12136         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12137         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12138         of gl_INTTYPES_H.
12139         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12140         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12141         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12142         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12143         * modules/strtoumax, modules/xstrtol (Depends-on):
12144         Depend on inttypes-incomplete, not inttypes.
12145         * modules/inttypes-incomplete: New module, containing the contents
12146         of the old modules/inttypes module, except that the Files: section
12147         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12148         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12149         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12150         (Depends-on): Depend only on inttypes-incomplete.
12151         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12152
12153         inttypes: omit now-redundant strtoimax and strtoumax work
12154         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12155         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12156
12157         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12158         This supports apps that need pointers to strtoimax and strtoumax,
12159         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12160         nonexistent functions.  See
12161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12162         et seq.
12163         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12164         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12165         a macro.
12166         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12167
12168 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12169
12170         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12171
12172 2011-04-25  Bruno Haible  <bruno@clisp.org>
12173
12174         strtol, strtoul: Mark modules as obsolete.
12175         * modules/strtol (Status, Notice): New sections.
12176         * modules/strtoul (Status, Notice): New sections.
12177
12178 2011-04-25  Bruno Haible  <bruno@clisp.org>
12179
12180         strtod: Remove check for strtod, unless supporting old platforms.
12181         * modules/strtod-obsolete: New file.
12182         * m4/strtod-obsolete.m4: New file.
12183         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12184         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12185         * modules/strtod (Depends-on): Add strtod-obsolete.
12186         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12187
12188 2011-04-25  Bruno Haible  <bruno@clisp.org>
12189
12190         strcase: Make module obsolete.
12191         * modules/strcase (Status, Notice): New sections.
12192
12193 2011-04-25  Bruno Haible  <bruno@clisp.org>
12194
12195         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12196         * modules/dup2-obsolete: New file.
12197         * m4/dup2-obsolete.m4: New file.
12198         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12199         gl_FUNC_DUP2_OBSOLETE is not also defined.
12200         * modules/dup2 (Depends-on): Add dup2-obsolete.
12201         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12202
12203 2011-04-25  Bruno Haible  <bruno@clisp.org>
12204
12205         strnlen: Avoid memchr related link error on old obsolete platforms.
12206         * modules/memchr-obsolete: New file.
12207         * m4/memchr-obsolete.m4: New file.
12208         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12209         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12210         * modules/memchr (Depends-on): Add memchr-obsolete.
12211         * modules/strnlen (Depends-on): Likewise.
12212         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12213
12214 2011-04-25  Jim Meyering  <meyering@redhat.com>
12215
12216         maint.mk: makefile_at_at_check extend and clean up
12217         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12218         in addition to */Makefile.am.
12219         Exempt legitimate uses of @VAR@ notation, e.g.,
12220         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12221         Remove obsolete coreutils-specific comment.
12222         Prompted by discussion here:
12223         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12224
12225 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12226
12227         strtoul: remove dependency on strtol
12228         This is so that 'configure' need not check for strtol merely because
12229         the application needs strtoul.
12230         * modules/strtoul (Files): Add lib/strtol.c.
12231         (Depends-on): Remove strtol.
12232
12233         strtoull: remove dependency on strtoul
12234         This is like the strtoll change.
12235         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12236         (Depends-on): Remove strtoul.
12237
12238         strtoll: remove dependency on strtol
12239         This is so that 'configure' need not check for strtol merely because
12240         the application needs strtoll.
12241         * modules/strtoll (Files): Add lib/strtol.c.
12242         (Depends-on): Remove strtol.
12243
12244 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12245
12246         inttypes: Move some configure check to module 'imaxdiv'.
12247         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12248         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12249         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12250
12251 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12252
12253         inttypes: Move some configure check to module 'imaxabs'.
12254         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12255         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12256         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12257
12258 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12259
12260         inttypes: Remove configure tests that are not needed since 2009-12-31.
12261         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12262         gl_cv_header_working_inttypes_h.
12263
12264 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12265
12266         * modules/strnlen (Depends-on): Remove memchr.
12267         The strnlen implementation doesn't need the memchr module's fixes; see
12268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12269
12270         strtol: remove dependency on wchar
12271         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12272         * modules/strtol (Depends-on): Remove wchar.
12273
12274 2011-04-21  Eric Blake  <eblake@redhat.com>
12275
12276         passfd: fix test regression on Linux
12277         * modules/passfd-tests (configure.ac): Correct socketpair check.
12278
12279         passfd: speed up configure and drop unused code
12280         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12281         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12282         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12283         Instead of probing at configure for unix_scm_rights_bsd44_way,
12284         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12285         check to a struct member probe.
12286         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12287         (sendfd, recvfd): Update preprocessor checks.
12288         * modules/passfd (Files): Reflect rename, and drop unused file.
12289         (Depends-on): Drop unused dependency.
12290
12291         passfd: allow compilation on mingw
12292         * modules/sys_socket (Depends-on): Add sys_uio.
12293         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12294         iovec and a minimal struct msghdr.
12295         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12296         * tests/test-sys_socket.c (main): Enhance test.
12297         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12298         guaranteed to provide what we need.
12299         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12300         * modules/passfd-tests (Depends-on): Add sys_wait.
12301         * tests/test-passfd.c (main): Skip test on mingw, for now.
12302         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12303         partial 'struct msghdr' implementation.
12304
12305         sys_uio: new module
12306         * modules/sys_uio: New module.
12307         * modules/sys_uio-tests: Likewise.
12308         * lib/sys_uio.in.h: New file.
12309         * m4/sys_uio_h.m4: Likewise.
12310         * tests/test-sys_uio.c: Likewise.
12311         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12312         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12313
12314 2011-04-20  Jim Meyering  <meyering@redhat.com>
12315
12316         useless-if-before-free: avoid false-positive
12317         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12318         disjunct so that it too requires a terminating ";".  Without that,
12319         this script would identify as useless one statement from gcc that
12320         was not:
12321           if (aligned_ptr)
12322             free (((void **) aligned_ptr) [-1]);
12323
12324 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12325
12326         doc: update users.txt.
12327         * users.txt: Add barcode.
12328
12329 2011-04-19  Bruno Haible  <bruno@clisp.org>
12330
12331         ioctl: Remove link dependency on native Windows.
12332         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12333         (gl_close_fn, gl_ioctl_fn): New types.
12334         (struct fd_hook): Renamed from struct close_hook. Change type of
12335         private_close_fn field. Add private_ioctl_fn field.
12336         (close_hook_fn): Add parameter for primary close method.
12337         (execute_close_hooks, execute_all_close_hooks): Likewise.
12338         (ioctl_hook_fn): New type.
12339         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12340         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12341         argument.
12342         (unregister_fd_hook): Renamed from unregister_close_hook.
12343         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12344         Don't include <unistd.h>.
12345         (close): Remove undef.
12346         (anchor): Update.
12347         (execute_close_hooks): Add argument for primary close method.
12348         (execute_all_close_hooks): Likewise.
12349         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12350         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12351         argument. Allow each argument to be NULL.
12352         (unregister_fd_hook): Renamed from unregister_close_hook.
12353         * lib/close.c (rpl_close): Pass 'close' function pointer to
12354         execute_all_close_hooks.
12355         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12356         (primary_ioctl): New function.
12357         (ioctl): Don't call ioctlsocket here. Instead, call
12358         execute_all_ioctl_hooks.
12359         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12360         close method.
12361         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12362         (fd_sockets_hook): Renamed from close_sockets_hook.
12363         (gl_sockets_startup, gl_sockets_cleanup): Update.
12364         * modules/fd-hook: Renamed from modules/close-hook. Update.
12365         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12366         * modules/sockets (Depends-on): Likewise.
12367         * modules/ioctl (Depends-on): Add fd-hook.
12368         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12369         GNULIB_SOCKET.
12370
12371 2011-04-19  Bruno Haible  <bruno@clisp.org>
12372
12373         Move the support of O_NONBLOCK in open() to the 'open' module.
12374         * modules/nonblocking (Depends-on): Remove 'open'.
12375         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12376         gl_cv_have_open_O_NONBLOCK.
12377         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12378         O_NONBLOCK support.
12379         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12380
12381 2011-04-17  Bruno Haible  <bruno@clisp.org>
12382
12383         pipe2: Simplify code.
12384         * lib/pipe2.c (pipe2): Reduce code duplication.
12385
12386 2011-04-17  Bruno Haible  <bruno@clisp.org>
12387
12388         nonblocking: Add comment.
12389         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12390
12391 2011-04-17  Bruno Haible  <bruno@clisp.org>
12392
12393         nonblocking: Add tests for sockets.
12394         * tests/test-nonblocking-socket.sh: New file.
12395         * tests/test-nonblocking-socket-main.c: New file.
12396         * tests/test-nonblocking-socket-child.c: New file.
12397         * tests/test-nonblocking-socket.h: New file.
12398         * tests/socket-server.h: New file.
12399         * tests/socket-client.h: New file.
12400         * modules/nonblocking-socket-tests: New file.
12401         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12402
12403 2011-04-17  Bruno Haible  <bruno@clisp.org>
12404
12405         nonblocking: Add tests for pipes.
12406         * tests/test-nonblocking-pipe.sh: New file.
12407         * tests/test-nonblocking-pipe-main.c: New file.
12408         * tests/test-nonblocking-pipe-child.c: New file.
12409         * tests/test-nonblocking-pipe.h: New file.
12410         * tests/test-nonblocking-writer.h: New file.
12411         * tests/test-nonblocking-reader.h: New file.
12412         * tests/test-nonblocking-misc.h: New file.
12413         * modules/nonblocking-pipe-tests: New file.
12414         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12415
12416 2011-04-16  Bruno Haible  <bruno@clisp.org>
12417
12418         gettext: Clarify the needed programmer actions.
12419         * modules/gettext (Notice): New field.
12420         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12421
12422 2011-04-16  Bruno Haible  <bruno@clisp.org>
12423
12424         strchrnul: Tweak last commit.
12425         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12426         bug.
12427         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12428         as in _GL_FUNCDECL_SYS.
12429         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12430         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12431
12432 2011-04-15  Eric Blake  <eblake@redhat.com>
12433
12434         strchrnul: work around cygwin bug
12435         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12436         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12438         * modules/string (Makefile.am): Substitute it.
12439         * lib/string.in.h (strchrnul): Use it.
12440
12441 2011-04-15  Bruno Haible  <bruno@clisp.org>
12442
12443         Don't require lib/stdio-write.c when only module 'stdio' is used.
12444         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12445         invocation.
12446         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12447
12448 2011-04-14  Bruno Haible  <bruno@clisp.org>
12449
12450         Support non-blocking pipe I/O in read() on native Windows.
12451         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12452         (read): New declaration.
12453         * lib/read.c: New file.
12454         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12455         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12456         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12457         vscanf): New declarations.
12458         * lib/stdio-read.c: New file.
12459         * m4/read.m4: New file.
12460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12461         REPLACE_READ.
12462         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12463         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12464         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12465         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12466         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12467         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12468         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12469         * modules/read: New file.
12470         * modules/nonblocking (Files): Add lib/stdio-read.c.
12471         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12472         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12473         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12474         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12475         * modules/pread (Depends-on): Add read.
12476         * modules/safe-read (Depends-on): Likewise.
12477         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12478         gets, scanf, vfscanf, vscanf): Verify signatures.
12479         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12480         problem with non-blocking pipes.
12481         * doc/posix-functions/fgetc.texi: Likewise.
12482         * doc/posix-functions/fgets.texi: Likewise.
12483         * doc/posix-functions/fread.texi: Likewise.
12484         * doc/posix-functions/fscanf.texi: Likewise.
12485         * doc/posix-functions/getc.texi: Likewise.
12486         * doc/posix-functions/getchar.texi: Likewise.
12487         * doc/posix-functions/gets.texi: Likewise.
12488         * doc/posix-functions/scanf.texi: Likewise.
12489         * doc/posix-functions/vfscanf.texi: Likewise.
12490         * doc/posix-functions/vscanf.texi: Likewise.
12491
12492 2011-04-14  Bruno Haible  <bruno@clisp.org>
12493
12494         Support non-blocking pipe I/O in write() on native Windows.
12495         * lib/write.c (rpl_write): Split a write request that failed merely
12496         because the byte count was larger than the pipe buffer's size.
12497         * doc/posix-functions/write.texi: Mention the problem with large byte
12498         counts.
12499
12500 2011-04-14  Bruno Haible  <bruno@clisp.org>
12501
12502         wchar: Ensure that wchar_t gets defined on uClibc.
12503         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12504         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12505
12506 2011-04-13  Bruno Haible  <bruno@clisp.org>
12507
12508         safe-write, full-read: Avoid unnecessary compilation units.
12509         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12510         (Depends-on): Remove safe-read. Add ssize_t.
12511         * modules/full-read (Files): Add lib/full-write.c.
12512         (Depends-on): Add full-write.
12513
12514 2011-04-13  Bruno Haible  <bruno@clisp.org>
12515
12516         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12517         * modules/pwrite (Depends-on): Add 'write'.
12518
12519 2011-04-13  Bruno Haible  <bruno@clisp.org>
12520
12521         Support non-blocking pipe I/O in write() on native Windows.
12522         * lib/unistd.in.h (write): Enable replacement also if
12523         GNULIB_UNISTD_H_NONBLOCKING is 1.
12524         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12525         (rpl_write): When failing to write on a non-blocking pipe, change
12526         errno from ENOSPC to EAGAIN.
12527         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12528         putchar, puts, vfprintf, vprintf): Enable replacement also if
12529         GNULIB_STDIO_H_NONBLOCKING is 1.
12530         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12531         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12532         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12533         CALL_WITH_SIGPIPE_EMULATION.
12534         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12535         * m4/nonblocking.m4: New file.
12536         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12537         for non-blocking I/O support.
12538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12539         GNULIB_UNISTD_H_NONBLOCKING.
12540         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12541         required for non-blocking I/O support.
12542         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12543         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12544         lib/stdio-write.c, m4/asm-underscore.m4.
12545         (Depends-on): Add stdio, unistd.
12546         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12547         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12548         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12549         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12550         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12551         problem with non-blocking pipes.
12552         * doc/posix-functions/fputc.texi: Likewise.
12553         * doc/posix-functions/fputs.texi: Likewise.
12554         * doc/posix-functions/fwrite.texi: Likewise.
12555         * doc/posix-functions/printf.texi: Likewise.
12556         * doc/posix-functions/putc.texi: Likewise.
12557         * doc/posix-functions/putchar.texi: Likewise.
12558         * doc/posix-functions/puts.texi: Likewise.
12559         * doc/posix-functions/vfprintf.texi: Likewise.
12560         * doc/posix-functions/vprintf.texi: Likewise.
12561         * doc/posix-functions/write.texi: Likewise.
12562
12563 2011-04-10  Jim Meyering  <meyering@redhat.com>
12564
12565         maint.mk: prohibit doubled words
12566         Detect them also when they're separated by a newline.
12567         There are 3 ways to customize it:
12568           - disable the test on a per file basis, as usual with rules using
12569             $(VC_LIST_EXCEPT)
12570           - replace the default doubled-word-selecting regexp (affects all files)
12571           - ignore a particular file-vs-doubled-word match
12572         I nearly used that last one to ignore the "is is" match in
12573         coreutils' NEWS file, since the text was "ls -is is ..."
12574         To do that, I would have added this line to cfg.mk:
12575           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12576         but it would have ignored any "is is" match in NEWS.
12577         Low probability, but still...
12578         Instead, I changed the text, slightly:
12579           -  ls -is is now consistent with ls -lis in ignoring values returned
12580           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12581         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12582         (prohibit_doubled_word_): Define.
12583         (sc_prohibit_doubled_word): New rule.
12584         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12585
12586 2011-04-10  Jim Meyering  <meyering@redhat.com>
12587
12588         maint: fix doubled-word typo in comment
12589         * m4/gethostname.m4: s/is is/it is/
12590         * m4/getdomainname.m4: Likewise.
12591
12592 2011-04-10  Jim Meyering  <meyering@redhat.com>
12593
12594         maint: remove doubled word: s/it it/it/
12595         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12596
12597 2011-04-10  Jim Meyering  <meyering@redhat.com>
12598
12599         maint.mk: remove useless semicolon and backslash
12600         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12601         semicolon and backslash.
12602
12603 2011-04-10  Bruno Haible  <bruno@clisp.org>
12604
12605         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12606         * modules/stdint-tests (Depends-on): Add wchar.
12607
12608 2011-04-10  Jim Meyering  <meyering@redhat.com>
12609
12610         maint: remove doubled words in comments, e.g., s/a a/a/
12611         * lib/strptime.c (day_of_the_week): s/the the/the/
12612         * tests/test-chown.h (test_chown): s/a a/a/
12613
12614         test-chown.h: correct a cast
12615         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12616         when the destination is a stat.st_gid.
12617
12618 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12619
12620         getaddrinfo: Fix test for sa_len member.
12621         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12622         include <sys/types.h> before <sys/socket.h>.
12623
12624 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12625
12626         maint: change "can not" to "cannot"
12627         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12628         boundaries.
12629
12630 2011-04-09  Jim Meyering  <meyering@redhat.com>
12631
12632         maint: change "a a" to "a"
12633         * tests/test-lchown.h (test_lchown): s/a a/a/
12634
12635         maint.mk: prohibit \<the the\>
12636         * top/maint.mk (sc_prohibit_the_the): New rule.
12637
12638         maint: fix "the the" in comment
12639         * lib/count-one-bits.h: s/the the/the/
12640
12641         maint: change "can not" to "cannot"
12642         But do not change the occurrences in maintain.texi or in
12643         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12644         * doc/gnulib-tool.texi: s/can not/cannot/
12645         * doc/posix-functions/accept.texi (accept): Likewise.
12646         * doc/posix-functions/socket.texi (socket): Likewise.
12647         * lib/mbrtowc.c: Likewise.
12648
12649         maint.mk: prohibit use of "can not"
12650         * top/maint.mk (sc_prohibit_can_not): New rule.
12651         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12652
12653 2011-04-09  Bruno Haible  <bruno@clisp.org>
12654
12655         careadlinkat: Guard against misuse of careadlinkatcwd.
12656         * lib/careadlinkat.c: Include <stdlib.h>.
12657         (careadlinkatcwd): Check that the fd argument is as expected.
12658
12659 2011-04-09  Bruno Haible  <bruno@clisp.org>
12660
12661         careadlinkat: Use common coding style.
12662         * lib/careadlinkat.c: Move gnulib includes after system includes.
12663
12664 2011-04-09  Bruno Haible  <bruno@clisp.org>
12665
12666         careadlinkat: Clarify specification.
12667         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12668         (careadlinkatcwd): Add comment.
12669         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12670
12671 2011-04-09  Bruno Haible  <bruno@clisp.org>
12672
12673         areadlinkat: Avoid link error on many platforms.
12674         * modules/areadlinkat (Depends-on): Add areadlink.
12675
12676 2011-04-09  Bruno Haible  <bruno@clisp.org>
12677
12678         allocator, careadlinkat: Fix double-inclusion guard.
12679         * lib/allocator.h: Fix double-inclusion guard.
12680         * lib/careadlinkat.h: Likewise.
12681
12682 2011-04-09  Bruno Haible  <bruno@clisp.org>
12683
12684         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12685         * lib/relocwrapper.c: Update dependencies hierarchy.
12686         * build-aux/install-reloc: Update list of files to be compiled.
12687         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12688         lib/allocator.[hc].
12689
12690 2011-04-08  Eric Blake  <eblake@redhat.com>
12691
12692         strftime: silence gnulib-tool warning
12693         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12694
12695 2011-04-08  Bruno Haible  <bruno@clisp.org>
12696
12697         verify: Fix syntax error with GCC 4.6 in C++ mode.
12698         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12699         (HAVE_STATIC_ASSERT): New macro.
12700         (verify_true, verify): Use 'static_assert' if it is supported and
12701         '_Static_assert' is not supported.
12702
12703 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         allocator: New module.
12706         * modules/allocator, lib/allocator.c: New files.
12707         * lib/allocator.h (stdlib_allocator): New decl.
12708         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12709         Remove.  Do not include <stdlib.h>.
12710         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12711         * modules/careadlinkat (Files): Remove lib/allocator.h.
12712         (Depends-on): Add allocator.
12713
12714         stdlib: let modules use system malloc, realloc
12715         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12716         if !_GL_USE_STDLIB_ALLOC.
12717         (malloc, realloc): Limit this change to a smaller scope.
12718
12719         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12720         (malloc, realloc): Don't #undef; no longer needed.
12721         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12722         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12723         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12724         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12725         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12726         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12727         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12728         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12729
12730         careadlinkat: rename members to avoid problem
12731         * lib/allocator.h (struct allocator): Rename members from
12732         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12733         and realloc are #define'd.  Reported by Eric Blake in
12734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12735         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12736
12737 2011-04-08  Eric Blake  <eblake@redhat.com>
12738
12739         nonblocking: reduce dependency
12740         * tests/test-nonblocking.c: Only test sockets when in use.
12741         * modules/nonblocking-tests (Depends-on): Drop socket.
12742         (Makefile.am): Link even if sockets are not present.
12743         * modules/pipe2-tests (Makefile.am): Likewise.
12744         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12745
12746         pipe2: fix O_NONBLOCK support on mingw
12747         * modules/pipe2 (Depends-on): Add nonblocking.
12748         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12749         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12750         * tests/test-nonblocking.c (main): Likewise.
12751         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12752
12753         fcntl-h: fix O_ACCMODE on cygwin
12754         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12755         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12756
12757         pipe-filter: drop O_NONBLOCK workarounds
12758         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12759         * modules/pipe-filter-ii (Depends-on): Likewise.
12760         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12761
12762         nonblocking: provide O_NONBLOCK for mingw
12763         * modules/nonblocking (Depends-on): Add open.
12764         (configure.ac): Set new witness macro.
12765         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12766         * modules/fcntl-h (Makefile.am): Substitute it.
12767         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12768         nonblocking module is in use.
12769         * lib/nonblocking.c: Adjust portability test.
12770         * lib/open.c (open): Don't let native open see gnulib flag.
12771         * tests/test-fcntl-h.c (main): Enhance test.
12772         * tests/test-open.h (test_open): Likewise.
12773         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12774
12775         careadlinkat: fix compilation error on mingw
12776         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12777         within struct allocator.
12778
12779 2011-04-06  Eric Blake  <eblake@redhat.com>
12780
12781         binary-io: relicense under LGPLv2+
12782         * modules/binary-io (License): Relax to LGPLv2+.
12783         Requested for libvirt, and required by pipe2.
12784
12785 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12786
12787         verify: use _Static_assert if available
12788         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12789         (verify_true, verify): Use it if available.  This generates better
12790         diagnostics with GCC 4.6.0 and later.
12791
12792 2011-04-05  Bruno Haible  <bruno@clisp.org>
12793
12794         Remove leftover generated .h files after config.status changed.
12795
12796         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12797         GL_GENERATE_ALLOCA_H.
12798         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12799         GL_GENERATE_ALLOCA_H evaluates to false.
12800
12801         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12802         GL_GENERATE_ARGZ_H.
12803         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12804         evaluates to false.
12805
12806         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12807         GL_GENERATE_BYTESWAP_H.
12808         * modules/byteswap (Makefile.am): Remove byteswap.h if
12809         GL_GENERATE_BYTESWAP_H evaluates to false.
12810
12811         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12812         GL_GENERATE_ERRNO_H.
12813         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12814         evaluates to false.
12815
12816         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12817         GL_GENERATE_FLOAT_H.
12818         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12819         evaluates to false.
12820
12821         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12822         GL_GENERATE_FNMATCH_H.
12823         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12824         GL_GENERATE_FNMATCH_H evaluates to false.
12825
12826         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12827         GL_GENERATE_GLOB_H.
12828         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12829         evaluates to false.
12830
12831         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12832         automake conditional GL_GENERATE_ICONV_H.
12833         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12834         evaluates to false.
12835
12836         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12837         GL_GENERATE_NETINET_IN_H.
12838         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12839         GL_GENERATE_NETINET_IN_H evaluates to false.
12840
12841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12842         conditional GL_GENERATE_PTHREAD_H.
12843         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12844         * modules/pthread (Makefile.am): Remove pthread.h if
12845         GL_GENERATE_PTHREAD_H evaluates to false.
12846
12847         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12848         GL_GENERATE_SCHED_H.
12849         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12850         evaluates to false.
12851
12852         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12853         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12854         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12855         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12856
12857         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12858         GL_GENERATE_STDARG_H.
12859         * modules/stdarg (Makefile.am): Remove stdarg.h if
12860         GL_GENERATE_STDARG_H evaluates to false.
12861
12862         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12863         GL_GENERATE_STDBOOL_H.
12864         * modules/stdbool (Makefile.am): Remove stdbool.h if
12865         GL_GENERATE_STDBOOL_H evaluates to false.
12866
12867         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12868         conditional GL_GENERATE_STDDEF_H.
12869         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12870         * modules/stddef (Makefile.am): Remove stddef.h if
12871         GL_GENERATE_STDDEF_H evaluates to false.
12872
12873         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12874         GL_GENERATE_STDINT_H.
12875         * modules/stdint (Makefile.am): Remove stdint.h if
12876         GL_GENERATE_STDINT_H evaluates to false.
12877
12878         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12879         GL_GENERATE_SYSEXITS_H.
12880         * modules/sysexits (Makefile.am): Remove sysexits.h if
12881         GL_GENERATE_SYSEXITS_H evaluates to false.
12882
12883         Reported by Karl Berry and Ralf Wildenhues.
12884
12885 2011-04-05  Bruno Haible  <bruno@clisp.org>
12886
12887         Ensure to rebuild generated .h files when config.status has changed.
12888         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12889         config.status.
12890         * modules/ctype (Makefile.am): Likewise.
12891         * modules/dirent (Makefile.am): Likewise.
12892         * modules/errno (Makefile.am): Likewise.
12893         * modules/fcntl-h (Makefile.am): Likewise.
12894         * modules/float (Makefile.am): Likewise.
12895         * modules/getopt-posix (Makefile.am): Likewise.
12896         * modules/glob (Makefile.am): Likewise.
12897         * modules/iconv-h (Makefile.am): Likewise.
12898         * modules/inttypes (Makefile.am): Likewise.
12899         * modules/langinfo (Makefile.am): Likewise.
12900         * modules/locale (Makefile.am): Likewise.
12901         * modules/math (Makefile.am): Likewise.
12902         * modules/netdb (Makefile.am): Likewise.
12903         * modules/netinet_in (Makefile.am): Likewise.
12904         * modules/poll-h (Makefile.am): Likewise.
12905         * modules/pthread (Makefile.am): Likewise.
12906         * modules/pty (Makefile.am): Likewise.
12907         * modules/sched (Makefile.am): Likewise.
12908         * modules/search (Makefile.am): Likewise.
12909         * modules/selinux-h (Makefile.am): Likewise.
12910         * modules/signal (Makefile.am): Likewise.
12911         * modules/spawn (Makefile.am): Likewise.
12912         * modules/stdarg (Makefile.am): Likewise.
12913         * modules/stdbool (Makefile.am): Likewise.
12914         * modules/stddef (Makefile.am): Likewise.
12915         * modules/stdint (Makefile.am): Likewise.
12916         * modules/stdio (Makefile.am): Likewise.
12917         * modules/stdlib (Makefile.am): Likewise.
12918         * modules/string (Makefile.am): Likewise.
12919         * modules/strings (Makefile.am): Likewise.
12920         * modules/sys_file (Makefile.am): Likewise.
12921         * modules/sys_ioctl (Makefile.am): Likewise.
12922         * modules/sys_select (Makefile.am): Likewise.
12923         * modules/sys_socket (Makefile.am): Likewise.
12924         * modules/sys_stat (Makefile.am): Likewise.
12925         * modules/sys_time (Makefile.am): Likewise.
12926         * modules/sys_times (Makefile.am): Likewise.
12927         * modules/sys_utsname (Makefile.am): Likewise.
12928         * modules/sys_wait (Makefile.am): Likewise.
12929         * modules/sysexits (Makefile.am): Likewise.
12930         * modules/termios (Makefile.am): Likewise.
12931         * modules/time (Makefile.am): Likewise.
12932         * modules/unistd (Makefile.am): Likewise.
12933         * modules/wchar (Makefile.am): Likewise.
12934         * modules/wctype-h (Makefile.am): Likewise.
12935         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12936
12937 2011-04-05  Bruno Haible  <bruno@clisp.org>
12938
12939         pipe2: Relicense under LGPLv2+.
12940         * modules/pipe2 (License): Change to LGPLv2+.
12941         Requested by Eric Blake, for libvirt.
12942
12943 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12944
12945         bootstrap: compute gnulib_extra_files after updating build_aux
12946         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12947         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12948
12949 2011-04-05  Eric Blake  <eblake@redhat.com>
12950
12951         bootstrap: preserve git whitelist item sorting
12952         * build-aux/bootstrap (sort_patterns): New function.
12953         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12954
12955 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12956
12957         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12958         sc_space_tab check.
12959
12960 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12961
12962         areadlink, areadlinkat: rewrite in terms of careadlinkat
12963         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12964         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12965         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12966         (malloc, realloc): Remove #undefs.
12967         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12968         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12969         readlink, ssize_t, stdint, unistd.
12970         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12971         areadlink, stdint.
12972
12973         careadlinkat: new module
12974         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12975         * modules/careadlinkat: New files, written by me with
12976         a review and feedback from Ben Pfaff in
12977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12978
12979 2011-04-01  Bruno Haible  <bruno@clisp.org>
12980
12981         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12982         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12983         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12984         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12985         Reported by Bruce Korb <bruce.korb@gmail.com>.
12986
12987 2011-04-01  Bruno Haible  <bruno@clisp.org>
12988
12989         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12990         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12991         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12992         * modules/wcpcpy (Depends-on): Add extensions.
12993         * modules/wcpncpy (Depends-on): Likewise.
12994         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12995         systems.
12996         * doc/posix-functions/wcpncpy.texi: Likewise.
12997         * doc/posix-functions/wcwidth.texi: Likewise.
12998
12999 2011-03-31  Eric Blake  <eblake@redhat.com>
13000
13001         nonblocking: fix mingw test failures
13002         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13003         non-blocking flag on regular file.
13004         (get_nonblocking_flag): Set errno on invalid fd.
13005         * tests/test-nonblocking.c (main): Avoid test failure on
13006         directories if fchdir is not active.
13007         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13008
13009 2011-03-31  Bruno Haible  <bruno@clisp.org>
13010
13011         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13012         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13013         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13014         Reported by Simon Josefsson <simon@josefsson.org>.
13015
13016 2011-03-31  Bruno Haible  <bruno@clisp.org>
13017         and Eric Blake  <eblake@redhat.com>
13018
13019         nonblocking: new module
13020         * modules/nonblocking: New module.
13021         * modules/nonblocking-tests: Likewise.
13022         * lib/nonblocking.h: New file.
13023         * lib/nonblocking.c: Likewise.
13024         * tests/test-nonblocking.c: New test.
13025         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13026
13027 2011-03-30  Bruno Haible  <bruno@clisp.org>
13028
13029         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13030         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13031         instead of 'printf' format for GCC >= 4.4.
13032         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13033         (fprintf, printf, vfprintf, vprintf): Declare with
13034         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13035         the system's vfprintf() function.
13036         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13037
13038 2011-03-30  Eric Blake  <eblake@redhat.com>
13039
13040         passfd: fix scoping bug
13041         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13042         before sendmsg/recvmsg.
13043
13044         passfd: standardize coding conventions
13045         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13046         can be learned at compile time.
13047         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13048         ifdefs.
13049         (sendfd, recvfd): Follow gnulib code conventions.
13050
13051         passfd: fix incorrect sendmsg arguments
13052         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13053         incorrect msg_controllen value.
13054         * modules/passfd-tests (Depends-on): Check for alarm.
13055         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13056         Reported by Bastien ROUCARIES.
13057
13058 2011-03-30  Bruno Haible  <bruno@clisp.org>
13059
13060         c-strcasestr: Relicense under LGPLv2+.
13061         * modules/c-strcasestr (License): Change to LGPLv2+.
13062         Requested by Eric Blake, for libvirt.
13063
13064 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13065
13066         * users.txt: Add libidn2.  Fix libtasn1 link.
13067
13068 2011-03-30  Jim Meyering  <meyering@redhat.com>
13069
13070         tests: readlink* ("",... fails with EINVAL on newer kernels
13071         readlink and readlinkat have typically failed with ENOENT for
13072         the invalid, empty file name,  "".  However, with the advent
13073         of linux-2.6.39, they fail with EINVAL.
13074         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13075         when operating on the empty file name.
13076         * tests/test-readlink.h (test_readlink): Likewise.
13077
13078 2011-03-29  Bruno Haible  <bruno@clisp.org>
13079
13080         Relicense some modules under LGPLv2+, for libidn2.
13081         * modules/array-mergesort (License): Change to LGPLv2+.
13082         * modules/c-strcaseeq (License): Likewise.
13083         * modules/striconveh (License): Likewise.
13084         * modules/striconveha (License): Likewise.
13085         * modules/uniconv/base (License): Likewise.
13086         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13087         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13088         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13089         * modules/unictype/base (License): Likewise.
13090         * modules/unictype/bidiclass-of (License): Likewise.
13091         * modules/unictype/category-M (License): Likewise.
13092         * modules/unictype/category-none (License): Likewise.
13093         * modules/unictype/category-of (License): Likewise.
13094         * modules/unictype/category-test (License): Likewise.
13095         * modules/unictype/category-test-withtable (License): Likewise.
13096         * modules/unictype/combining-class (License): Likewise.
13097         * modules/unictype/joiningtype-of (License): Likewise.
13098         * modules/unictype/scripts (License): Likewise.
13099         * modules/uninorm/base (License): Likewise.
13100         * modules/uninorm/canonical-decomposition (License): Likewise.
13101         * modules/uninorm/composition (License): Likewise.
13102         * modules/uninorm/decompose-internal (License): Likewise.
13103         * modules/uninorm/decomposition-table (License): Likewise.
13104         * modules/uninorm/nfc (License): Likewise.
13105         * modules/uninorm/nfd (License): Likewise.
13106         * modules/uninorm/u32-normalize (License): Likewise.
13107         * modules/unistr/base (License): Likewise.
13108         * modules/unistr/u32-cpy (License): Likewise.
13109         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13110         * modules/unistr/u32-to-u8 (License): Likewise.
13111         * modules/unistr/u32-uctomb (License): Likewise.
13112         * modules/unistr/u8-check (License): Likewise.
13113         * modules/unistr/u8-mblen (License): Likewise.
13114         * modules/unistr/u8-mbtouc (License): Likewise.
13115         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13116         * modules/unistr/u8-mbtoucr (License): Likewise.
13117         * modules/unistr/u8-prev (License): Likewise.
13118         * modules/unistr/u8-strlen (License): Likewise.
13119         * modules/unistr/u8-to-u32 (License): Likewise.
13120         * modules/unistr/u8-uctomb (License): Likewise.
13121         * modules/unitypes (License): Likewise.
13122         Requested by Simon Josefsson.
13123
13124 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13125
13126         lib-symbol-visibility: Add a notice.
13127         * modules/lib-symbol-visibility (Notice): New field.
13128
13129 2011-03-29  Bruno Haible  <bruno@clisp.org>
13130
13131         getaddrinfo: Doc fix.
13132         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13133         section "fixed in Gnulib".
13134
13135 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13136
13137         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13138         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13139
13140 2011-03-26  Bruno Haible  <bruno@clisp.org>
13141
13142         unictype/property-byname: Reduce the number of load-time relocations.
13143         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13144         (UC_PROPERTY_INDEX_*): New enumeration values.
13145         (uc_property_byname): Convert an index from the lookup table to an
13146         uc_property_t.
13147         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13148         values.
13149
13150 2011-03-26  Bruno Haible  <bruno@clisp.org>
13151
13152         unictype/property-byname: Allow omitted word separators and aliases.
13153         * lib/unictype/pr_byname.gperf: Add property names without word
13154         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13155         for 'space'.
13156
13157 2011-03-26  Bruno Haible  <bruno@clisp.org>
13158
13159         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13160         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13161         also hyphens to space.
13162         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13163         without spaces.
13164         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13165
13166 2011-03-26  Bruno Haible  <bruno@clisp.org>
13167
13168         unictype/joiningtype-byname: Recognize long names as well.
13169         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13170         a long name.
13171         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13172         unictype/joiningtype_byname.h.
13173         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13174         * lib/unictype/joiningtype_byname.gperf: New file.
13175         * modules/unictype/joiningtype-byname (Files): Add
13176         lib/unictype/joiningtype_byname.gperf.
13177         (Depends-on): Add gperf.
13178         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13179         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13180         long names.
13181
13182         Tests for module 'unictype/joiningtype-longname'.
13183         * modules/unictype/joiningtype-longname-tests: New file.
13184         * tests/unictype/test-joiningtype_longname.c: New file.
13185
13186         New module 'unictype/joiningtype-longname'.
13187         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13188         * lib/unictype/joiningtype_longname.c: New file.
13189         * modules/unictype/joiningtype-longname: New file.
13190         * modules/unictype/joiningtype-all (Depends-on): Add
13191         unictype/joiningtype-longname.
13192
13193 2011-03-26  Bruno Haible  <bruno@clisp.org>
13194
13195         unictype/bidiclass-byname: Recognize long names as well.
13196         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13197         name.
13198         * lib/unictype/bidi_byname.c: Include <string.h>,
13199         unictype/bidi_byname.h.
13200         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13201         * lib/unictype/bidi_byname.gperf: New file.
13202         * modules/unictype/bidiclass-byname (Files): Add
13203         lib/unictype/bidi_byname.gperf.
13204         (Depends-on): Add gperf.
13205         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13206         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13207         long names.
13208
13209         Tests for module 'unictype/bidiclass-longname'.
13210         * modules/unictype/bidiclass-longname-tests: New file.
13211         * tests/unictype/test-bidi_longname.c: New file.
13212
13213         New module 'unictype/bidiclass-longname'.
13214         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13215         * lib/unictype/bidi_longname.c: New file.
13216         * modules/unictype/bidiclass-longname: New file.
13217         * modules/unictype/bidiclass-all (Depends-on): Add
13218         unictype/bidiclass-longname.
13219
13220 2011-03-26  Bruno Haible  <bruno@clisp.org>
13221
13222         unictype/bidi*: Rename modules.
13223         * modules/unictype/bidiclass-all: Renamed from
13224         modules/unictype/bidicategory-all.
13225         * modules/unictype/bidiclass-name: Renamed from
13226         modules/unictype/bidiclass-name.
13227         (Description): Update.
13228         * modules/unictype/bidiclass-name-tests: Renamed from
13229         modules/unictype/bidicategory-name-tests.
13230         * modules/unictype/bidiclass-byname: Renamed from
13231         modules/unictype/bidicategory-byname.
13232         (Description): Update.
13233         * modules/unictype/bidiclass-byname-tests: Renamed from
13234         modules/unictype/bidicategory-byname-tests.
13235         * modules/unictype/bidiclass-of: Renamed from
13236         modules/unictype/bidicategory-of.
13237         (Description): Update.
13238         * modules/unictype/bidiclass-of-tests: Renamed from
13239         modules/unictype/bidicategory-of-tests.
13240         * modules/unictype/bidiclass-test: Renamed from
13241         modules/unictype/bidicategory-test.
13242         (Description): Update.
13243         * modules/unictype/bidiclass-test-tests: Renamed from
13244         modules/unictype/bidicategory-test-tests.
13245         * modules/unictype/bidicategory-all: New file, a simple redirection.
13246         * modules/unictype/bidicategory-name: Likewise.
13247         * modules/unictype/bidicategory-byname: Likewise.
13248         * modules/unictype/bidicategory-of: Likewise.
13249         * modules/unictype/bidicategory-test: Likewise.
13250         * modules/unictype/property-bidi-* (Dependencies): Update.
13251         * lib/unictype/bidi_*.c: Update comment.
13252
13253 2011-03-26  Bruno Haible  <bruno@clisp.org>
13254
13255         unictype/bidi*: Rename functions, part 2.
13256         * modules/unictype/bidicategory-name (configure.ac): Update required
13257         libunistring version.
13258         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13259
13260 2011-03-25  Bruno Haible  <bruno@clisp.org>
13261
13262         New module 'unictype/combining-class-all'.
13263         * modules/unictype/combining-class-all: New file.
13264
13265         Tests for module 'unictype/combining-class-byname'.
13266         * modules/unictype/combining-class-byname-tests: New file.
13267         * tests/unictype/test-combiningclass_byname.c: New file.
13268
13269         New module 'unictype/combining-class-byname'.
13270         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13271         * lib/unictype/combiningclass_byname.c: New file.
13272         * lib/unictype/combiningclass_byname.gperf: New file.
13273         * modules/unictype/combining-class-byname: New file.
13274
13275         Tests for module 'unictype/combining-class-longname'.
13276         * modules/unictype/combining-class-longname-tests: New file.
13277         * tests/unictype/test-combiningclass_longname.c: New file.
13278
13279         New module 'unictype/combining-class-longname'.
13280         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13281         * lib/unictype/combiningclass_longname.c: New file.
13282         * modules/unictype/combining-class-longname: New file.
13283
13284         Tests for module 'unictype/combining-class-name'.
13285         * modules/unictype/combining-class-name-tests: New file.
13286         * tests/unictype/test-combiningclass_name.c: New file.
13287
13288         New module 'unictype/combining-class-name'.
13289         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13290         * lib/unictype/combiningclass_name.c: New file.
13291         * modules/unictype/combining-class-name: New file.
13292
13293 2011-03-25  Bruno Haible  <bruno@clisp.org>
13294
13295         unictype/combining-class: Rename source files.
13296         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13297         of unictype/combining.h.
13298         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13299         Update.
13300         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13301         * modules/unictype/combining-class (Description): Fix.
13302         (Files, Makefile.am): Update.
13303         * tests/unictype/test-combiningclass.c: Renamed from
13304         tests/unictype/test-combining.c.
13305         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13306
13307 2011-03-25  Bruno Haible  <bruno@clisp.org>
13308
13309         unictype: Update list of canonical combining classes.
13310         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13311
13312 2011-03-25  Bruno Haible  <bruno@clisp.org>
13313
13314         unictype/category-byname: Recognize long names as well.
13315         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13316         a long name.
13317         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13318         unictype/categ_byname.h.
13319         (UC_CATEGORY_INDEX_*): New enumeration values.
13320         (uc_general_category_byname): Use uc_general_category_lookup and
13321         convert from index to value.
13322         * lib/unictype/categ_byname.gperf: New file.
13323         * modules/unictype/category-byname (Files): Add
13324         lib/unictype/categ_byname.gperf.
13325         (Depends-on): Add gperf.
13326         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13327         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13328         long names.
13329
13330         Tests for module 'unictype/category-longname'.
13331         * modules/unictype/category-longname-tests: New file.
13332         * tests/unictype/test-categ_longname.c: New file.
13333
13334         New module 'unictype/category-longname'.
13335         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13336         * lib/unictype/categ_longname.c: New file.
13337         * modules/unictype/category-longname: New file.
13338         * modules/unictype/category-all (Depends-on): Add it.
13339
13340 2011-03-25  Bruno Haible  <bruno@clisp.org>
13341
13342         Tests for module 'unictype/category-LC'.
13343         * modules/unictype/category-LC-tests: New file.
13344         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13345
13346         New module 'unictype/category-LC'.
13347         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13348         (UC_CATEGORY_LC): New declaration.
13349         (UC_CASED_LETTER): New macro.
13350         * lib/gen-uni-tables.c (is_category_LC): New function.
13351         (output_categories): Also handle category LC.
13352         (UC_CATEGORY_MASK_LC): New enumeration value.
13353         (general_category_byname): Also handle category LC.
13354         * lib/unictype/categ_LC.c: New file.
13355         * lib/unictype/categ_LC.h: New file, automatically generated.
13356         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13357         category LC.
13358         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13359         * modules/unictype/category-LC: New file.
13360         * modules/unictype/category-byname (Depends-on): Add
13361         unictype/category-LC.
13362         * modules/unictype/category-all (Depends-on): Likewise.
13363
13364 2011-03-25  Eric Blake  <eblake@redhat.com>
13365
13366         xmalloc: revert yesterday's regression
13367         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13368         realloc's underlying behavior (allowing allocation of zero-size
13369         objects, especially if malloc-gnu is also in use).
13370
13371 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13372
13373         maint.mk: add missing version to VC-tag
13374         * top/maint.mk: git tag was missing actual tag name; add it.
13375
13376         valgrind: do leak checking, and exit with code 1 on error (not 0)
13377         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13378         to VALGRIND.
13379
13380 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13381
13382         posix-modules: say what it does.
13383         * posix-modules: Add a line to the --help output saying what it does.
13384
13385 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13386
13387         xmalloc: Do not leak if underlying realloc is C99 compatible.
13388         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13389         This avoids a leak on C99-based systems.  See
13390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13391
13392 2011-03-24  Eric Blake  <eblake@redhat.com>
13393
13394         realloc: document portability problem
13395         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13396         passing 0 size to realloc.
13397
13398 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13399
13400         doc: update users.txt
13401         * users.txt: Add cvsps, tmpwatch
13402
13403 2011-03-23  Matt Rice  <ratmice@gmail.com>
13404
13405         doc: update users.txt
13406         * users.txt: Add gdb.
13407
13408 2011-03-23  Jim Meyering  <meyering@redhat.com>
13409
13410         doc: update users.txt
13411         Looking through matches up to the following URL (there are still
13412         several more pages), I found several projects that use gnulib:
13413         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13414         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13415         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13416
13417 2011-03-22  Bruno Haible  <bruno@clisp.org>
13418
13419         unictype/bidi*: Rename functions.
13420         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13421         uc_bidi_class, uc_is_bidi_class): New declarations.
13422         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13423         uc_bidi_category_byname.
13424         (uc_bidi_category_byname): New function.
13425         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13426         u_bidi_category_name.
13427         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13428         (uc_bidi_category_name): New function.
13429         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13430         uc_bidi_category.
13431         (uc_bidi_category): New function.
13432         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13433         uc_is_bidi_category. Invoke uc_bidi_class.
13434         (uc_is_bidi_category): New function.
13435         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13436         instead of uc_bidi_category_byname.
13437         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13438         instead of uc_bidi_category_name.
13439         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13440         uc_bidi_category.
13441         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13442         instead of uc_is_bidi_category.
13443
13444 2011-03-21  Bruno Haible  <bruno@clisp.org>
13445
13446         New module 'unictype/joininggroup-all'.
13447         * modules/unictype/joininggroup-all: New file.
13448
13449         Tests for module 'unictype/joininggroup-of'.
13450         * modules/unictype/joininggroup-of-tests: New file.
13451         * tests/unictype/test-joininggroup_of.c: New file.
13452         * tests/unictype/test-joininggroup_of.h: New file, automatically
13453         generated by gen-uni-tables.
13454
13455         New module 'unictype/joininggroup-of'.
13456         * modules/unictype/joininggroup-of: New file.
13457         * lib/unictype/joininggroup_of.c: New file.
13458         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13459         gen-uni-tables.
13460
13461         Tests for module 'unictype/joininggroup-byname'.
13462         * modules/unictype/joininggroup-byname-tests: New file.
13463         * tests/unictype/test-joininggroup_byname.c: New file.
13464
13465         New module 'unictype/joininggroup-byname'.
13466         * modules/unictype/joininggroup-byname: New file.
13467         * lib/unictype/joininggroup_byname.c: New file.
13468         * lib/unictype/joininggroup_byname.gperf: New file.
13469
13470         Tests for module 'unictype/joininggroup-name'.
13471         * modules/unictype/joininggroup-name-tests: New file.
13472         * tests/unictype/test-joininggroup_name.c: New file.
13473
13474         New module 'unictype/joininggroup-name'.
13475         * modules/unictype/joininggroup-name: New file.
13476         * lib/unictype/joininggroup_name.c: New file.
13477         * lib/unictype/joininggroup_name.h: New file.
13478
13479         New module 'unictype/joiningtype-all'.
13480         * modules/unictype/joiningtype-all: New file.
13481
13482         Tests for module 'unictype/joiningtype-of'.
13483         * modules/unictype/joiningtype-of-tests: New file.
13484         * tests/unictype/test-joiningtype_of.c: New file.
13485         * tests/unictype/test-joiningtype_of.h: New file, automatically
13486         generated by gen-uni-tables.
13487
13488         New module 'unictype/joiningtype-of'.
13489         * modules/unictype/joiningtype-of: New file.
13490         * lib/unictype/joiningtype_of.c: New file.
13491         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13492         gen-uni-tables.
13493
13494         Tests for module 'unictype/joiningtype-byname'.
13495         * modules/unictype/joiningtype-byname-tests: New file.
13496         * tests/unictype/test-joiningtype_byname.c: New file.
13497
13498         New module 'unictype/joiningtype-byname'.
13499         * modules/unictype/joiningtype-byname: New file.
13500         * lib/unictype/joiningtype_byname.c: New file.
13501
13502         Tests for module 'unictype/joiningtype-name'.
13503         * modules/unictype/joiningtype-name-tests: New file.
13504         * tests/unictype/test-joiningtype_name.c: New file.
13505
13506         New module 'unictype/joiningtype-name'.
13507         * modules/unictype/joiningtype-name: New file.
13508         * lib/unictype/joiningtype_name.c: New file.
13509
13510         unictype: Add support for Arabic shaping properties.
13511         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13512         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13513         declarations.
13514         (UC_JOINING_GROUP_*): New enumeration values.
13515         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13516         declarations.
13517         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13518         (unicode_joining_type): New variable.
13519         (UC_JOINING_GROUP_*): New enumeration values.
13520         (unicode_joining_group): New variable.
13521         (fill_arabicshaping, joining_type_as_c_identifier,
13522         output_joining_type_test, output_joining_type,
13523         joining_group_as_c_identifier, output_joining_group_test,
13524         output_joining_group): New functions.
13525         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13526         fill_arabicshaping and output_joining_type_test, output_joining_type,
13527         output_joining_group_test, output_joining_group.
13528         Reported by Simon Josefsson.
13529
13530 2011-03-21  Jim Meyering  <meyering@redhat.com>
13531
13532         strftime: fix a bug in yesterday's change
13533         * lib/strftime.c (add): Accommodate width's initial value of -1.
13534         Otherwise, nstrftime would copy uninitialized data into
13535         the result buffer.
13536
13537 2011-03-21  Jim Meyering  <meyering@redhat.com>
13538
13539         tests: add strftime-tests module
13540         * tests/test-strftime.c: New file.
13541         * modules/strftime-tests: New module.
13542
13543 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13544
13545         strftime: don't assume a byte count fits in 'int'
13546         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13547         found this problem by static analysis, using gcc -Wstrict-overflow
13548         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13549         on an integer overflow having undefined behavior, but it turns out
13550         that the argument is a size, which might not fit in 'int' anyway,
13551
13552 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13553
13554         stdio: don't require ignore_value around fwrite
13555
13556         This patch works around libc bug 11959
13557         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13558         Without this patch, applications must often write
13559         ignore_value (fwrite (...)) even though the ignore_value is
13560         not helpful here.  It's common to write many objects, using
13561         fwrite/printf/etc., and then use ferror to detect output error.
13562
13563         I considered making this patch optional, but decided against it,
13564         because libc is obviously being inconsistent here: there is no
13565         reason libc should insist that user code must inspect fwrite
13566         return's value without also insisting that it inspect printf's,
13567         putchar's, etc.  If user code wants to have a strict style where
13568         all these functions' values are checked (so that ferror need not
13569         be checked), we could add support for that style in a new gnulib
13570         module, but in the meantime it's better to be consistent and to
13571         support common usage.
13572
13573         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13574         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13575         that we are compiling in checking mode, and if not C++, and
13576         if not already wrapping fwrite for some other reason.
13577         (fwrite): #define to rpl_fwrite if the latter is defined.
13578
13579 2011-03-20  Bruno Haible  <bruno@clisp.org>
13580
13581         verror: Fix compilation error introduced on 2011-02-13.
13582         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13583         instead of __attribute__.
13584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13585
13586 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13587             Bruno Haible  <bruno@clisp.org>
13588
13589         socklen: do not depend on sys_socket
13590         While trying to modify Emacs to use gnulib's socklen module,
13591         I discovered a circular dependency: socklen depends on sys_socket
13592         and vice versa.  Emacs can use socklen, but it does not need
13593         sys_socket because it has its own substitute for sys/socket.h.
13594         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13595         gl_TYPE_SOCKLEN_T.
13596         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13597         gl_PREREQ_SYS_H_SOCKET.
13598         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13599         gl_PREREQ_SYS_H_SOCKET.
13600         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13601         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13602         * modules/socklen (Depends-on): Do not depend on sys_socket.
13603         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13604
13605 2011-03-20  Jim Meyering  <meyering@redhat.com>
13606
13607         maint.mk: sort file names *after* new transformation
13608         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13609         prefix would have led to an unwarranted failure in GNU parted.
13610         Sort after that transformation.
13611
13612 2011-03-19  Jim Meyering  <meyering@redhat.com>
13613
13614         maint.mk: fix po-file syntax-check rule
13615         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13616         Patch by Bruno Haible.
13617
13618 2011-03-19  Bruno Haible  <bruno@clisp.org>
13619
13620         socklen: Update comment.
13621         * m4/socklen.m4: Update comment about platforms.
13622
13623 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13624             Bruno Haible  <bruno@clisp.org>
13625
13626         inet_ntop, inet_pton: Simplify.
13627         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13628         documented to provide socklen_t and we already depend on sys_socket.
13629         * modules/inet_pton (Depends-on): Likewise.
13630         * lib/arpa_inet.in.h: Adjust comment.
13631
13632 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13633             Bruno Haible  <bruno@clisp.org>
13634
13635         netdb: Simplify.
13636         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13637         documented to provide socklen_t and we already depend on sys_socket.
13638         * lib/netdb.in.h: Adjust comment.
13639
13640 2011-03-19  Bruno Haible  <bruno@clisp.org>
13641
13642         sys_socket, netdb: Document problem with socklen_t.
13643         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13644         platforms.
13645         * doc/posix-headers/netdb.texi: Likewise.
13646
13647 2011-03-18  Eric Blake  <eblake@redhat.com>
13648
13649         maint.mk: let po check work in VPATH build
13650         * top/maint.mk (po_file): Allow cfg.mk override.
13651         (sc_po_check): Allow VPATH use.
13652         Reported by Jiri Denemark.
13653
13654 2011-03-16  Jim Meyering  <meyering@redhat.com>
13655
13656         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13657         Before, you would have had to create one .x-sc_ file per rule in order
13658         to exempt offending files.  Now, you may instead use a Make variable --
13659         usually defined in cfg.mk -- whose name identifies the affected rule.
13660         * top/maint.mk (_sc_excl): Define.
13661         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13662         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13663
13664 2011-03-13  Bruno Haible  <bruno@clisp.org>
13665
13666         ignore-value tests: Avoid warnings.
13667         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13668         empty for gcc < 3.4.
13669
13670 2011-03-13  Bruno Haible  <bruno@clisp.org>
13671
13672         passfd: Fix link error on Solaris.
13673         * modules/passfd (Description): Correct.
13674         (Depends-on): Add socketlib.
13675         (Link): New section.
13676         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13677
13678 2011-03-13  Bruno Haible  <bruno@clisp.org>
13679
13680         passfd: Fix link error on AIX 5.2.
13681         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13682
13683 2011-03-13  Bruno Haible  <bruno@clisp.org>
13684
13685         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13686         * lib/sys_socket.in.h: Include <stddef.h>.
13687         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13688         CMSG_FIRSTHDR. Remove unused variable.
13689
13690 2011-03-13  Bruno Haible  <bruno@clisp.org>
13691
13692         passfd: Fix compilation error on OpenBSD.
13693         * lib/passfd.c: Include <sys/uio.h>.
13694
13695 2011-03-13  Bruno Haible  <bruno@clisp.org>
13696
13697         passfd test: Fix warnings.
13698         * tests/test-passfd.c: Include <sys/wait.h>.
13699         (main): Fix typo.
13700
13701 2011-03-13  Bruno Haible  <bruno@clisp.org>
13702
13703         passfd module, part 4, tweaks.
13704         * tests/test-passfd.c: Reorder includes.
13705         (main): Fix perror and printf calls.
13706
13707 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13708
13709         passfd module, part 4.
13710         * modules/passfd-tests: New file.
13711         * tests/test-passfd.c: New file.
13712
13713 2011-03-13  Jim Meyering  <meyering@redhat.com>
13714
13715         Makefile: rely on GNU make; derive syntax-check rule names
13716         Rather than requiring that each sc_ rule be listed as a dependent
13717         of "check", use features of GNU make to derive the list.
13718         * Makefile (syntax-check-rules): Define.
13719         (check): Depend on the new variable, not the hard-coded list.
13720
13721 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13722             Bruno Haible  <bruno@clisp.org>
13723
13724         passfd module, part 3.
13725         * lib/passfd.h (recvfd): Add a flags argument.
13726         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13727         (recvfd): Add a flags argument.
13728         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13729         exists.
13730         * modules/passfd (Depends-on): Add cloexec.
13731         Suggested by Eric Blake.
13732
13733 2011-03-13  Bruno Haible  <bruno@clisp.org>
13734
13735         passfd module, part 2, tweaks.
13736         * modules/passfd (Files): Reorder.
13737         (Depends-on): Remove errno.
13738         (Include): Remove <sys/socket.h>, <sys/un.h>.
13739         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13740         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13741         specification header. Include <sys/socket.h> always. Don't include
13742         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13743         (sendfd): Clarify that it sets errno when it fails.
13744         (recvfd): Fix specification.
13745
13746 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13747
13748         passfd module, part 2.
13749         * modules/passfd: New file.
13750         * lib/passfd.h: New file.
13751         * lib/passfd.c: New file.
13752
13753 2011-03-12  Bruno Haible  <bruno@clisp.org>
13754
13755         wcswidth, mbswidth: Avoid integer overflow.
13756         * lib/wcswidth.c: Include <limits.h>.
13757         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13758         * lib/mbswidth.c: Include <limits.h>.
13759         (mbsnwidth): Avoid 'int' overflow.
13760         Reported by Jim Meyering.
13761
13762 2011-03-12  Bruno Haible  <bruno@clisp.org>
13763
13764         futimens, utimensat: Avoid endless recursion on Solaris 10.
13765         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13766         Solaris.
13767         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13768         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13769
13770 2011-03-11  Jim Meyering  <meyering@redhat.com>
13771
13772         maint.mk: relax a regexp to accommodate other formatting styles
13773         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13774         between "ngettext" and the following "(".
13775
13776 2011-03-11  Pádraig Brady <P@draigBrady.com>
13777
13778         maint.mk: suppress a false positive warning
13779         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13780         diagnostics are marked with ngettext.
13781
13782 2011-03-10  Eric Blake  <eblake@redhat.com>
13783
13784         wchar: add explicit dependencies, for Tru64
13785         * modules/mbmemcasecoll (Depends-on): Add wchar.
13786         * modules/mbtowc (Depends-on): Likewise.
13787         * modules/vasnprintf (Depends-on): Likewise.
13788         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13789         * modules/wctomb (Depends-on): Likewise.
13790         Reported by Peter O'Gorman.
13791
13792 2011-03-08  Bruno Haible  <bruno@clisp.org>
13793
13794         passfd module, part 1, tweaks.
13795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13796         Improve indentation. Improve AC_MSG_CHECKING messages.
13797         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13798         gl_SOCKET_FAMILIES.
13799
13800 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13801
13802         passfd module, part 1.
13803         * m4/afunix.m4: New file.
13804         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13805         sockets.
13806
13807 2011-03-08  Bruno Haible  <bruno@clisp.org>
13808
13809         regex-quote: New API.
13810         * lib/regex-quote.h: Include <stdbool.h>.
13811         (struct regex_quote_spec): New type.
13812         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13813         New declarations.
13814         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13815         'const struct regex_quote_spec *' argument.
13816         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13817         (pcre_special): New constant.
13818         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13819         New functions.
13820         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13821         'const struct regex_quote_spec *' argument.
13822         * modules/regex-quote (Depends-on): Add stdbool.
13823         * tests/test-regex-quote.c (check): Update for new API. Add test for
13824         anchored results.
13825         * NEWS: Mention the API change.
13826         Reported by Reuben Thomas and Eric Blake.
13827
13828 2011-03-06  Bruno Haible  <bruno@clisp.org>
13829
13830         regex-quote: Fix creation of POSIX extended regular expressions.
13831         * lib/regex-quote.c (ere_special): Add grouping and alternation
13832         operators.
13833
13834 2011-03-05  Bruno Haible  <bruno@clisp.org>
13835
13836         doc: Improve doc regarding autopoint vs. gnulib.
13837         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13838         disable autopoint while running autoreconf.
13839         Suggested by Ralf Wildenhues.
13840
13841 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13842
13843         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13844         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13845
13846 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13847
13848         parse-duration: remove xalloc.h dependency
13849         * lib/parse-duration.c (parse_period): handle NULL return from
13850         strdup instead of calling xstrdup().
13851         * modules/parse-duration: remove "xalloc" dependency
13852
13853 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13854
13855         bootstrap: honor m4_base when running aclocal
13856         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13857
13858 2011-03-02  Jim Meyering  <meyering@redhat.com>
13859
13860         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13861         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13862         on request from Matt Booth.
13863
13864 2011-03-01  Eric Blake  <eblake@redhat.com>
13865
13866         test-link: work on Hurd
13867         * tests/test-link.h (test_link): Hurd rejects linking directories
13868         with EISDIR instead of the POSIX-mandated EPERM.
13869
13870 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13871
13872         stdio: simplify by moving files to printf-posix, sigpipe
13873         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13874         since this symbol is needed only if printf is replaced.
13875         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13876         Require gl_ASM_SYMBOL_PREFIX.
13877         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13878         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13879         (Depends-on): Add 'raise'.
13880         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13881         * modules/stdio (Files): Remove lib/stdio-write.c,
13882         m4/asm-underscore.m4.
13883         (Depends-on): Remove 'raise'.
13884
13885         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13886         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13887         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13888         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13889
13890 2011-02-28  Bruno Haible  <bruno@clisp.org>
13891
13892         localcharset: Assume ANSI C behaviour of free().
13893         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13894         calling free().
13895         Suggested by Simon Josefsson <simon@josefsson.org>.
13896
13897 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13898             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13899             Bruno Haible  <bruno@clisp.org>  (tiny change)
13900
13901         On Cygwin, use /proc file system instead of win32 API.
13902         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13903         Win32 file names.
13904         (DllMain): Simplify by removing Cygwin specific code.
13905         (find_shared_library_fullname): Use Linux specific implementation also
13906         for Cygwin.
13907         (get_shared_library_fullname): Update accordingly.
13908         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13909         Win32 file names.
13910         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13911         Cygwin specific code.
13912
13913 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13914             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13915
13916         Fix OpenMP flag detection for various Fortran compilers.
13917         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13918         OpenMP-conditional compilation construct, to force compile
13919         failure with missing OpenMP flag.
13920         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13921
13922 2011-02-25  Eric Blake  <eblake@redhat.com>
13923
13924         strstr: expand test coverage
13925         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13926         compilation.
13927         * tests/test-memmem.c (main): Duplicate tests.
13928         * tests/test-strcasestr.c (main): Likewise.
13929         * tests/test-c-strcasestr.c (main): Likewise.
13930
13931 2011-02-25  Jim Meyering  <meyering@redhat.com>
13932
13933         maint.mk: detect missing-NL-at-EOF, too
13934         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13935         it also detects when a file lacks a newline at EOF.
13936         (require_exactly_one_NL_at_EOF_): Renamed from
13937         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13938         since people may well have .x-sc_... file names tied to the
13939         existing name.  Suggested by Eric Blake.
13940
13941 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13942
13943         dirname: move m4/dos.m4 functionality into lib/dosname.h
13944
13945         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13946         extracts symbols from it, puts them into config.h; but it's much
13947         easier to use the symbols directly.  filename.h already does this,
13948         but it disagrees with dos.m4 in some respects.  This patch
13949         introduces a different include file dosname.h that packages up
13950         dos.m4, and then later we can work on merging filename.h and
13951         dosname.h.  Applications that need only the easy-to-configure
13952         symbols should consider including dosname.h rather than dirname.h.
13953         * NEWS: Mention incompatible changes.
13954         * m4/dos.m4: Remove.
13955         * lib/dosname.h, modules/dosname: New files.
13956         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13957         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13958         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13959         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13960         Include dosname.h, not dirname.h.
13961         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13962         Include dosname.h, for definitions of symbols like ISSLASH
13963         that used to be in config.h.
13964         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13965         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13966         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13967         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13968         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13969         * modules/rmdir (Files): Likewise.
13970         * modules/stat (Files): Likewise.
13971         * modules/unlink (Files): Likewise.
13972         * modules/dirname-lgpl (Depends-on): Add dosname.
13973         * modules/lstat (Depends-on): Likewise.
13974         * modules/openat (Depends-on): Likewise.
13975         * modules/rmdir (Depends-on): Likewise.
13976         * modules/savewd (Depends-on): Likewise.
13977         * modules/stat (Depends-on): Likewise.
13978         * modules/unlink (Depends-on): Likewise.
13979         * modules/openat (Depends-on): Remove dirname-lgpl.
13980         * modules/savewd (Depends-on): Likewise.
13981         * tests/test-dirname.c: Do not use removed symbols like
13982         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13983         the remaining symbols, e.g., ISSLASH ('\\').
13984
13985 2011-02-25  Eric Blake  <eblake@redhat.com>
13986
13987         strstr: revert patches that introduced bug and pessimization
13988         * lib/str-two-way.h: Add another reference.
13989         (two_way_short_needle, two_way_long_needle): Revert changes from
13990         2011-02-24; they pessimize search speed.
13991         (critical_factorization): Partially revert changes from
13992         2010-06-22; they violate the requirement that the left half of the
13993         needle be smaller than the period of the needle.
13994
13995 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         filenamecat: remove unnecessary dependency on dirname-lgpl
13998         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13999         is no direct dependency, just an indirect one via filenamecat-lgpl.
14000
14001         remove: remove unnecessary use of m4/dos.m4
14002         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14003         * modules/remove (FILES): Remove m4/dos.m4.
14004
14005         * lib/openat-proc.c: Don't include dirname.h; not needed.
14006
14007         backupfile: remove unnecessary use of m4/dos.m4
14008         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14009         of its symbols are used by the backupfile code.  backupfile.c does
14010         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14011         for the rare case of programs that want all their backup file
14012         names to live within 8+3 limits, and dos.m4 doesn't address that.
14013         * modules/backupfile (Files): Remove m4/dos.m4.
14014
14015 2011-02-24  Jim Meyering  <meyering@redhat.com>
14016
14017         strstr: fix a bug whereby strstr would mistakenly return NULL
14018         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14019         in period calculation.
14020         (two_way_long_needle): Likewise.
14021         The original problem was reported by Mike Stump in
14022         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14023         Ralf Wildenhues provided the short needle and haystack.
14024         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14025         Add a more involved test to trigger the bug in two_way_long_needle.
14026
14027 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14028
14029         gnulib-tool: remove use of bold display in help screen
14030         * gnulib-tool (func_usage): Do not use bold display anymore in the
14031         help screen.  That was just meant to be a temporary emphasis for a
14032         backward-incompatible change.
14033
14034 2011-02-23  Bruno Haible  <bruno@clisp.org>
14035
14036         Fix misindentation of preprocessor directives.
14037         * lib/argp-namefrob.h: Reindent preprocessor directives.
14038         * lib/getopt_int.h (struct _getopt_data): Likewise.
14039         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14040         * lib/vasnprintf.c (decode_long_double): Likewise.
14041         * tests/test-argmatch.c: Insert blank lines, for clarity.
14042         * tests/test-exclude.c: Likewise.
14043
14044 2011-02-22  Bruno Haible  <bruno@clisp.org>
14045
14046         ioctl: Fix for MacOS X in 64-bit mode.
14047         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14048         value.
14049         Suggested by Eric Blake.
14050         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14051
14052 2011-02-22  Jim Meyering  <meyering@redhat.com>
14053
14054         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14055         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14056         in lib/.
14057
14058 2011-02-22  Eric Blake  <eblake@redhat.com>
14059
14060         maint: avoid any CDPATH issue
14061         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14062
14063         maint: adjust cpp indentation for my modules, as well
14064         * Makefile (sc_cpp_indent_check): Add my name.
14065         * lib/fbufmode.c: Filter through cppi.
14066         * lib/fpurge.c: Likewise.
14067         * lib/freadable.c: Likewise.
14068         * lib/freading.c: Likewise.
14069         * lib/fwritable.c: Likewise.
14070         * lib/fwriting.c: Likewise.
14071         * lib/sigaction.c: Likewise.
14072
14073 2011-02-22  Jim Meyering  <meyering@redhat.com>
14074
14075         maint: adjust cpp indentation to reflect nesting depth
14076         I.e., in a block of code that begins with an unnested "#if",
14077         put one space between the "#" in column 1 and following token.
14078         For example,
14079         -#include <sys/vfs.h>
14080         +# include <sys/vfs.h>
14081         Do this only in .c files that are part of a module I maintain.
14082         * lib/linkat.c: Filter through cppi.
14083         * lib/nanosleep.c: Likewise.
14084         * lib/openat.c: Likewise.
14085         * lib/openat-die.c: Likewise.
14086         * lib/dup3.c: Likewise.
14087         * lib/fchownat.c: Likewise.
14088         * lib/flock.c: Likewise.
14089         * lib/fsync.c: Likewise.
14090         * lib/fts.c: Likewise.
14091         * lib/getpass.c: Likewise.
14092         * lib/gettimeofday.c: Likewise.
14093         * lib/userspec.c: Likewise.
14094         * Makefile (sc_cpp_indent_check): New rule, to check this.
14095
14096 2011-02-22  Bruno Haible  <bruno@clisp.org>
14097
14098         New module 'wctomb'.
14099         * lib/stdlib.in.h (wctomb): New declaration.
14100         * lib/wctomb.c: New file.
14101         * lib/wctomb-impl.h: New file.
14102         * m4/wctomb.m4: New file.
14103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14104         REPLACE_WCTOMB.
14105         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14106         REPLACE_WCTOMB.
14107         * modules/wctomb: New file.
14108         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14109         * doc/posix-functions/wctomb.texi: Mention the new module.
14110         * modules/wctob (Depends-on): Add wctomb.
14111
14112 2011-02-22  Bruno Haible  <bruno@clisp.org>
14113
14114         New module 'mbtowc'.
14115         * lib/stdlib.in.h (mbtowc): New declaration.
14116         * lib/mbtowc.c: New file.
14117         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14118         * m4/mbtowc.m4: New file.
14119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14120         REPLACE_MBTOWC.
14121         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14122         REPLACE_MBTOWC.
14123         * modules/mbtowc: New file.
14124         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14125         * doc/posix-functions/mbtowc.texi: Mention the new module.
14126         * modules/btowc (Depends-on): Add mbtowc.
14127
14128 2011-02-22  Bruno Haible  <bruno@clisp.org>
14129
14130         wcrtomb: Add more tests for native Windows platforms.
14131         * tests/test-wcrtomb-w32-1.sh: New file.
14132         * tests/test-wcrtomb-w32-2.sh: New file.
14133         * tests/test-wcrtomb-w32-3.sh: New file.
14134         * tests/test-wcrtomb-w32-4.sh: New file.
14135         * tests/test-wcrtomb-w32-5.sh: New file.
14136         * tests/test-wcrtomb-w32.c: New file.
14137         * modules/wcrtomb-tests (Files): Add them.
14138         (Makefile.am): Arrange to run these tests.
14139         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14140         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14141
14142 2011-02-20  Bruno Haible  <bruno@clisp.org>
14143
14144         wcrtomb: Enhance test.
14145         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14146
14147 2011-02-20  Bruno Haible  <bruno@clisp.org>
14148
14149         mbrtowc: Tiny optimization.
14150         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14151
14152 2011-02-20  Jim Meyering  <meyering@redhat.com>
14153
14154         test-exclude.c: remove unmatched #endif
14155         * tests/test-exclude.c: Remove stray #endif, left over from
14156         the change of a week ago.
14157
14158 2011-02-19  Jim Meyering  <meyering@redhat.com>
14159
14160         git-version-gen: skip "-dirty" check when appropriate
14161         * build-aux/git-version-gen: Don't run any git commands when the
14162         version string comes from .tarball-version.  Prior to this, we
14163         would run git update-index --refresh even from a just-unpacked
14164         tarball directory, and that could affect a .git/ directory in a
14165         parent of the build directory.  Reported by Mike Frysinger.
14166
14167 2011-02-19  Bruno Haible  <bruno@clisp.org>
14168
14169         unictype/property-byname: Reduce the size of the 'data' segment.
14170         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14171
14172 2011-02-19  Bruno Haible  <bruno@clisp.org>
14173
14174         unictype/scripts: Reduce the size of the 'data' segment.
14175         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14176         '%pic'.
14177         * lib/unictype/scripts_byname.gperf: Regenerated.
14178
14179 2011-02-19  Bruno Haible  <bruno@clisp.org>
14180
14181         stdint: Update documentation.
14182         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14183
14184 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14185
14186         stdint: omit redundant check for wchar.h
14187         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14188         always tests whether wchar.h exists, so remove the now-redundant test.
14189
14190 2011-02-18  Bruno Haible  <bruno@clisp.org>
14191
14192         stdint: Cut dependency to module 'wchar'.
14193         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14194         include the necessary prerequisites.
14195         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14196         * modules/stdint (Depends-on): Remove wchar.
14197         (Makefile.am): Substitute HAVE_WCHAR_H.
14198         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14199
14200 2011-02-18  Eric Blake  <eblake@redhat.com>
14201
14202         longlong: skip, rather than fail, on cross-compilation
14203         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14204         when cross-compiling; regression from 2011-02-16.
14205
14206 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14207
14208         * NEWS: Mention 2011-02-08 change to stdlib.
14209
14210 2011-02-17  Bruno Haible  <bruno@clisp.org>
14211
14212         getloadavg: Add comments about platforms.
14213         * m4/getloadavg.m4: Add comment.
14214         * lib/getloadavg.c: Likewise.
14215
14216 2011-02-17  Bruno Haible  <bruno@clisp.org>
14217
14218         getloadavg: Fix link error on Solaris 2.6.
14219         * modules/getloadavg (Link): New section.
14220         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14221         linking test-getloadavg.
14222         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14223         getloadavg.
14224
14225 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14228         It was 'int', but this doesn't match the IRIX 6.5 manual.
14229         Suggested by Bruno Haible in
14230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14231
14232 2011-02-17  Bruno Haible  <bruno@clisp.org>
14233
14234         havelib: Fix comments.
14235         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14236         change.
14237
14238 2011-02-17  Bruno Haible  <bruno@clisp.org>
14239
14240         havelib: Update config.rpath.
14241         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14242
14243 2011-02-17  Bruno Haible  <bruno@clisp.org>
14244
14245         getloadavg test: Add some plausibility checks.
14246         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14247         is improbable.
14248
14249 2011-02-16  Eric Blake  <eblake@redhat.com>
14250
14251         maintainer-makefile: make syntax-check a no-op from tarballs
14252         * top/maint.mk (no-vc-detected): New rule.
14253         (local-checks-available): Use it to avoid hanging if someone tries
14254         'make syntax-check' from a tarball.  Also append to any non-syntax
14255         checks already defined in cfg.mk.
14256
14257 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14258
14259         longlong: tune, particularly for common case of c99
14260
14261         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14262         or running anything if c99, or if unsigned long long int does not
14263         work.  In either case, we know the answer without further tests.
14264         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14265         it at most once, and use its results for both long long int and
14266         unsigned long long int.  This is more likely to be efficient in
14267         the common case where the program wants to check for both long
14268         long int and unsigned long long int.
14269         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14270         since the answer is already known.
14271
14272 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14273
14274         getloadavg: set errno
14275         * lib/getloadavg.c: Set errno when returning -1.  If no other
14276         error number looks appropriate, set it to ENOSYS if the getloadavg
14277         looks like it can't possibly ever work, ENOTSUP otherwise.
14278         Suggested by Bruno Haible in
14279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14280
14281         getloadavg: trim unused parts and speed up 'configure'
14282         * NEWS: Document this.
14283         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14284         always compiled if getloadavg is absent.
14285         Move test code to ...
14286         * tests/test-getloadavg.c: New file, containing previous
14287         contents of test from lib/getloadavg.c.  It also contains
14288         suggestions by Bruno Haible in
14289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14290         * modules/getloadavg-tests: New file.
14291         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14292         Do tests in the same order as they're needed for getloadavg.c.
14293         Omit setgid-related tests that generate symbols KMEM_GROUP,
14294         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14295         Do only the tests that are needed to see whether the system has
14296         getloadavg, moving the other tests into ...
14297         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14298         NLIST_NAME_UNION; nobody should be using it.  Do not define
14299         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14300         relevant, as the user of this module shouldn't care how getloadavg
14301         is implemented.
14302
14303         getloadavg: omit unused var
14304         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14305
14306 2011-02-15  Jim Meyering  <meyering@redhat.com>
14307
14308         doc: update users.txt
14309         * users.txt: Update iwhd's URL.
14310
14311 2011-02-13  Bruno Haible  <bruno@clisp.org>
14312
14313         Consistent macro naming for macros that use GCC __attribute__.
14314         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14315         _ATTRIBUTE_NONNULL_.
14316         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14317         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14318         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14319         ATTRIBUTE_DEPRECATED.
14320         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14321         ATTRIBUTE_NORETURN.
14322         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14323         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14324         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14325         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14326         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14327         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14328         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14329         ATTRIBUTE_SENTINEL.
14330         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14331         ATTRIBUTE_RETURN_CHECK.
14332         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14333         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14334         ATTRIBUTE_NORETURN.
14335         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14336         Reported by Paul Eggert.
14337
14338 2011-02-13  Bruno Haible  <bruno@clisp.org>
14339
14340         Don't interfere with a program's definition of __attribute__.
14341         * lib/argp.h (__attribute__): Remove definition.
14342         (_GL_ATTRIBUTE_FORMAT): New macro.
14343         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14344         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14345         (_GL_ATTRIBUTE_FORMAT): New macro.
14346         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14347         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14348         GCC 3 or newer.
14349         * lib/error.h (__attribute__): Remove definition.
14350         (_GL_ATTRIBUTE_FORMAT): New macro.
14351         (error, error_at_line): Use it.
14352         * lib/hash.h (__attribute__): Remove definition.
14353         (ATTRIBUTE_WUR): Update definition. Define always.
14354         * lib/openat.h (__attribute__): Remove definition.
14355         (ATTRIBUTE_NORETURN): Update definition. Define always.
14356         * lib/sigpipe-die.h (__attribute__): Remove definition.
14357         (ATTRIBUTE_NORETURN): Update definition. Define always.
14358         * lib/vasnprintf.h (__attribute__): Remove definition.
14359         (_GL_ATTRIBUTE_FORMAT): New macro.
14360         (asnprintf, vasnprintf): Use it.
14361         * lib/xalloc.h (__attribute__): Remove definition.
14362         (ATTRIBUTE_NORETURN): Update definition. Define always.
14363         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14364         * lib/xmemdup0.h (__attribute__): Remove definition.
14365         (ATTRIBUTE_NORETURN): Update definition. Define always.
14366         * lib/xprintf.h (__attribute__): Remove definition.
14367         (_GL_ATTRIBUTE_FORMAT): New macro.
14368         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14369         * lib/xstrtol.h (__attribute__): Remove definition.
14370         (ATTRIBUTE_NORETURN): Update definition. Define always.
14371         * lib/xvasprintf.h (__attribute__): Remove definition.
14372         (_GL_ATTRIBUTE_FORMAT): New macro.
14373         (xasprintf, xvasprintf): Use it.
14374         * tests/test-argmatch.c (__attribute__): Remove definition.
14375         (ATTRIBUTE_NORETURN): Update definition. Define always.
14376         * tests/test-exclude.c (__attribute__): Remove definition.
14377         (ATTRIBUTE_NORETURN): Update definition. Define always.
14378         Reported by Paul Eggert.
14379
14380 2011-02-13  Bruno Haible  <bruno@clisp.org>
14381
14382         mbrtowc: Add more tests for native Windows platforms.
14383         * tests/test-mbrtowc-w32-1.sh: New file.
14384         * tests/test-mbrtowc-w32-2.sh: New file.
14385         * tests/test-mbrtowc-w32-3.sh: New file.
14386         * tests/test-mbrtowc-w32-4.sh: New file.
14387         * tests/test-mbrtowc-w32-5.sh: New file.
14388         * tests/test-mbrtowc-w32.c: New file.
14389         * modules/mbrtowc-tests (Files): Add them.
14390         (Makefile.am): Arrange to run these tests.
14391         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14392         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14393
14394 2011-02-13  Bruno Haible  <bruno@clisp.org>
14395
14396         mbrtowc: Work around native Windows bug.
14397         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14398         guess when no suitable locale for testing was found.
14399         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14400
14401 2011-02-13  Bruno Haible  <bruno@clisp.org>
14402
14403         mbsinit: Work around mingw bug.
14404         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14405         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14406         Windows.
14407         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14408
14409 2011-02-13  Bruno Haible  <bruno@clisp.org>
14410
14411         mbsinit: Don't crash for a NULL argument.
14412         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14413         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14414
14415 2011-02-13  Bruno Haible  <bruno@clisp.org>
14416
14417         Don't interfere with a program's definition of __attribute__.
14418         * lib/stdio.in.h (__attribute__): Remove definition.
14419         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14420         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14421         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14422         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14423         * lib/string.in.h (__attribute__): Remove definition.
14424         Reported by Paul Eggert.
14425
14426 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14427
14428         stdlib: don't get in the way of non-GCC __attribute__
14429         See thread starting at
14430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14431         Revert previous stdlib change, installing the following instead:
14432         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14433         to get in the way of a non-GCC compiler that supports __attribute__.
14434         (_GL_ATTRIBUTE_RETURN): New macro.
14435         (_Exit): Use it instead of __attribute__.
14436
14437 2011-02-12  Bruno Haible  <bruno@clisp.org>
14438
14439         quotearg test: Avoid test failure on mingw.
14440         * tests/test-quotearg.sh: Convert the locale identifier from native
14441         Windows syntax to Unix syntax.
14442
14443 2011-02-12  Bruno Haible  <bruno@clisp.org>
14444
14445         setlocale: Prefer gnulib's override over libintl's override.
14446         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14447         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14448         GNULIB_defined_setlocale is set.
14449
14450 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14451
14452         stdlib: support non-GCC __attribute__
14453
14454         Fix a serious and tricky problem encountered when attempting to
14455         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14456         5.5, but it crashed due to memory corruption on Solaris 10 with
14457         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14458         bits that are otherwise zero.  This tagging is optional inside
14459         Emacs but is preferred and is used when __attribute__ ((__aligned
14460         (8))) works, as it does with both recent-enough GCC and with Sun C
14461         5.11.  However, Sun C 5.11 is not GCC and does not #define
14462         __GNUC__ and __GNUC_MINOR__.
14463
14464         When I added the getloadavg module to Emacs, it brought in
14465         stdlib.in.h, which contained this fragment:
14466
14467            #ifndef __attribute__
14468            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14469            #  define __attribute__(Spec)   /* empty */
14470            # endif
14471            #endif
14472
14473         When files that include <stdlib.h> were compiled with Sun C 5.11,
14474         the above code disabled __attribute__ ((__aligned (8))), which
14475         caused variables to not be properly aligned, which eventually led
14476         to the pointer corruption mentioned above.  (This was a bit hard
14477         to diagnose, unfortunately.)
14478
14479         Several "#define __attribute__(X) /* empty */" code snippets need
14480         to be eradicated from Gnulib to work with non-GCC compilers that
14481         support __attribute__.  The Autoconf way to do this is to test for
14482         each kind of attribute that we want support for, and selectively
14483         enable that in source code.
14484
14485         Fix this problem just for stdlib.h, by adding a test for the
14486         __noreturn__ attribute, and change stdlib.in.h to use that test
14487         when needed.  This technique can be easily generalized to the
14488         other *.in.h files and attributes, and a similar technique can be
14489         used for *.h and *.c files.  This patch is enough to solve the
14490         problem for Emacs + getloadavg, and I thought I'd publish it for
14491         feedback before undertaking further, similar fixes in other
14492         modules.
14493
14494         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14495         because it's not needed for stdlib.h.  It merely substitutes the
14496         value directly into stdlib.h.  We may well need to #define it, or
14497         similar symbols, for other modules, but it's nice to also have an
14498         option to not #define it for applications like Emacs that do not
14499         need it.
14500
14501         * lib/stdlib.in.h (__attribute__): Do not #define.
14502         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14503         be defined only if the _Exit module is also used.
14504         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14506         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14507         platforms.
14508         * modules/_Exit (Files): Add m4/attribute.m4.
14509         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14510         * m4/attribute.m4: New file.
14511
14512 2011-02-12  Bruno Haible  <bruno@clisp.org>
14513
14514         wcsrtombs: Work around bug on native Windows.
14515         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14516         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14517         instead of len.
14518         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14519
14520 2011-02-12  Bruno Haible  <bruno@clisp.org>
14521
14522         mbsrtowcs: Work around bug on native Windows.
14523         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14524         against mingw bug.
14525         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14526
14527 2011-02-12  Bruno Haible  <bruno@clisp.org>
14528
14529         Avoid setlocale bugs in tests.
14530         * modules/btowc (Dependencies): Add setlocale.
14531         * modules/c-strcase (Dependencies): Likewise.
14532         * modules/mbmemcasecmp (Dependencies): Likewise.
14533         * modules/mbmemcasecoll (Dependencies): Likewise.
14534         * modules/mbrtowc (Dependencies): Likewise.
14535         * modules/mbscasecmp (Dependencies): Likewise.
14536         * modules/mbscasestr (Dependencies): Likewise.
14537         * modules/mbschr (Dependencies): Likewise.
14538         * modules/mbscspn (Dependencies): Likewise.
14539         * modules/mbsinit (Dependencies): Likewise.
14540         * modules/mbsncasecmp (Dependencies): Likewise.
14541         * modules/mbsnrtowcs (Dependencies): Likewise.
14542         * modules/mbspbrk (Dependencies): Likewise.
14543         * modules/mbspcasecmp (Dependencies): Likewise.
14544         * modules/mbsrchr (Dependencies): Likewise.
14545         * modules/mbsrtowcs (Dependencies): Likewise.
14546         * modules/mbsspn (Dependencies): Likewise.
14547         * modules/mbsstr (Dependencies): Likewise.
14548         * modules/nl_langinfo (Dependencies): Likewise.
14549         * modules/quotearg (Dependencies): Likewise.
14550         * modules/unicase/locale-language (Dependencies): Likewise.
14551         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14552         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14553         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14554         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14555         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14556         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14557         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14558         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14559         * modules/vasnprintf-posix (Dependencies): Likewise.
14560         * modules/wcrtomb (Dependencies): Likewise.
14561         * modules/wcsnrtombs (Dependencies): Likewise.
14562         * modules/wcsrtombs (Dependencies): Likewise.
14563
14564 2011-02-12  Bruno Haible  <bruno@clisp.org>
14565
14566         setlocale: Workaround native Windows bug.
14567         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14568         succeeds but sets LC_CTYPE to "C", report a failure.
14569         * tests/test-setlocale2.sh: New file.
14570         * tests/test-setlocale2.c: New file.
14571         * modules/setlocale-tests (Files): Add the new files.
14572         (Makefile.am): Enable test-setlocale2.sh test.
14573         * doc/posix-functions/setlocale.texi: Mention workaround.
14574
14575 2011-02-11  Bruno Haible  <bruno@clisp.org>
14576
14577         Tests for module 'setlocale'.
14578         * modules/setlocale-tests: New file.
14579         * tests/test-setlocale1.sh: New file.
14580         * tests/test-setlocale1.c: New file.
14581
14582         New module 'setlocale'.
14583         * lib/locale.in.h (setlocale): New declaration.
14584         * lib/setlocale.c: New file, based on
14585         gettext/gettext-runtime/intl/setlocale.c.
14586         * m4/setlocale.m4: New file.
14587         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14588         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14589         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14590         REPLACE_SETLOCALE.
14591         * modules/setlocale: New file.
14592         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14593         * doc/posix-functions/setlocale.texi: Mention the new module.
14594
14595 2011-02-11  Bruno Haible  <bruno@clisp.org>
14596
14597         Prepare for locale dependent tests on mingw.
14598         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14599         because it has the wrong locale encoding.
14600         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14601         French_France.1252 instead of "fr".
14602         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14603         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14604         because it has the wrong locale encoding.
14605         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14606         native Windows, try Turkish_Turkey.65001.
14607         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14608         Chinese_China.54936.
14609
14610         Prepare for locale dependent tests on mingw.
14611         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14612         differently.
14613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14614         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14615         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14617
14618 2011-02-11  Eric Blake  <eblake@redhat.com>
14619
14620         strptime: avoid compiler warnings
14621         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14622         compiler warnings about dead code.
14623         Reported by Daniel P. Berrange.
14624
14625 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14626
14627         doc: update users.txt
14628         * users.txt: Add rcs.
14629
14630 2011-02-10  John W. Eaton  <jwe@gnu.org>
14631
14632         doc: update users.txt
14633         * users.txt: Add octave.
14634
14635 2011-02-10  Jim Meyering  <meyering@redhat.com>
14636
14637         doc: update users.txt
14638         * users.txt: Add iwhd.
14639
14640 2011-02-09  Bruno Haible  <bruno@clisp.org>
14641
14642         gnulib-tool: Make copyright notice adjustment more robust.
14643         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14644         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14645         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14646         License".
14647         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14648
14649 2011-02-06  Bruno Haible  <bruno@clisp.org>
14650
14651         New module 'towctrans'.
14652         * modules/towctrans: New file.
14653         * lib/wctype.in.h (towctrans): New declaration.
14654         * lib/towctrans.c: New file.
14655         * lib/towctrans-impl.h: New file.
14656         * m4/towctrans.m4: New file.
14657         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14658         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14659         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14660         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14661         * doc/posix-functions/towctrans.texi: Mention the new module.
14662
14663 2011-02-06  Bruno Haible  <bruno@clisp.org>
14664
14665         New module 'wctrans'.
14666         * modules/wctrans: New file.
14667         * lib/wctype.in.h (wctrans): New declaration.
14668         * lib/wctrans.c: New file.
14669         * lib/wctrans-impl.h: New file.
14670         * m4/wctrans.m4: New file.
14671         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14672         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14673         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14674         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14675         * doc/posix-functions/wctrans.texi: Mention the new module.
14676
14677 2011-02-06  Bruno Haible  <bruno@clisp.org>
14678
14679         New module 'iswctype'.
14680         * modules/iswctype: New file.
14681         * lib/wctype.in.h (iswctype): New declaration.
14682         * lib/iswctype.c: New file.
14683         * lib/iswctype-impl.h: New file.
14684         * m4/iswctype.m4: New file.
14685         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14686         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14687         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14688         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14689         * doc/posix-functions/iswctype.texi: Mention the new module and the
14690         HP-UX 11.00 problem.
14691
14692 2011-02-06  Bruno Haible  <bruno@clisp.org>
14693
14694         New module 'wctype'.
14695         * modules/wctype: Change to represent the wctype() substitute.
14696         * lib/wctype.in.h (wctype): New declaration.
14697         * lib/wctype.c: New file.
14698         * lib/wctype-impl.h: New file.
14699         * m4/wctype.m4: New file.
14700         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14701         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14702         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14703         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14704         * doc/posix-functions/wctype.texi: Mention the new module and the
14705         HP-UX 11.00 problem.
14706
14707 2011-02-06  Bruno Haible  <bruno@clisp.org>
14708
14709         wctype-h: Ensure wctype_t and wctrans_t are defined.
14710         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14711         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14712         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14713         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14714         HAVE_WCTRANS_T.
14715         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14716
14717 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14718
14719         flock: fix license typo
14720
14721         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14722         omitted.
14723
14724 2011-02-08  Bruno Haible  <bruno@clisp.org>
14725
14726         Split large sed scripts, for HP-UX sed.
14727         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14728         to avoid HP-UX limit of 99 commands, in the near future.
14729         * modules/stdlib (Makefile.am): Likewise.
14730         * modules/unistd (Makefile.am): Likewise.
14731         * modules/wchar (Makefile.am): Likewise.
14732         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14733         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14734         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14735
14736 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14737             Bruno Haible  <bruno@clisp.org>
14738
14739         stdlib: improve random_r modularization
14740         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14741         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14742         you also need the random_r module to get this material right.
14743         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14744         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14745         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14746
14747 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14748
14749         stdlib: don't depend on stdint
14750         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14751         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14752         be independent of whether stdint.h is needed.
14753         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14754         here, instead of ...
14755         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14756         struct random_data should be using the random_r module, not just
14757         the stdlib module (which wouldn't make sense: what package needs
14758         just struct random_data without also needing random_r?).
14759         * modules/stdlib (Depends-on): Remove stdint.
14760
14761         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14762         See the thread rooted at
14763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14764         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14765         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14766         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14767         __VMS)); previously it was always included (via fcntl--.h).
14768         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14769         hand; this is good enough for load averages.  Also, do not use
14770         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14771         flags directly if available and don't bother otherwise.  (Packages
14772         that need the extra reliability should use the modules that define
14773         these flags on older platforms that lack them.)
14774         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14775         fcntl-safer.
14776
14777 2011-02-08  Jim Meyering  <meyering@redhat.com>
14778
14779         di-set.h, ino-map.h: add multiple-inclusion guard
14780         Technically, the guard is required only for ino-map.h, due to its
14781         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14782         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14783         * lib/ino-map.h: Likewise.
14784
14785 2011-02-06  Bruno Haible  <bruno@clisp.org>
14786
14787         iswblank: Ensure declaration on glibc systems.
14788         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14789         * modules/iswblank (Dependencies): Add 'extensions'.
14790         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14791
14792 2011-02-06  Bruno Haible  <bruno@clisp.org>
14793
14794         New module 'iswblank'.
14795         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14796         * modules/iswblank: New file.
14797         * modules/wctype-h (Files): Remove lib/iswblank.c.
14798         (Makefile.am): Substitute GNULIB_ISWBLANK.
14799         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14800         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14801         (gl_WCTYPE_H_DEFAULTS): New macro.
14802         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14803         * modules/iswblank-tests: New file.
14804         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14805         * tests/test-wctype-h.c (main): Remove iswblank tests.
14806         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14807         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14808         of 'wctype-h'.
14809         * NEWS: Mention the change.
14810         * modules/mbchar (Depends-on): Add iswblank.
14811
14812 2011-02-08  Bruno Haible  <bruno@clisp.org>
14813
14814         di-set tests: Refactor.
14815         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14816         unnecessary includes.
14817         (ASSERT): Remove macro.
14818         (main): Make C90 compliant by avoiding variable declaration after
14819         statement.
14820         * modules/di-set-tests (Files): Add tests/macros.h.
14821
14822 2011-02-08  Bruno Haible  <bruno@clisp.org>
14823
14824         ino-map tests: Refactor.
14825         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14826         unnecessary includes.
14827         (ASSERT): Remove macro.
14828         (main): Make C90 compliant by avoiding variable declaration after
14829         statement.
14830         * modules/ino-map-tests (Files): Add tests/macros.h.
14831
14832 2011-02-08  Jim Meyering  <meyering@redhat.com>
14833
14834         di-set: add "const" to a cast
14835         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14836         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14837
14838 2011-02-06  Bruno Haible  <bruno@clisp.org>
14839
14840         Rename module 'wctype' to 'wctype-h'.
14841         * modules/wctype-h: Renamed from modules/wctype.
14842         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14843         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14844         (Files, Depends-on, Makefile.am): Update.
14845         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14846         (Files, Makefile.am): Update.
14847         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14848         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14849         * doc/posix-headers/wctype.texi: Update.
14850         * doc/posix-functions/iswalnum.texi: Update.
14851         * doc/posix-functions/iswalpha.texi: Update.
14852         * doc/posix-functions/iswblank.texi: Update.
14853         * doc/posix-functions/iswcntrl.texi: Update.
14854         * doc/posix-functions/iswdigit.texi: Update.
14855         * doc/posix-functions/iswgraph.texi: Update.
14856         * doc/posix-functions/iswlower.texi: Update.
14857         * doc/posix-functions/iswprint.texi: Update.
14858         * doc/posix-functions/iswpunct.texi: Update.
14859         * doc/posix-functions/iswspace.texi: Update.
14860         * doc/posix-functions/iswupper.texi: Update.
14861         * doc/posix-functions/iswxdigit.texi: Update.
14862         * doc/posix-functions/towlower.texi: Update.
14863         * doc/posix-functions/towupper.texi: Update.
14864         * NEWS: Mention the change.
14865         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14866         * modules/mbchar (Dependencies): Likewise.
14867         * modules/mbswidth (Dependencies): Likewise.
14868         * modules/quotearg (Dependencies): Likewise.
14869         * modules/regex (Dependencies): Likewise.
14870         * modules/wcscasecmp (Dependencies): Likewise.
14871         * modules/wcsncasecmp (Dependencies): Likewise.
14872         * modules/wcwidth (Dependencies): Likewise.
14873
14874 2011-02-06  Bruno Haible  <bruno@clisp.org>
14875
14876         New module 'wcswidth'.
14877         * modules/wcswidth: New file.
14878         * lib/wchar.in.h (wcswidth): New declaration.
14879         * lib/wcswidth.c: New file.
14880         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14881         * m4/wcswidth.m4: New file.
14882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14884         REPLACE_WCSWIDTH.
14885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14886         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14887         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14888         * doc/posix-functions/wcswidth.texi: Mention the new module.
14889
14890 2011-02-06  Bruno Haible  <bruno@clisp.org>
14891
14892         New module 'wcstok'.
14893         * modules/wcstok: New file.
14894         * lib/wchar.in.h (wcstok): New declaration.
14895         * lib/wcstok.c: New file.
14896         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14897         * m4/wcstok.m4: New file.
14898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14901         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14902         * doc/posix-functions/wcstok.texi: Mention the new module.
14903
14904 2011-02-06  Bruno Haible  <bruno@clisp.org>
14905
14906         New module 'wcsstr'.
14907         * modules/wcsstr: New file.
14908         * lib/wchar.in.h (wcsstr): New declaration.
14909         * lib/wcsstr.c: New file.
14910         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14911         * m4/wcsstr.m4: New file.
14912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14915         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14916         * doc/posix-functions/wcsstr.texi: Mention the new module.
14917
14918 2011-02-06  Bruno Haible  <bruno@clisp.org>
14919
14920         New module 'wcspbrk'.
14921         * modules/wcspbrk: New file.
14922         * lib/wchar.in.h (wcspbrk): New declaration.
14923         * lib/wcspbrk.c: New file.
14924         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14925         * m4/wcspbrk.m4: New file.
14926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14929         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14930         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14931
14932 2011-02-06  Bruno Haible  <bruno@clisp.org>
14933
14934         New module 'wcsspn'.
14935         * modules/wcsspn: New file.
14936         * lib/wchar.in.h (wcsspn): New declaration.
14937         * lib/wcsspn.c: New file.
14938         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14939         * m4/wcsspn.m4: New file.
14940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14943         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14944         * doc/posix-functions/wcsspn.texi: Mention the new module.
14945
14946 2011-02-06  Bruno Haible  <bruno@clisp.org>
14947
14948         New module 'wcscspn'.
14949         * modules/wcscspn: New file.
14950         * lib/wchar.in.h (wcscspn): New declaration.
14951         * lib/wcscspn.c: New file.
14952         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14953         * m4/wcscspn.m4: New file.
14954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14957         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14958         * doc/posix-functions/wcscspn.texi: Mention the new module.
14959
14960 2011-02-06  Bruno Haible  <bruno@clisp.org>
14961
14962         New module 'wcsrchr'.
14963         * modules/wcsrchr: New file.
14964         * lib/wchar.in.h (wcsrchr): New declaration.
14965         * lib/wcsrchr.c: New file.
14966         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14967         * m4/wcsrchr.m4: New file.
14968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14971         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14972         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14973
14974 2011-02-06  Bruno Haible  <bruno@clisp.org>
14975
14976         New module 'wcschr'.
14977         * modules/wcschr: New file.
14978         * lib/wchar.in.h (wcschr): New declaration.
14979         * lib/wcschr.c: New file.
14980         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14981         * m4/wcschr.m4: New file.
14982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14985         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14986         * doc/posix-functions/wcschr.texi: Mention the new module.
14987
14988 2011-02-06  Bruno Haible  <bruno@clisp.org>
14989
14990         New module 'wcsdup'.
14991         * modules/wcsdup: New file.
14992         * lib/wchar.in.h (wcsdup): New declaration.
14993         * lib/wcsdup.c: New file.
14994         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14995         * m4/wcsdup.m4: New file.
14996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14999         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15000         * doc/posix-functions/wcsdup.texi: Mention the new module.
15001
15002 2011-02-06  Bruno Haible  <bruno@clisp.org>
15003
15004         New module 'wcsxfrm'.
15005         * modules/wcsxfrm: New file.
15006         * lib/wchar.in.h (wcsxfrm): New declaration.
15007         * lib/wcsxfrm.c: New file.
15008         * lib/wcsxfrm-impl.h: New file.
15009         * m4/wcsxfrm.m4: New file.
15010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15013         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15014         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15015
15016 2011-02-06  Bruno Haible  <bruno@clisp.org>
15017
15018         New module 'wcscoll'.
15019         * modules/wcscoll: New file.
15020         * lib/wchar.in.h (wcscoll): New declaration.
15021         * lib/wcscoll.c: New file.
15022         * lib/wcscoll-impl.h: New file.
15023         * m4/wcscoll.m4: New file.
15024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15027         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15028         * doc/posix-functions/wcscoll.texi: Mention the new module.
15029
15030 2011-02-06  Bruno Haible  <bruno@clisp.org>
15031
15032         New module 'wcsncasecmp'.
15033         * modules/wcsncasecmp: New file.
15034         * lib/wchar.in.h (wcsncasecmp): New declaration.
15035         * lib/wcsncasecmp.c: New file.
15036         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15037         * m4/wcsncasecmp.m4: New file.
15038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15041         HAVE_WCSNCASECMP.
15042         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15043         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15044
15045 2011-02-06  Bruno Haible  <bruno@clisp.org>
15046
15047         New module 'wcscasecmp'.
15048         * modules/wcscasecmp: New file.
15049         * lib/wchar.in.h (wcscasecmp): New declaration.
15050         * lib/wcscasecmp.c: New file.
15051         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15052         * m4/wcscasecmp.m4: New file.
15053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15056         HAVE_WCSCASECMP.
15057         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15058         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15059
15060 2011-02-05  Bruno Haible  <bruno@clisp.org>
15061
15062         New module 'wcsncmp'.
15063         * modules/wcsncmp: New file.
15064         * lib/wchar.in.h (wcsncmp): New declaration.
15065         * lib/wcsncmp.c: New file.
15066         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15067         * m4/wcsncmp.m4: New file.
15068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15071         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15072         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15073
15074 2011-02-05  Bruno Haible  <bruno@clisp.org>
15075
15076         New module 'wcscmp'.
15077         * modules/wcscmp: New file.
15078         * lib/wchar.in.h (wcscmp): New declaration.
15079         * lib/wcscmp.c: New file.
15080         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15081         * m4/wcscmp.m4: New file.
15082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15085         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15086         * doc/posix-functions/wcscmp.texi: Mention the new module.
15087
15088 2011-02-05  Bruno Haible  <bruno@clisp.org>
15089
15090         New module 'wcsncat'.
15091         * modules/wcsncat: New file.
15092         * lib/wchar.in.h (wcsncat): New declaration.
15093         * lib/wcsncat.c: New file.
15094         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15095         * m4/wcsncat.m4: New file.
15096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15099         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15100         * doc/posix-functions/wcsncat.texi: Mention the new module.
15101
15102 2011-02-05  Bruno Haible  <bruno@clisp.org>
15103
15104         New module 'wcscat'.
15105         * modules/wcscat: New file.
15106         * lib/wchar.in.h (wcscat): New declaration.
15107         * lib/wcscat.c: New file.
15108         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15109         * m4/wcscat.m4: New file.
15110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15113         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15114         * doc/posix-functions/wcscat.texi: Mention the new module.
15115
15116 2011-02-05  Bruno Haible  <bruno@clisp.org>
15117
15118         New module 'wcpncpy'.
15119         * modules/wcpncpy: New file.
15120         * lib/wchar.in.h (wcpncpy): New declaration.
15121         * lib/wcpncpy.c: New file.
15122         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15123         * m4/wcpncpy.m4: New file.
15124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15126         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15127         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15128         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15129
15130 2011-02-05  Bruno Haible  <bruno@clisp.org>
15131
15132         New module 'wcsncpy'.
15133         * modules/wcsncpy: New file.
15134         * lib/wchar.in.h (wcsncpy): New declaration.
15135         * lib/wcsncpy.c: New file.
15136         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15137         * m4/wcsncpy.m4: New file.
15138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15141         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15142         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15143
15144 2011-02-05  Bruno Haible  <bruno@clisp.org>
15145
15146         New module 'wcpcpy'.
15147         * modules/wcpcpy: New file.
15148         * lib/wchar.in.h (wcpcpy): New declaration.
15149         * lib/wcpcpy.c: New file.
15150         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15151         * m4/wcpcpy.m4: New file.
15152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15154         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15155         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15156         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15157
15158 2011-02-05  Bruno Haible  <bruno@clisp.org>
15159
15160         New module 'wcscpy'.
15161         * modules/wcscpy: New file.
15162         * lib/wchar.in.h (wcscpy): New declaration.
15163         * lib/wcscpy.c: New file.
15164         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15165         * m4/wcscpy.m4: New file.
15166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15169         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15170         * doc/posix-functions/wcscpy.texi: Mention the new module.
15171
15172 2011-02-05  Bruno Haible  <bruno@clisp.org>
15173
15174         New module 'wcsnlen'.
15175         * modules/wcsnlen: New file.
15176         * lib/wchar.in.h (wcsnlen): New declaration.
15177         * lib/wcsnlen.c: New file.
15178         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15179         * m4/wcsnlen.m4: New file.
15180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15183         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15184         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15185
15186 2011-02-05  Bruno Haible  <bruno@clisp.org>
15187
15188         New module 'wcslen'.
15189         * modules/wcslen: New file.
15190         * lib/wchar.in.h (wcslen): New declaration.
15191         * lib/wcslen.c: New file.
15192         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15193         * m4/wcslen.m4: New file.
15194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15197         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15198         * doc/posix-functions/wcslen.texi: Mention the new module.
15199
15200 2011-02-05  Bruno Haible  <bruno@clisp.org>
15201
15202         New module 'wmemset'.
15203         * modules/wmemset: New file.
15204         * lib/wchar.in.h (wmemset): New declaration.
15205         * lib/wmemset.c: New file.
15206         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15207         * m4/wmemset.m4: New file.
15208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15210         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15211         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15212         * doc/posix-functions/wmemset.texi: Mention the new module.
15213
15214 2011-02-05  Bruno Haible  <bruno@clisp.org>
15215
15216         New module 'wmemmove'.
15217         * modules/wmemmove: New file.
15218         * lib/wchar.in.h (wmemmove): New declaration.
15219         * lib/wmemmove.c: New file.
15220         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15221         * m4/wmemmove.m4: New file.
15222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15224         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15225         HAVE_WMEMMOVE.
15226         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15227         * doc/posix-functions/wmemmove.texi: Mention the new module.
15228
15229 2011-02-05  Bruno Haible  <bruno@clisp.org>
15230
15231         New module 'wmemcpy'.
15232         * modules/wmemcpy: New file.
15233         * lib/wchar.in.h (wmemcpy): New declaration.
15234         * lib/wmemcpy.c: New file.
15235         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15236         * m4/wmemcpy.m4: New file.
15237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15239         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15240         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15241         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15242
15243 2011-02-05  Bruno Haible  <bruno@clisp.org>
15244
15245         New module 'wmemcmp'.
15246         * modules/wmemcmp: New file.
15247         * lib/wchar.in.h (wmemcmp): New declaration.
15248         * lib/wmemcmp.c: New file.
15249         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15250         * m4/wmemcmp.m4: New file.
15251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15253         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15254         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15255         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15256
15257 2011-02-07  Jim Meyering  <meyering@redhat.com>
15258
15259         di-set, ino-map: new modules, from coreutils
15260         * lib/di-set.c: New file.
15261         * lib/di-set.h: Likewise.
15262         * lib/ino-map.c: Likewise.
15263         * lib/ino-map.h: Likewise.
15264         * modules/di-set: Likewise.
15265         * modules/di-set-tests: Likewise.
15266         * modules/ino-map: Likewise.
15267         * modules/ino-map-tests: Likewise.
15268         * tests/test-di-set.c: Likewise.
15269         * tests/test-ino-map.c: Likewise.
15270
15271 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15272
15273         getloadavg: merge minor changes from Emacs
15274
15275         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15276         (getloadavg): Use memset, not bzero.
15277
15278         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15279         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15280         clash (bug#86).
15281
15282 2010-11-14  Bruno Haible  <bruno@clisp.org>
15283
15284         Allow multiple gnulib generated replacements to coexist.
15285         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15286         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15287         * lib/langinfo.in.h (nl_item): Likewise.
15288         * lib/math.in.h (_NaN, NAN): Likewise.
15289         * lib/netdb.in.h (struct addrinfo): Likewise.
15290         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15291         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15292         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15293         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15294         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15295         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15296         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15297         pthread_mutexattr_init, pthread_mutexattr_settype,
15298         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15299         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15300         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15301         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15302         * lib/sched.in.h (struct sched_param): Likewise.
15303         * lib/se-selinux.in.h (security_class_t, security_context_t,
15304         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15305         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15306         lsetfilecon, fsetfilecon, security_check_context,
15307         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15308         Likewise.
15309         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15310         Likewise.
15311         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15312         _gl_function_taking_int_returning_void_t, union sigval,
15313         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15314         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15315         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15316         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15317         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15318         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15319         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15320         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15321         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15322         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15323         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15324         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15325         socklen_t, rpl_fd_isset): Likewise.
15326         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15327         * lib/sys_time.in.h (struct timeval): Likewise.
15328         * lib/sys_times.in.h (struct tms): Likewise.
15329         * lib/sys_utsname.in.h (struct utsname):
15330         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15331         * lib/unistd.in.h (getpagesize): Likewise.
15332         * lib/wchar.in.h (mbstate_t): Likewise.
15333         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15334         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15335         towlower, towupper): Likewise.
15336         Reported by Sam Steingold <sds@gnu.org>.
15337
15338 2011-02-05  Eric Blake  <eblake@redhat.com>
15339
15340         unsetenv: work around Haiku issues
15341         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15342         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15343
15344 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15345
15346         libposix: avoid calling error() within libposix
15347         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15348         is defined.
15349
15350 2011-02-05  Eric Blake  <eblake@redhat.com>
15351
15352         strerror_r-posix: port to cygwin
15353         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15354         implementation.
15355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15356         * tests/test-strerror_r.c (main): Fix test.
15357         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15358         issue.
15359
15360 2011-02-05  Bruno Haible  <bruno@clisp.org>
15361
15362         New module 'wmemchr'.
15363         * modules/wmemchr: New file.
15364         * lib/wchar.in.h (wmemchr): New declaration.
15365         * lib/wmemchr.c: New file.
15366         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15367         * m4/wmemchr.m4: New file.
15368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15370         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15371         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15372         * doc/posix-functions/wmemchr.texi: Mention the new module.
15373
15374 2011-02-04  Eric Blake  <eblake@redhat.com>
15375
15376         fdopendir: detect FreeBSD bug
15377         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15378         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15379
15380 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15381
15382         stdbool: do not define HAVE_STDBOOL_H
15383         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15384         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15385         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15386         imported from the latest Autoconf git.  It was motivated by Emacs,
15387         which uses gnulib but does not need HAVE_STDBOOL_H.
15388
15389 2011-02-04  Bruno Haible  <bruno@clisp.org>
15390
15391         wcsnrtombs: Prepare for new module wwcsnrtombs.
15392         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15393         * lib/wcsnrtombs.c: Include it.
15394         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15395
15396         wcsrtombs: Prepare for new module wwcsrtombs.
15397         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15398         * lib/wcsrtombs.c: Include it.
15399         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15400
15401         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15402         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15403         * lib/mbsnrtowcs.c: Include it.
15404         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15405
15406         mbsrtowcs: Prepare for new module mbsrtowwcs.
15407         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15408         * lib/mbsrtowcs.c: Include it.
15409         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15410
15411 2011-02-04  Bruno Haible  <bruno@clisp.org>
15412
15413         vasnprintf: Reduce use of malloc for small format strings.
15414         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15415         (arguments): Add room for the first 7 arguments.
15416         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15417         (char_directives, u8_directives, u16_directives, u32_directives): Add
15418         room for the first 7 directives.
15419         * lib/printf-parse.c: Include <string.h>.
15420         (PRINTF_PARSE): Change memory handling code so that it uses the first
15421         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15422         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15423         Reported by Pádraig Brady <P@draigbrady.com>.
15424
15425 2011-01-31  Eric Blake  <eblake@redhat.com>
15426
15427         dup2: work around Haiku bug
15428         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15429         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15430         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15431         * tests/test-dup2.c (main): Enhance test.
15432
15433 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15434
15435         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15436         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15437         declared by eglibc 2.11.2.
15438         * lib/stdio.in.h: Likewise.
15439
15440 2011-01-31  Eric Blake  <eblake@redhat.com>
15441
15442         ignore-value: add missing test dependency
15443         * tests/test-ignore-value.c: Revert previous change; stdio.h
15444         provides off_t.
15445         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15446
15447 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15448
15449         mktime: clarify long_int width checking
15450         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15451         the top level, to make it clearer that the assumption about
15452         long_int width is being checked.  See
15453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15454
15455 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15456
15457         ignore-value: Fix self-test.
15458         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15459
15460 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15461
15462         TYPE_MAXIMUM: avoid theoretically undefined behavior
15463         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15464         negative number, which the C Standard says has undefined behavior.
15465         In practice this is not a problem, but might as well do it by the book.
15466         Reported by Rich Felker and Eric Blake; see
15467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15468         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15469         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15471         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15472         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15473         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15474
15475         mktime: #undef mktime before #defining it
15476         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15477
15478         mktime: systematically normalize tm_isdst comparisons
15479         * lib/mktime.c (isdst_differ): New function.
15480         (__mktime_internal): Use it systematically for all isdst comparisons.
15481         This completes the fix for libc BZ #6723, and removes the need for
15482         normalizing tm_isdst.  See
15483         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15484         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15485
15486         mktime: fix some integer overflow issues and sidestep the rest
15487
15488         This was prompted by a bug report by Benjamin Lindner for MinGW
15489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15490         His bug is due to signed integer overflow (0 - INT_MIN), and I
15491         I scanned through mktime.c looking for other integer overflow
15492         problems, fixing all the bugs I found.
15493
15494         Although the C Standard says the resulting code is still not safe
15495         in the presence of integer overflow, in practice it should be good
15496         enough for all real-world two's-complement implementations, except
15497         for debugging environments that deliberately trap on integer
15498         overflow (e.g., gcc -ftrapv).
15499
15500         * lib/mktime.c (WRAPV): New macro.
15501         (SHR): Also check that long_int and time_t shift right in the
15502         usual way, before using the fast-but-unportable method.
15503         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15504         used.  The code already assumed two's complement, so there's
15505         no need to test for alternatives.  All uses removed.
15506         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15507         the C standard.  Problem reported by Rich Felker in
15508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15509         (twos_complement_arithmetic): Also check long_int and time_t.
15510         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15511         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15512         (__mktime_internal): Avoid integer overflow with unary subtraction
15513         in two instances where -1 - X is an adequate replacement for -X,
15514         since the calculations are approximate.
15515
15516 2011-01-29  Eric Blake  <eblake@redhat.com>
15517
15518         mktime: avoid infinite loop
15519         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15520         type; behavior is still undefined but portable to all known targets.
15521         Reported by Rich Felker.
15522
15523 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15524
15525         rename, unlink, same-inode: Relicense.
15526         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15527         * modules/unlink (License): Likewise.
15528         * modules/same-inode (License): Likewise.
15529
15530 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15531
15532         mktime: avoid problems on NetBSD 5 / i386
15533         * lib/mktime.c (long_int): New type.  This works around a problem
15534         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15535         but time_t is 64 bits, and where I expect the existing code is
15536         wrong in some cases.
15537         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15538         (ydhms_diff): Bring back the compile-time check for wide-enough
15539         year and yday.
15540
15541         mktime: fix misspelling in comment
15542         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15543         This merges all recent glibc changes of importance.
15544
15545 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15546
15547         move-if-change: cope with concurrent mv of identical file.
15548         * build-aux/move-if-change (CMPPROG): Accept environment
15549         variable as an override for `cmp'.
15550         (usage): Document CMPPROG.
15551         Adjust comparison to drop stdout.  Cope with failure of mv if
15552         the target file exists and is identical to the source, for
15553         parallel builds.
15554         Report from H.J. Lu against binutils in PR binutils/12283.
15555
15556 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15557
15558         * users.txt: Mention sharutils.
15559
15560 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15561
15562         * users.txt: Mention OATH Toolkit.
15563
15564 2011-01-27  Bruno Haible  <bruno@clisp.org>
15565
15566         Prepare for supporting FreeBSD 10.
15567         * build-aux/config.libpath: Remove handling of freebsd1*.
15568
15569 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15570
15571         Prepare for supporting FreeBSD 10.
15572         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15573         match FreeBSD 10.0.
15574
15575 2011-01-27  Bruno Haible  <bruno@clisp.org>
15576
15577         vma-iter, get-rusage-as: Add OpenBSD support.
15578         * modules/vma-iter (configure.ac): Test for mquery.
15579         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15580         * lib/vma-iter.c: Include <sys/mman.h>.
15581         (vma_iterate): Add an implementation based on mquery().
15582         * lib/resource-ext.h (get_rusage_as): Update comments.
15583         * lib/get-rusage-as.c: Likewise.
15584         * lib/get-rusage-data.c: Likewise.
15585
15586 2011-01-26  Karl Berry  <karl@gnu.org>
15587
15588         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15589         variables to make it easier to override the makeinfo program used.
15590
15591 2011-01-26  Eric Blake  <eblake@redhat.com>
15592
15593         fcntl: work around Haiku F_DUPFD bugs
15594         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15595         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15596         cloexec bit on duplication.
15597         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15598
15599 2011-01-26  Bruno Haible  <bruno@clisp.org>
15600
15601         Enable memory leak tests on AIX.
15602         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15603         * tests/test-fprintf-posix3.c (main): Likewise.
15604
15605 2011-01-26  Bruno Haible  <bruno@clisp.org>
15606
15607         Tests for module 'get-rusage-data'.
15608         * modules/get-rusage-data-tests: New file.
15609         * tests/test-get-rusage-data.c: New file.
15610
15611         New module 'get-rusage-data'.
15612         * lib/resource-ext.h (get_rusage_data): New declaration.
15613         * lib/get-rusage-data.c: New file.
15614         * modules/get-rusage-data: New file.
15615
15616 2011-01-25  Bruno Haible  <bruno@clisp.org>
15617
15618         get-rusage-as: Allow for easier testing.
15619         * lib/resource-ext.h (get_rusage_as): Add comment.
15620         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15621         (main): New function for interactive testing.
15622
15623 2011-01-25  Bruno Haible  <bruno@clisp.org>
15624
15625         vma-iter: Treat Haiku like BeOS.
15626         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15627         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15628
15629 2011-01-25  Eric Blake  <eblake@redhat.com>
15630
15631         c-stack: fix regression on cygwin when libsigsegv is present
15632         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15633
15634 2011-01-24  Bruno Haible  <bruno@clisp.org>
15635
15636         vma-iter: Avoid empty intervals.
15637         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15638         on an empty interval.
15639
15640 2011-01-24  Jim Meyering  <meyering@redhat.com>
15641
15642         u64: remove unnecessary #include
15643         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15644
15645 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15646
15647         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15648         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15649
15650 2011-01-23  Bruno Haible  <bruno@clisp.org>
15651
15652         New module 'vma-iter'.
15653         * lib/vma-iter.h: New file.
15654         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15655         * modules/vma-iter: New file.
15656         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15657         for get_rusage_as_via_iterator.
15658         (vma_iterate_callback): New function.
15659         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15660         * modules/get-rusage-as (Depends-on): Add vma-iter.
15661
15662 2011-01-23  Bruno Haible  <bruno@clisp.org>
15663
15664         uninorm: Tweak includes.
15665         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15666         Reported by Jim Meyering.
15667
15668 2011-01-23  Bruno Haible  <bruno@clisp.org>
15669
15670         get-rusage-as: Improve on NetBSD.
15671         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15672         /proc, like on FreeBSD.
15673
15674 2011-01-23  Jim Meyering  <meyering@redhat.com>
15675
15676         xreadlink.h: remove unnecessary #include
15677         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15678
15679         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15680         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15681
15682 2011-01-23  Bruno Haible  <bruno@clisp.org>
15683
15684         get-rusage-as: Fix bug.
15685         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15686         original limit when aborting the first loop.
15687
15688 2011-01-23  Bruno Haible  <bruno@clisp.org>
15689
15690         wctype: Ensure valid C syntax.
15691         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15692         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15693
15694 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15695
15696         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15698         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15699         as they are needed only for configure's test case.
15700         This removes two unnecessary symbols from config.h.
15701
15702         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15703         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15705         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15706         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15707         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15708         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15709         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15710         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15711         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15712         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15714         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15715         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15716         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15717         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15718         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15719         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15720
15721 2011-01-21  Eric Blake  <eblake@redhat.com>
15722
15723         maintainer-makefile: work with older git for submodule check
15724         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15725         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15726         Reported by Matthias Bolte.
15727
15728         bootstrap: minor portability fixes
15729         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15730         (usage): Omit leading capital and trailing . on help phrases, per
15731         GNU Coding Standards.
15732         (check_versions, top level): Prefix messages with script name.
15733
15734 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15735
15736         bootstrap: support --no-git option
15737         * build-aux/bootstrap: Add --no-git option, to be used when
15738         --gnulib-srcdir points to the exact desired checkout.
15739
15740 2011-01-21  Eric Blake  <eblake@redhat.com>
15741
15742         strerror_r-posix: work with glibc 2.13
15743         * lib/strerror_r.c (strerror_r): Fix return type.
15744
15745 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15746             Bruno Haible  <bruno@clisp.org>
15747
15748         uN_strstr: New unit tests.
15749         * modules/unistr/u8-strstr-tests: New file.
15750         * modules/unistr/u16-strstr-tests: New file.
15751         * modules/unistr/u32-strstr-tests: New file.
15752         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15753         * tests/unistr/test-u8-strstr.c: New file.
15754         * tests/unistr/test-u16-strstr.c: New file.
15755         * tests/unistr/test-u32-strstr.c: New file.
15756
15757 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15758             Bruno Haible  <bruno@clisp.org>
15759
15760         Make uN_strstr functions O(n) worst-case.
15761         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15762         16-bit and 32-bit unit cases, use the unibyte algorithm from
15763         lib/mbsstr.c.
15764         * lib/unistr/u8-strstr.c: Include <string.h>.
15765         (UNIT_IS_UINT8_T): New macro.
15766         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15767         (U_STRLEN, U_STRNLEN): New macros.
15768         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15769         (U_STRLEN, U_STRNLEN): New macros.
15770         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15771         (configure.ac): Update required libunistring version.
15772         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15773         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15774         malloca.
15775         (configure.ac): Update required libunistring version.
15776         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15777         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15778         malloca.
15779         (configure.ac): Update required libunistring version.
15780
15781 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15782             Bruno Haible  <bruno@clisp.org>
15783
15784         Prepare for faster uN_strstr functions.
15785         * lib/str-kmp.h: Support definable UNITs.
15786         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15787         needle_len argument.
15788         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15789         * lib/mbscasestr.c (mbscasestr): Likewise.
15790
15791 2011-01-21  Pádraig Brady <P@draigBrady.com>
15792
15793         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15794         * tests/test-malloca.c (main): Unset the environment variable
15795         to greatly speed up the test.
15796         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15797         * modules/malloca-tests: Depend on unsetenv.
15798
15799 2011-01-21  Pádraig Brady <P@draigBrady.com>
15800
15801         ignore-value: remove stdint dependency
15802         * lib/ignore-value.h: Remove <stdint.h>
15803         * modules/ignore-value: Remove stdint dependency.
15804
15805 2011-01-21  Jim Meyering  <meyering@redhat.com>
15806
15807         maint.mk: adjust variable name to be consistent with other gl_ vars
15808         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15809         to be lower case.
15810
15811 2011-01-20  Jim Meyering  <meyering@redhat.com>
15812
15813         maint.mk: make "check" depend on public-submodule-commit by default
15814         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15815
15816 2011-01-20  Bruno Haible  <bruno@clisp.org>
15817
15818         mbfile, mbiter: Complete change from 2008-12-21.
15819         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15820         * m4/mbiter.m4 (gl_MBITER): Likewise.
15821
15822 2011-01-20  Jim Meyering  <meyering@redhat.com>
15823
15824         init.sh: insert space between each function name and "()"
15825         * tests/init.sh: Make it a little easier to see that a function's
15826         name is "warn_", and not "warn" when looking at the first part of
15827         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15828
15829 2011-01-20  Jim Meyering  <meyering@redhat.com>
15830
15831         mountlist: clean up code formatting
15832         * lib/mountlist.c (read_file_system_list): Split a long line,
15833         correct bracing style, use NULL in place of "(struct statfs *)0",
15834         don't parenthesize return value, add spaces around "=" and after
15835         ";-in-for-stmt".
15836
15837 2011-01-14  Markus Duft <mduft@gentoo.org>
15838
15839         mountlist: add support for Interix
15840         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15841         Apply statvfs to all entries of /dev/fs.
15842         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15843         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15844
15845 2011-01-20  Jim Meyering  <meyering@redhat.com>
15846
15847         maint.mk: improve the public-submodule-commit rule
15848         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15849         to suppress printing of its commands... unless V=1.
15850         Add git submodule's --quiet option to suppress printing of e.g.,
15851         "Entering gnulib" output.
15852         "cd" into $(srcdir) before running git submodule.
15853
15854 2011-01-20  Bruno Haible  <bruno@clisp.org>
15855
15856         include_next: Fix bug introduced on 2011-01-18.
15857         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15858         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15859         ac_cv_header_... variable if the second argument is not 'check'.
15860         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15861         gl_NEXT_HEADERS_INTERNAL.
15862
15863 2011-01-20  Bruno Haible  <bruno@clisp.org>
15864
15865         Allow the user to avoid the GNULIB_TEST_* macros.
15866         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15867         Suggested by Paul Eggert.
15868
15869 2011-01-14  Jim Meyering  <meyering@redhat.com>
15870
15871         bootstrap: avoid failure when there is no .gitmodules file
15872         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15873         has been assigned to, even when its value is the empty string.
15874         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15875         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15876         Reported by John W. Eaton <jwe@gnu.org>.
15877
15878 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15879
15880         assume <ctype.h>, ..., <time.h> exist
15881         For years gnulib has been assuming the existence of the headers
15882         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15883         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15884         them, since they don't appear to be needed.
15885         * README (Portability guidelines): Document this.
15886         * lib/flock.c: Assume <fcntl.h> exists.
15887         * lib/regex_internal.h: Assume <locale.h> exists.
15888         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15889         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15890         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15891         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15892         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15893         * m4/regex.m4 (gl_REGEX): Likewise.
15894         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15895         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15896         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15897         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15898         * tests/test-argp.c: Likewise.
15899         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15900
15901         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15902         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15903         AA_APPLE_UNIVERSAL_BUILD.  See
15904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15905         * NEWS: Document this.
15906
15907 2011-01-19  Eric Blake  <eblake@redhat.com>
15908
15909         c-stack: assume stack overflow if SA_SIGINFO unsupported
15910         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15911         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15912         sigaction will work.
15913         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15914         behavior match Linux.
15915         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15916
15917         stdbool-tests: accomodate Haiku
15918         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15919
15920         binary-io: fix O_TEXT on Haiku
15921         * modules/binary-io (Depends-on): Add fcntl-h.
15922         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15923         than blindly undefining O_TEXT.
15924         Reported by Scott McCreary.
15925
15926 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15927
15928         include_next: do not check for standard headers like stddef.h
15929
15930         I found this problem when modifying Emacs to use gnulib.
15931         I noticed that it added HAVE_STDDEF_H to config.h, even though
15932         gnulib always assumes <stddef.h> exists as per README and this
15933         symbol is unnecessary.
15934         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15935         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15936         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15937         faster for headers like stddef.h that are known to exist.
15938         (gl_CHECK_NEXT_HEADERS): Use it.
15939         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15940         rather than gl_CHECK_NEXT_HEADERS.
15941         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15942         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15943
15944 2011-01-18  Eric Blake  <eblake@redhat.com>
15945
15946         ansi-c++-opt: skip C++ dependency style if C++ is unused
15947         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15948         tests when we know C++ compilation is not desired.
15949         Reported by Scott McCreary.
15950
15951 2011-01-18  Bruno Haible  <bruno@clisp.org>
15952
15953         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15954         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15955         (main): Perform test also when getrlimit and setrlimit don't exist or
15956         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15957         limiting the address space size using setrlimit, compare the address
15958         space size before and after the the test.
15959         * tests/test-dprintf-posix2.c: Likewise.
15960         * tests/test-fprintf-posix3.sh: Update skip messages.
15961         * tests/test-dprintf-posix2.sh: Likewise.
15962         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15963         * modules/dprintf-posix-tests (Depends-on): Likewise.
15964         Reported by Bruce Korb <bkorb@gnu.org> and
15965         Gary V. Vaughan <gary@gnu.org>.
15966
15967 2011-01-18  Bruno Haible  <bruno@clisp.org>
15968
15969         get-rusage-as: Improvement for Cygwin.
15970         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15971         areas that are merely reserved.
15972
15973 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         strftime: remove dependencies on multibyte modules
15976
15977         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15978         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15979         only if __osf__ is defined, and I suspect OSF doesn't need these
15980         other modules.  If my guess is wrong, we'll need to come up with a
15981         variant of strftime that doesn't need the multibyte modules.
15982
15983         I discovered this problem when attempting modify Emacs to use the
15984         strftime module.  With the previous gnulib, this caused Emacs to
15985         need 31 new files, ranging from lib/config.charset to
15986         m4/wint_t.m4.  This was overkill and I expect would be offputting
15987         to the Emacs maintainers.  After this change, only 6 new files are
15988         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15989         stdbool.m4, and tm_gmtoff.m4.
15990
15991         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15992         Suggested by Bruno Haible in
15993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15994         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15995         and do not check for wchar.h.
15996         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15997         (Depends-on): Remove mbrlen, mbsinit, wchar.
15998
15999 2011-01-18  Bruno Haible  <bruno@clisp.org>
16000
16001         Tests for module 'get-rusage-as'.
16002         * modules/get-rusage-as-tests: New file.
16003         * tests/test-get-rusage-as.c: New file.
16004
16005         New module 'get-rusage-as'.
16006         * modules/get-rusage-as: New file.
16007         * lib/resource-ext.h: New file.
16008         * lib/get-rusage-as.c: New file.
16009
16010 2011-01-17  Eric Blake  <eblake@redhat.com>
16011
16012         sigaction: relax license from LGPLv3+ to LGPLv2+
16013         * modules/sigaction (License): Relax to LGPLv2+.
16014
16015 2011-01-14  Bruno Haible  <bruno@clisp.org>
16016
16017         filemode: Make function declarations usable in C++ mode.
16018         * lib/filemode.h: Enclose function declarations in extern "C" block.
16019         Reported by John W. Eaton <jwe@gnu.org>.
16020
16021 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16022
16023         save-cwd: no longer include "xgetcwd.h"
16024         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16025         This avoids a compilation failure in projects that use save-cwd
16026         without also using the xgetcwd module.
16027
16028 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16029
16030         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16031         This is so that a program like Emacs, which needs only dtoastr,
16032         does not have to bother with distributing and compiling ftoastr
16033         and ldtoastr.
16034         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16035         * modules/dtoastr, modules/ldtoastr: New files.
16036         * modules/ftoastr: Now works just for 'float'.
16037         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16038         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16039         dtoastr.c, ldtoastr.c.
16040
16041 2011-01-11  Jim Meyering  <meyering@redhat.com>
16042
16043         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16044         There is no need to work around the lack of the fchdir function,
16045         since gnulib can now provide a replacement when required.
16046         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16047         * modules/save-cwd (Depends-on): Add fchdir.
16048
16049 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16050
16051         openat, save-cwd: avoid xmalloc
16052
16053         This removes a direct (but undocumented) dependency of openat on
16054         xalloc, along with an indirect dependency via save-cwd.  It also
16055         removes a dependency of save-cwd on xgetcwd, and thereby
16056         indirectly on xalloc.  This change causes the openat substitute
16057         to fall back on save_cwd when memory is tight, and for save_cwd to
16058         fail instead of dying when memory is tight, but that's good enough.
16059         Problem and initial idea for fix reported by Bastien Roucaries in
16060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16061
16062         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16063         xalloc.h (for xmalloc).
16064         (openat_proc_name): Use malloc, not xmalloc.
16065         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16066         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16067
16068         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16069         This avoids heap allocation for file names whose lengths are in
16070         the range 512..1023, with the upper bound increasing to at most
16071         4031 depending on the platform's PATH_MAX.  (We do not want
16072         pathmax.h here as it might supply a non-constant PATH_MAX.)
16073         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16074         Perhaps they should be moved to malloca.h?
16075         (OPENAT_BUFFER_SIZE): Use them.
16076
16077 2011-01-10  Bruno Haible  <bruno@clisp.org>
16078
16079         doc: Update users.txt.
16080         * users.txt: Add recutils.
16081
16082 2011-01-09  Karl Berry  <karl@gnu.org>
16083
16084         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16085
16086         * doc/configmake.texi: New file.
16087         * doc/gnulib.texi: Include it.
16088         * modules/configmake: Move documentation from here.
16089
16090 2011-01-09  Bruno Haible  <bruno@clisp.org>
16091
16092         Update to Unicode 6.0.0.
16093         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16094         (get_lbp): Update for Unicode 6.0.0.
16095         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16096         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16097         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16098         U+11001, U+11038..U+11046. Remove U+06DE.
16099         (uc_width): Fix bounds of planes.
16100         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16101         lib/uniwidth/width.c.
16102         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16103         trailing whitespace removed.
16104         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16105         without comments, but with the original copyright notice.
16106         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16107         * lib/unicase/ignorable.h: Likewise.
16108         * lib/unicase/tocasefold.h: Likewise.
16109         * lib/unicase/tolower.h: Likewise.
16110         * lib/unicase/totitle.h: Likewise.
16111         * lib/unicase/toupper.h: Likewise.
16112         * lib/unictype/bidi_of.h: Likewise.
16113         * lib/unictype/blocks.h: Likewise.
16114         * lib/unictype/categ_C.h: Likewise.
16115         * lib/unictype/categ_Cn.h: Likewise.
16116         * lib/unictype/categ_L.h: Likewise.
16117         * lib/unictype/categ_Ll.h: Likewise.
16118         * lib/unictype/categ_Lm.h: Likewise.
16119         * lib/unictype/categ_Lo.h: Likewise.
16120         * lib/unictype/categ_Lu.h: Likewise.
16121         * lib/unictype/categ_M.h: Likewise.
16122         * lib/unictype/categ_Mc.h: Likewise.
16123         * lib/unictype/categ_Me.h: Likewise.
16124         * lib/unictype/categ_Mn.h: Likewise.
16125         * lib/unictype/categ_N.h: Likewise.
16126         * lib/unictype/categ_Nd.h: Likewise.
16127         * lib/unictype/categ_No.h: Likewise.
16128         * lib/unictype/categ_P.h: Likewise.
16129         * lib/unictype/categ_Po.h: Likewise.
16130         * lib/unictype/categ_S.h: Likewise.
16131         * lib/unictype/categ_Sc.h: Likewise.
16132         * lib/unictype/categ_Sk.h: Likewise.
16133         * lib/unictype/categ_Sm.h: Likewise.
16134         * lib/unictype/categ_So.h: Likewise.
16135         * lib/unictype/categ_of.h: Likewise.
16136         * lib/unictype/combining.h: Likewise.
16137         * lib/unictype/ctype_alnum.h: Likewise.
16138         * lib/unictype/ctype_alpha.h: Likewise.
16139         * lib/unictype/ctype_graph.h: Likewise.
16140         * lib/unictype/ctype_lower.h: Likewise.
16141         * lib/unictype/ctype_print.h: Likewise.
16142         * lib/unictype/ctype_punct.h: Likewise.
16143         * lib/unictype/ctype_upper.h: Likewise.
16144         * lib/unictype/decdigit.h: Likewise.
16145         * lib/unictype/digit.h: Likewise.
16146         * lib/unictype/numeric.h: Likewise.
16147         * lib/unictype/pr_alphabetic.h: Likewise.
16148         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16149         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16150         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16151         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16152         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16153         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16154         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16155         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16156         * lib/unictype/pr_case_ignorable.h: Likewise.
16157         * lib/unictype/pr_cased.h: Likewise.
16158         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16159         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16160         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16161         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16162         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16163         * lib/unictype/pr_combining.h: Likewise.
16164         * lib/unictype/pr_composite.h: Likewise.
16165         * lib/unictype/pr_currency_symbol.h: Likewise.
16166         * lib/unictype/pr_decimal_digit.h: Likewise.
16167         * lib/unictype/pr_deprecated.h: Likewise.
16168         * lib/unictype/pr_format_control.h: Likewise.
16169         * lib/unictype/pr_grapheme_base.h: Likewise.
16170         * lib/unictype/pr_grapheme_extend.h: Likewise.
16171         * lib/unictype/pr_grapheme_link.h: Likewise.
16172         * lib/unictype/pr_id_continue.h: Likewise.
16173         * lib/unictype/pr_id_start.h: Likewise.
16174         * lib/unictype/pr_ideographic.h: Likewise.
16175         * lib/unictype/pr_lowercase.h: Likewise.
16176         * lib/unictype/pr_math.h: Likewise.
16177         * lib/unictype/pr_numeric.h: Likewise.
16178         * lib/unictype/pr_other_alphabetic.h: Likewise.
16179         * lib/unictype/pr_other_id_continue.h: Likewise.
16180         * lib/unictype/pr_other_math.h: Likewise.
16181         * lib/unictype/pr_punctuation.h: Likewise.
16182         * lib/unictype/pr_sentence_terminal.h: Likewise.
16183         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16184         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16185         * lib/unictype/pr_unified_ideograph.h: Likewise.
16186         * lib/unictype/pr_uppercase.h: Likewise.
16187         * lib/unictype/pr_xid_continue.h: Likewise.
16188         * lib/unictype/pr_xid_start.h: Likewise.
16189         * lib/unictype/scripts.h: Likewise.
16190         * lib/unictype/scripts_byname.gperf: Likewise.
16191         * lib/unictype/sy_java_ident.h: Likewise.
16192         * lib/unigbrk/gbrkprop.h: Likewise.
16193         * lib/unilbrk/lbrkprop1.h: Likewise.
16194         * lib/unilbrk/lbrkprop2.h: Likewise.
16195         * lib/uninorm/decomposition-table2.h: Likewise.
16196         * lib/uniwbrk/wbrkprop.h: Likewise.
16197         * tests/unicase/test-cased.c: Likewise.
16198         * tests/unicase/test-ignorable.c: Likewise.
16199         * tests/unicase/test-uc_tolower.c: Likewise.
16200         * tests/unicase/test-uc_totitle.c: Likewise.
16201         * tests/unicase/test-uc_toupper.c: Likewise.
16202         * tests/unictype/test-categ_C.c: Likewise.
16203         * tests/unictype/test-categ_Cn.c: Likewise.
16204         * tests/unictype/test-categ_L.c: Likewise.
16205         * tests/unictype/test-categ_Ll.c: Likewise.
16206         * tests/unictype/test-categ_Lm.c: Likewise.
16207         * tests/unictype/test-categ_Lo.c: Likewise.
16208         * tests/unictype/test-categ_Lu.c: Likewise.
16209         * tests/unictype/test-categ_M.c: Likewise.
16210         * tests/unictype/test-categ_Mc.c: Likewise.
16211         * tests/unictype/test-categ_Me.c: Likewise.
16212         * tests/unictype/test-categ_Mn.c: Likewise.
16213         * tests/unictype/test-categ_N.c: Likewise.
16214         * tests/unictype/test-categ_Nd.c: Likewise.
16215         * tests/unictype/test-categ_No.c: Likewise.
16216         * tests/unictype/test-categ_P.c: Likewise.
16217         * tests/unictype/test-categ_Po.c: Likewise.
16218         * tests/unictype/test-categ_S.c: Likewise.
16219         * tests/unictype/test-categ_Sc.c: Likewise.
16220         * tests/unictype/test-categ_Sk.c: Likewise.
16221         * tests/unictype/test-categ_Sm.c: Likewise.
16222         * tests/unictype/test-categ_So.c: Likewise.
16223         * tests/unictype/test-ctype_alnum.c: Likewise.
16224         * tests/unictype/test-ctype_alpha.c: Likewise.
16225         * tests/unictype/test-ctype_graph.c: Likewise.
16226         * tests/unictype/test-ctype_lower.c: Likewise.
16227         * tests/unictype/test-ctype_print.c: Likewise.
16228         * tests/unictype/test-ctype_punct.c: Likewise.
16229         * tests/unictype/test-ctype_upper.c: Likewise.
16230         * tests/unictype/test-decdigit.h: Likewise.
16231         * tests/unictype/test-digit.h: Likewise.
16232         * tests/unictype/test-numeric.h: Likewise.
16233         * tests/unictype/test-pr_alphabetic.c: Likewise.
16234         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16235         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16236         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16237         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16238         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16239         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16240         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16241         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16242         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16243         * tests/unictype/test-pr_cased.c: Likewise.
16244         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16245         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16246         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16247         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16248         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16249         * tests/unictype/test-pr_combining.c: Likewise.
16250         * tests/unictype/test-pr_composite.c: Likewise.
16251         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16252         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16253         * tests/unictype/test-pr_deprecated.c: Likewise.
16254         * tests/unictype/test-pr_format_control.c: Likewise.
16255         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16256         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16257         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16258         * tests/unictype/test-pr_id_continue.c: Likewise.
16259         * tests/unictype/test-pr_id_start.c: Likewise.
16260         * tests/unictype/test-pr_ideographic.c: Likewise.
16261         * tests/unictype/test-pr_lowercase.c: Likewise.
16262         * tests/unictype/test-pr_math.c: Likewise.
16263         * tests/unictype/test-pr_numeric.c: Likewise.
16264         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16265         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16266         * tests/unictype/test-pr_other_math.c: Likewise.
16267         * tests/unictype/test-pr_punctuation.c: Likewise.
16268         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16269         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16270         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16271         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16272         * tests/unictype/test-pr_uppercase.c: Likewise.
16273         * tests/unictype/test-pr_xid_continue.c: Likewise.
16274         * tests/unictype/test-pr_xid_start.c: Likewise.
16275         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16276         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16277         changes.
16278         * lib/unictype/categ_Cc.h: Likewise.
16279         * lib/unictype/categ_Cf.h: Likewise.
16280         * lib/unictype/categ_Co.h: Likewise.
16281         * lib/unictype/categ_Cs.h: Likewise.
16282         * lib/unictype/categ_Lt.h: Likewise.
16283         * lib/unictype/categ_Nl.h: Likewise.
16284         * lib/unictype/categ_Pc.h: Likewise.
16285         * lib/unictype/categ_Pd.h: Likewise.
16286         * lib/unictype/categ_Pe.h: Likewise.
16287         * lib/unictype/categ_Pf.h: Likewise.
16288         * lib/unictype/categ_Pi.h: Likewise.
16289         * lib/unictype/categ_Ps.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_block_separator.h: Likewise.
16302         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16303         * lib/unictype/pr_bidi_control.h: Likewise.
16304         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16305         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16306         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16307         * lib/unictype/pr_bidi_pdf.h: Likewise.
16308         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16309         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16310         * lib/unictype/pr_dash.h: Likewise.
16311         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16312         * lib/unictype/pr_diacritic.h: Likewise.
16313         * lib/unictype/pr_extender.h: Likewise.
16314         * lib/unictype/pr_hex_digit.h: Likewise.
16315         * lib/unictype/pr_hyphen.h: Likewise.
16316         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16317         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16318         * lib/unictype/pr_ignorable_control.h: Likewise.
16319         * lib/unictype/pr_iso_control.h: Likewise.
16320         * lib/unictype/pr_join_control.h: Likewise.
16321         * lib/unictype/pr_left_of_pair.h: Likewise.
16322         * lib/unictype/pr_line_separator.h: Likewise.
16323         * lib/unictype/pr_logical_order_exception.h: Likewise.
16324         * lib/unictype/pr_non_break.h: Likewise.
16325         * lib/unictype/pr_not_a_character.h: Likewise.
16326         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16327         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16328         * lib/unictype/pr_other_id_start.h: Likewise.
16329         * lib/unictype/pr_other_lowercase.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/pr_zero_width.h: Likewise.
16344         * lib/unictype/sy_c_ident.h: Likewise.
16345         * lib/unictype/sy_c_whitespace.h: Likewise.
16346         * lib/unictype/sy_java_whitespace.h: Likewise.
16347         * lib/uninorm/composition-table.gperf: Likewise.
16348         * lib/uninorm/decomposition-table1.h: Likewise.
16349         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16350         LB8.
16351         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16352         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16353         * modules/unictype/*: Bump version number of expected libunistring
16354         version.
16355
16356 2011-01-09  Bruno Haible  <bruno@clisp.org>
16357
16358         Update to Unicode 5.2.0.
16359         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16360         trailing whitespace removed.
16361
16362 2011-01-09  Bruno Haible  <bruno@clisp.org>
16363
16364         New Unicode character properties, from Unicode 5.2.0.
16365         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16366         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16367         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16368         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16369         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16370         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16371         uc_is_property_cased, uc_is_property_case_ignorable,
16372         uc_is_property_changes_when_lowercased,
16373         uc_is_property_changes_when_uppercased,
16374         uc_is_property_changes_when_titlecased,
16375         uc_is_property_changes_when_casefolded,
16376         uc_is_property_changes_when_casemapped): New declarations.
16377         * lib/unictype/pr_byname.gperf: Add the new properties.
16378         * modules/unictype/property-byname (Depends-on): Depend on the new
16379         properties modules.
16380         * modules/unictype/property-all (Depends-on): Likewise.
16381         * MODULES.html.sh (Unicode string functions): Add
16382         unictype/property-case-ignorable, unictype/property-cased,
16383         unictype/property-changes-when-casefolded,
16384         unictype/property-changes-when-casemapped,
16385         unictype/property-changes-when-lowercased,
16386         unictype/property-changes-when-titlecased,
16387         unictype/property-changes-when-uppercased.
16388
16389         New module 'unictype/property-changes-when-casemapped'.
16390         * modules/unictype/property-changes-when-casemapped: New file.
16391         * lib/unictype/pr_changes_when_casemapped.c: New file.
16392         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16393         generated by gen-uni-tables.
16394         * modules/unictype/property-changes-when-casemapped-tests: New file.
16395         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16396         automatically generated by gen-uni-tables.
16397
16398         New module 'unictype/property-changes-when-casefolded'.
16399         * modules/unictype/property-changes-when-casefolded: New file.
16400         * lib/unictype/pr_changes_when_casefolded.c: New file.
16401         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16402         generated by gen-uni-tables.
16403         * modules/unictype/property-changes-when-casefolded-tests: New file.
16404         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16405         automatically generated by gen-uni-tables.
16406
16407         New module 'unictype/property-changes-when-titlecased'.
16408         * modules/unictype/property-changes-when-titlecased: New file.
16409         * lib/unictype/pr_changes_when_titlecased.c: New file.
16410         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16411         generated by gen-uni-tables.
16412         * modules/unictype/property-changes-when-titlecased-tests: New file.
16413         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16414         automatically generated by gen-uni-tables.
16415
16416         New module 'unictype/property-changes-when-uppercased'.
16417         * modules/unictype/property-changes-when-uppercased: New file.
16418         * lib/unictype/pr_changes_when_uppercased.c: New file.
16419         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16420         generated by gen-uni-tables.
16421         * modules/unictype/property-changes-when-uppercased-tests: New file.
16422         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16423         automatically generated by gen-uni-tables.
16424
16425         New module 'unictype/property-changes-when-lowercased'.
16426         * modules/unictype/property-changes-when-lowercased: New file.
16427         * lib/unictype/pr_changes_when_lowercased.c: New file.
16428         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16429         generated by gen-uni-tables.
16430         * modules/unictype/property-changes-when-lowercased-tests: New file.
16431         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16432         automatically generated by gen-uni-tables.
16433
16434         New module 'unictype/property-case-ignorable'.
16435         * modules/unictype/property-case-ignorable: New file.
16436         * lib/unictype/pr_case_ignorable.c: New file.
16437         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16438         by gen-uni-tables.
16439         * modules/unictype/property-case-ignorable-tests: New file.
16440         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16441         generated by gen-uni-tables.
16442
16443         New module 'unictype/property-cased'.
16444         * modules/unictype/property-cased: New file.
16445         * lib/unictype/pr_cased.c: New file.
16446         * lib/unictype/pr_cased.h: New file, automatically generated by
16447         gen-uni-tables.
16448         * modules/unictype/property-cased-tests: New file.
16449         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16450         gen-uni-tables.
16451
16452 2011-01-09  Bruno Haible  <bruno@clisp.org>
16453
16454         Update to Unicode 5.2.0.
16455         * lib/gen-uni-tables.c (output_predicate, output_category,
16456         output_combclass, output_bidi_category, output_decimal_digit_test,
16457         output_decimal_digit, output_digit_test, output_digit,
16458         output_numeric_test, output_numeric, output_mirror, output_scripts,
16459         output_scripts_byname, output_blocks, output_ident_category): Fix
16460         comment header.
16461         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16462         get_wbp.
16463         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16464         items.
16465         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16466         Changes_When_Lowercased, Changes_When_Uppercased,
16467         Changes_When_Titlecased, Changes_When_Casefolded,
16468         Changes_When_Casemapped.
16469         (is_property_alphabetic, is_property_default_ignorable_code_point):
16470         Update for Unicode 5.2.0.
16471         (is_property_cased, is_property_case_ignorable,
16472         is_property_changes_when_lowercased,
16473         is_property_changes_when_uppercased,
16474         is_property_changes_when_titlecased,
16475         is_property_changes_when_casefolded,
16476         is_property_changes_when_casemapped): New functions.
16477         (output_properties): Output also the properties cased, case_ignorable,
16478         changes_when_lowercased, changes_when_uppercased,
16479         changes_when_titlecased, changes_when_casefolded,
16480         changes_when_casemapped.
16481         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16482         Unicode TR#11 revision 17 -> 19.
16483         (LBP_CP): New enumeration value.
16484         (LBP_*): Adjust values accordingly.
16485         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16486         TR#14 revision 22 -> 24.
16487         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16488         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16489         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16490         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16491         is_WBP_MIDLETTER.
16492         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16493         the code1 and code2 of each composition rule.
16494         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16495         * lib/unicase/ignorable.h: Likewise.
16496         * lib/unicase/tocasefold.h: Likewise.
16497         * lib/unicase/tolower.h: Likewise.
16498         * lib/unicase/totitle.h: Likewise.
16499         * lib/unicase/toupper.h: Likewise.
16500         * lib/unictype/bidi_of.h: Likewise.
16501         * lib/unictype/blocks.h: Likewise.
16502         * lib/unictype/categ_C.h: Likewise.
16503         * lib/unictype/categ_Cf.h: Likewise.
16504         * lib/unictype/categ_Cn.h: Likewise.
16505         * lib/unictype/categ_L.h: Likewise.
16506         * lib/unictype/categ_Ll.h: Likewise.
16507         * lib/unictype/categ_Lm.h: Likewise.
16508         * lib/unictype/categ_Lo.h: Likewise.
16509         * lib/unictype/categ_Lu.h: Likewise.
16510         * lib/unictype/categ_M.h: Likewise.
16511         * lib/unictype/categ_Mc.h: Likewise.
16512         * lib/unictype/categ_Mn.h: Likewise.
16513         * lib/unictype/categ_N.h: Likewise.
16514         * lib/unictype/categ_Nd.h: Likewise.
16515         * lib/unictype/categ_Nl.h: Likewise.
16516         * lib/unictype/categ_No.h: Likewise.
16517         * lib/unictype/categ_P.h: Likewise.
16518         * lib/unictype/categ_Pd.h: Likewise.
16519         * lib/unictype/categ_Po.h: Likewise.
16520         * lib/unictype/categ_S.h: Likewise.
16521         * lib/unictype/categ_Sc.h: Likewise.
16522         * lib/unictype/categ_So.h: Likewise.
16523         * lib/unictype/categ_of.h: Likewise.
16524         * lib/unictype/combining.h: Likewise.
16525         * lib/unictype/ctype_alnum.h: Likewise.
16526         * lib/unictype/ctype_alpha.h: Likewise.
16527         * lib/unictype/ctype_graph.h: Likewise.
16528         * lib/unictype/ctype_lower.h: Likewise.
16529         * lib/unictype/ctype_print.h: Likewise.
16530         * lib/unictype/ctype_punct.h: Likewise.
16531         * lib/unictype/ctype_upper.h: Likewise.
16532         * lib/unictype/decdigit.h: Likewise.
16533         * lib/unictype/digit.h: Likewise.
16534         * lib/unictype/numeric.h: Likewise.
16535         * lib/unictype/pr_alphabetic.h: Likewise.
16536         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16537         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16538         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16539         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16540         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16541         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16542         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16543         * lib/unictype/pr_combining.h: Likewise.
16544         * lib/unictype/pr_composite.h: Likewise.
16545         * lib/unictype/pr_currency_symbol.h: Likewise.
16546         * lib/unictype/pr_dash.h: Likewise.
16547         * lib/unictype/pr_decimal_digit.h: Likewise.
16548         * lib/unictype/pr_deprecated.h: Likewise.
16549         * lib/unictype/pr_diacritic.h: Likewise.
16550         * lib/unictype/pr_extender.h: Likewise.
16551         * lib/unictype/pr_grapheme_base.h: Likewise.
16552         * lib/unictype/pr_grapheme_extend.h: Likewise.
16553         * lib/unictype/pr_grapheme_link.h: Likewise.
16554         * lib/unictype/pr_id_continue.h: Likewise.
16555         * lib/unictype/pr_id_start.h: Likewise.
16556         * lib/unictype/pr_ideographic.h: Likewise.
16557         * lib/unictype/pr_ignorable_control.h: Likewise.
16558         * lib/unictype/pr_logical_order_exception.h: Likewise.
16559         * lib/unictype/pr_lowercase.h: Likewise.
16560         * lib/unictype/pr_numeric.h: Likewise.
16561         * lib/unictype/pr_other_alphabetic.h: Likewise.
16562         * lib/unictype/pr_punctuation.h: Likewise.
16563         * lib/unictype/pr_sentence_terminal.h: Likewise.
16564         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16565         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16566         * lib/unictype/pr_unified_ideograph.h: Likewise.
16567         * lib/unictype/pr_uppercase.h: Likewise.
16568         * lib/unictype/pr_xid_continue.h: Likewise.
16569         * lib/unictype/pr_xid_start.h: Likewise.
16570         * lib/unictype/pr_zero_width.h: Likewise.
16571         * lib/unictype/scripts.h: Likewise.
16572         * lib/unictype/scripts_byname.gperf: Likewise.
16573         * lib/unictype/sy_java_ident.h: Likewise.
16574         * lib/unigbrk/gbrkprop.h: Likewise.
16575         * lib/unilbrk/lbrkprop1.h: Likewise.
16576         * lib/unilbrk/lbrkprop2.h: Likewise.
16577         * lib/unilbrk/lbrktables.h: Likewise.
16578         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16579         LBP_CP. Implement rule LB30.
16580         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16581         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16582         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16583         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16584         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16585         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16586         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16587         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16588         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16589         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16590         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16591         bits instead of 16 bits in the code1 and code2 of each composition
16592         rule.
16593         (uc_composition): Update for Unicode 5.2.0.
16594         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16595         * lib/uninorm/decomposition-table2.h: Likewise.
16596         * lib/uniwbrk/wbrkprop.h: Likewise.
16597         * tests/unicase/test-cased.c: Likewise.
16598         * tests/unicase/test-ignorable.c: Likewise.
16599         * tests/unicase/test-uc_tolower.c: Likewise.
16600         * tests/unicase/test-uc_totitle.c: Likewise.
16601         * tests/unicase/test-uc_toupper.c: Likewise.
16602         * tests/unictype/test-categ_C.c: Likewise.
16603         * tests/unictype/test-categ_Cf.c: Likewise.
16604         * tests/unictype/test-categ_Cn.c: Likewise.
16605         * tests/unictype/test-categ_L.c: Likewise.
16606         * tests/unictype/test-categ_Ll.c: Likewise.
16607         * tests/unictype/test-categ_Lm.c: Likewise.
16608         * tests/unictype/test-categ_Lo.c: Likewise.
16609         * tests/unictype/test-categ_Lu.c: Likewise.
16610         * tests/unictype/test-categ_M.c: Likewise.
16611         * tests/unictype/test-categ_Mc.c: Likewise.
16612         * tests/unictype/test-categ_Mn.c: Likewise.
16613         * tests/unictype/test-categ_N.c: Likewise.
16614         * tests/unictype/test-categ_Nd.c: Likewise.
16615         * tests/unictype/test-categ_Nl.c: Likewise.
16616         * tests/unictype/test-categ_No.c: Likewise.
16617         * tests/unictype/test-categ_P.c: Likewise.
16618         * tests/unictype/test-categ_Pd.c: Likewise.
16619         * tests/unictype/test-categ_Po.c: Likewise.
16620         * tests/unictype/test-categ_S.c: Likewise.
16621         * tests/unictype/test-categ_Sc.c: Likewise.
16622         * tests/unictype/test-categ_So.c: Likewise.
16623         * tests/unictype/test-ctype_alnum.c: Likewise.
16624         * tests/unictype/test-ctype_alpha.c: Likewise.
16625         * tests/unictype/test-ctype_graph.c: Likewise.
16626         * tests/unictype/test-ctype_lower.c: Likewise.
16627         * tests/unictype/test-ctype_print.c: Likewise.
16628         * tests/unictype/test-ctype_punct.c: Likewise.
16629         * tests/unictype/test-ctype_upper.c: Likewise.
16630         * tests/unictype/test-decdigit.h: Likewise.
16631         * tests/unictype/test-digit.h: Likewise.
16632         * tests/unictype/test-numeric.h: Likewise.
16633         * tests/unictype/test-pr_alphabetic.c: Likewise.
16634         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16635         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16636         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16637         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16638         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16639         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16640         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16641         * tests/unictype/test-pr_combining.c: Likewise.
16642         * tests/unictype/test-pr_composite.c: Likewise.
16643         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16644         * tests/unictype/test-pr_dash.c: Likewise.
16645         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16646         * tests/unictype/test-pr_deprecated.c: Likewise.
16647         * tests/unictype/test-pr_diacritic.c: Likewise.
16648         * tests/unictype/test-pr_extender.c: Likewise.
16649         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16650         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16651         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16652         * tests/unictype/test-pr_id_continue.c: Likewise.
16653         * tests/unictype/test-pr_id_start.c: Likewise.
16654         * tests/unictype/test-pr_ideographic.c: Likewise.
16655         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16656         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16657         * tests/unictype/test-pr_lowercase.c: Likewise.
16658         * tests/unictype/test-pr_numeric.c: Likewise.
16659         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16660         * tests/unictype/test-pr_punctuation.c: Likewise.
16661         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16662         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16663         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16664         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16665         * tests/unictype/test-pr_uppercase.c: Likewise.
16666         * tests/unictype/test-pr_xid_continue.c: Likewise.
16667         * tests/unictype/test-pr_xid_start.c: Likewise.
16668         * tests/unictype/test-pr_zero_width.c: Likewise.
16669         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16670         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16671         changed behaviour: line breaking is now disallowed between a letter
16672         or '=' and '('.
16673         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16674         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16675         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16676         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16677         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16678         lib/uniwidth/width.c.
16679         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16680         without comments, but with the original copyright notice.
16681         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16682         changes.
16683         * lib/unictype/categ_Cc.h: Likewise.
16684         * lib/unictype/categ_Co.h: Likewise.
16685         * lib/unictype/categ_Cs.h: Likewise.
16686         * lib/unictype/categ_Lt.h: Likewise.
16687         * lib/unictype/categ_Me.h: Likewise.
16688         * lib/unictype/categ_Pc.h: Likewise.
16689         * lib/unictype/categ_Pe.h: Likewise.
16690         * lib/unictype/categ_Pf.h: Likewise.
16691         * lib/unictype/categ_Pi.h: Likewise.
16692         * lib/unictype/categ_Ps.h: Likewise.
16693         * lib/unictype/categ_Sk.h: Likewise.
16694         * lib/unictype/categ_Sm.h: Likewise.
16695         * lib/unictype/categ_Z.h: Likewise.
16696         * lib/unictype/categ_Zl.h: Likewise.
16697         * lib/unictype/categ_Zp.h: Likewise.
16698         * lib/unictype/categ_Zs.h: Likewise.
16699         * lib/unictype/ctype_blank.h: Likewise.
16700         * lib/unictype/ctype_cntrl.h: Likewise.
16701         * lib/unictype/ctype_digit.h: Likewise.
16702         * lib/unictype/ctype_space.h: Likewise.
16703         * lib/unictype/ctype_xdigit.h: Likewise.
16704         * lib/unictype/mirror.h: Likewise.
16705         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16706         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16707         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16708         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16709         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16710         * lib/unictype/pr_bidi_control.h: Likewise.
16711         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16712         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16713         * lib/unictype/pr_bidi_pdf.h: Likewise.
16714         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16715         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16716         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16717         * lib/unictype/pr_format_control.h: Likewise.
16718         * lib/unictype/pr_hex_digit.h: Likewise.
16719         * lib/unictype/pr_hyphen.h: Likewise.
16720         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16721         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16722         * lib/unictype/pr_iso_control.h: Likewise.
16723         * lib/unictype/pr_join_control.h: Likewise.
16724         * lib/unictype/pr_left_of_pair.h: Likewise.
16725         * lib/unictype/pr_line_separator.h: Likewise.
16726         * lib/unictype/pr_math.h: Likewise.
16727         * lib/unictype/pr_non_break.h: Likewise.
16728         * lib/unictype/pr_not_a_character.h: Likewise.
16729         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16730         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16731         * lib/unictype/pr_other_id_continue.h: Likewise.
16732         * lib/unictype/pr_other_id_start.h: Likewise.
16733         * lib/unictype/pr_other_lowercase.h: Likewise.
16734         * lib/unictype/pr_other_math.h: Likewise.
16735         * lib/unictype/pr_other_uppercase.h: Likewise.
16736         * lib/unictype/pr_paired_punctuation.h: Likewise.
16737         * lib/unictype/pr_paragraph_separator.h: Likewise.
16738         * lib/unictype/pr_pattern_syntax.h: Likewise.
16739         * lib/unictype/pr_pattern_white_space.h: Likewise.
16740         * lib/unictype/pr_private_use.h: Likewise.
16741         * lib/unictype/pr_quotation_mark.h: Likewise.
16742         * lib/unictype/pr_radical.h: Likewise.
16743         * lib/unictype/pr_soft_dotted.h: Likewise.
16744         * lib/unictype/pr_space.h: Likewise.
16745         * lib/unictype/pr_titlecase.h: Likewise.
16746         * lib/unictype/pr_variation_selector.h: Likewise.
16747         * lib/unictype/pr_white_space.h: Likewise.
16748         * lib/unictype/sy_c_ident.h: Likewise.
16749         * lib/unictype/sy_c_whitespace.h: Likewise.
16750         * lib/unictype/sy_java_whitespace.h: Likewise.
16751         * modules/uni*/*: Bump version number of expected libunistring version.
16752         Reported by Simon Josefsson.
16753
16754 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16755
16756         useless-if-before-free: fix typo in --help and make the internal,
16757         automatic version date update process work once again.
16758         --help output contained a NUL character instead of the
16759         backslash-zero that was intended.  Also, the "must lie within
16760         the first 8 lines" line is on line 9, and hence not getting
16761         automatically updated.
16762         * build-aux/useless-if-before-free: Fix the former by adding a
16763         backslash, and the latter by condensing the three lines of what-it-does
16764         to a single line, leaving one line of slack for the future.
16765
16766 2011-01-09  Bruno Haible  <bruno@clisp.org>
16767
16768         uniwidth/width: Fix width of U+1D173..U+1D17A.
16769         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16770         symbolic_width, output_width_property_test): New functions.
16771         (main): Invoke output_nonspacing_property, output_width_property_test.
16772         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16773         U+1D173..U+1D17A.
16774         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16775         1.
16776         * modules/uniwidth/*: Bump version number of expected libunistring
16777         version.
16778         * modules/unilbrk/*: Likewise.
16779
16780 2011-01-08  Bruno Haible  <bruno@clisp.org>
16781
16782         uninorm tests: Preserve copyright of Unicode data file.
16783         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16784         Mention modifications.
16785
16786 2011-01-08  Bruno Haible  <bruno@clisp.org>
16787
16788         gen-uni-tables: Prepare for Unicode 5.2.0.
16789         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16790         (debug_output_lbp, output_lbp): Update.
16791
16792 2011-01-08  Bruno Haible  <bruno@clisp.org>
16793
16794         unilbrk: Clarify gen-uni-tables.c code.
16795         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16796         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16797         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16798
16799 2011-01-07  Bruno Haible  <bruno@clisp.org>
16800
16801         strtod: Restore errno when successfully parsing Infinity or NaN.
16802         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16803         restore the original errno.
16804
16805 2011-01-07  Bruno Haible  <bruno@clisp.org>
16806
16807         remove test: Avoid failure on HP-UX 11.
16808         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16809
16810 2011-01-07  Bruno Haible  <bruno@clisp.org>
16811
16812         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16813         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16814         error code.
16815
16816 2011-01-07  Pádraig Brady <P@draigBrady.com>
16817
16818         ignore-value: fixup comments, and add Eric Blake
16819         as an author since he rewrote the macros.
16820         * lib/ignore-value.h (ignore_value):  State that
16821         we now support aggregates.  Also specify exactly
16822         when the GCC warn_unused_result feature was added.
16823
16824 2011-01-06  Eric Blake  <eblake@redhat.com>
16825
16826         ignore-value: support aggregate types
16827         * lib/ignore-value.h (ignore_value): Provide separate gcc
16828         definition.
16829         * modules/ignore-value-tests: New test module.
16830         * tests/test-ignore-value.c: New test.
16831
16832         maint.mk: improve sc_prohibit_strcmp regex
16833         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16834         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16835         definition of STRNEQ.
16836
16837         signal: work around Haiku issue with SIGBUS
16838         * lib/siglist.h: Add comment.
16839         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16840         strsignal's favoring of SIGSEGV.
16841         * tests/test-signal.c (main): Avoid test failure.
16842         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16843         Reported by Scott McCreary.
16844
16845         maint.mk: add pre-release check to ensure submodule commits are public
16846         * top/maint.mk (public-submodule-commit): New rule.
16847         (submodule-checks): New variable.
16848         (alpha beta stable): Depend on the variable.
16849
16850 2011-01-05  Pádraig Brady <P@draigBrady.com>
16851         and Jim Meyering  <meyering@redhat.com>
16852
16853         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16854         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16855         (ATTRIBUTE_DEPRECATED): Define.
16856         (_ignore_case): New function.
16857         (ignore_value): New macro, to replace the old function.
16858         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16859         * modules/ignore-value (Depends-on): Add stdint.
16860
16861 2011-01-04  Eric Blake  <eblake@redhat.com>
16862
16863         doc: regenerate INSTALL
16864         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16865         @firstparagraphindent support, now that autoconf dropped it.
16866         (INSTALL_PRELUDE): Reinstate old macro.
16867         * doc/install.texi: Resync from autoconf.
16868         * doc/INSTALL: Reflect recent autoconf update.
16869         * doc/INSTALL.ISO: Likewise.
16870         * doc/INSTALL.UTF-8: Likewise.
16871         Reported by Karl Berry.
16872
16873 2011-01-04  Bruce Korb  <address@hidden>
16874
16875         git-version-gen: avoid a sub-shell
16876         * build-aux/git-version-gen: Redirect stderr in `...` via
16877         "exec 2>...", rather than via an added sub-shell.
16878
16879 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16880
16881         git-version-gen: use (...) rather than sh -c '...'
16882         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16883         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16884
16885 2011-01-03  Jim Meyering  <meyering@redhat.com>
16886
16887         git-version-gen: convert leading TABs to spaces
16888         * build-aux/git-version-gen: Expand leading TABs.
16889
16890         git-version-gen: handle failed "git rev-list"
16891         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16892         from git and proceeding as if it had succeeded but printed no SHA1
16893         checksums, suppress the diagnostic and handle the failure.
16894         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16895
16896         git-version-gen: include command name in one more diagnostic
16897         * build-aux/git-version-gen: When the required .tarball-version file
16898         was missing or unreadable, you might see the diagnostic from "cat",
16899         but no trace of the name of the invoking script.  Now, you still see
16900         the diagnostic from cat, but also get one from "git-version-gen: ".
16901         Inspired by a patch from Bruce Korb.
16902
16903         update-copyright: adjust test to match changed code
16904         * tests/test-update-copyright.sh: Change test's expected output
16905         to match new actual output.
16906
16907 2011-01-02  Bruno Haible  <bruno@clisp.org>
16908
16909         getlogin_r: Avoid test failure on HP-UX 11.
16910         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16911         ERANGE when the second argument is zero.
16912         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16913         portability problem.
16914
16915 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16916
16917         * build-aux/update-copyright: doc Simon's changes
16918
16919 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16920
16921         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16922         environment variable.
16923
16924 2011-01-02  Bruno Haible  <bruno@clisp.org>
16925
16926         unigbrk: Avoid gcc warnings.
16927         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16928         unused variable.
16929         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16930         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16931         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16932         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16933         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16934         Change type of first argument to 'const char *'.
16935         (main): Remove unused variable.
16936         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16937         type of first argument to 'const char *'.
16938         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16939         Likewise.
16940         (main): Change type of variable 's'.
16941         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16942         to 'int'.
16943
16944 2011-01-02  Bruno Haible  <bruno@clisp.org>
16945
16946         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16947         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16948         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16949         bug.
16950         * lib/pwrite.c: Undo 2010-12-31 patch.
16951         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16952
16953 2011-01-02  Bruno Haible  <bruno@clisp.org>
16954
16955         pread: Fix test whether it works.
16956         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16957
16958 2011-01-02  Bruno Haible  <bruno@clisp.org>
16959
16960         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16961         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16962         ends in "6". Don't require a specific month name. Try also the locale
16963         names found on HP-UX 11 and Solaris 7.
16964
16965 2011-01-02  Bruno Haible  <bruno@clisp.org>
16966
16967         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16968         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16969         C linkage.
16970         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16971
16972 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16973
16974         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16975         for consistency, since the "cluster" term is not used elsewhere.
16976         * lib/unigbrk.in.h: Update name.
16977         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16978         * lib/unigbrk/u16-grapheme-next.c: Update name.
16979         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16980         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16981         * lib/unigbrk/u32-grapheme-next.c: Update name.
16982         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16983         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16984         * lib/unigbrk/u8-grapheme-next.c: Update name.
16985         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16986         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16987         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16988         Suggested by Bruno Haible.
16989
16990 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16991
16992         Remove module 'u8-grapheme-len' as too redundant with
16993         'u8-grapheme-next'.
16994         * modules/unigbrk/u8-grapheme-len: Delete file.
16995         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16996         * lib/unigbrk.in.h: Remove prototype for deleted function.
16997         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16998         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16999
17000         Remove module 'u16-grapheme-len' as too redundant with
17001         'u16-grapheme-next'.
17002         * modules/unigbrk/u16-grapheme-len: Delete file.
17003         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17004         * lib/unigbrk.in.h: Remove prototype for deleted function.
17005         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17006         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17007
17008         Remove module 'u32-grapheme-len' as too redundant with
17009         'u32-grapheme-next'.
17010         * modules/unigbrk/u32-grapheme-len: Delete file.
17011         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17012         * lib/unigbrk.in.h: Remove prototype for deleted function.
17013         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17014         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17015
17016         Suggested by Bruno Haible.
17017
17018 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17019
17020         * unigbrk.in.h: Fix typo: "ben" => "been".
17021         Reported by Bruno Haible.
17022
17023 2011-01-01  Jim Meyering  <meyering@redhat.com>
17024
17025         maint: update almost all copyright ranges to include 2011
17026         Run the new "make update-copyright" rule.
17027
17028 2011-01-01  Jim Meyering  <meyering@redhat.com>
17029
17030         maint: update-copyright: exempt doc/INSTALL*
17031         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17032         since they are generated.  Suggested by Bruno Haible.
17033
17034 2011-01-01  Jim Meyering  <meyering@redhat.com>
17035
17036         maint: refine the update-copyright rule
17037         * Makefile (update-copyright): Also exclude any file that includes
17038         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17039         code that merely generates the comment.
17040
17041 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17042
17043         New module 'u8-grapheme-len'.
17044         * modules/unigbrk/u8-grapheme-len: New file.
17045         * modules/unigbrk/u8-grapheme-len-tests: New file.
17046         * lib/unigbrk.in.h: Add prototype for new function.
17047         * lib/unigbrk/u8-grapheme-len.c: New file.
17048         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17049
17050         New module 'u16-grapheme-len'.
17051         * modules/unigbrk/u16-grapheme-len: New file.
17052         * modules/unigbrk/u16-grapheme-len-tests: New file.
17053         * lib/unigbrk.in.h: Add prototype for new function.
17054         * lib/unigbrk/u16-grapheme-len.c: New file.
17055         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17056
17057         New module 'u32-grapheme-len'.
17058         * modules/unigbrk/u32-grapheme-len: New file.
17059         * modules/unigbrk/u32-grapheme-len-tests: New file.
17060         * lib/unigbrk.in.h: Add prototype for new function.
17061         * lib/unigbrk/u32-grapheme-len.c: New file.
17062         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17063
17064         New module 'u8-grapheme-next'.
17065         * modules/unigbrk/u8-grapheme-next: New file.
17066         * modules/unigbrk/u8-grapheme-next-tests: New file.
17067         * lib/unigbrk.in.h: Add prototype for new function.
17068         * lib/unigbrk/u8-grapheme-next.c: New file.
17069         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17070
17071         New module 'u16-grapheme-next'.
17072         * modules/unigbrk/u16-grapheme-next: New file.
17073         * modules/unigbrk/u16-grapheme-next-tests: New file.
17074         * lib/unigbrk.in.h: Add prototype for new function.
17075         * lib/unigbrk/u16-grapheme-next.c: New file.
17076         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17077
17078         New module 'u32-grapheme-next'.
17079         * modules/unigbrk/u32-grapheme-next: New file.
17080         * modules/unigbrk/u32-grapheme-next-tests: New file.
17081         * lib/unigbrk.in.h: Add prototype for new function.
17082         * lib/unigbrk/u32-grapheme-next.c: New file.
17083         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17084
17085         New module 'u8-grapheme-prev'.
17086         * modules/unigbrk/u8-grapheme-prev: New file.
17087         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17088         * lib/unigbrk.in.h: Add prototype for new function.
17089         * lib/unigbrk/u8-grapheme-prev.c: New file.
17090         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17091
17092         New module 'u16-grapheme-prev'.
17093         * modules/unigbrk/u16-grapheme-prev: New file.
17094         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17095         * lib/unigbrk.in.h: Add prototype for new function.
17096         * lib/unigbrk/u16-grapheme-prev.c: New file.
17097         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17098
17099         New module 'u32-grapheme-prev'.
17100         * modules/unigbrk/u32-grapheme-prev: New file.
17101         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17102         * lib/unigbrk.in.h: Add prototype for new function.
17103         * lib/unigbrk/u32-grapheme-prev.c: New file.
17104         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17105
17106         New module 'u8-grapheme-breaks'.
17107         * modules/unigbrk/u8-grapheme-breaks: New file.
17108         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17109         * lib/unigbrk.in.h: Add prototype for new function.
17110         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17111         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17112
17113         New module 'u16-grapheme-breaks'.
17114         * modules/unigbrk/u16-grapheme-breaks: New file.
17115         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17116         * lib/unigbrk.in.h: Add prototype for new function.
17117         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17118         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17119
17120         New module 'u32-grapheme-breaks'.
17121         * modules/unigbrk/u32-grapheme-breaks: New file.
17122         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17123         * lib/unigbrk.in.h: Add prototype for new function.
17124         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17125         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17126
17127         New module 'ulc-grapheme-breaks'.
17128         * modules/unigbrk/ulc-grapheme-breaks: New file.
17129         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17130         * m4/locale-ar.m4: New file.
17131         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17132         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17133         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17134
17135 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17136
17137         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17138         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17139         modified how this file was generated before I initially submitted
17140         the module, but failed to regenerate it.  This meant that several
17141         of the level2 entries were wrong.
17142         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17143         Remove the division-by-2 that is folded into the table now that
17144         gbrkprop.h has been regenerated properly.  Now -1 entries are
17145         handled correctly.
17146
17147         New module 'unigbrk/uc-gbrk-prop-tests'.
17148         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17149         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17150         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17151         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17152
17153 2011-01-01  Bruno Haible  <bruno@clisp.org>
17154
17155         Avoid use of hexadecimal escapes.
17156         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17157         instead of hexadecimal escapes.
17158
17159 2011-01-01  Jim Meyering  <meyering@redhat.com>
17160
17161         maint: new rule to update copyright year ranges
17162         * Makefile (update-copyright): New rule.
17163
17164         maint: indent with TABs in Makefile
17165         * Makefile: Expand leading sequences of spaces to TABs
17166
17167         version-etc: update the copyright year it reports
17168         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17169
17170 2010-12-31  Bruno Haible  <bruno@clisp.org>
17171
17172         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17173         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17174         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17175         zero.
17176
17177 2010-12-31  Bruno Haible  <bruno@clisp.org>
17178
17179         pwrite: Work around HP-UX 11.11 bug.
17180         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17181         works and set REPLACE_PWRITE if not.
17182         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17183         function.
17184         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17185
17186 2010-12-31  Bruno Haible  <bruno@clisp.org>
17187
17188         pread: Work around HP-UX 11 bugs.
17189         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17190         and set REPLACE_PREAD if not.
17191         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17192
17193 2010-12-31  Eric Blake  <eblake@redhat.com>
17194
17195         nl_langinfo: fix YESEXPR on Irix 6.5
17196         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17197         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17198         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17199         it.
17200
17201 2010-12-31  Bruno Haible  <bruno@clisp.org>
17202
17203         iconv: Document HP-UX 11 bug.
17204         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17205
17206 2010-12-31  Bruno Haible  <bruno@clisp.org>
17207
17208         ldexpl: Fix link error on HP-UX 11.
17209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17210         LDEXPL_LIBM, using $ISNANL_LIBM.
17211
17212 2010-12-31  Eric Blake  <eblake@redhat.com>
17213
17214         ftello: avoid compilation failure with SunStudio c89
17215         * lib/ftello.c (ftello): Use lseek, not llseek.
17216
17217         tests: avoid failing coreutils tests on cygwin
17218         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17219         (create_exe_shims_): Return 0 when skipping.
17220
17221 2010-12-31  Bruno Haible  <bruno@clisp.org>
17222
17223         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17224         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17225
17226 2010-12-31  Bruno Haible  <bruno@clisp.org>
17227
17228         waitpid: Fix link error in C++ mode.
17229         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17230
17231 2010-12-31  Bruno Haible  <bruno@clisp.org>
17232
17233         isnan: Use GCC built-ins when possible.
17234         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17235         __builtin_isnan.
17236         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17237         (isnan): Define using GCC built-ins for GCC >= 4.0.
17238
17239 2010-12-31  Bruno Haible  <bruno@clisp.org>
17240
17241         isnand: Fix mistake.
17242         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17243         __builtin_isnand.
17244
17245 2010-12-31  Bruno Haible  <bruno@clisp.org>
17246
17247         open: Avoid C++ error on HP-UX 11.
17248         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17249
17250 2010-12-31  Bruno Haible  <bruno@clisp.org>
17251
17252         time_r: Add missing declarations on HP-UX 11.
17253         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17254         instead of HAVE_LOCALTIME_R.
17255         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17256         HAVE_LOCALTIME_R always.
17257         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17258         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17259         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17260         HAVE_LOCALTIME_R.
17261         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17262         * doc/posix-functions/localtime_r.texi: Likewise.
17263
17264 2010-12-29  Eric Blake  <eblake@redhat.com>
17265
17266         mountlist: tweak previous commit
17267         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17268         Reported by Paul Eggert.
17269
17270         mountlist: fix local drive detection on cygwin
17271         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17272         that works for cygwin.
17273
17274 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17275
17276         ftoastr, snprintf: ftoastr + snprintf module
17277         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17278         since the snprintf module now should be good enough here.
17279         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17280         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17281         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17282         GNULIB_SNPRINTF only for the test directory, and the latter
17283         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17284         seems to suffice by itself.
17285
17286 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17287
17288         alloca: one step towards thread-safety
17289         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17290         need for a static variable.  All callers changed.  This does not
17291         make the alloca replacement thread-safe, but it's one step.
17292
17293         tests: minor indenting change
17294         * tests/init.sh: Sync from coreutils housekeeping patch
17295         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17296         to keep lines within 80 columns.
17297
17298 2010-12-28  Jim Meyering  <meyering@redhat.com>
17299
17300         regex: don't infloop on persistent failing calloc
17301         * lib/regexec.c (build_trtable): Return failure indication upon
17302         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17303         In glibc, this was fixed for version 2.13:
17304         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17305
17306 2010-12-28  Bruno Haible  <bruno@clisp.org>
17307             Paul Eggert <eggert@cs.ucla.edu>
17308
17309         linkat: Make implementation robust against system behaviour variations.
17310         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17311         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17312         way, and to -2 if it needs a generic runtime test.
17313         * lib/linkat.c (solaris_optimized_link_immediate,
17314         solaris_optimized_link_follow): New functions.
17315         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17316         (check_same_link): Use it.
17317
17318 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17319
17320         New module 'unigbrk/base'.
17321         * modules/unigbrk/base: New file.
17322         * lib/unigbrk.in.h: New file.
17323
17324         New module 'unigbrk/uc-gbrk-prop'.
17325         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17326         * modules/unigbrk/uc-gbrk-prop: New file.
17327         * lib/unigbrk/gbrkprop.h: New file.
17328         * lib/unigbrk/uc-gbrk-prop.c: New file.
17329
17330         New module 'unigbrk/uc-is-grapheme-break'.
17331         * modules/unigbrk/uc-is-grapheme-break: New file.
17332         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17333         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17334         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17335         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17336         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17337
17338         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17339
17340 2010-12-27  Bruno Haible  <bruno@clisp.org>
17341
17342         linkat test: Avoid failure on Solaris 11 2010-11.
17343         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17344
17345 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         utimens: work around glibc rounding bug on more platforms
17348         * lib/utimens.c (fdutimens): Work around rounding bug even if
17349         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17351
17352 2010-12-27  Bruno Haible  <bruno@clisp.org>
17353
17354         select tests: Improve comments.
17355         * tests/test-select.c (do_select): Add comments.
17356
17357 2010-12-27  Bruno Haible  <bruno@clisp.org>
17358
17359         select tests: Safer way of handling timeout.
17360         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17361         at every invocation.
17362
17363 2010-12-27  Bruno Haible  <bruno@clisp.org>
17364
17365         select tests: Use 'bool' where appropriate.
17366         * tests/test-select.c (connect_to_socket): Change argument type to
17367         'bool'.
17368
17369 2010-12-27  Bruno Haible  <bruno@clisp.org>
17370
17371         select tests: Use existing modules.
17372         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17373         (configure.ac): Don't test for unistd.h.
17374         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17375         declared in <unistd.h>.
17376
17377 2010-12-27  Bruno Haible  <bruno@clisp.org>
17378
17379         mbrtowc: Work around a Solaris 7 bug.
17380         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17381         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17382         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17383         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17384         MBRTOWC_NULL_ARG1_BUG.
17385         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17386         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17387         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17388         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17389
17390 2010-12-27  Jim Meyering  <meyering@redhat.com>
17391
17392         read-file.c: tweak syntax
17393         * lib/read-file.c (fread_file): Remove space after "*" in function
17394         definitions.
17395
17396 2010-12-27  Bruno Haible  <bruno@clisp.org>
17397
17398         times test: Avoid gcc warnings on OSF/1.
17399         * tests/test-times.c (main): Cast printf arguments from clock_t to
17400         'long int'.
17401
17402 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17403
17404         utimens: work around glibc rounding bug on older Linux kernels
17405         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17406         on Linux with a glibc whose utimes might not work, then work
17407         around a longstanding glibc bug involving rounding rather than
17408         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17410
17411 2010-12-26  Bruno Haible  <bruno@clisp.org>
17412
17413         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17414         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17415         _GL_CXXALIAS_SYS.
17416         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17417
17418 2010-12-26  Bruno Haible  <bruno@clisp.org>
17419
17420         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17421         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17423         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17424         looking for the declaration.
17425         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17426         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17427         problem.
17428         * doc/posix-functions/inet_pton.texi: Likewise.
17429
17430 2010-12-26  Bruno Haible  <bruno@clisp.org>
17431
17432         arpa_inet: Use the common idioms with C++ support.
17433         * lib/arpa_inet.in.h: Include c++defs.h.
17434         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17435         support.
17436         * modules/arpa_inet (Depends-on): Add c++defs.
17437         (Makefile.am): Substitute the contents of c++defs.h.
17438         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17439         * modules/arpa_inet-c++-tests: New file.
17440         * tests/test-arpa_inet-c++.cc: New file.
17441
17442 2010-12-25  Bruno Haible  <bruno@clisp.org>
17443
17444         Fix more C++ link errors on Solaris 8.
17445         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17446         $(LIB_EACCESS).
17447         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17448         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17449         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17450         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17451         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17452
17453 2010-12-25  Bruno Haible  <bruno@clisp.org>
17454
17455         printf-posix: Fix link error when a non-GCC compiler is used.
17456         * lib/stdio.in.h (printf): When not using GCC, override printf
17457         correctly.
17458         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17459
17460 2010-12-25  Bruno Haible  <bruno@clisp.org>
17461
17462         strerror_r-posix: Update doc.
17463         * doc/posix-functions/strerror_r.texi: Update doc about the return
17464         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17465
17466 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17467
17468         utimens: simplify the logic of the previous change
17469         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17470         This should not affect whether the test succeeds or fails.
17471
17472         utimens: configure better on hosts with NFS clock skew
17473         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17474         uses the clock of the local host.  It might use the clock of the
17475         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17477
17478 2010-12-25  Bruno Haible  <bruno@clisp.org>
17479
17480         ptsname test: Avoid failure on Solaris.
17481         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17482         open a pseudo-terminal; don't use BSD-style ptys.
17483         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17484
17485 2010-12-25  Bruno Haible  <bruno@clisp.org>
17486
17487         ptsname: Avoid ERANGE failure on some systems.
17488         * lib/ptsname.c (buffer): Increase size.
17489
17490 2010-12-25  Bruno Haible  <bruno@clisp.org>
17491
17492         rename, renameat: Avoid test failures at NFS mounted locations.
17493         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17494         so that subsequent mkdir calls succeed.
17495
17496 2010-12-25  Bruno Haible  <bruno@clisp.org>
17497
17498         iswblank: Fix C++ link error on Solaris 8.
17499         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17500         _GL_FUNCDECL_SYS.
17501
17502 2010-12-25  Bruno Haible  <bruno@clisp.org>
17503
17504         unistd: Fix C++ link error on Solaris 8.
17505         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17506
17507 2010-12-25  Bruno Haible  <bruno@clisp.org>
17508
17509         readlink doc: Mention an old glibc bug.
17510         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17511
17512 2010-12-25  Bruno Haible  <bruno@clisp.org>
17513
17514         fcntl-h: Fix for use of C++ on glibc systems.
17515         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17516         also on glibc systems in C++ mode.
17517         Reported by Gary V. Vaughan <gary@gnu.org>.
17518
17519 2010-12-25  Bruno Haible  <bruno@clisp.org>
17520
17521         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17522         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17523
17524 2010-12-25  Bruno Haible  <bruno@clisp.org>
17525
17526         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17527         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17528         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17529         test whether truncl works according to ISO C 99 with IEC 60559.
17530         * m4/truncl-ieee.m4: New file.
17531         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17532         m4/signbit.m4.
17533         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17534
17535 2010-12-25  Bruno Haible  <bruno@clisp.org>
17536
17537         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17538         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17539         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17540         test whether ceill works according to ISO C 99 with IEC 60559.
17541         * m4/ceill-ieee.m4: New file.
17542         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17543         m4/signbit.m4.
17544         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17545
17546 2010-12-25  Bruno Haible  <bruno@clisp.org>
17547
17548         Ensure all prerequisites of <wchar.h> are included.
17549         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17550         before <wchar.h>.
17551         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17552         gl_MBRLEN_NUL_RETVAL): Likewise.
17553         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17554         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17555         AC_FUNC_MBRTOWC): Likewise.
17556         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17557         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17558         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17559         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17560         Likewise.
17561         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17562         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17563         (gl_WCHAR_H): Improve comments.
17564         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17565
17566 2010-12-25  Bruno Haible  <bruno@clisp.org>
17567
17568         strtok_r: Fix C syntax error in autoconf macro.
17569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17570         characters in test program.
17571
17572 2010-12-24  Bruno Haible  <bruno@clisp.org>
17573
17574         ceil, trunc, round: Fix gcc warnings.
17575         * lib/ceil.c (MIN): Undefine before redefining.
17576         * lib/trunc.c (MIN): Likewise.
17577         * lib/round.c (MIN): Likewise.
17578         Include <math.h> first.
17579
17580 2010-12-24  Bruno Haible  <bruno@clisp.org>
17581
17582         select tests: Avoid failures on OSF/1 5.1.
17583         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17584         failure of closing the last socket; it may fail with ECONNRESET.
17585
17586 2010-12-24  Eric Blake  <eblake@redhat.com>
17587
17588         stdint: avoid HP-UX 10.20 preprocessor bug
17589         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17590         than #if.
17591         * tests/test-floor2.c (main): Likewise.
17592         Reported by Peter O'Gorman.
17593
17594         pipe: make obsoletion transition easier
17595         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17596         * modules/pipe (Files): Include revived file.
17597         (Include): Drop reference, to mirror getdate's behavior.
17598
17599 2010-12-24  Bruno Haible  <bruno@clisp.org>
17600
17601         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17602         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17603         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17604         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17605
17606 2010-12-24  Bruno Haible  <bruno@clisp.org>
17607
17608         gethostname: Ensure declaration on NonStop Kernel.
17609         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17610         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17611
17612 2010-12-24  Bruno Haible  <bruno@clisp.org>
17613
17614         sys_select: Ensure all necessary types on NonStop Kernel.
17615         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17616         include <sys/time.h>.
17617         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17618         NonStop Kernel.
17619         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17620
17621 2010-12-24  Bruno Haible  <bruno@clisp.org>
17622
17623         sys_select: Remove unneeded include.
17624         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17625         have <sys/select.h>.
17626
17627 2010-12-24  Bruno Haible  <bruno@clisp.org>
17628
17629         gethostname: Provide a fallback for HOST_NAME_MAX.
17630         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17631         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17632         instead.
17633         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17634
17635 2010-12-24  Bruno Haible  <bruno@clisp.org>
17636
17637         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17638         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17639         (SA_RESTART): Likewise.
17640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17641
17642 2010-12-24  Bruno Haible  <bruno@clisp.org>
17643
17644         signal: Define NSIG.
17645         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17646         * tests/test-signal.c (nsig): New variable.
17647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17648
17649 2010-12-24  Bruno Haible  <bruno@clisp.org>
17650
17651         rename, renameat: Avoid test failures on OSF/1 5.1.
17652         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17653         alternative error codes.
17654         * tests/test-renameat.c (main): Likewise.
17655
17656 2010-12-24  Bruno Haible  <bruno@clisp.org>
17657
17658         *printf: Detect large precisions bug on Solaris 10/SPARC.
17659         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17660         by Paul Eggert.
17661         * tests/test-snprintf-posix.h (test_function): Add this test code here
17662         too.
17663         * tests/test-sprintf-posix.h (test_function): Likewise.
17664         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17665         * tests/test-vasprintf-posix.c (test_function): Likewise.
17666         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17667         around by gnulib.
17668         * doc/posix-functions/printf.texi: Likewise.
17669         * doc/posix-functions/snprintf.texi: Likewise.
17670         * doc/posix-functions/sprintf.texi: Likewise.
17671         * doc/posix-functions/vfprintf.texi: Likewise.
17672         * doc/posix-functions/vprintf.texi: Likewise.
17673         * doc/posix-functions/vsnprintf.texi: Likewise.
17674         * doc/posix-functions/vsprintf.texi: Likewise.
17675         * doc/posix-functions/dprintf.texi: Undo last commit.
17676         * doc/posix-functions/vdprintf.texi: Likewise.
17677
17678 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17679
17680         tests: port test-fdutimensat.c to Solaris 8
17681         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17682         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17683         On Solaris 8, it fails with errno == ENOSYS, because there is no
17684         futimens (so it can't use the fd), and there is no lutimens (so it
17685         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17686
17687         vsnprintf: make more consistent with snprintf; doc fixes
17688
17689         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17690         the byte count return problem was promoted from the snprintf-posix
17691         to the snprintf module.
17692         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17693         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17694         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17695         * tests/test-snprintf.c (main): Check the byte count returned.
17696         * tests/test-vsnprintf.c (main): Likewise.
17697
17698 2010-12-23  Eric Blake  <eblake@redhat.com>
17699
17700         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17701         * modules/sigpipe (License): Relax license.
17702
17703 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17704
17705         doc: document Solaris printf bug with large float precisions
17706         * doc/posix-functions/dprintf.texi (dprintf):
17707         * doc/posix-functions/fprintf.texi (fprintf):
17708         * doc/posix-functions/printf.texi (printf):
17709         * doc/posix-functions/snprintf.texi (snprintf):
17710         * doc/posix-functions/sprintf.texi (sprintf):
17711         * doc/posix-functions/vdprintf.texi (vdprintf):
17712         * doc/posix-functions/vfprintf.texi (vfprintf):
17713         * doc/posix-functions/vprintf.texi (vprintf):
17714         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17715         * doc/posix-functions/vsprintf.texi (vsprintf):
17716         Mention that these functions mishandle large floating point
17717         precisions on Solaris 10.  The same bug is also present in Solaris
17718         8, and I assume earlier.  This causes "cd gnulib-tests; make
17719         check" to fail on Solaris 8 (and I assume, later) when building
17720         the latest coreutils, in test-vasprintf-posix's call to
17721         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17722         the wide flavors (e.g., wprintf) so this patch just updates the
17723         documentation for the narrow ones.
17724
17725         test-posixtm.c: add two tests
17726         * tests/test-posixtm.c: Add two tests, to highlight the
17727         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17728         around this bug; this is merely to document it.
17729
17730 2010-12-22  Bruno Haible  <bruno@clisp.org>
17731
17732         getlogin_r: Work around portability problem on OSF/1.
17733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17734         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17735         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17736         test for a truncated result.
17737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17738         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17739         * modules/getlogin_r (Depends-on): Add memchr.
17740         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17741
17742 2010-12-22  Bruno Haible  <bruno@clisp.org>
17743
17744         ptsname: Avoid test failure on OSF/1 5.1.
17745         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17746         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17747         (same_slave): New function.
17748         (main): Use it to compare ptsname's result with the expected file name.
17749
17750 2010-12-22  Bruno Haible  <bruno@clisp.org>
17751
17752         Port extended stdio modules to HP NonStop Kernel.
17753         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17754         macros.
17755         * lib/fbufmode.c: Update comments.
17756         * lib/fflush.c: Likewise.
17757         * lib/fpurge.c: Likewise.
17758         * lib/freadable.c: Likewise.
17759         * lib/freadahead.c: Likewise.
17760         * lib/freading.c: Likewise.
17761         * lib/freadptr.c: Likewise.
17762         * lib/freadseek.c: Likewise.
17763         * lib/fseeko.c: Likewise.
17764         * lib/fseterr.c: Likewise.
17765         * lib/fwritable.c: Likewise.
17766         * lib/fwriting.c: Likewise.
17767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17768
17769 2010-12-22  Bruno Haible  <bruno@clisp.org>
17770
17771         ttyname_r: Work around bug on OSF/1 5.1.
17772         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17773         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17774         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17775         present.
17776         * lib/ttyname_r.c (ttyname_r): Update comments.
17777
17778 2010-12-22  Bruno Haible  <bruno@clisp.org>
17779
17780         round: Implement result sign according to IEEE 754.
17781         * lib/round.c (MIN, MINUS_ZERO): New macros.
17782         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17783         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17784         * tests/test-round-ieee.c (main): Likewise.
17785         * tests/test-roundl-ieee.c (main): Likewise.
17786
17787         trunc: Implement result sign according to IEEE 754.
17788         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17789         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17790         * tests/test-trunc2.c: Include minus-zero.h.
17791         (MINUS_ZERO): New macro.
17792         (trunc_reference): Keep in sync with lib/trunc.c.
17793         * tests/test-truncf2.c: Include minus-zero.h.
17794         (MINUS_ZERO): New macro.
17795         (truncf_reference): Keep in sync with lib/trunc.c.
17796         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17797         * tests/test-trunc-ieee.c (main): Likewise.
17798         * tests/test-truncl-ieee.c (main): Likewise.
17799
17800         ceil: Implement result sign according to IEEE 754.
17801         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17802         (FUNC): Return -0.0 for -1 < x < 0.
17803         * tests/test-ceil2.c: Include minus-zero.h.
17804         (MINUS_ZERO): New macro.
17805         (ceil_reference): Keep in sync with lib/ceil.c.
17806         * tests/test-ceilf2.c: Include minus-zero.h.
17807         (MINUS_ZERO): New macro.
17808         (ceilf_reference): Keep in sync with lib/ceil.c.
17809         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17810         * tests/test-ceil-ieee.c (main): Likewise.
17811         * tests/test-ceill-ieee.c (main): Likewise.
17812
17813         floor: Implement result sign according to IEEE 754.
17814         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17815         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17816         * tests/test-floorf2.c (floorf_reference): Likewise.
17817         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17818         * tests/test-floor-ieee.c (main): Likewise.
17819         * tests/test-floorl-ieee.c (main): Likewise.
17820
17821 2010-12-22  Bruno Haible  <bruno@clisp.org>
17822
17823         getaddrinfo: Update doc.
17824         * doc/posix-functions/gai_strerror.texi: Return type is also different
17825         on AIX and HP-UX.
17826
17827 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17828
17829         getaddrinfo, inet_ntop: Update doc for Solaris.
17830         * doc/posix-functions/gai_strerror.texi: Return type is also an
17831         issue on Solaris 9 and earlier.
17832         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17833         on Solaris 10 and earlier.
17834
17835 2010-12-21  Bruno Haible  <bruno@clisp.org>
17836
17837         New module 'roundl-ieee'.
17838         * modules/roundl-ieee: New file.
17839         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17840         test whether roundl works according to ISO C 99 with IEC 60559.
17841         * m4/roundl-ieee.m4: New file.
17842         * modules/roundl-ieee-tests: New file.
17843         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17844         * tests/test-roundl.c (main): Remove signbit tests.
17845         * modules/roundl-tests (Depends-on): Remove signbit.
17846         * doc/posix-functions/roundl.texi: Mention the new module.
17847
17848 2010-12-21  Bruno Haible  <bruno@clisp.org>
17849
17850         New module 'truncl-ieee'.
17851         * modules/truncl-ieee: New file.
17852         * modules/truncl-ieee-tests: New file.
17853         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17854         * tests/test-truncl.c (main): Remove signbit tests.
17855         * modules/truncl-tests (Depends-on): Remove signbit.
17856         * doc/posix-functions/truncl.texi: Mention the new module.
17857
17858 2010-12-21  Bruno Haible  <bruno@clisp.org>
17859
17860         New module 'ceill-ieee'.
17861         * modules/ceill-ieee: New file.
17862         * modules/ceill-ieee-tests: New file.
17863         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17864         * tests/test-ceill.c (main): Remove signbit tests.
17865         * modules/ceill-tests (Depends-on): Remove signbit.
17866         * doc/posix-functions/ceill.texi: Mention the new module.
17867
17868 2010-12-21  Bruno Haible  <bruno@clisp.org>
17869
17870         New module 'floorl-ieee'.
17871         * modules/floorl-ieee: New file.
17872         * modules/floorl-ieee-tests: New file.
17873         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17874         * tests/test-floorl.c (main): Remove signbit tests.
17875         * modules/floorl-tests (Depends-on): Remove signbit.
17876         * doc/posix-functions/floorl.texi: Mention the new module.
17877
17878 2010-12-21  Bruno Haible  <bruno@clisp.org>
17879
17880         New module 'round-ieee'.
17881         * modules/round-ieee: New file.
17882         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17883         whether round works according to ISO C 99 with IEC 60559.
17884         * m4/round-ieee.m4: New file.
17885         * modules/round-ieee-tests: New file.
17886         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17887         * tests/test-round1.c (main): Remove signbit tests.
17888         * modules/round-tests (Depends-on): Remove 'signbit'.
17889         * doc/posix-functions/round.texi: Mention the new module.
17890
17891 2010-12-21  Bruno Haible  <bruno@clisp.org>
17892
17893         New module 'trunc-ieee'.
17894         * modules/trunc-ieee: New file.
17895         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17896         whether trunc works according to ISO C 99 with IEC 60559.
17897         * m4/trunc-ieee.m4: New file.
17898         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17900         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17901         * modules/trunc-ieee-tests: New file.
17902         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17903         * tests/test-trunc1.c (main): Remove signbit tests.
17904         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17905         * doc/posix-functions/trunc.texi: Mention the new module.
17906
17907 2010-12-21  Bruno Haible  <bruno@clisp.org>
17908
17909         New module 'ceil-ieee'.
17910         * modules/ceil-ieee: New file.
17911         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17912         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17913         ISO C 99 with IEC 60559.
17914         * m4/ceil-ieee.m4: New file.
17915         * modules/ceil (Files): Add lib/ceil.c.
17916         (Depends-on): Add 'float'.
17917         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17918         * lib/math.in.h (ceil): New declaration.
17919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17920         REPLACE_CEIL.
17921         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17922         * modules/ceil-ieee-tests: New file.
17923         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17924         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17925         * doc/posix-functions/ceil.texi: Mention the new module.
17926
17927 2010-12-21  Bruno Haible  <bruno@clisp.org>
17928
17929         New module 'floor-ieee'.
17930         * modules/floor-ieee: New file.
17931         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17932         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17933         ISO C 99 with IEC 60559.
17934         * m4/floor-ieee.m4: New file.
17935         * modules/floor (Files): Add lib/floor.c.
17936         (Depends-on): Add 'float'.
17937         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17938         * lib/math.in.h (floor): New declaration.
17939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17940         REPLACE_FLOOR.
17941         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17942         * modules/floor-ieee-tests: New file.
17943         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17944         * tests/test-math-c++.cc: Check the signature of 'floor'.
17945         * doc/posix-functions/floor.texi: Mention the new module.
17946
17947 2010-12-21  Bruno Haible  <bruno@clisp.org>
17948
17949         New module 'roundf-ieee'.
17950         * modules/roundf-ieee: New file.
17951         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17952         test whether roundf works according to ISO C 99 with IEC 60559.
17953         * m4/roundf-ieee.m4: New file.
17954         * modules/roundf-ieee-tests: New file.
17955         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17956         * tests/test-roundf1.c (main): Remove signbit tests.
17957         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17958         * doc/posix-functions/roundf.texi: Mention the new module.
17959
17960 2010-12-21  Bruno Haible  <bruno@clisp.org>
17961
17962         New module 'truncf-ieee'.
17963         * modules/truncf-ieee: New file.
17964         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17965         test whether truncf works according to ISO C 99 with IEC 60559.
17966         * m4/truncf-ieee.m4: New file.
17967         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17969         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17970         * modules/truncf-ieee-tests: New file.
17971         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17972         * tests/test-truncf1.c (main): Remove signbit tests.
17973         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17974         * doc/posix-functions/truncf.texi: Mention the new module.
17975
17976 2010-12-21  Bruno Haible  <bruno@clisp.org>
17977
17978         New module 'ceilf-ieee'.
17979         * modules/ceilf-ieee: New file.
17980         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17981         test whether ceilf works according to ISO C 99 with IEC 60559.
17982         * m4/ceilf-ieee.m4: New file.
17983         * modules/ceilf-ieee-tests: New file.
17984         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17985         * tests/test-ceilf1.c (main): Remove signbit tests.
17986         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17987         * doc/posix-functions/ceilf.texi: Mention the new module.
17988
17989 2010-12-21  Bruno Haible  <bruno@clisp.org>
17990
17991         New module 'floorf-ieee'.
17992         * modules/floorf-ieee: New file.
17993         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17994         test whether floorf works according to ISO C 99 with IEC 60559.
17995         * m4/floorf-ieee.m4: New file.
17996         * modules/floorf-ieee-tests: New file.
17997         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17998         * tests/test-floorf1.c (main): Remove signbit tests.
17999         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18000         * doc/posix-functions/floorf.texi: Mention the new module.
18001
18002 2010-12-21  Bruno Haible  <bruno@clisp.org>
18003
18004         Support for minus zero in autoconf macros.
18005         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18006         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18007         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18008         * tests/minus-zero.h: Update comments.
18009
18010 2010-12-21  Bruno Haible  <bruno@clisp.org>
18011
18012         Tests for module 'ceil'.
18013         * modules/ceil-tests: New file.
18014         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18015         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18016
18017 2010-12-21  Bruno Haible  <bruno@clisp.org>
18018
18019         Tests for module 'floor'.
18020         * modules/floor-tests: New file.
18021         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18022         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18023
18024 2010-12-21  Bruno Haible  <bruno@clisp.org>
18025
18026         math: Fix indentation.
18027         * lib/math.in.h (floorf): Fix indentation.
18028
18029 2010-12-21  Bruno Haible  <bruno@clisp.org>
18030
18031         Fix cross-compilation guesses on Solaris.
18032         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18033         not match "solaris2.10".
18034         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18035         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18036         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18037
18038 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18041         This fixes a problem observed with the latest coreutils snapshot
18042         that caused a test to fail on Solaris 8.  src/csplit.c's call
18043         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18044         earlier, instead of returning the number of bytes that would have
18045         been generated; this causes csplit to incorrectly report memory
18046         exhaustion.
18047         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18048         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18049         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18050         comments to match.
18051         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18052         Fix typo in matching older versions of Solaris: "solaris2.10"
18053         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18054         only for guessing while cross-compiling.
18055         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18056
18057 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18058
18059         ftoastr: fix comment again
18060         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18061         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18062         Also, simplify example a bit by using flags = 0.
18063
18064 2010-12-20  Bruno Haible  <bruno@clisp.org>
18065
18066         round*, trunc*: Update documentation regarding glibc.
18067         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18068         * doc/posix-functions/round.texi: Likewise.
18069         * doc/posix-functions/roundl.texi: Likewise.
18070         * doc/posix-functions/truncf.texi: Likewise.
18071         * doc/posix-functions/trunc.texi: Likewise.
18072         * doc/posix-functions/truncl.texi: Likewise.
18073
18074 2010-12-20  Bruno Haible  <bruno@clisp.org>
18075
18076         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18077         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18078         * doc/posix-functions/round.texi: Likewise.
18079         * doc/posix-functions/roundl.texi: Likewise.
18080
18081 2010-12-20  Bruno Haible  <bruno@clisp.org>
18082
18083         ttyname_r: Add missing declaration on HP-UX 11.
18084         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18085         HAVE_TTYNAME_R.
18086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18087         declared. Set HAVE_TTYNAME_R always.
18088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18089         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18090         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18091         HAVE_TTYNAME_R.
18092         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18093
18094 2010-12-20  Bruno Haible  <bruno@clisp.org>
18095
18096         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18097         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18098         * doc/posix-functions/getlogin_r.texi: Likewise.
18099         * tests/test-getlogin.c: Include <errno.h>.
18100         (main): Avoid test failure on HP-UX 11.11.
18101         * tests/test-getlogin_r.c (main): Likewise.
18102
18103 2010-12-20  Bruno Haible  <bruno@clisp.org>
18104
18105         getlogin_r: Add missing declaration on HP-UX 11.
18106         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18107         declared also when it exists as a function.
18108         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18109
18110 2010-12-20  Bruno Haible  <bruno@clisp.org>
18111
18112         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18113         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18114         through wcrtomb.
18115
18116 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18117
18118         ftoastr: fix comment
18119         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18121
18122 2010-12-19  Bruno Haible  <bruno@clisp.org>
18123
18124         isnan: Ensure it is a macro.
18125         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18126         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18127         Solaris.
18128
18129 2010-12-19  Bruno Haible  <bruno@clisp.org>
18130
18131         ldexpl test: Fix link error on OSF/1 5.1.
18132         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18133
18134 2010-12-19  Bruno Haible  <bruno@clisp.org>
18135
18136         wctype: Make it work in C++ mode on OSF/1 5.1.
18137         * lib/wctype.in.h (iswblank): Declare but not define here.
18138         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18139         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18140         * modules/wctype (Files): Add lib/iswblank.c.
18141
18142 2010-12-19  Bruno Haible  <bruno@clisp.org>
18143
18144         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18145         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18146         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18147
18148 2010-12-19  Bruno Haible  <bruno@clisp.org>
18149
18150         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18152         _POSIX_PII_SOCKET.
18153         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18154         * doc/posix-functions/recvfrom.texi: Likewise.
18155         * doc/posix-functions/send.texi: Likewise.
18156         * doc/posix-functions/sendto.texi: Likewise.
18157
18158 2010-12-19  Bruno Haible  <bruno@clisp.org>
18159
18160         tcgetsid: Add missing declaration on OSF/1 5.1.
18161         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18162         HAVE_TCGETSID.
18163         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18164         Don't set HAVE_TCGETSID.
18165         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18166         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18167         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18168         HAVE_TCGETSID.
18169         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18170
18171 2010-12-19  Bruno Haible  <bruno@clisp.org>
18172
18173         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18174         * lib/stdio.in.h: During the include_next statement, let recursive
18175         includes of this file include only the system header file.
18176
18177 2010-12-19  Bruno Haible  <bruno@clisp.org>
18178
18179         iconv_open: Fix regression from 2010-12-04.
18180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18181         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18182
18183 2010-12-19  Bruno Haible  <bruno@clisp.org>
18184
18185         stdbool test: Avoid a gcc warning.
18186         * tests/test-stdbool.c (main): Fail if e1 is false.
18187         Reported by Jim Meyering.
18188
18189 2010-12-19  Jim Meyering  <meyering@redhat.com>
18190
18191         setenv: restore to working order
18192         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18193         mistakenly removed.
18194         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18195         HAVE_SETENV.
18196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18197         HAVE_SETENV.
18198
18199 2010-12-19  Bruno Haible  <bruno@clisp.org>
18200
18201         Document some different function declarations on OSF/1 5.1.
18202         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18203         * doc/posix-functions/inet_ntop.texi: Likewise.
18204         * doc/posix-functions/gethostname.texi: Likewise.
18205         * lib/unistd.in.h (gethostname): Update comment.
18206
18207 2010-12-19  Bruno Haible  <bruno@clisp.org>
18208
18209         doc: Mention vasprintf-posix module.
18210         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18211         the 'vasprintf-posix' module.
18212         * doc/glibc-functions/vasprintf.texi: Likewise.
18213
18214 2010-12-19  Bruno Haible  <bruno@clisp.org>
18215
18216         unsetenv: Add missing declaration on OSF/1 5.1.
18217         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18218         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18219         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18221         not HAVE_UNSETENV.
18222         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18223         HAVE_UNSETENV.
18224         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18225
18226 2010-12-19  Bruno Haible  <bruno@clisp.org>
18227
18228         setenv: Add missing declaration on OSF/1 5.1.
18229         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18230         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18231         declared. Don't set HAVE_SETENV.
18232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18233         not HAVE_SETENV.
18234         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18235         HAVE_SETENV.
18236         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18237
18238 2010-12-19  Bruno Haible  <bruno@clisp.org>
18239
18240         nl_langinfo tests: Avoid gcc warning.
18241         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18242
18243 2010-12-19  Bruno Haible  <bruno@clisp.org>
18244
18245         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18246         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18247         _GL_CXXALIAS_SYS.
18248
18249 2010-12-19  Bruno Haible  <bruno@clisp.org>
18250
18251         stdbool: Relax test.
18252         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18253         address to 'bool' work in static initializer, for compilers other than
18254         GCC.
18255
18256 2010-12-19  Bruno Haible  <bruno@clisp.org>
18257
18258         ftello: Add missing declaration on OSF/1 5.1.
18259         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18260         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18262         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18263         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18264
18265 2010-12-19  Bruno Haible  <bruno@clisp.org>
18266
18267         fseeko: Add missing declaration on OSF/1 5.1.
18268         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18269         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18271         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18272         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18273
18274 2010-12-19  Bruno Haible  <bruno@clisp.org>
18275
18276         fchdir: Add missing declaration on OSF/1 5.1.
18277         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18280         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18281         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18282
18283 2010-12-19  Bruno Haible  <bruno@clisp.org>
18284
18285         relocatable-prog-wrapper: Separate from relocatable-prog.
18286         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18287         uninstall-relocwrapper rule here.
18288         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18289         Reported by Ian Beckwith <ianb@erislabs.net>.
18290
18291 2010-12-19  Bruno Haible  <bruno@clisp.org>
18292
18293         unistr/u8-mbsnlen: Add missing dependency.
18294         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18295         Reported by Ian Beckwith <ianb@erislabs.net>.
18296
18297 2010-12-19  Bruno Haible  <bruno@clisp.org>
18298
18299         iconv: Make it possible again to use this module without 'iconv-h'.
18300         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18301         if it is not defined.
18302         Reported by Ian Beckwith <ianb@erislabs.net>.
18303
18304 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18305
18306         acl: port to Solaris 8 when copying from tmpfs to ufs
18307         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18308         error number.  Problem observed on Solaris 8 with latest
18309         coreutils, with "mv A B", where A is on a tmpfs file system and B
18310         is on a ufs file system.  This caused coreutils' mv/part-symlink
18311         test to fail.
18312
18313         tests: set fail=0 at start
18314         * tests/init.sh (setup_): Move fail=0 initialization here ...
18315         (mktempd_): ... from here, so that tests can rely on fail being
18316         set to 0 initially.  This fixes a problem in coreutils; see:
18317         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18318
18319 2010-12-18  Bruno Haible  <bruno@clisp.org>
18320
18321         memmem-simple: Stylistic changes.
18322         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18323         Fix preprocessor directive indentation.
18324
18325 2010-12-15  Pádraig Brady <P@draigBrady.com>
18326
18327         memmem, memmem-simple: reorganize and expand empty needle check
18328         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18329         functional checks to memmem-simple so that one has a fully functional
18330         memmem by using just this module.
18331         Restrict the performance only check to the memmem module.
18332         Also expand the empty needle check to ensure the correct
18333         pointer is returned, not just a non NULL pointer.
18334         * doc/glibc-functions/memmem.texi: Rearrange the portability
18335         documentation to correlate with the rearranged checks.
18336         Clarify exactly how the memmem and memmem-simple modules
18337         relate to each other.
18338
18339 2010-12-15  Pádraig Brady <P@draigBrady.com>
18340             Bruno Haible  <bruno@clisp.org>
18341
18342         Improve cross-compilation guesses for uClibc.
18343         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18344         that uClibc does not have the glibc bug.
18345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18346         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18347
18348 2010-12-14  Eric Blake  <eblake@redhat.com>
18349
18350         configmake: provide fallbacks for oldest supported autotools
18351         * m4/configmake.m4: New file.
18352         * modules/configmake (Files): Ship it.
18353         (configure.ac): Use it to guarantee fallbacks.
18354
18355 2010-12-13  Pádraig Brady <P@draigBrady.com>
18356
18357         read-file: Improve handling of large files
18358         * lib/read-file.c (fread_file): Minimize realloc()s
18359         for regular files, and better manage sizes around SIZE_MAX.
18360
18361 2010-12-13  Eric Blake  <eblake@redhat.com>
18362
18363         cloexec, fcntl: relax license
18364         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18365         consent from all contributors.
18366         * modules/fcntl (License): Likewise.
18367
18368 2010-12-10  Bruno Haible  <bruno@clisp.org>
18369
18370         Tests for module 'pipe-posix'.
18371         * modules/pipe-posix-tests: New file.
18372         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18373
18374 2010-12-10  Bruno Haible  <bruno@clisp.org>
18375
18376         pipe-posix: Make it work in C++ mode.
18377         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18378         (pipe): Use common idiom, not a macro definition.
18379         * lib/pipe.c: New file.
18380         * m4/pipe.m4: New file.
18381         * modules/pipe-posix (Description): Enhance.
18382         (Files): Add lib/pipe.c, m4/pipe.m4.
18383         (configure.ac): Invoke gl_FUNC_PIPE.
18384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18385         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18386         * tests/test-unistd-c++.cc: Check the signature of pipe.
18387
18388 2010-12-10  Bruno Haible  <bruno@clisp.org>
18389
18390         Rename module 'pipe' to 'spawn-pipe'.
18391         * modules/spawn-pipe: New file, renamed from modules/pipe.
18392         (Files, configure.ac, Makefile.am): Update.
18393         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18394         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18395         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18396         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18397         "spawn-pipe.h" instead of "pipe.h".
18398         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18399         to gl_SPAWN_PIPE.
18400         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18401         (Files, Makefile.am): Update.
18402         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18403         Update.
18404         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18405         Include "spawn-pipe.h" instead of "pipe.h".
18406         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18407         * lib/javacomp.c: Likewise.
18408         * lib/javaversion.c: Likewise.
18409         * lib/pipe-filter-gi.c: Likewise.
18410         * lib/pipe-filter-ii.c: Likewise.
18411         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18412         * modules/javacomp (Depends-on): Likewise.
18413         * modules/javaversion (Depends-on): Likewise.
18414         * modules/pipe-filter-gi (Depends-on): Likewise.
18415         * modules/pipe-filter-ii (Depends-on): Likewise.
18416         * MODULES.html.sh (Executing programs): Update.
18417         * NEWS: Mention the change.
18418
18419 2010-12-10  Eric Blake  <eblake@redhat.com>
18420
18421         pipe-posix: new module
18422         * modules/pipe-posix: New file.
18423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18424         (gl_UNISTD_H): Check for declaration.
18425         * modules/unistd (Makefile.am): Substitute it.
18426         * lib/unistd.in.h (pipe): Provide it for mingw.
18427         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18428         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18429
18430 2010-12-07  Bruno Haible  <bruno@clisp.org>
18431
18432         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18433         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18434         u8_strcmp_gnu.
18435         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18436
18437 2010-12-06  Bruno Haible  <bruno@clisp.org>
18438
18439         Update internal documentation.
18440         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18441
18442 2010-12-04  Bruno Haible  <bruno@clisp.org>
18443
18444         Put more information about failed tests into the test return codes.
18445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18446         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18447         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18448         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18449         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18450         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18451         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18452         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18453         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18456         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18457         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18458         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18459         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18460         returns a bit mask.
18461         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18462         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18463         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18464         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18465         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18466         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18469         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18471         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18472         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18473         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18475         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18476         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18477         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18478         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18479         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18480         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18482         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18483         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18484         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18485         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18486         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18487         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18488         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18489         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18490         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18491         gl_PRINTF_PRECISION): Likewise.
18492         * m4/regex.m4 (gl_REGEX): Likewise.
18493         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18495         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18496         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18500         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18501         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18502         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18503         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18505         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18506         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18507         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18508         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18509         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18512         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18513         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18514         enumerated value.
18515         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18516
18517 2010-12-04  Bruno Haible  <bruno@clisp.org>
18518
18519         Update for Solaris 11 2010-11.
18520         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18521         Express, released in November 2010.
18522
18523 2010-12-04  Bruno Haible  <bruno@clisp.org>
18524
18525         nproc: Relax license.
18526         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18527         and Paul Eggert.
18528         Requested by Ludovic Courtès <ludo@gnu.org>.
18529
18530 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18531
18532         utimecmp: fine-grained src to nearby coarse-grained dest
18533
18534         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18535         and the source is on a file system with higher-resolution time
18536         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18537         not work, and the time stamps are close together, the algorithm to
18538         determine the exact resolution from the read-back mtime was buggy:
18539         it had a "!=" where it should have had an "==".  This bug has been
18540         in the code ever since it was introduced to gnulib.
18541         Problem reported by Dan Jacobson in
18542         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18543
18544 2010-11-30  Bruno Haible  <bruno@clisp.org>
18545
18546         strerror_r-posix: Fix autoconf test.
18547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18548
18549 2010-11-28  Bruno Haible  <bruno@clisp.org>
18550             Paul Eggert  <eggert@cs.ucla.edu>
18551
18552         Tests for module 'getdomainname'.
18553         * modules/getdomainname-tests: New file.
18554         * tests/test-getdomainname.c: New file, based on
18555         tests/test-gethostname.c.
18556
18557 2010-11-28  Bruno Haible  <bruno@clisp.org>
18558             Paul Eggert  <eggert@cs.ucla.edu>
18559
18560         getdomainname: Use the system function when possible.
18561         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18562         (getdomainname): Replace if needed. Provide the declaration if it is
18563         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18564         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18565         (getdomainname): When the system has getdomainname, call the system
18566         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18567         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18568         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18569         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18570         the function if its second argument is of type 'int' or if it is found
18571         in libnsl.
18572         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18573         <sys/systeminfo.h> and sysinfo().
18574         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18576         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18577         HAVE_GETDOMAINNAME.
18578         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18579         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18580         * doc/glibc-functions/getdomainname.texi: Document the problems with
18581         the getdomainname declaration.
18582
18583 2010-11-28  Bruno Haible  <bruno@clisp.org>
18584
18585         sys_socket: Ensure ss_family field on AIX.
18586         * lib/sys_socket.in.h (ss_family): New macro definition.
18587         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18588         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18589         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18590         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18591         * modules/sys_socket (Makefile.am): Substitute
18592         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18593         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18594
18595 2010-11-27  Bruno Haible  <bruno@clisp.org>
18596
18597         readline: Improve configure output.
18598         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18599         "checking for readline..." result understandable.
18600
18601 2010-11-27  Bruno Haible  <bruno@clisp.org>
18602
18603         *printf-posix: Detect a bug on Solaris 10/x86.
18604         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18605         for floating-point output.
18606         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18607         directive.
18608         * tests/test-snprintf-posix.h (test_function): Likewise.
18609         * tests/test-sprintf-posix.h (test_function): Likewise.
18610         * tests/test-vasprintf-posix.c (test_function): Likewise.
18611         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18612         * doc/posix-functions/printf.texi: Likewise.
18613         * doc/posix-functions/snprintf.texi: Likewise.
18614         * doc/posix-functions/sprintf.texi: Likewise.
18615         * doc/posix-functions/vfprintf.texi: Likewise.
18616         * doc/posix-functions/vprintf.texi: Likewise.
18617         * doc/posix-functions/vsnprintf.texi: Likewise.
18618         * doc/posix-functions/vsprintf.texi: Likewise.
18619         * doc/glibc-functions/obstack_printf.texi: Likewise.
18620         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18621
18622 2010-11-27  Bruno Haible  <bruno@clisp.org>
18623
18624         Fix link error when module libunistring-optional is in use.
18625         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18626         * modules/striconveha-tests (Makefile.am): Likewise.
18627
18628 2010-11-27  Bruno Haible  <bruno@clisp.org>
18629
18630         regex: Mention link dependencies.
18631         * modules/regex (Link): New section.
18632         * modules/rpmatch (Link): Likewise.
18633         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18634
18635 2010-11-27  Bruno Haible  <bruno@clisp.org>
18636
18637         ftoastr: Fix compilation error on Solaris.
18638         * lib/ftoastr.c: Include <config.h>.
18639
18640 2010-11-27  Bruno Haible  <bruno@clisp.org>
18641
18642         getloadavg: Update documentation.
18643         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18644
18645 2010-11-27  Bruno Haible  <bruno@clisp.org>
18646
18647         sys_socket: Fix test whether the functions are declared.
18648         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18649         not <sys/select.h>.
18650
18651 2010-11-27  Bruno Haible  <bruno@clisp.org>
18652
18653         getpass: Make sure to get system declaration on some platforms.
18654         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18655         gl_USE_SYSTEM_EXTENSIONS.
18656         * modules/getpass (Depends-on): Add extensions.
18657
18658 2010-11-26  Bruno Haible  <bruno@clisp.org>
18659
18660         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18661         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18662         'iconv' module is present.
18663         (ICONV_CONST): New macro.
18664         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18665         ICONV_CONST.
18666         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18667         set ICONV_CONST.
18668         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18669         here.
18670         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18671         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18672         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18673         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18674         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18675         present.
18676
18677 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18678
18679         ftoastr: comment fix
18680         * lib/ftoastr.c: "little" -> "little or no" in comment
18681
18682 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18683
18684         stdint: port to GCC 4.3 + OSX + Octave
18685         On this platform, stdint.h is buggy and defines int64_t to long
18686         long int.  The replacement defined it to long int, causing
18687         problems with C++ style name mangling.  Instead, trust the system
18688         definition if INT64_MAX is defined, and likewise for the unsigned
18689         variant.   Problem reported by Jarno Rajahalme in
18690         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18691         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18692         and don't mess with int64_t and INT64_MAX in this case.
18693         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18694
18695 2010-11-24  Bruno Haible  <bruno@clisp.org>
18696
18697         doc: Corrections regarding MacOS X 10.4 and 10.5.
18698         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18699         MacOS X.
18700         Reported by Simon Josefsson.
18701
18702 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18703
18704         Uninstall ".bin" files installed by relocwrapper.
18705         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18706         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18707         unless it is already there.
18708
18709 2010-11-21  Bruno Haible  <bruno@clisp.org>
18710
18711         Update for NetBSD 5.0.
18712         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18713         NetBSD; the test fails on NetBSD 5.0.
18714         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18715         about NetBSD.
18716
18717 2010-11-21  Bruno Haible  <bruno@clisp.org>
18718
18719         Update for HP-UX 11.23 and HP-UX 11.31.
18720         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18721         HP-UX.
18722
18723 2010-11-21  Bruno Haible  <bruno@clisp.org>
18724
18725         Update for MacOS X 10.5.
18726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18727         MacOS X; the test fails on MacOS X 10.5.8.
18728         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18729         about MacOS X.
18730
18731 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18732
18733         bootstrap: add bootstrap_sync option.
18734         See discussion at
18735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18736         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18737         * build-aux/bootstrap: Accept --bootstrap-sync to update
18738         bootstrap if it is not identical to the local gnulib's
18739         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18740         enable this by default.  Accept --no-bootstrap-sync to disable
18741         it.
18742
18743 2010-11-20  Bruno Haible  <bruno@clisp.org>
18744
18745         Ensure that <features.h> is included before __GLIBC__ is tested.
18746         * lib/printf-parse.h: Include <features.h>.
18747         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18748         Reported by Mike Frysinger <vapier@gentoo.org>.
18749
18750         Ensure that <features.h> is included before __GLIBC__ is tested.
18751         * lib/wchar.in.h: Include <features.h>.
18752         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18753         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18754         Reported by Mike Frysinger <vapier@gentoo.org>.
18755
18756         Ensure that <features.h> is included before __GLIBC__ is tested.
18757         * lib/arpa_inet.in.h: Include <features.h>.
18758         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18759         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18760         Reported by Mike Frysinger <vapier@gentoo.org>.
18761
18762         Ensure that <features.h> is included before __GLIBC__ is tested.
18763         * build-aux/link-warning.h: Include <features.h>.
18764         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18765         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18766         Reported by Mike Frysinger <vapier@gentoo.org>.
18767
18768         Ensure that <features.h> is included before __GLIBC__ is tested.
18769         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18770         Reported by Mike Frysinger <vapier@gentoo.org>.
18771
18772 2010-11-20  Bruno Haible  <bruno@clisp.org>
18773
18774         memmem: Fix autoconf test.
18775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18776
18777 2010-11-20  Bruno Haible  <bruno@clisp.org>
18778
18779         Port to uClibc.
18780         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18781         * lib/fcntl.in.h: Likewise.
18782         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18783         * lib/mbrtowc.c (mbrtowc): Likewise.
18784         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18785         * lib/strerror_r.c: Likewise.
18786         * lib/unistr/u8-strnlen.c: Likewise.
18787         * lib/vasnprintf.c (decimal_point_char): Likewise.
18788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18789         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18790         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18791         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18792         * tests/test-sigaction.c (handler, main): Likewise.
18793         * lib/freading.h: Treat uClibc like a non-glibc platform.
18794         * lib/freading.c: Likewise.
18795         * lib/gettext.h: Likewise.
18796         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18797         Likewise.
18798         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18799         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18800         * lib/propername.c (proper_name_utf8): Likewise.
18801         * lib/spawn.in.h: Likewise.
18802         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18803         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18804         mem_cd_iconveh_internal): Likewise.
18805         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18806         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18807         strstr, strcasestr): Likewise.
18808         * lib/unicodeio.c (unicode_to_mb): Likewise.
18809         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18810         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18811         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18812         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18813         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18814         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18815         * lib/unistr/u8-stpncpy.c: Likewise.
18816         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18817         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18818         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18819         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18820         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18821         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18822         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18823         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18825         Likewise.
18826         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18827         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18831         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18832         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18833         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18834         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18835         * tests/test-striconveha.c (main): Likewise.
18836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18837         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18838         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18839         * doc/posix-functions/getline.texi: Likewise.
18840         Reported by Mike Frysinger <vapier@gentoo.org>.
18841
18842 2010-11-20  Bruno Haible  <bruno@clisp.org>
18843
18844         nproc: Fix condition.
18845         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18846         HAVE_PTHREAD_AFFINITY_NP.
18847
18848 2010-11-20  Bruno Haible  <bruno@clisp.org>
18849
18850         Fix a comment.
18851         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18852
18853 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         ftoastr: don't assume snprintf
18856         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18857         Implement a subset of snprintf here, by using sprintf safely.
18858         * modules/ftoastr (Depends-on): Remove snprintf.
18859
18860 2010-11-19  Jim Meyering  <meyering@redhat.com>
18861
18862         test-rename.h: fix compilation failure
18863         * tests/test-rename.h (test_rename): Add omitted "}".
18864
18865 2010-11-17  Jim Meyering  <meyering@redhat.com>
18866
18867         maint.mk: add a URL discussing the no-@acronym policy
18868         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18869
18870 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18871
18872         ftoastr: depend on snprintf, improve comments
18873         * lib/ftoastr.c: Also mention Loitsch's draft.
18874         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18875         needed in the current implementation, but it might simplify
18876         speeding up the code later.
18877         * modules/ftoastr: Depend on snprintf; this improves portability.
18878         Suggested by Bruno Haible in the same email.
18879
18880         ftoastr: port to hosts lacking strtof and strtold
18881         Problem reported by Bruno Haible in
18882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18883         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18884         environment and strtold (and presumably strtof) are not available.
18885         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18886         (configure.ac): Require gl_C99_STRTOLD.
18887
18888 2010-11-18  Bruno Haible  <bruno@clisp.org>
18889
18890         c-strtold: Avoid link error on AIX 7.
18891         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18892         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18893         (gl_C_STRTOLD): Test whether strtold_l exists.
18894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18895
18896 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18897
18898         intprops: new macro INT_BITS_STRLEN_BOUND
18899         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18900         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18901         not exposed.  Also, it uses a slightly tighter bound than before;
18902         though this makes no practical difference, we might as well be as
18903         tight as we easily can.
18904
18905         ftoastr: new module, for lossless conversion of floats to short strings
18906         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18907         * modules/ftoastr: New files.
18908
18909 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18910
18911         bootstrap: port to Solaris sed
18912         * build-aux/bootstrap (get_version): Port to Solaris sed.
18913         See Ralf Wildenhues's note in
18914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18915
18916 2010-11-14  Jim Meyering  <meyering@redhat.com>
18917
18918         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18919         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18920         and move definition closer to sole use.
18921
18922 2010-11-13  Jim Meyering  <meyering@redhat.com>
18923
18924         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18925         Now we require at least autoconf-2.59, which means the work-around
18926         is no longer needed.
18927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18928         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18929         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18930         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18931         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18932
18933 2010-11-13  Bruno Haible  <bruno@clisp.org>
18934
18935         rename, renameat: Avoid test failures at NFS mounted locations.
18936         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18937         functions.
18938         (test_rename): Use assert_nonexistent.
18939         * tests/test-rename.c: Include <dirent.h>.
18940         * tests/test-renameat.c: Likewise.
18941         Reported by Gary V. Vaughan <gary@gnu.org>.
18942
18943         rename, renameat: Document Linux bug with NFS
18944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18945         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18946         * doc/posix-functions/renameat.texi: Likewise.
18947         Suggested by Eric Blake.
18948
18949 2010-11-13  Bruno Haible  <bruno@clisp.org>
18950
18951         rename test: Add comments.
18952         * tests/test-rename.h (test_rename): Add structure and comments.
18953
18954 2010-11-13  Eric Blake  <eblake@redhat.com>
18955
18956         maintainer-makefile: cover a few more files
18957         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18958         scripts generated within C files, for libvirt.
18959
18960 2010-11-13  Bruno Haible  <bruno@clisp.org>
18961
18962         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18963         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18964         character, return the number of bytes that belong together, not always
18965         1.
18966         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18967         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18968         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18969         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18970         number of bytes of an invalid character.
18971         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18972         (main): Invoke it.
18973         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18974         results.
18975         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18976         malformed byte sequences.
18977         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18978         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18979         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18980         Reported by Ben Pfaff and Paolo Bonzini.
18981
18982 2010-11-13  Bruno Haible  <bruno@clisp.org>
18983
18984         openat: Work around glibc bug with fchownat() and empty file names.
18985         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18986         (gl_FUNC_FCHOWNAT): Invoke it.
18987         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18988         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18989         Reported by Gary V. Vaughan <gary@gnu.org>.
18990
18991 2010-11-13  Bruno Haible  <bruno@clisp.org>
18992
18993         openat: Ensure autoconf macro ordering.
18994         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18995         gl_USE_SYSTEM_EXTENSIONS.
18996         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18997
18998 2010-11-13  Bruno Haible  <bruno@clisp.org>
18999
19000         Update comments.
19001         * lib/unistr/u8-check.c: Update file name in comments.
19002         * lib/unistr/u8-mblen.c: Likewise.
19003         * lib/unistr/u8-prev.c: Likewise.
19004         * lib/unistr/u8-strmblen.c: Likewise.
19005         * lib/unistr/u8-strmbtouc.c: Likewise.
19006
19007 2010-11-13  Jim Meyering  <meyering@redhat.com>
19008
19009         tests: avoid test failure on Solaris 10 due to lack of PATH export
19010         * tests/test-update-copyright.sh: Don't forget to export PATH.
19011
19012         init.sh: ensure that IFS is defined, just in case...
19013         * tests/init.sh (setup_): Ensure that IFS is defined,
19014         so that saving and restoring it works as expected.  This
19015         appears to be useful at least for an old version of dash
19016         from a long time ago (RH 6).  See here for details:
19017         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19018
19019         maint.mk: tighten "test a == b" check
19020         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19021         test to files that contain something like #!/bin/sh.
19022         Without this, coreutils would get two false positives in
19023         the comments of C source files.
19024
19025 2010-11-12  Eric Blake  <eblake@redhat.com>
19026
19027         bootstrap: fix typo in previous attempt
19028         * build-aux/bootstrap (buildreq): Correct the grouping.
19029         Reported by Paul Eggert.
19030
19031         maintainer-makefile: prohibit test x == x
19032         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19033         Based on a report by Matthias Bolte.
19034
19035         bootstrap: allow FreeBSD gzip
19036         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19037         which has no '.' and goes to stderr.
19038         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19039         Reported by Matthias Bolte.
19040
19041         maintainer-makefile: check for i18n setup
19042         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19043         will likely work.
19044
19045 2010-11-12  Bruno Haible  <bruno@clisp.org>
19046
19047         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19048         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19049         * lib/nanosleep.c (nanosleep): Likewise.
19050
19051 2010-11-11  Bruno Haible  <bruno@clisp.org>
19052
19053         fcntl-h: Fix for use of C++ on glibc systems.
19054         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19055         also on glibc systems in C++ mode.
19056         Reported by Gary V. Vaughan <gary@gnu.org>.
19057
19058 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19059
19060         mknod: avoid false failure with dash
19061         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19062
19063 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19064
19065         unlink: Fix "is it should" typo in diagnostic.
19066         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19068
19069 2010-11-11  Bruno Haible  <bruno@clisp.org>
19070
19071         Tests for module 'strerror_r-posix'.
19072         * modules/strerror_r-posix-tests: New file.
19073         * tests/test-strerror_r.c: New file.
19074         * tests/test-string-c++.cc: Check the signature of strerror_r.
19075
19076         New module 'strerror_r-posix'.
19077         * lib/string.in.h (strerror_r): New declaration.
19078         * lib/strerror_r.c: New file.
19079         * m4/strerror_r.m4: New file.
19080         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19081         of strerror_r.
19082         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19083         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19084         * modules/strerror_r-posix: New file.
19085         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19086         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19087         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19088         portability problems.
19089
19090 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19091
19092         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19093         line is also considered for output. Quoted function name in shell
19094         command, so temporary files for functions like MyClass::operator()
19095         are removed correctly without errors.
19096
19097 2010-11-09  Bruno Haible  <bruno@clisp.org>
19098
19099         * doc/posix-functions/strerror.texi: List more failing platforms.
19100
19101         * doc/posix-functions/strerror.texi: Add a comment.
19102
19103 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19104
19105         fdopendir: fix bug on MacOS X when low on file descriptors
19106
19107         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19108         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19109         All callers changed.
19110         (fdopendir): Invoke save_cwd at the top level, not after using
19111         multiple dup() calls to use up file descriptors.  Then retry
19112         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19113         less than the maximum number of open file descriptors, because
19114         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19115         on Mac OS X 10.6.4 for tar 1.24
19116         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19117         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19118         and for tar 1.25
19119         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19120
19121 2010-11-07  Bruno Haible  <bruno@clisp.org>
19122
19123         vasnprintf: Support I flag on glibc systems.
19124         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19125         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19126         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19127         snprintf function.
19128         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19129         glibc systems.
19130         * tests/test-vasnprintf-posix3.c: New file.
19131         * modules/vasnprintf-posix-tests (Files): Add it.
19132         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19133
19134 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19135
19136         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19137         * MODULES.html.sh: For compiler warnings, use name
19138         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19139
19140 2010-11-05  Eric Blake  <eblake@redhat.com>
19141
19142         ceil, floor: avoid spurious failure with icc
19143         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19144         [denormals-as-zero] when optimizing without -mieee-fp option.
19145         * tests/test-floorf2.c (floorf_reference): Likewise.
19146         * tests/test-ceilf1.c (dummy): New function.
19147         (main): Use it to outsmart icc's optimization.
19148         * tests/test-floorf1.c (dummy, main): Likewise.
19149
19150         tests: require working signbit
19151         * modules/ceilf-tests (Depends-on): Add signbit.
19152         * modules/ceill-tests (Depends-on): Likewise.
19153         * modules/floorf-tests (Depends-on): Likewise.
19154         * modules/floorl-tests (Depends-on): Likewise.
19155         * modules/round-tests (Depends-on): Likewise.
19156         * modules/roundf-tests (Depends-on): Likewise.
19157         * modules/roundl-tests (Depends-on): Likewise.
19158         * modules/trunc-tests (Depends-on): Likewise.
19159         * modules/truncf-tests (Depends-on): Likewise.
19160         * modules/truncl-tests (Depends-on): Likewise.
19161
19162         strtod: work around icc bug
19163         * lib/strtod.c (minus_zero): Define to working value.
19164         (strtod): Use it to avoid icc bug.
19165
19166         copysign: enhance tests
19167         * modules/copysign-tests (Files): Add minus-zero.h.
19168         * tests/test-copysign.c (main): Also test zeros.
19169
19170 2010-11-04  Eric Blake  <eblake@redhat.com>
19171
19172         ceil, floor, round, trunc: enhance tests of -0
19173         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19174         * tests/test-ceill.c (main): Likewise.
19175         * tests/test-floorf1.c (main): Likewise.
19176         * tests/test-floorl.c (main): Likewise.
19177         * tests/test-round1.c (main): Likewise.
19178         * tests/test-roundf1.c (main): Likewise.
19179         * tests/test-roundl.c (main): Likewise.
19180         * tests/test-trunc1.c (main): Likewise.
19181         * tests/test-truncf1.c (main): Likewise.
19182         * tests/test-truncl.c (main): Likewise.
19183
19184 2010-11-04  Eric Blake  <eblake@redhat.com>
19185
19186         frexp, tests: work around ICC bug with -zero
19187         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19188         works with more compilers.
19189         * tests/minus-zero.h: New file.
19190         * modules/ceilf-tests (Files): Include it.
19191         * modules/ceill-tests (Files): Likewise.
19192         * modules/floorf-tests (Files): Likewise.
19193         * modules/floorl-tests (Files): Likewise.
19194         * modules/frexp-nolibm-tests (Files): Likewise.
19195         * modules/frexp-tests (Files): Likewise.
19196         * modules/frexpl-nolibm-tests (Files): Likewise.
19197         * modules/frexpl-tests (Files): Likewise.
19198         * modules/isnan-tests (Files): Likewise.
19199         * modules/isnand-nolibm-tests (Files): Likewise.
19200         * modules/isnand-tests (Files): Likewise.
19201         * modules/isnanf-nolibm-tests (Files): Likewise.
19202         * modules/isnanf-tests (Files): Likewise.
19203         * modules/isnanl-nolibm-tests (Files): Likewise.
19204         * modules/isnanl-tests (Files): Likewise.
19205         * modules/round-tests (Files): Likewise.
19206         * modules/roundf-tests (Files): Likewise.
19207         * modules/roundl-tests (Files): Likewise.
19208         * modules/ldexpl-tests (Files): Likewise.
19209         * modules/signbit-tests (Files): Likewise.
19210         * modules/snprintf-posix-tests (Files): Likewise.
19211         * modules/sprintf-posix-tests (Files): Likewise.
19212         * modules/strtod-tests (Files): Likewise.
19213         * modules/trunc-tests (Files): Likewise.
19214         * modules/truncf-tests (Files): Likewise.
19215         * modules/truncl-tests (Files): Likewise.
19216         * modules/vsnprintf-posix-tests (Files): Likewise.
19217         * modules/vsprintf-posix-tests (Files): Likewise.
19218         * modules/vasnprintf-posix-tests (Files): Likewise.
19219         * modules/vasprintf-posix-tests (Files): Likewise.
19220         * tests/test-ceilf1.c (main): Use it.
19221         * tests/test-ceill.c (main): Likewise.
19222         * tests/test-floorf1.c (main): Likewise.
19223         * tests/test-floorl.c (main): Likewise.
19224         * tests/test-frexp.c (main): Likewise.
19225         * tests/test-frexpl.c (main): Likewise.
19226         * tests/test-isnan.c (main): Likewise.
19227         * tests/test-isnand.h (main): Likewise.
19228         * tests/test-isnanf.h (main): Likewise.
19229         * tests/test-isnanl.h (main): Likewise.
19230         * tests/test-ldexpl.c (main): Likewise.
19231         * tests/test-round.c (main): Likewise.
19232         * tests/test-roundf.c (main): Likewise.
19233         * tests/test-roundl.c (main): Likewise.
19234         * tests/test-signbit.c (test_signbitf, test_signbitd)
19235         (test_signbitl): Likewise.
19236         * tests/test-snprintf-posix.h (test_function): Likewise.
19237         * tests/test-sprintf-posix.h (test_function): Likewise.
19238         * tests/test-strtod.c (main): Likewise.
19239         * tests/test-trunc1.c (main): Likewise.
19240         * tests/test-truncf1.c (main): Likewise.
19241         * tests/test-truncl.c (main): Likewise.
19242
19243         isnanl: work around icc bug
19244         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19245
19246 2010-11-03  Eric Blake  <eblake@redhat.com>
19247
19248         tests: fix compiler warnings
19249         * tests/test-getopt.h (test_getopt): Fix condition.
19250         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19251         * tests/test-pipe2.c (main): Likewise.
19252         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19253
19254         utimens: fix broken m4 test
19255         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19256
19257 2010-10-28  Bruno Haible  <bruno@clisp.org>
19258
19259         posix_spawn*, getdtablesize: Relax license.
19260         * modules/posix_spawn (License): Change to LGPLv2+.
19261         * modules/posix_spawnp (License): Likewise.
19262         * modules/posix_spawn-internal (License): Likewise.
19263         * modules/posix_spawnattr_init (License): Likewise.
19264         * modules/posix_spawnattr_getflags (License): Likewise.
19265         * modules/posix_spawnattr_setflags (License): Likewise.
19266         * modules/posix_spawnattr_getpgroup (License): Likewise.
19267         * modules/posix_spawnattr_setpgroup (License): Likewise.
19268         * modules/posix_spawnattr_getschedparam (License): Likewise.
19269         * modules/posix_spawnattr_setschedparam (License): Likewise.
19270         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19271         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19272         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19273         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19274         * modules/posix_spawnattr_getsigmask (License): Likewise.
19275         * modules/posix_spawnattr_setsigmask (License): Likewise.
19276         * modules/posix_spawnattr_destroy (License): Likewise.
19277         * modules/posix_spawn_file_actions_init (License): Likewise.
19278         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19279         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19280         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19281         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19282         * modules/getdtablesize (License): Likewise.
19283         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19284
19285 2010-10-26  Bruno Haible  <bruno@clisp.org>
19286
19287         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19288         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19289         Cygwin and mingw.
19290         Suggested by Eric Blake.
19291
19292 2010-10-26  Bruno Haible  <bruno@clisp.org>
19293
19294         stdio: Work around compilation error due to renameat() on Solaris 10.
19295         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19296         * lib/renameat.c: Don't include <unistd.h> here.
19297         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19298         Reported by Paul Eggert and Eric Blake.
19299
19300 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19301
19302         renameat: port to Solaris 10, which declares renameat in unistd.h
19303
19304         * lib/renameat.c: Include unistd.h before stdio.h, because
19305         Solaris 10 declares renameat in unistd.h.  Problem encountered
19306         when building GNU tar 1.24 on Solaris 10.
19307
19308 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19309
19310         fdopendir: fix C89 compilation
19311         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19312         compilers.
19313
19314 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19315
19316         inttostr: simplify by removing unnecessary redundancy
19317         * lib/anytostr.c: Don't include verify.h.
19318         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19319         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19320         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19321         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19322         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19323         Likewise.
19324         * modules/inttostr (Depends-on): Remove 'verify'.
19325
19326 2010-10-23  Bruno Haible  <bruno@clisp.org>
19327
19328         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19329         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19330         Reported by Eric Blake.
19331
19332 2010-10-23  Bruno Haible  <bruno@clisp.org>
19333
19334         Tests: Fix LOCALE_JA on MirBSD 10.
19335         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19336         to an UTF-8 locale.
19337         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19338         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19339         Reported by Eric Blake.
19340
19341 2010-10-21  Bruno Haible  <bruno@clisp.org>
19342
19343         nl_langinfo test: Avoid test failure on NetBSD 5.
19344         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19345         Reported by Eric Blake.
19346
19347 2010-10-21  Eric Blake  <eblake@redhat.com>
19348
19349         c-stack: work around libsigsegv 2.8 bug
19350         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19351         overflow on at least PowerPC64.
19352
19353 2010-10-17  Bruno Haible  <bruno@clisp.org>
19354
19355         userspec: Drop redundant file.
19356         * modules/userspec (Files): Remove lib/inttostr.h.
19357
19358 2010-10-17  Bruno Haible  <bruno@clisp.org>
19359
19360         nl_langinfo tests: Silence some warnings.
19361         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19362         Reported by Jim Meyering.
19363
19364 2010-10-17  Bruno Haible  <bruno@clisp.org>
19365
19366         Make use of GCC's attribute __alloc_size__.
19367         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19368         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19369         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19370         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19371         __alloc_size__.
19372         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19373         Suggested by Jim Meyering.
19374
19375 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19376
19377         bootstrap: anchor .gitignore entries.
19378         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19379         with...
19380         (insert_vc_ignore): ... this new function, which prepends `/' to
19381         all .gitignore entries before passing them to
19382         insert_sorted_if_absent.
19383
19384 2010-10-16  Bruno Haible  <bruno@clisp.org>
19385
19386         nextafter: Fix configure check.
19387         * modules/nextafter (configure.ac): Correct expected prototype.
19388
19389 2010-10-16  Bruno Haible  <bruno@clisp.org>
19390
19391         termios: Update documentation.
19392         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19393
19394 2010-10-16  Bruno Haible  <bruno@clisp.org>
19395
19396         tests: Make them compile with TinyCC.
19397         * tests/test-strstr.c (main): Remove parentheses around array
19398         initializer.
19399
19400 2010-10-15  Eric Blake  <eblake@redhat.com>
19401
19402         ignore-value: make header idempotent
19403         * lib/ignore-value.h: Add double-inclusion guards.
19404         Reported by Stefan Berger.
19405
19406 2010-10-15  Jim Meyering  <meyering@redhat.com>
19407
19408         GNUmakefile: handle "stable" target, not "major"
19409         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19410         lists in maint.mk and announce-gen.  Without this, "make stable"
19411         would fail to ensure that $(VERSION) is up to date.
19412
19413 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19414
19415         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19416         & co.
19417
19418 2010-10-14  Bruno Haible  <bruno@clisp.org>
19419
19420         vasnprintf: Don't set errno to 0.
19421         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19422         block that sets it to 0.
19423         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19424
19425 2010-10-14  Bruno Haible  <bruno@clisp.org>
19426
19427         socketlib: Fix.
19428         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19429         gl_PREREQ_SYS_H_WINSOCK2.
19430         Reported by Ian Beckwith <ianb@erislabs.net>.
19431
19432 2010-10-13  Jim Meyering  <meyering@redhat.com>
19433
19434         test-select-stdin.c: avoid warn_unused_result warnings
19435         * tests/test-select-stdin.c: Include "macros.h".
19436         ASSERT that read and fflush succeed.
19437
19438 2010-10-13  Jim Meyering  <meyering@redhat.com>
19439
19440         git-version-gen: do require git-VC'd files in cwd
19441         * build-aux/git-version-gen: Reject a git version string
19442         if there are no commits associated with the current directory.
19443         This avoids an unlikely false-positive (unrelated dir whose parent
19444         repository also contains a tag matching v*), as pointed out
19445         by Giuseppe Scrivano in
19446         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19447
19448 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19449
19450         argv-iter: omit nonconforming declaration
19451         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19452         enum arg_iter_err declaration, which doesn't conform to C99.
19453         Solaris 10 cc warns about this.
19454
19455 2010-10-13  Eric Blake  <eblake@redhat.com>
19456
19457         termios: fix compilation on mingw
19458         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19459         (gl_TERMIOS_H): Adjust it on mingw.
19460         * modules/termios (Makefile.am): Substitute new key.
19461         * lib/termios.in.h (includes): Make include_next conditional.
19462         * doc/posix-headers/termios.texi (termios.h): Update
19463         documentation.
19464         Reported by Daniel P. Berrange.
19465
19466 2010-10-13  Jim Meyering  <meyering@redhat.com>
19467
19468         git-version-gen: don't require that .git/ be in the current dir
19469         * build-aux/git-version-gen: Adjust this script so that it works
19470         when run from any working directory beneath the top-level .git/-
19471         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19473
19474         test-select: avoid warn_unused_result warnings
19475         * tests/test-select.c: Include "macros.h".
19476         ASSERT that each call to read, write, and pipe succeeds.
19477         While not technically required, also check each "close".
19478         * modules/select-tests (Files): Add tests/macros.h.
19479
19480         test-symlinkat: remove declaration of unused local
19481         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19482
19483         test-inttostr: avoid shadowing warnings
19484         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19485         and use malloc rather than the stack for the same reason as
19486         mentioned in the comment justifying the other allocation.
19487
19488 2010-10-11  Bruno Haible  <bruno@clisp.org>
19489
19490         stdlib: Allow multiple gnulib generated replacements to coexist.
19491         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19492         Reported by Sam Steingold <sds@gnu.org>.
19493
19494 2010-10-11  Jim Meyering  <meyering@redhat.com>
19495
19496         fix a documentation typo
19497         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19498
19499 2010-10-11  Eric Blake  <eblake@redhat.com>
19500
19501         futimens: work around Solaris 11 bug
19502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19503         * tests/test-futimens.h (test_futimens): Enhance, rather than
19504         weaken test.
19505         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19506
19507 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         Indentation.
19510         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19511         higher-level operators more to the left.
19512
19513 2010-10-11  Jim Meyering  <meyering@redhat.com>
19514
19515         test-futimens: avoid unwarranted test failure on Solaris 5.11
19516         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19517         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19518         because it tries to dereference the NULL name argument.
19519
19520 2010-10-11  Bruno Haible  <bruno@clisp.org>
19521
19522         Indentation.
19523         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19524         indentation.
19525
19526 2010-10-11  Jim Meyering  <meyering@redhat.com>
19527
19528         spawn.in.h: make indentation consistent with parentheses
19529         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19530         Make indentation consistent with parentheses.
19531
19532 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19533
19534         Fix mismatched parens in previous commit
19535         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19536         parens.
19537
19538 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19539
19540         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19541
19542         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19543         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19544         * lib/malloca.c: Include "verify.h".
19545         (verify1): Remove, replacing with a verify call.
19546         * lib/relocwrapper.c (verify1): Likewise.
19547         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19548         Likewise.
19549         * modules/malloca (Depends-on): Add 'verify'.
19550         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19551         * modules/vasnprintf (Depends-on): Add 'verify'.
19552         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19553         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19554         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19555         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19556         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19557         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19558         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19559
19560         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19561
19562         Formerly the style was sometimes 2*X - 1, because the C standard
19563         was wrongly thought to disallow ?: in integral constant expressions.
19564         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19565         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19566         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19567         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19568         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19569         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19570         verify that time_t cannot be floating.
19571
19572 2010-10-08  Eric Blake  <eblake@redhat.com>
19573
19574         time: enforce recent POSIX ruling that time_t is integral
19575         * lib/time.in.h (__time_t_must_be_integral): Detect any
19576         problematic systems, allowing the rest of gnulib to assume POSIX.
19577
19578 2010-10-08  Jim Meyering  <meyering@redhat.com>
19579
19580         fdopendir: fix a bug on systems lacking openat and /proc support
19581         OpenBSD 4.7 is one such system.  The most noticeable effect was
19582         failure of any application making nontrivial use of fts: rm, du,
19583         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19584           ./rm: traversal failed: `a': Bad file descriptor
19585         Debugging that, you see that even though FD 6 was closed just
19586         prior to the opendir call in fd_clone_opendir, its resulting
19587         dir->dd_fd was 8, rather than the expected value of 6:
19588
19589         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19590         93                close (fd);
19591         (gdb) n
19592         94                dir = fd_clone_opendir (dupfd);
19593         (gdb) n
19594         95                saved_errno = errno;
19595         (gdb) p dir->dd_fd
19596         $11 = 8
19597
19598         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19599         The problem is that on OpenBSD, fd_clone_opendir has to resort
19600         to using the old-style save/restore CWD mechanism, due to its
19601         lack of openat/proc support, and *that* would steal the FD (6)
19602         that opendir was supposed to use.
19603
19604         The fix is to squirrel away the desired FD so that save_cwd uses a
19605         different one, and then free the dest FD right before calling opendir.
19606         That guarantees opendir will use the required file descriptor.
19607
19608         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19609
19610 2010-10-08  Bruno Haible  <bruno@clisp.org>
19611
19612         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19613         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19614
19615 2010-10-08  Bruno Haible  <bruno@clisp.org>
19616
19617         nanosleep: Make replacement POSIX compliant.
19618         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19619         is out of range.
19620         Reported by Jim Meyering.
19621
19622 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19623
19624         bootstrap: add hook for altering gnulib.mk, for Bison
19625         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19626         the Bison bootstrapping process can rewrite file names and variables
19627         in this file before later parts of 'bootstrap' use the file.
19628         Bison wants to include lib/gnulib.mk from the top-level makefile,
19629         so it needs the file names in this file to be relative to the top
19630         level, not relative to lib; plus it needs variable names to be
19631         rewritten.
19632         (slurp): Use the new function.
19633
19634         bootstrap: reformat for readability
19635         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19636
19637 2010-10-08  Eric Blake  <eblake@redhat.com>
19638
19639         docs: update cygwin progress
19640         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19641         1.7.7.
19642         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19643         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19644         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19645         * doc/posix-functions/carg.texi (carg): Likewise.
19646         * doc/posix-functions/cargf.texi (cargf): Likewise.
19647         * doc/posix-functions/casin.texi (casin): Likewise.
19648         * doc/posix-functions/casinf.texi (casinf): Likewise.
19649         * doc/posix-functions/casinh.texi (casinh): Likewise.
19650         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19651         * doc/posix-functions/catan.texi (catan): Likewise.
19652         * doc/posix-functions/catanf.texi (catanf): Likewise.
19653         * doc/posix-functions/catanh.texi (catanh): Likewise.
19654         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19655         * doc/posix-functions/ccos.texi (ccos): Likewise.
19656         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19657         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19658         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19659         * doc/posix-functions/cexp.texi (cexp): Likewise.
19660         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19661         * doc/posix-functions/cimag.texi (cimag): Likewise.
19662         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19663         * doc/posix-functions/clog.texi (clog): Likewise.
19664         * doc/posix-functions/clogf.texi (clogf): Likewise.
19665         * doc/posix-functions/conj.texi (conj): Likewise.
19666         * doc/posix-functions/conjf.texi (conjf): Likewise.
19667         * doc/posix-functions/cpow.texi (cpow): Likewise.
19668         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19669         * doc/posix-functions/cproj.texi (cproj): Likewise.
19670         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19671         * doc/posix-functions/creal.texi (creal): Likewise.
19672         * doc/posix-functions/crealf.texi (crealf): Likewise.
19673         * doc/posix-functions/csin.texi (csin): Likewise.
19674         * doc/posix-functions/csinf.texi (csinf): Likewise.
19675         * doc/posix-functions/csinh.texi (csinh): Likewise.
19676         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19677         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19678         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19679         * doc/posix-functions/ctan.texi (ctan): Likewise.
19680         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19681         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19682         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19683         * doc/posix-headers/complex.texi (complex.h): Likewise.
19684
19685 2010-10-07  Jim Meyering  <meyering@redhat.com>
19686
19687         parse-datetime: avoid compilation failure on OpenBSD 4.7
19688         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19689         This works around a compilation failure on OpenBSD 4.7:
19690         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19691
19692 2010-10-07  Eric Blake  <eblake@redhat.com>
19693
19694         docs: update cygwin progress
19695         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19696         1.7.6.
19697         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19698         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19699         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19700         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19701         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19702         Likewise.
19703         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19704         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19705         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19706         Likewise.
19707         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19708         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19709         Likewise.
19710         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19711         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19712         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19713         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19714         Likewise.
19715         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19716         Likewise.
19717         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19718
19719         docs: update parse-datetime history
19720         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19721         documentation of this function's history and alternatives.
19722
19723         cygwin: use more robust version check
19724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19725         exclude an eventual cygwin 1.9.1.
19726         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19728         (gl_FUNC_STRCASESTR): Likewise.
19729         Reported by Bruno Haible.
19730
19731 2010-10-06  Bruno Haible  <bruno@clisp.org>
19732
19733         string, sys_select: Avoid #including large headers unless necessary.
19734         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19735         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19736         OSF/1, BeOS, Haiku.
19737         Reported by Jim Meyering.
19738
19739 2010-10-05  Eric Blake  <eblake@redhat.com>
19740
19741         memmem, strstr, strcasestr: fix bug with long periodic needle
19742         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19743         periodic needle having false positive.
19744         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19745         and cygwin 1.7.7.
19746         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19748         (gl_FUNC_STRCASESTR): Likewise.
19749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19750         * tests/test-memmem.c (main): Expose the bug.
19751         * tests/test-strcasestr.c (main): Likewise.
19752         * tests/test-strstr.c (main): Likewise.
19753         * tests/test-c-strcasestr.c (main): Likewise.
19754         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19755         * doc/posix-functions/strstr.texi (strstr): Likewise.
19756         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19757         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19758
19759 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19760
19761         parse-datetime: do some more renaming
19762         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19763         parse_datetime, not get_date.  Mention the renaming.
19764         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19765         in comments.
19766         * m4/bison.m4: Likewise.
19767
19768 2010-10-05  Eric Blake  <eblake@redhat.com>
19769
19770         parse-datetime: better name than get_date
19771         * NEWS: Reword the deprecation notice.
19772         * modules/get_date: Rename to modules/parse-datetime.
19773         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19774         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19775         * lib/get_date.y: Rename to lib/parse-datetime.y.
19776         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19777         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19778         * doc/getdate.texi: Provide fallback wrapper.
19779         * lib/getdate.h: Move guts, and wrap...
19780         * lib/parse-datetime.h: ...new file.
19781         * lib/parse-datetime.y (get_date): Rename...
19782         (parse_datetime): ...to this.
19783         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19784         (gl_PARSE_DATETIME): ...to this.
19785         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19786         documentation.
19787         * modules/getdate (Files): Provide fallback docs and header.
19788         (Notice, Depends-on): Update references.
19789         * tests/test-parse-datetime.c: Likewise.
19790         * DEPENDENCIES: Likewise.
19791         * MODULES.html.sh (Date and time <time.h>): Likewise.
19792         * doc/parse-datetime.texi (Date input formats)
19793         (Authors of parse_datetime): Likewise.
19794         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19795         (Include): Likewise.
19796         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19797         * gnulib-tool: Likewise.
19798         * m4/bison.m4 (gl_BISON): Likewise.
19799         Suggested by Bruno Haible.
19800
19801 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19802
19803         more ports to Solaris tr, which needs [] around ranges
19804         * gnulib-tool: Solaris tr needs [] around ranges.
19805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19806         * tests/test-pipe-filter-gi1.c (main): Likewise.
19807         * tests/test-pipe-filter-ii1.c (main): Likewise.
19808
19809 2010-10-05  Eric Blake  <eblake@redhat.com>
19810
19811         bootstrap: fix Solaris regression
19812         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19813         around ranges.
19814         Reported by Pádraig Brady.
19815
19816         bootstrap: work with pkg-config
19817         * build-aux/bootstrap (check_versions): Also transliterate - in
19818         prerequisite name.
19819         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19820         prerequisites that were already found, to avoid confusion.
19821         Reported by Justin Clift.
19822
19823         faccessat: remove unused wrappers
19824         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19825         presence of these wrappers dragged in -lgen on Solaris.
19826         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19827
19828 2010-10-05  Jim Meyering  <meyering@redhat.com>
19829
19830         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19831         * Makefile (sc_pragma_columns): New syntax-check rule.
19832
19833 2010-10-04  Bruno Haible  <bruno@clisp.org>
19834
19835         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19836         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19837         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19838         Reported by Bruce Korb and Eric Blake.
19839
19840 2010-10-04  Bruno Haible  <bruno@clisp.org>
19841
19842         threadlib: Make option --with-libpth-prefix work.
19843         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19844         use $LIBPTH, not just -lpth.
19845
19846 2010-10-04  Bruno Haible  <bruno@clisp.org>
19847
19848         Avoid line length limitation from HP NonStop system header files.
19849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19850         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19851         * lib/ctype.in.h: Likewise.
19852         * lib/dirent.in.h: Likewise.
19853         * lib/errno.in.h: Likewise.
19854         * lib/fcntl.in.h: Likewise.
19855         * lib/float.in.h: Likewise.
19856         * lib/getopt.in.h: Likewise.
19857         * lib/iconv.in.h: Likewise.
19858         * lib/inttypes.in.h: Likewise.
19859         * lib/langinfo.in.h: Likewise.
19860         * lib/locale.in.h: Likewise.
19861         * lib/math.in.h: Likewise.
19862         * lib/netdb.in.h: Likewise.
19863         * lib/netinet_in.in.h: Likewise.
19864         * lib/poll.in.h: Likewise.
19865         * lib/pthread.in.h: Likewise.
19866         * lib/pty.in.h: Likewise.
19867         * lib/sched.in.h: Likewise.
19868         * lib/se-selinux.in.h: Likewise.
19869         * lib/search.in.h: Likewise.
19870         * lib/signal.in.h: Likewise.
19871         * lib/spawn.in.h: Likewise.
19872         * lib/stdarg.in.h: Likewise.
19873         * lib/stddef.in.h: Likewise.
19874         * lib/stdint.in.h: Likewise.
19875         * lib/stdio.in.h: Likewise.
19876         * lib/stdlib.in.h: Likewise.
19877         * lib/string.in.h: Likewise.
19878         * lib/strings.in.h: Likewise.
19879         * lib/sys_file.in.h: Likewise.
19880         * lib/sys_ioctl.in.h: Likewise.
19881         * lib/sys_select.in.h: Likewise.
19882         * lib/sys_socket.in.h: Likewise.
19883         * lib/sys_stat.in.h: Likewise.
19884         * lib/sys_time.in.h: Likewise.
19885         * lib/sys_times.in.h: Likewise.
19886         * lib/sys_utsname.in.h: Likewise.
19887         * lib/sys_wait.in.h: Likewise.
19888         * lib/sysexits.in.h: Likewise.
19889         * lib/termios.in.h: Likewise.
19890         * lib/time.in.h: Likewise.
19891         * lib/unistd.in.h: Likewise.
19892         * lib/wchar.in.h: Likewise.
19893         * lib/wctype.in.h: Likewise.
19894         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19895         * modules/ctype (Makefile.am): Likewise.
19896         * modules/dirent (Makefile.am): Likewise.
19897         * modules/errno (Makefile.am): Likewise.
19898         * modules/fcntl-h (Makefile.am): Likewise.
19899         * modules/float (Makefile.am): Likewise.
19900         * modules/getopt-posix (Makefile.am): Likewise.
19901         * modules/iconv-h (Makefile.am): Likewise.
19902         * modules/inttypes (Makefile.am): Likewise.
19903         * modules/langinfo (Makefile.am): Likewise.
19904         * modules/locale (Makefile.am): Likewise.
19905         * modules/math (Makefile.am): Likewise.
19906         * modules/netdb (Makefile.am): Likewise.
19907         * modules/netinet_in (Makefile.am): Likewise.
19908         * modules/poll-h (Makefile.am): Likewise.
19909         * modules/pthread (Makefile.am): Likewise.
19910         * modules/pty (Makefile.am): Likewise.
19911         * modules/sched (Makefile.am): Likewise.
19912         * modules/search (Makefile.am): Likewise.
19913         * modules/selinux-h (Makefile.am): Likewise.
19914         * modules/signal (Makefile.am): Likewise.
19915         * modules/spawn (Makefile.am): Likewise.
19916         * modules/stdarg (Makefile.am): Likewise.
19917         * modules/stddef (Makefile.am): Likewise.
19918         * modules/stdint (Makefile.am): Likewise.
19919         * modules/stdio (Makefile.am): Likewise.
19920         * modules/stdlib (Makefile.am): Likewise.
19921         * modules/string (Makefile.am): Likewise.
19922         * modules/strings (Makefile.am): Likewise.
19923         * modules/sys_file (Makefile.am): Likewise.
19924         * modules/sys_ioctl (Makefile.am): Likewise.
19925         * modules/sys_select (Makefile.am): Likewise.
19926         * modules/sys_socket (Makefile.am): Likewise.
19927         * modules/sys_stat (Makefile.am): Likewise.
19928         * modules/sys_time (Makefile.am): Likewise.
19929         * modules/sys_times (Makefile.am): Likewise.
19930         * modules/sys_utsname (Makefile.am): Likewise.
19931         * modules/sys_wait (Makefile.am): Likewise.
19932         * modules/sysexits (Makefile.am): Likewise.
19933         * modules/termios (Makefile.am): Likewise.
19934         * modules/time (Makefile.am): Likewise.
19935         * modules/unistd (Makefile.am): Likewise.
19936         * modules/wchar (Makefile.am): Likewise.
19937         * modules/wctype (Makefile.am): Likewise.
19938
19939 2010-10-04  Bruno Haible  <bruno@clisp.org>
19940
19941         read-file tests: Avoid a test failure on NonStop Kernel.
19942         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19943         a regular file.
19944         Reported by Joachim Schmitz <schmitz@hp.com>.
19945
19946 2010-10-03  Bruno Haible  <bruno@clisp.org>
19947
19948         gnulib-tool: Fixes for --create-testdir with --libtool.
19949         * gnulib-tool (func_get_automake_snippet): Don't augment
19950         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19951         an executable.
19952         (func_create_testdir): Handle module 'alloca' like func_import.
19953         Reported by Bruce Korb <bruce.korb@gmail.com>.
19954
19955 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19956
19957         Avoid some lines longer than 80 characters.
19958         * lib/stdint.in.h: Break long comment lines.
19959         * lib/math.in.h: Likewise.
19960         (_GL_NUM_UINT_WORDS): New macro, for readability.
19961         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19962         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19963         * lib/stdlib.in.h: Likewise.
19964         * lib/spawn.in.h: Likewise.
19965         * lib/sys_socket.in.h: Update an URL.
19966         * lib/sys_stat.in.h: Break long line.
19967
19968 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19969
19970         Improve pmccabe2html.
19971         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19972         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19973         when the sources change. Remove the line in the HTML about "Used
19974         ranges" (which implied that there might be other unused ranges),
19975         rename "Resume" to "Summary" (easier to understand for more users).
19976         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19977         styles, and some unnecessary blank lines.
19978
19979 2010-10-03  Bruno Haible  <bruno@clisp.org>
19980             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19981
19982         acl: Add support for ACLs on NonStop Kernel.
19983         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19984         Check whether the function aclsort() exists.
19985         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19986         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19987         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19988         (acl_nontrivial [HAVE_ACLSORT]: New function.
19989         (file_has_acl): Implement for NonStop Kernel.
19990         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19991         (qset_acl): Implement for NonStop Kernel.
19992         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19993         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19994         (main): Implement for NonStop Kernel.
19995         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19996         Kernel. Handle this flavor.
19997         * tests/test-set-mode-acl.sh: Likewise.
19998         * tests/test-copy-acl.sh: Likewise.
19999         * tests/test-copy-file.sh: Likewise.
20000
20001 2010-10-03  Bruno Haible  <bruno@clisp.org>
20002
20003         Info about ACLs on NonStop Kernel.
20004         * doc/acl-resources.txt: Add info about NonStop Kernel.
20005         References by Joachim Schmitz <schmitz@hp.com>.
20006
20007 2010-10-02  Bruno Haible  <bruno@clisp.org>
20008
20009         Define missing EDQUOT on NonStop Kernel.
20010         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20011         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20013         missing.
20014         * doc/posix-headers/errno.texi: Mention the NSK bug.
20015         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20016         Reported by Joachim Schmitz <schmitz@hp.com>.
20017
20018 2010-10-02  Bruno Haible  <bruno@clisp.org>
20019
20020         Update doc for POSIX:2008.
20021         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20022         Update URL of POSIX specification.
20023
20024 2010-10-02  Bruno Haible  <bruno@clisp.org>
20025
20026         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20027         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20028         from gnulib, not from Automake.
20029
20030 2010-10-02  Bruno Haible  <bruno@clisp.org>
20031
20032         New module 'system-posix'.
20033         * modules/system-posix: New file.
20034         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20035         module is present.
20036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20037         GNULIB_SYSTEM_POSIX.
20038         * modules/stdlib (Depends-on): Remove sys_wait.
20039         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20040         * doc/posix-functions/system.texi: Mention the new module.
20041         * doc/posix-headers/stdlib.texi: Likewise.
20042         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20043         define test_sys_wait_macros to a no-op.
20044         Reported by Sam Steingold <sds@gnu.org>.
20045
20046 2010-09-30  Bruno Haible  <bruno@clisp.org>
20047
20048         More renaming from 'getdate' to 'get_date'.
20049         * doc/get_date.texi: Renamed from doc/getdate.texi.
20050         * modules/get_date (Files): Update.
20051         * MODULES.html.sh (Date and time <time.h>): Update.
20052         * DEPENDENCIES: Update.
20053         * gnulib-tool: Update comment.
20054         * m4/bison.m4 (gl_BISON): Likewise.
20055         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20056
20057 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20058
20059         bootstrap: support ACLOCAL_FLAGS during aclocal
20060         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20061         can add additional -I dir for third-party .m4 files.
20062
20063 2010-09-30  Eric Blake  <eblake@redhat.com>
20064
20065         bootstrap: use glibtoolize on MacOS
20066         * build-aux/bootstrap (check_versions): Convert libtool into
20067         libtoolize.
20068         (tool search): Move libtool check earlier, and look for
20069         glibtoolize for MacOS.
20070         (gnulib_tool_options): Auto-add --libtool when appropriate.
20071         Reported by Justin Clift.
20072
20073         poll: fix typo that broke test on MacOS
20074         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20075         Reported by Justin Clift.
20076
20077         getdate: rename to get_date
20078         Note: getdate.h is not renamed, to minimize client impact.
20079         * modules/getdate: Mark obsolete.  Move old contents...
20080         * modules/get_date: ...to new module name.
20081         * modules/getdate-tests: Move...
20082         * modules/get_date-tests: ...here.
20083         * m4/getdate.m4: Move...
20084         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20085         * lib/getdate.y: Move...
20086         * lib/get_date.y: ...here.
20087         * tests/test-getdate.c: Move...
20088         * tests/test-get_date.c: ...here.
20089         * doc/posix-functions/getdate.texi (getdate): Update name.
20090         * NEWS: Mention the change.
20091
20092 2010-09-29  Bruno Haible  <bruno@clisp.org>
20093
20094         Separate the module 'waitpid' from the module 'sys_wait'.
20095         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20096         present.
20097         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20098         gl_MODULE_INDICATOR_FOR_TESTS.
20099         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20100         * modules/sys_wait (Depends-on): Remove waitpid.
20101         (Makefile.am): Substitute GNULIB_WAITPID.
20102         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20103         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20104         signature only if the 'waitpid' module is present.
20105         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20106         * NEWS: Mention the change.
20107         * modules/grantpt (Depends-on): Add waitpid.
20108         * modules/wait-process (Depends-on): Likewise.
20109
20110 2010-09-29  Bruno Haible  <bruno@clisp.org>
20111
20112         More tests for module 'sys_wait'.
20113         * modules/sys_wait-c++-tests: New file.
20114         * tests/test-sys_wait-c++.cc: New file.
20115         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20116         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20117
20118 2010-09-29  Bruno Haible  <bruno@clisp.org>
20119
20120         New module 'waitpid'.
20121         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20122         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20123         Don't include <process.h>.
20124         (waitpid): Declare only, using modern idiom.
20125         * m4/waitpid.m4: New file.
20126         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20127         * modules/waitpid: New file.
20128         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20129         (Makefile.am): Update.
20130         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20131
20132 2010-09-28  Bruno Haible  <bruno@clisp.org>
20133
20134         poll: Assume ANSI C.
20135         * lib/poll.c (poll): Use an ANSI C declaration.
20136
20137 2010-09-28  Bruno Haible  <bruno@clisp.org>
20138
20139         poll-h: Create poll.h on all platforms.
20140         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20141         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20142         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20143         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20144         (gl_REPLACE_POLL_H): Don't set POLL_H.
20145         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20146         * modules/poll-h (Depends-on): Add include_next.
20147         (Makefile.am): Create poll.h unconditionally. Substitute also
20148         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20149
20150 2010-09-28  Bruno Haible  <bruno@clisp.org>
20151
20152         Tests for module 'poll-h'.
20153         * modules/poll-h-c++-tests: New file.
20154         * tests/test-poll-h-c++.cc: New file.
20155
20156         Tests for module 'poll-h'.
20157         * modules/poll-h-tests: New file.
20158         * tests/test-poll-h.c: New file.
20159
20160 2010-09-28  Bruno Haible  <bruno@clisp.org>
20161
20162         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20163         * modules/poll-h (Depends-on): Add 'extensions'.
20164
20165 2010-09-28  Bruno Haible  <bruno@clisp.org>
20166
20167         New module 'poll-h'.
20168         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20169         (poll): Use modern idiom.
20170         * modules/poll-h: New file.
20171         * modules/poll (Files): Remove lib/poll.in.h.
20172         (Depends-on): Add poll-h.
20173         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20174         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20175         * m4/poll_h.m4: New file.
20176         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20177         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20178         and invoke gl_REPLACE_POLL_H.
20179         * lib/poll.c: Use common idiom.
20180         * tests/test-poll.c: Likewise.
20181         * doc/posix-headers/poll.texi: Mention the poll-h module.
20182         Suggested by Eric Blake.
20183
20184 2010-09-26  Bruno Haible  <bruno@clisp.org>
20185
20186         sys_wait: Implement WSTOPSIG.
20187         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20188         Reported by Simon Josefsson.
20189
20190 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20191
20192         stdlib, sys_wait: Avoid compilation error on mingw.
20193         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20194
20195 2010-09-26  Bruno Haible  <bruno@clisp.org>
20196
20197         stdlib tests: Avoid code duplication.
20198         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20199         * modules/sys_wait-tests (Files): Likewise.
20200         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20201         * tests/test-stdlib.c: Include test-sys_wait.h.
20202         (main): Invoke test_sys_wait_macros.
20203         * tests/test-sys_wait.c: Include test-sys_wait.h.
20204         (main): Invoke test_sys_wait_macros.
20205
20206 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20207
20208         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20209         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20210         sure Windows sockets are working before calling getaddrinfo.
20211         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20212         * doc/gnulib.texi (Windows sockets): Fix typo.
20213
20214 2010-09-25  Bruno Haible  <bruno@clisp.org>
20215
20216         Tests for module 'regex-quote'.
20217         * modules/regex-quote-tests: New file.
20218         * tests/test-regex-quote.c: New file.
20219
20220         New module 'regex-quote'.
20221         * lib/regex-quote.h: New file.
20222         * lib/regex-quote.c: New file.
20223         * modules/regex-quote: New file.
20224         Suggested by Reuben Thomas <rrt@sc3d.org>.
20225
20226 2010-09-24  Bruno Haible  <bruno@clisp.org>
20227
20228         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20229         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20230
20231 2010-09-23  Bruno Haible  <bruno@clisp.org>
20232
20233         setenv: Relax license.
20234         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20235         Blake.
20236         Requested by Eric Blake.
20237
20238 2010-09-22  Bruno Haible  <bruno@clisp.org>
20239
20240         termios: Relax license.
20241         * modules/termios (License): Change to LGPLv2+.
20242         Requested by Eric Blake.
20243
20244 2010-09-22  Bruno Haible  <bruno@clisp.org>
20245
20246         threadlib: Allow the package to change the default to 'no'.
20247         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20248         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20249         Reported by Paul Eggert.
20250
20251 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20252             Bruno Haible  <bruno@clisp.org>
20253
20254         Fix endless loop in mbmemcasecoll.
20255         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20256         byte.
20257         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20258
20259 2010-09-22  Bruno Haible  <bruno@clisp.org>
20260
20261         Tests for module 'memcoll'.
20262         * modules/memcoll-tests: New file.
20263         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20264
20265         memcoll, xmemcoll: Clarify size vs. length.
20266         * modules/memcoll.c (memcoll0): Clarify specification.
20267         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20268         passed to collate_error.
20269
20270 2010-09-22  Bruno Haible  <bruno@clisp.org>
20271
20272         Tests for module 'memcasecmp'.
20273         * modules/memcasecmp-tests: New file.
20274         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20275
20276 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20277
20278         * lib/pthread.in.h: Add split double-inclusion guard, and include
20279         system <pthread.h> if there is one.  Use @@-style as in other
20280         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20281         pthread.h doesn't.
20282         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20283         (pthread_mutexattr_settype, pthread_mutex_trylock):
20284         New static inline functions, if there's no system <pthread.h>.
20285         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20286         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20287         Approximate with mutexes if the system lacks spinlocks, as in
20288         MacOS.
20289         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20290         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20291         @@-style.  Check for spinlocks separately.
20292         (gl_PTHREAD_DEFAULTS): New macro.
20293         * modules/pthread: Redo to use a more typical style for in.h files.
20294
20295 2010-09-21  Eric Blake  <eblake@redhat.com>
20296
20297         net_if: enhance tests
20298         * tests/test-net_if.c (main): Move signature checks earlier.
20299         Print failures to stderr.
20300         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20301         Document the bug that we do not yet fix.
20302
20303 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20304
20305         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20306         about gnulib, not GSS.
20307
20308 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20309
20310         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20311         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20312         for Emacs.
20313         * build-aux/pmccabe2html: Make Makefile.am example code more
20314         cut-and-paste friendly.
20315
20316 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20317
20318         * tests/test-net_if.c: New file.
20319         * modules/net_if-tests: New file.
20320
20321 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         pthread: add pthread_spin_destroy
20324         * lib/pthread.in.h (pthread_spin_destroy): New function.
20325
20326 2010-09-19  Bruno Haible  <bruno@clisp.org>
20327
20328         gnulib-tool: Fix --help output.
20329         * gnulib-tool (func_usage): Fix help message.
20330         Reported by Reuben Thomas <rrt@sc3d.org>.
20331
20332 2010-09-18  Jim Meyering  <meyering@redhat.com>
20333
20334         maint.mk: avoid unexpanded \n in two diagnostics
20335         * top/maint.mk (sc_prohibit_always_true_header_tests):
20336         Don't use a literal \n in a halt=... assignment.  It would not be
20337         expanded, and the two \n bytes would appear in the diagnostic output
20338         rather than the desired newline.  Use halt=$$(printf ... instead.
20339         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20340
20341 2010-09-18  Bruno Haible  <bruno@clisp.org>
20342
20343         netinet_in: Doc tweak.
20344         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20345         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20346
20347 2010-09-18  Jim Meyering  <meyering@redhat.com>
20348
20349         init.sh: correct an outdated comment
20350         * tests/init.sh (create_exe_shims_):  s/function/alias/
20351
20352         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20353         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20354         a file named "*.exe" is removed between the glob expansion and the
20355         processing of that oddly named file.
20356
20357 2010-09-17  Eric Blake  <eblake@redhat.com>
20358
20359         mirbsd: add some more support
20360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20361         in BSD family.
20362         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20363         devices as OpenBSD.
20364         * m4/host-os.m4 (mirbsd): Add MirBSD.
20365
20366         tests: fix unportable assumption on sys/wait.h
20367         * tests/test-sys_wait.c (main): Relax test.
20368         * tests/test-stdlib.c (main): Likewise.
20369
20370         init.sh: accomodate directory with no .exes
20371         * tests/init.sh: Accomodate directory containing only scripts.
20372
20373         tests: avoid compiler warning
20374         * tests/test-stdlib.c (main): Use the variable.
20375
20376         fdutimens, fdutimensat: update signature, again
20377         * lib/utimens.h (gl_futimens): Delete, and move signature...
20378         (fdutimens): ...here.
20379         (fdutimensat): Rearrange signature.
20380         (lutimensat): Rename variable for clarity.
20381         * lib/fdutimensat.c (fdutimensat): Update signature.
20382         * lib/utimens.c (fdutimens): Likewise.
20383         (gl_futimens): Delete.
20384         (utimens, lutimens): Update callers.
20385         * lib/futimens.c (futimens): Likewise.
20386         * tests/test-fdutimensat.c: Likewise.
20387         * tests/test-utimens.c: Likewise.
20388         * tests/test-futimens.h: Update comment.
20389         * NEWS: Mention this.
20390         Suggested by Paul Eggert.
20391
20392 2010-09-17  Bruno Haible  <bruno@clisp.org>
20393
20394         Take over the maintenance of some older macros from Autoconf.
20395         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20396         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20397         GNU Autoconf.
20398         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20399         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20400
20401 2010-09-17  Eric Blake  <eblake@redhat.com>
20402
20403         fdutimensat: drop atflag validation
20404         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20405         with valid fd, to close a race scenario where futimens is
20406         unsupported and FILE was replaced by a symlink.
20407         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20408         accordingly.
20409         Suggested by Paul Eggert.
20410
20411 2010-09-16  Bruno Haible  <bruno@clisp.org>
20412
20413         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20414         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20415
20416 2010-09-16  Bruno Haible  <bruno@clisp.org>
20417
20418         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20419         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20420         login_tty exists.
20421         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20422
20423 2010-09-16  Bruno Haible  <bruno@clisp.org>
20424
20425         login_tty: Make the replacement code work on BSD systems.
20426         * lib/login_tty.c: Include <sys/ioctl.h>.
20427         (login_tty): Use ioctl TIOCSCTTY when available.
20428         * modules/login_tty (Depends-on): Add sys_ioctl.
20429         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20430
20431 2010-09-16  Bruno Haible  <bruno@clisp.org>
20432
20433         login_tty: Stricter unit test.
20434         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20435         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20436         and tcgetsid() after login_tty.
20437         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20438
20439 2010-09-16  Bruno Haible  <bruno@clisp.org>
20440
20441         New module 'tcgetsid'.
20442         * lib/tcgetsid.c: New file.
20443         * m4/tcgetsid.m4: New file.
20444         * modules/tcgetsid: New file.
20445         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20446         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20447         GNULIB_TCGETSID, HAVE_TCGETSID.
20448         * lib/termios.in.h: Include <sys/types.h>.
20449         (tcgetsid): New declaration.
20450         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20451         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20452         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20453         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20454
20455 2010-09-16  Bruno Haible  <bruno@clisp.org>
20456
20457         Tests for module 'termios'.
20458         * modules/termios-c++-tests: New file.
20459         * modules/termios-tests: New file.
20460         * tests/test-termios-c++.cc: New file.
20461         * tests/test-termios.c: New file.
20462
20463         New module 'termios'.
20464         * modules/termios: New file.
20465         * lib/termios.in.h: New file.
20466         * m4/termios_h.m4: New file.
20467         * doc/posix-headers/termios.texi: Mention the new module.
20468
20469 2010-09-16  Eric Blake  <eblake@redhat.com>
20470
20471         fdutimensat: add an atflag parameter
20472         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20473         * lib/utimens.h (fdutimensat): Update prototype.
20474         * tests/test-fdutimensat.c: Adjust test to match.
20475         * NEWS: Document the change.
20476         Suggested by Paul Eggert.
20477
20478 2010-09-16  Bruno Haible  <bruno@clisp.org>
20479
20480         Fix typos in comments.
20481         * lib/striconveh.h: Fix typo in comment.
20482         * lib/login_tty.c (login_tty): Likewise.
20483
20484 2010-09-15  Bruno Haible  <bruno@clisp.org>
20485
20486         stdlib: clarify MirBSD WEXITSTATUS bug
20487         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20488         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20489
20490 2010-09-15  Eric Blake  <eblake@redhat.com>
20491
20492         stdlib: work around MirBSD WEXITSTATUS bug
20493         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20494         * modules/stdlib (Depends-on): Add sys_wait.
20495         * tests/test-sys_wait.c (main): Enhance test.
20496         * tests/test-stdlib.c (main): Likewise.
20497         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20498
20499         docs: mention MacOS issue with WEXITSTATUS(constant)
20500         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20501         issue.
20502         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20503
20504         strnlen: add tests
20505         * modules/strnlen-tests: New file.
20506         * tests/test-strnlen.c: Likewise.
20507
20508 2010-09-14  Bruno Haible  <bruno@clisp.org>
20509
20510         unistr/base: Avoid link errors when module 'libunistring' is also used.
20511         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20512         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20513         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20514         Declare also when HAVE_LIBUNISTRING is set.
20515         Reported by Pádraig Brady <P@draigbrady.com>.
20516
20517 2010-09-14  Eric Blake  <eblake@redhat.com>
20518
20519         test-rawmemchr: make more robust
20520         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20521         (Depends-on, configure.ac): Add needed prerequisites to use it.
20522         * modules/memchr-tests (Files, Depends-on, configure.ac):
20523         Likewise, to avoid implicit reliance on memchr module prereqs.
20524         * tests/test-memchr.c (main): Ensure proper masking.
20525         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20526         reads.
20527
20528         memchr: detect glibc Alpha bug
20529         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20530         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20531         Alpha.
20532         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20533         * tests/test-memchr.c (main): Enhance test.
20534         Reported by Nelson H. F. Beebe.
20535
20536 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20537
20538         fts, getcwd, glob: audit for dirfd returning -1
20539         * lib/fts.c (opendir): Remove #define; no longer used.
20540         (opendirat): New arg PDIR_FD.  All callers changed.
20541         (fts_build, _opendir2): Use new opendirat to avoid the need for
20542         dirfd, or for checking whether dirfd returns a negative value.
20543         Don't use opendir; always use openat followed by fdopendir.
20544         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20545         it.
20546         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20547         returns -1 here.
20548         * modules/fts (Depends-on): Remove dirfd.
20549         * modules/getcwd (Depends-on): Likewise.
20550
20551 2010-09-13  Eric Blake  <eblake@redhat.com>
20552
20553         float: fix broken MirBSD header
20554         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20555         * doc/posix-headers/float.texi (float.h): Document it.
20556
20557 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20558
20559         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20560         * lib/fts.c (opendirat): New arg extra_flags.
20561         (__opendir2): Use it to avoid following symlinks when opening
20562         a directory, if symlinks are not supposed to be followed.  See
20563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20564
20565         fdopendir: preserve argument fd before returning
20566         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20567         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20568         (fdopendir): Use them, arranging for FD to be open to the same
20569         directory that it was when it started.  (It might be temporarily
20570         closed while fdopendir is running, so this not thread- or
20571         signal-safe.)  Be careful to do the right thing even when file
20572         descriptors are scarce and dup fails with errno == EMFILE.  See
20573         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20574
20575 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20576
20577         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20578         * NEWS: Document change.
20579         * m4/regex.m4: Disable test for regoff_t size.
20580
20581 2010-09-13  Jim Meyering  <meyering@redhat.com>
20582
20583         fts: don't operate on an invalid file descriptor after failed dup
20584         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20585         negative file descriptor.
20586
20587 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20588
20589         savedir: add streamsavedir, deprecate fdsavedir
20590         * NEWS: Mention deprecation of fdsavedir.
20591         * lib/savedir.c (streamsavedir): New extern function, whose name
20592         ends in "savedir" to be consistent with the others.  This differs
20593         from savedirstream in that it doesn't close its argument.  The
20594         next version of GNU tar will use this instead of fdsavedir, to
20595         avoid some race conditions and conserve file descriptors.
20596         (savedirstream): Reimplement as a wrapper around streamsavedir.
20597         (fdsavedir): Add a comment deprecating this function.  As far as
20598         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20599         * lib/savedir.h (streamsavedir): New decl.
20600         (fdsavedir): Add a comment deprecating this.
20601
20602 2010-09-10  Bruno Haible  <bruno@clisp.org>
20603
20604         langinfo: Fix last commit.
20605         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20606         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20608
20609 2010-09-10  Bruno Haible  <bruno@clisp.org>
20610
20611         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20612         * lib/progreloc.c (O_EXEC): Define fallback.
20613
20614 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20615
20616         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20617         * NEWS: Document recent changes to fcntl-h.
20618         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20619         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20620         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20621         Similarly for O_SEARCH; this last was already true, but not documented.
20622         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20623         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20624         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20625         Likewise.
20626         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20627         is zero, not whether it is defined.
20628         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20629         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20630         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20631
20632 2010-09-10  Bruno Haible  <bruno@clisp.org>
20633
20634         langinfo, nl_langinfo: Fix for IRIX 5.3.
20635         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20636         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20637         HAVE_LANGINFO_YESEXPR.
20638         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20639         HAVE_LANGINFO_YESEXPR.
20640         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20641         HAVE_LANGINFO_T_FMT_AMPM is 0.
20642         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20643         HAVE_LANGINFO_YESEXPR is 0.
20644         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20645         NOEXPR.
20646         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20647         * doc/posix-functions/nl_langinfo.texi: Likewise.
20648         Reported by Eric Blake.
20649
20650 2010-09-10  Bruno Haible  <bruno@clisp.org>
20651
20652         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20653         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20654         on FreeBSD 8.0 and OpenBSD 4.6.
20655         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20656         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20657         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20658         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20659         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20660         ac_includes_default.
20661         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20662
20663 2010-09-09  Eric Blake  <eblake@redhat.com>
20664
20665         strsignal: work around NetBSD bug
20666         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20667         * lib/string.in.h (includes): Likewise.
20668         * doc/posix-functions/strsignal.texi (strsignal): Document the
20669         bug.
20670         Reported by Nelson H. F. Beebe.
20671
20672         gnulib-tool: work with NetBSD /bin/sh
20673         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20674         (func_get_description, func_get_comment, func_get_status)
20675         (func_get_notice, func_get_applicability, func_get_filelist)
20676         (func_get_dependencies, func_get_autoconf_early_snippet)
20677         (func_get_autoconf_snippet, func_get_automake_snippet)
20678         (func_get_include_directive, func_get_link_directive)
20679         (func_get_license, func_get_maintainer, func_import): Avoid
20680         shell syntax errors from parsing syntax extensions.
20681
20682 2010-09-09  Bruno Haible  <bruno@clisp.org>
20683
20684         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20685         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20686         a reliable way to determine whether the 'alias' command works.
20687
20688 2010-09-08  Jim Meyering  <meyering@redhat.com>
20689
20690         init.sh: penalize a set-x-impaired shell; don't disqualify it
20691         * tests/init.sh: Too many shells corrupt application stderr when
20692         you set -x, so we can't afford to disqualify them, since at least
20693         on Irix-6.5, that would disqualify all bourne shells.
20694         Instead, use a two-pass approach.
20695         On the first pass, try to find a shell that meets the stricter
20696         condition that set -x does not corrupt stderr.
20697         If no shell meets the stricter condition, retest each candidate
20698         shell, but without that extra condition.  Finally, when
20699         VERBOSE=yes is requested and set -x might cause trouble, simply
20700         issue a warning and refrain from enabling debug output.
20701
20702 2010-09-08  Eric Blake  <eblake@redhat.com>
20703
20704         unsetenv: fix OpenBSD bug
20705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20706         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20707         documentation.
20708         Reported by Jim Meyering.
20709
20710         strtod: work around IRIX 6.5 bug
20711         * lib/strtod.c (strtod): Reparse number on shorter string if
20712         exponent parse was invalid.
20713         * tests/test-strtod.c (main): Add check for "0x1p 2".
20714         Reported by Tom G. Christensen.
20715
20716         getopt: optimize previous patch
20717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20718         empty variable.  Speed up awk script.
20719         Reported by Paolo Bonzini.
20720
20721 2010-09-08  Jim Meyering  <meyering@redhat.com>
20722
20723         test.sh: disqualify shells for which set -x corrupts stderr
20724         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20725         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20726         appear in stderr output.  For example, this command:
20727             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20728         prints "P=1" on those two systems:
20729
20730 2010-09-08  Bruno Haible  <bruno@clisp.org>
20731
20732         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20733         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20734         commands, because some shells ignore redirections when there is an
20735         error in the command lookup.
20736         Reported by Eric Blake.
20737
20738 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20739
20740         * lib/regex.h: Fix a mention of `regex_compile' (should be
20741         `re_compile_pattern').
20742         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20743         (re_set_registers): Correct name of parameter in comment.
20744
20745         * doc/regex.texi: Add documentation for missing syntax flags.
20746         Remove commented-out documentation of defunct syntax option
20747         RE_NO_EMPTY_ALTS.
20748         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20749         Add documentation of re_set_registers.
20750         Document trick to re-use a pattern buffer by setting fastmap manually.
20751         Update documentation of struct re_pattern_buffer per public members.
20752         Uncomment documentation of equivalence class operators and
20753         collating symbol operators, since they are now implemented,
20754         Explain leftmost-longest matching in relation to alternatives.
20755         Tidy documentation of substring matching.
20756         Remove POSIX documentation, which is done better in
20757         glibc, and refer the reader there. Keep BSD API documentation, as
20758         that is not readily available elsewhere.
20759
20760 2010-09-07  Eric Blake  <eblake@redhat.com>
20761
20762         getopt: handle POSIXLY_CORRECT set but not exported
20763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20764         export state of POSIXLY_CORRECT, due to bash set -o posix.
20765         Reported by Dustin J. Mitchell.
20766
20767 2010-09-05  Bruno Haible  <bruno@clisp.org>
20768
20769         gnulib-tool: Highlight the changed options.
20770         * gnulib-tool (func_usage): Display the --import, --add-import,
20771         --remove-import explanations in bold font.
20772
20773 2010-09-06  Karl Berry  <karl@gnu.org>
20774
20775         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20776
20777 2010-09-05  Bruno Haible  <bruno@clisp.org>
20778
20779         uniwidth/width: Update comment.
20780         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20781         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20782
20783 2010-09-05  Bruno Haible  <bruno@clisp.org>
20784
20785         isinf, isnan: Relax license.
20786         * modules/isinf (License): Change from GPL to LGPL, with consent from
20787         Ben Pfaff.
20788         * modules/isnan (License): Likewise.
20789         Requested by Ludovic Courtès.
20790
20791 2010-09-04  Bruno Haible  <bruno@clisp.org>
20792
20793         gnulib-tool: Help migration from --import to --add-import or --update.
20794         * gnulib-tool: Emit a verbose error message when --import is used
20795         without any module name.
20796
20797 2010-09-04  Bruno Haible  <bruno@clisp.org>
20798
20799         Update doc about gnulib-tool.
20800         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20801         'gnulib-tool --update' in more detail.
20802         Reported by Eric Blake.
20803
20804 2010-09-04  Bruno Haible  <bruno@clisp.org>
20805
20806         gnulib-tool: Change --import. New options --add/remove-import.
20807         * gnulib-tool: New options --add-import, --remove-import.
20808         (func_usage): Document them.
20809         (have_associative): Define always.
20810         (func_import): In import mode, don't merge the specified settings with
20811         the cached settings. Implement remove-import mode.
20812         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20813         Explain when to use them versus --import.
20814         (Simple update): Use --add-import instead of --import.
20815         * NEWS: Mention the change.
20816
20817 2010-09-04  Bruno Haible  <bruno@clisp.org>
20818
20819         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20820         separate gnulib.mk.
20821
20822 2010-09-04  Bruno Haible  <bruno@clisp.org>
20823
20824         gnulib-tool: Don't talk about CVS any more.
20825         * gnulib-tool (func_usage, func_import): Write "version control"
20826         instead of CVS.
20827
20828 2010-09-04  Jim Meyering  <meyering@redhat.com>
20829
20830         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20831         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20832         false positives (whose names may be ill-chosen) when searching
20833         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20834         would cause a false-positive.
20835
20836         avoid coreutils "make distcheck" failure
20837         Coreutils tests with an absolute build directory name that contains
20838         a space.  Not quoting this directory name caused a failure.
20839         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20840         * tests/test-vc-list-files-cvs.sh: Likewise.
20841
20842 2010-09-04  Bruno Haible  <bruno@clisp.org>
20843
20844         gnulib-tool: Avoid error when run in a package without Makefile.am.
20845         * gnulib-tool: When collecting the m4dirs in a package that does not
20846         have a Makefile.am, eliminate those directories that contain no
20847         gnulib-cache.m4. Fix expression that counts these directories.
20848
20849 2010-09-04  Bruno Haible  <bruno@clisp.org>
20850
20851         update-copyright test: Improve output when perl is missing or too old.
20852         * tests/test-update-copyright.sh: Move test of Perl version down after
20853         the test whether Perl exists. Provide an explanation relating Perl's
20854         error message to Automake's SKIP: message.
20855
20856 2010-09-04  Bruno Haible  <bruno@clisp.org>
20857
20858         Don't augment PATH in TESTS_ENVIRONMENT.
20859         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20860         set abs_aux_dir instead of augmenting PATH.
20861         * modules/vc-list-files-tests (Makefile.am): Likewise.
20862         * tests/test-update-copyright.sh: Augment PATH here.
20863         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20864         path_prepend_.
20865         * tests/test-vc-list-files-git.sh: Likewise.
20866
20867 2010-09-04  Jim Meyering  <meyering@redhat.com>
20868
20869         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20870         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20871
20872 2010-09-04  Bruno Haible  <bruno@clisp.org>
20873
20874         strdup: Fix compilation error in C++ mode.
20875         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20876         the macro.
20877
20878 2010-09-04  Bruno Haible  <bruno@clisp.org>
20879
20880         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20881         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20882         macro into a function.
20883         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20884
20885 2010-09-04  Bruno Haible  <bruno@clisp.org>
20886
20887         Set PATH_SEPARATOR the same way autoconf does.
20888         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20889         the value of PATH_SEPARATOR the same way autoconf-generated configure
20890         scripts do.
20891         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20892         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20893
20894 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20895
20896         Set PATH_SEPARATOR the same way autoconf does.
20897         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20898         the same way autoconf-generated configure scripts do.
20899         * posix-modules: Likewise.
20900
20901 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         hash: fix safe_hasher const typo
20904         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20905         const; otherwise, there is a type error later.
20906
20907 2010-09-02  Jim Meyering  <meyering@redhat.com>
20908
20909         test-update-copyright.sh: require perl 5.8.0
20910         * tests/test-update-copyright.sh: Require 5.8.0,
20911         which Tom G. Christensen has confirmed is adequate,
20912         while 5.6.1 is not.
20913
20914 2010-09-02  Eric Blake  <eblake@redhat.com>
20915
20916         tests: init.sh improvements for re-exec'ing with zsh
20917         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20918         -vx through shell re-exec.
20919         Reported by Tom G. Christensen.
20920
20921         wctype: fix typo in previous commit
20922         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20923         Reported by Ludovic Courtès.
20924
20925 2010-09-02  Jim Meyering  <meyering@redhat.com>
20926
20927         test-update-copyright.sh: skip test if Perl is too old
20928         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20929         Reported by Tom G. Christensen.
20930
20931 2010-09-02  Bruno Haible  <bruno@clisp.org>
20932
20933         wctype: Avoid compilation error on IRIX 6.5.30.
20934         * lib/wctype.in.h (iswblank): Declare with a replacement if
20935         REPLACE_ISWBLANK is set.
20936         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20937         declared. Set REPLACE_ISWBLANK.
20938         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20939         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20940         * doc/posix-headers/wctype.texi: Likewise.
20941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20942
20943 2010-09-01  Bruno Haible  <bruno@clisp.org>
20944
20945         New module 'socketlib'.
20946         * modules/socketlib: New file.
20947         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20948         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20949         * modules/sockets (Depends-on): Add socketlib.
20950         Suggested by Sam Steingold <sds@gnu.org>.
20951
20952 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20955
20956         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20957         when one needs search access to a directory but not read access.
20958         On systems where it is available, it works in some cases where
20959         O_RDONLY does not, namely on directories that are searchable but
20960         not readable, and which need only to be searchable.  If O_SEARCH
20961         is not available, fall back to the traditional method of using
20962         O_RDONLY.
20963
20964         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20965         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20966         when opening a directory that needs only to be searchable.
20967         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20968         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20969         * lib/openat-proc.c (openat_proc_name): Likewise.
20970         * lib/openat.c (openat_needs_fchdir): Likewise.
20971         * lib/save-cwd.c (save_cwd): Likewise.
20972         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20973
20974 2010-08-28  Bruno Haible  <bruno@clisp.org>
20975
20976         New module 'host-cpu-c-abi'.
20977         * modules/host-cpu-c-abi: New file.
20978         * m4/host-cpu-c-abi.m4: New file, based on part of
20979         clisp/src/m4/general.m4.
20980         Requested by Sam Steingold <sds@gnu.org>.
20981
20982 2010-08-31  Eric Blake  <eblake@redhat.com>
20983         and Jim Meyering  <meyering@redhat.com>
20984
20985         hash: factor, and guard against misbehaving hasher function
20986         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20987         of table->hasher's return value.  Also protect against a hash value
20988         so large that adding it to table->bucket results in a NULL pointer.
20989         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20990         Use it in place of open-coded check-and-abort.
20991
20992 2010-08-30  Bruno Haible  <bruno@clisp.org>
20993
20994         hash: silence spurious clang warning
20995         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20996         Reported by Eric Blake.
20997
20998 2010-08-30  Eric Blake  <eblake@redhat.com>
20999
21000         strstr, memmem, strcasestr: avoid leaked shell message
21001         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21002         FreeBSD.
21003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21005
21006         tests: silence clang warning
21007         * tests/test-malloca.c (do_allocation): Avoid dead store.
21008
21009 2010-08-29  Bruno Haible  <bruno@clisp.org>
21010
21011         gettext: Fix recent mistake.
21012         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21013
21014 2010-08-29  Bruno Haible  <bruno@clisp.org>
21015
21016         selinux-h: Offer a --without-selinux option.
21017         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21018         --without-selinux was specified, skip all tests and define
21019         HAVE_SELINUX_SELINUX_H to 0.
21020         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21021         set LIB_SELINUX to empty.
21022         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21023         gl_LIBSELINUX. If --without-selinux was specified, replace
21024         selinux/context.h.
21025         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21026
21027 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21028             Bruno Haible  <bruno@clisp.org>
21029
21030         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21031         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21032         of HAVE_REALLOC.
21033         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21034         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21035         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21036         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21037
21038 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21039             Bruno Haible  <bruno@clisp.org>
21040
21041         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21042         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21043         HAVE_CALLOC.
21044         * lib/xmalloc.c: Update accordingly.
21045         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21046         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21047         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21048
21049 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21050             Bruno Haible  <bruno@clisp.org>
21051
21052         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21053         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21054         HAVE_MALLOC.
21055         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21056         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21057         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21058
21059 2010-08-29  Bruno Haible  <bruno@clisp.org>
21060
21061         Update modules list.
21062         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21063         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21064         (String handling <string.h>): Add astrxfrm.
21065         (File system functions): Add readlinkat.
21066
21067 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21068
21069         Tests for module 'realloc-gnu'.
21070         * modules/realloc-gnu-tests: New file.
21071         * tests/test-realloc-gnu.c: New file.
21072
21073         Tests for module 'calloc-gnu'.
21074         * modules/calloc-gnu-tests: New file.
21075         * tests/test-calloc-gnu.c: New file.
21076
21077         Tests for module 'malloc-gnu'.
21078         * modules/malloc-gnu-tests: New file.
21079         * tests/test-malloc-gnu.c: New file.
21080
21081 2010-08-28  Bruno Haible  <bruno@clisp.org>
21082
21083         Rename module 'realloc' -> 'realloc-gnu'.
21084         * modules/realloc-gnu: New file, copied from modules/realloc.
21085         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21086         obsolete.
21087         * modules/mgetgroups (Depends-on): Update.
21088         * doc/posix-functions/realloc.texi: Update.
21089         * NEWS: Mention the change.
21090
21091         Rename module 'calloc' -> 'calloc-gnu'.
21092         * modules/calloc-gnu: New file, copied from modules/calloc.
21093         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21094         obsolete.
21095         * doc/posix-functions/calloc.texi: Update.
21096         * NEWS: Mention the change.
21097
21098         Rename module 'malloc' -> 'malloc-gnu'.
21099         * modules/malloc-gnu: New file, copied from modules/malloc.
21100         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21101         obsolete.
21102         * modules/argp (Depends-on): Update.
21103         * modules/regex (Depends-on): Update.
21104         * doc/posix-functions/malloc.texi: Update.
21105         * NEWS: Mention the change.
21106
21107 2010-08-28  Eric Blake  <eblake@redhat.com>
21108
21109         pread, pwrite: add missing dependency
21110         * modules/pread (Depends-on): Add extensions.
21111         * modules/pwrite (Depends-on): Likewise.
21112
21113 2010-08-28  Bruno Haible  <bruno@clisp.org>
21114
21115         unistr/u*-strchr: Fix tests dependencies.
21116         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21117         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21118         Reported by Ian Beckwith <ianb@erislabs.net>.
21119
21120 2010-08-28  Bruno Haible  <bruno@clisp.org>
21121
21122         read-file: Don't occupy too much unused memory.
21123         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21124
21125 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21126             Eric Blake  <eblake@redhat.com>
21127             Bruno Haible  <bruno@clisp.org>
21128
21129         read-file: Avoid memory reallocations with regular files.
21130         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21131         (fread_file): With regular files, use the remaining length as the
21132         initial buffer size.  Check against overflow.
21133         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21134         sys_stat.
21135
21136 2010-08-28  Bruno Haible  <bruno@clisp.org>
21137
21138         ftello: Relax license.
21139         * modules/ftello (License): Relax to LGPLv2+.
21140         Reported by Eric Blake.
21141
21142 2010-08-28  Bruno Haible  <bruno@clisp.org>
21143
21144         Avoid relocwrapper link errors due to gnulib replacement functions.
21145         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21146         function.
21147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21148
21149 2010-08-28  Bruno Haible  <bruno@clisp.org>
21150
21151         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21152         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21153         defined.
21154         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21155         Suggested by Eric Blake.
21156
21157 2010-08-28  Bruno Haible  <bruno@clisp.org>
21158
21159         sys_socket, netdb: Ensure socklen_t gets defined.
21160         * modules/sys_socket (Depends-on): Add socklen.
21161         * modules/netdb (Depends-on): Likewise.
21162         * modules/getaddrinfo (Depends-on): Remove socklen.
21163         * modules/getsockopt (Depends-on): Likewise.
21164         * modules/setsockopt (Depends-on): Likewise.
21165         * tests/test-sys_socket.c: Check that socklen_t is defined.
21166         * tests/test-netdb.c: Likewise.
21167         * m4/socklen.m4: Update comments.
21168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21169
21170 2010-08-27  Eric Blake  <eblake@redhat.com>
21171
21172         login_tty: add missing dependency
21173         * modules/login_tty (Depends-on): Add pty.
21174
21175 2010-08-26  Eric Blake  <eblake@redhat.com>
21176
21177         lib-symbol-versions: fix m4 quoting
21178         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21179         format for AC_LINK_IFELSE.
21180
21181         glob: fix compile test
21182         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21183
21184         btowc: fix missing file
21185         * modules/btowc (Files): Also ship locale-fr.m4.
21186
21187         lseek: fix link test
21188         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21189         AC_LINK_IFELSE.
21190
21191         include_next: silence autoconf 2.68 warning
21192         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21193         AC_COMPILE_IFELSE as special.
21194         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21195         autoconf < 2.68.
21196
21197         acl: fix compilation test
21198         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21199         AC_COMPILE_IFELSE.
21200
21201 2010-08-26  Bruno Haible  <bruno@clisp.org>
21202
21203         Modernize AC_TRY_RUN invocations.
21204         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21205         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21206         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21207         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21208         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21209         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21211         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21212         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21213         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21215         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21216         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21217         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21219         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21220         gl_MBRLEN_NUL_RETVAL): Likewise.
21221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21223         Likewise.
21224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21225         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21226         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21227         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21228         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21229         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21230         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21231         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21232         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21233         Likewise.
21234         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21235         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21237         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21238         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21240         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21241         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21242         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21244
21245 2010-08-26  Bruno Haible  <bruno@clisp.org>
21246
21247         Modernize AC_TRY_LINK invocations.
21248         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21249         AC_TRY_LINK.
21250         * m4/argp.m4 (gl_ARGP): Likewise.
21251         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21252         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21253         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21254         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21255         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21256         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21257         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21258         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21259         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21260         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21261         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21262         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21263         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21264         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21265         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21266         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21267         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21268         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21269         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21270         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21271         Likewise.
21272         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21273         Likewise.
21274         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21275         Likewise.
21276         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21277         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21278         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21279         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21280         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21281         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21282         * m4/servent.m4 (gl_SERVENT): Likewise.
21283         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21284         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21285         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21286         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21287         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21288         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21289         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21290         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21291         * modules/tsearch-tests (configure.ac): Likewise.
21292
21293 2010-08-26  Bruno Haible  <bruno@clisp.org>
21294
21295         Modernize AC_TRY_COMPILE invocations.
21296         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21297         AC_TRY_COMPILE.
21298         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21299         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21300         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21301         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21302         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21303         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21304         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21305         * m4/lock.m4 (gl_LOCK): Likewise.
21306         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21307         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21308         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21309         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21310         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21311         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21312         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21314         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21315         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21316         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21317         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21318         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21319         extraneous semicolon.
21320
21321 2010-08-26  Jim Meyering  <meyering@redhat.com>
21322
21323         stat-time: relax license LGPL
21324         * modules/stat-time (License): Change from GPL to LGPL,
21325         with consent from all contributors, for use in libguile.
21326         Requested by Ludovic Courtès.
21327
21328 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21329
21330         poll: return immediately on POLLHUP.
21331         * lib/poll.c (poll): Always set timeout before wait_timeout is
21332         computed.
21333
21334 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21335
21336         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21337         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21338         rmdir ("dir/.//"), unlinkat.
21339
21340 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21341
21342         stdbool: avoid spurious failure with modern xlc
21343         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21344
21345 2010-08-24  Bruno Haible  <bruno@clisp.org>
21346
21347         getloadavg: simplify code
21348         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21349         gl_have_func. Update comments.
21350
21351 2010-08-24  Eric Blake  <eblake@redhat.com>
21352
21353         getloadavg: don't define SVR4 on cygwin
21354         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21355         only define SVR4 when -lkvm is required.
21356         Reported by Yaakov Selkowitz.
21357
21358 2010-08-24  Bruno Haible  <bruno@clisp.org>
21359
21360         priv-set: fix comment
21361         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21362
21363 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         priv-set: fix comments
21366         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21367         to match code, as suggested by David Bartley in:
21368         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21369
21370 2010-08-23  Eric Blake  <eblake@redhat.com>
21371
21372         stdbool: avoid rejecting clang
21373         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21374         * tests/test-stdbool.c: Enable more tests if using the system
21375         <stdbool.h> instead of the gnulib replacement.
21376         (main): Move xlc bug test to a runtime test for all compilers.
21377         Reported by Anders Kaseorg.
21378
21379         argz: fix shell quoting issue
21380         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21381         Reported by Charles Wilson.
21382
21383 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21384             Erik Faye-Lund <kusmabite@gmail.com>
21385
21386         poll, select: handle ERROR_BROKEN_PIPE.
21387         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21388         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21389         * lib/select.c (win32_compute_revents): Do not mark a pipe
21390         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21391
21392 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21393
21394         fts: allow compilation with C++
21395         * lib/fts_.h: Specify extern "C" linkage with C++.
21396
21397 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21398
21399         Fix gnulib-tool sed script de-commentation for AIX sed.
21400         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21401         sed.
21402
21403 2010-08-17  Eric Blake  <eblake@redhat.com>
21404
21405         test-stddef: test for (some) offsetof bugs
21406         * tests/test-stddef.c: Enhance test to ensure correct type of
21407         offsetof.
21408         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21409         that we are not fixing at this time.
21410
21411 2010-08-15  Bruno Haible  <bruno@clisp.org>
21412
21413         stpncpy: Allow stpncpy to be defined as a macro.
21414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21415         if it's already correctly declared.
21416         * lib/string.in.h (stpncpy): Undefine before redefining.
21417         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21418
21419 2010-08-14  Bruno Haible  <bruno@clisp.org>
21420
21421         Rename module 'memxfrm' to 'amemxfrm'.
21422         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21423         (amemxfrm): Renamed from memxfrm.
21424         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21425         (amemxfrm): Renamed from memxfrm.
21426         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21427         * NEWS: Mention the change.
21428         * MODULES.html.sh (String handling <string.h>): Update.
21429         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21430         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21431         * lib/unicase/u16-casexfrm.c: Likewise.
21432         * lib/unicase/u32-casexfrm.c: Likewise.
21433         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21434         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21435         * lib/uninorm/u16-normxfrm.c: Likewise.
21436         * lib/uninorm/u32-normxfrm.c: Likewise.
21437         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21438         memxfrm.
21439         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21440         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21441         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21442         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21443         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21444         Suggested by Paul Eggert.
21445
21446 2010-08-14  Bruno Haible  <bruno@clisp.org>
21447
21448         Tests for module 'astrxfrm'.
21449         * modules/astrxfrm-tests: New file.
21450         * tests/test-astrxfrm.c: New file.
21451
21452         New module 'astrxfrm'.
21453         * lib/astrxfrm.h: New file.
21454         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21455         * modules/astrxfrm: New file.
21456
21457 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21458
21459         regex: Tweak doc.
21460         * doc/regex.texi (Overview): Don't mention regex.c.
21461         (GNU Regular Expression Compiling): Likewise.
21462         (Match-end-of-line Operator): Mention 'not_eol'.
21463
21464 2010-08-14  Brian Gough  <bjg@gnu.org>
21465             Bruno Haible  <bruno@clisp.org>
21466
21467         git-merge-changelog: add doc relating to use with bzr and hg.
21468         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21469
21470 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21471
21472         pthread: fix pthread.h creation for srcdir != builddir
21473         * modules/pthread (Makefile.am): Fix the rule to work also in a
21474         non-srcdir build.
21475
21476 2010-08-13  Karl Berry  <karl@gnu.org>
21477
21478         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21479         * doc/posix-*/*: force line break before @url of POSIX
21480         specifications.
21481         Suggested by Werner Lemberg.
21482
21483 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21484
21485         strtod: fix const diagnostic
21486         * lib/strtod.c (strtod): Don't assign const char * to char *,
21487         as this elicits a warning from GCC when warnings are enabled.
21488
21489 2010-08-10  Pádraig Brady <P@draigbrady.com>
21490         and Eric Blake  <eblake@redhat.com>
21491
21492         copy-acl: ignore ENOTSUP on HP-UX
21493         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21494         so that it is available for HP-UX.
21495         * lib/copy-acl.c (qcopy_acl): Use it.
21496         Reported by Patrick M. Callahan.
21497
21498 2010-08-10  Eric Blake  <eblake@redhat.com>
21499
21500         open, chown: relax license
21501         * modules/open (License): Change to LGPLv2+, with consent by all
21502         authors, for use in augeas.
21503         * modules/chown (License): Likewise.
21504         * modules/lchown (Likewise): Likewise.
21505         Requested by Adam Stokes.
21506
21507 2010-08-09  Karl Berry  <karl@gnu.org>
21508
21509         * build-aux/ar-lib: new file, import from Automake.
21510         * config/srclist.txt: autocheck for updates.
21511
21512 2010-08-09  Eric Blake  <eblake@redhat.com>
21513
21514         readlinkat: adjust client modules
21515         * modules/areadlinkat (Depends-on): Use readlinkat, not
21516         symlinkat.
21517         * modules/areadlinkat-with-size (Depends-on): Likewise.
21518
21519         mknod: be more vocal about danger of running tests as root
21520         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21521         root, since that is just asking for problems.
21522         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21523
21524         readlinkat: split into its own module
21525         * modules/symlinkat: Split readlinkat...
21526         * modules/readlinkat: ...into separate module.
21527         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21528         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21529         * lib/symlinkat.c (readlinkat): Move...
21530         * lib/readlinkat.c: ...into new file.
21531         * modules/symlinkat-tests: Split readlinkat test...
21532         * modules/readlinkat-tests: ...into separate module.
21533         * tests/test-symlinkat.c: Split...
21534         * tests/test-readlinkat.c: ...into new file.
21535         * NEWS: Document the split.
21536         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21537         * lib/unistd.in.h (readlinkat): Likewise.
21538         Suggested by Bruno Haible.
21539
21540 2010-08-08  Bruno Haible  <bruno@clisp.org>
21541
21542         memxfrm: Speed up.
21543         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21544         that usually only one call to strxfrm is necessary for each string
21545         part.
21546         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21547
21548 2010-08-07  Karl Berry  <karl@gnu.org>
21549
21550         * doc/posix-headers/limits.texi,
21551         * doc/posix-functions/malloc.texi,
21552         * doc/posix-functions/strsignal.texi: missing @item.
21553         * doc/ld-version-script.texi: spurious leading i.
21554         * doc/regex.texi (Interval Operators): no commas inside @var.
21555
21556 2010-08-01  Bruno Haible  <bruno@clisp.org>
21557
21558         Integrate the regex documentation.
21559         * doc/gnulib.texi: Define 'cn' index.
21560         (Regular expressions): New a chapter that includes regex.texi and
21561         regexprops-generic.texi.
21562         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21563         syntax.
21564
21565         Whitespace cleanup.
21566         * doc/regex.texi: Remove trailing spaces.
21567
21568         Add regex documentation.
21569         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21570         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21571         Written by Kathy A. Hargreaves and Karl Berry.
21572
21573 2010-08-01  Bruno Haible  <bruno@clisp.org>
21574
21575         link: Update documentation.
21576         * doc/posix-functions/link.texi: Update regarding Solaris.
21577
21578 2010-07-31  Bruno Haible  <bruno@clisp.org>
21579
21580         Update modules list.
21581         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21582         (String handling <string.h>): Add memcmp2, memxfrm.
21583         (Container data structures): Add xlist, xsublist, xoset.
21584         (Core language properties): Add alignof, unused-parameter.
21585         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21586         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21587         (Unibyte characters <ctype.h>): New section.
21588         (String handling <string.h>): New section.
21589         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21590         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21591         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21592         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21593         tan, tanh, tanl, y0, y1, yn.
21594         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21595         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21596         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21597         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21598         unlockpt, vdprintf, vdprintf-posix.
21599         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21600         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21601         xconcat-filename.
21602         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21603         getdtablesize, pipe2, pipe2-safer.
21604         (Security): New section.
21605         (Networking functions): Add accept4.
21606         (Signal handling): Add sigpipe.
21607         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21608         mbmemcasecoll.
21609         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21610         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21611         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21612         pipe-filter-ii.
21613         (Misc): Add argp-version-etc, login_tty, parse-duration.
21614
21615 2010-07-31  Bruno Haible  <bruno@clisp.org>
21616
21617         Improve doc in MODULES.html.
21618         * modules/linkat (Description): Add the word "function".
21619         * modules/mkfifo (Description): Likewise.
21620         * modules/mknod (Description): Likewise.
21621         * modules/remove (Description): Likewise.
21622         * modules/renameat (Description): Likewise.
21623         * modules/stat (Description): Likewise.
21624         * modules/symlink (Description): Likewise.
21625         * modules/unlink (Description): Likewise.
21626
21627 2010-07-31  Bruno Haible  <bruno@clisp.org>
21628
21629         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21630         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21631         option --enable/disable-c++ instead of --enable/disable-cxx.
21632         * NEWS: Mention the change.
21633
21634 2010-07-31  Bruno Haible  <bruno@clisp.org>
21635
21636         readlink, areadlink: Relax test a bit.
21637         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21638         alternative to ENOTDIR.
21639         * tests/test-areadlink.h (test_areadlink): Likewise.
21640         Reported by Rainer Tammer.
21641
21642 2010-07-31  Bruno Haible  <bruno@clisp.org>
21643
21644         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21645         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21646         character, perform the search using U_STRCHR.
21647         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21648         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21649         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21650         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21651         Suggested by Paolo Bonzini.
21652
21653 2010-07-31  Bruno Haible  <bruno@clisp.org>
21654
21655         unistr/u*-strstr: Fix dependencies.
21656         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21657         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21658         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21659
21660 2010-07-31  Bruno Haible  <bruno@clisp.org>
21661
21662         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21663         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21664         the beginning of the loop.
21665         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21666         cases in 'switch' statement.
21667
21668         unistr/u8-strchr: Fix several bugs.
21669         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21670         the string. When not found, return NULL, not a pointer near the end.
21671
21672         More tests for unistr/u8-strchr.
21673         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21674         that the function does not read past the first occurrence of the byte
21675         being searched.
21676         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21677         * tests/unistr/test-u16-strchr.c (main): New function.
21678         * tests/unistr/test-u32-strchr.c (main): New function.
21679
21680 2010-07-31  Bruno Haible  <bruno@clisp.org>
21681
21682         posix-modules: Ignore backup files of documentation files.
21683         * posix-modules: grep only through files named *.texi.
21684
21685 2010-07-31  Bruno Haible  <bruno@clisp.org>
21686
21687         symlinkat: Fix documentation.
21688         * doc/posix-functions/readlinkat.texi: Fix module name.
21689
21690 2010-07-31  Bruno Haible  <bruno@clisp.org>
21691
21692         fchownat: Replace also when chown has the trailing slash bug.
21693         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21694         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21695         introduced on 2010-04-10.
21696         Reported by Rainer Tammer.
21697
21698 2010-07-31  Bruno Haible  <bruno@clisp.org>
21699
21700         linkat: Work around AIX 7.1 bug.
21701         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21702         whether linkat handles trailing slash correctly. If not, replace linkat
21703         and define LINKAT_TRAILING_SLASH_BUG.
21704         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21705         check whether (fd1,file1) points to a directory if file1 or file2 ends
21706         in a slash. Code taken from lib/link.c.
21707         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21708         Reported by Rainer Tammer.
21709
21710 2010-07-31  Bruno Haible  <bruno@clisp.org>
21711
21712         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21713         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21714         This disables an xlc optimization that was causing wrong test results.
21715         Reported by Rainer Tammer.
21716
21717 2010-07-31  Bruno Haible  <bruno@clisp.org>
21718
21719         iconv: Work around AIX 6.1..7.1 bug.
21720         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21721         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21722         cross-compiling, guess no on all versions of AIX.
21723         Reported by Rainer Tammer.
21724
21725 2010-07-31  Bruno Haible  <bruno@clisp.org>
21726
21727         readlink: Relax test a bit.
21728         * tests/test-readlink.h (test_readlink): Allow different errno value
21729         when readlink is called with a file name that ends in / and refers to
21730         a file.
21731         Suggested by Eric Blake.
21732         Reported by Rainer Tammer.
21733
21734 2010-07-31  Bruno Haible  <bruno@clisp.org>
21735
21736         copysign: Does not require -lm on glibc systems.
21737         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21738         gl_COMMON_DOUBLE_MATHFUNC.
21739         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21740
21741 2010-07-31  Bruno Haible  <bruno@clisp.org>
21742
21743         duplocale: Work around AIX 7.1 bug.
21744         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21745         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21746         * lib/duplocale.c (rpl_duplocale): Update comment.
21747         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21748         Reported by Rainer Tammer.
21749
21750 2010-07-30  Bruno Haible  <bruno@clisp.org>
21751
21752         dirfd: Avoid link error on AIX 7.1.
21753         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21754         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21755         exist, set REPLACE_DIRFD.
21756         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21757         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21758         * doc/posix-functions/dirfd.texi: Update.
21759         Reported by Rainer Tammer.
21760
21761 2010-07-30  Eric Blake  <eblake@redhat.com>
21762
21763         strtod: next round of AIX fixes
21764         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21765         exponent.
21766         * tests/test-strtod.c (main): Enhance tests.
21767         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21768         Reported by Rainer Tammer.
21769
21770         futimens: fix configure check
21771         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21772         Reported by Bruno Haible.
21773
21774 2010-07-30  Bruno Haible  <bruno@clisp.org>
21775
21776         getline: Update regarding AIX.
21777         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21778         Reported by Rainer Tammer.
21779
21780 2010-07-30  Bruno Haible  <bruno@clisp.org>
21781
21782         wcwidth: Drop replacement on AIX 7.
21783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21784         AIX 7.
21785         Reported by Rainer Tammer.
21786
21787 2010-07-30  Bruno Haible  <bruno@clisp.org>
21788
21789         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21791         a 'char *'.
21792         Reported by Rainer Tammer.
21793
21794 2010-07-30  Bruno Haible  <bruno@clisp.org>
21795
21796         unlink: Update regarding AIX.
21797         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21798         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21799         Reported by Rainer Tammer.
21800
21801 2010-07-30  Bruno Haible  <bruno@clisp.org>
21802
21803         symlink: Update regarding AIX.
21804         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21805         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21806         Reported by Rainer Tammer.
21807
21808 2010-07-30  Bruno Haible  <bruno@clisp.org>
21809
21810         strndup: Update regarding AIX.
21811         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21812         AIX 7.
21813         Reported by Rainer Tammer.
21814
21815 2010-07-30  Bruno Haible  <bruno@clisp.org>
21816
21817         stat: Update regarding AIX.
21818         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21819         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21820         Reported by Rainer Tammer.
21821
21822 2010-07-30  Bruno Haible  <bruno@clisp.org>
21823
21824         truncl: Fix autoconf test.
21825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21826         whether truncl works.
21827         Reported by Rainer Tammer.
21828
21829 2010-07-30  Bruno Haible  <bruno@clisp.org>
21830
21831         round: Update regarding AIX.
21832         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21833         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21834         Reported by Rainer Tammer.
21835
21836 2010-07-30  Bruno Haible  <bruno@clisp.org>
21837
21838         rename: Update regarding AIX.
21839         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21840         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21841         Reported by Rainer Tammer.
21842
21843 2010-07-30  Bruno Haible  <bruno@clisp.org>
21844
21845         printf.m4: Update regarding AIX.
21846         * m4/printf.m4: Update comments regarding AIX.
21847         Reported by Rainer Tammer.
21848
21849 2010-07-30  Bruno Haible  <bruno@clisp.org>
21850
21851         iconv: Update regarding AIX.
21852         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21853         AIX 7.
21854         Reported by Rainer Tammer.
21855
21856 2010-07-30  Bruno Haible  <bruno@clisp.org>
21857
21858         getopt: Update regarding AIX.
21859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21860         no on AIX.
21861         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21862         Reported by Rainer Tammer.
21863
21864 2010-07-30  Bruno Haible  <bruno@clisp.org>
21865
21866         ldexpl; Update regarding AIX.
21867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21868         on AIX 7.
21869         Reported by Rainer Tammer.
21870
21871 2010-07-30  Bruno Haible  <bruno@clisp.org>
21872
21873         frexpl: Update regarding AIX.
21874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21875         on AIX 7.
21876         Reported by Rainer Tammer.
21877
21878 2010-07-30  Bruno Haible  <bruno@clisp.org>
21879
21880         open, fopen: Update regarding AIX.
21881         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21882         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21883         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21884         * doc/posix-functions/fopen.texi: Likewise.
21885         Reported by Rainer Tammer.
21886
21887 2010-07-30  Bruno Haible  <bruno@clisp.org>
21888
21889         chown: Update doc regarding AIX.
21890         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21891         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21892         Reported by Rainer Tammer.
21893
21894 2010-07-30  Eric Blake  <eblake@redhat.com>
21895
21896         strtod: fix bug in replacement function on AIX
21897         * lib/strtod.c (strtod): Special case broken "0x" parse in
21898         underlying strtod.
21899         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21900         * doc/posix-functions/strtod.texi (strtod): Likewise.
21901         Reported by Rainer Tammer.
21902
21903 2010-07-30  Bruno Haible  <bruno@clisp.org>
21904
21905         mbrlen: Fix cross-compilation guess for AIX.
21906         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21907         guess. Leftover from 2008-12-22.
21908
21909 2010-07-30  Bruno Haible  <bruno@clisp.org>
21910
21911         mbrtowc: Fix cross-compilation guess for AIX.
21912         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21913         guess. Leftover from 2008-12-21.
21914
21915 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21916
21917         init.sh: work around trap limitation of some shells
21918         * tests/init.sh (setup_): Move exit trap outside of shell function.
21919
21920 2010-07-29  Eric Blake  <eblake@redhat.com>
21921
21922         strtod: aid debugging
21923         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21924         understanding why strtod is rejected.
21925
21926 2010-07-28  Bruno Haible  <bruno@clisp.org>
21927
21928         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21929         * lib/unistr/u8-chr.c: Include <string.h>.
21930         * tests/unistr/test-u8-chr.c: Likewise.
21931         * tests/unistr/test-u16-chr.c: Likewise.
21932         * tests/unistr/test-u32-chr.c: Likewise.
21933         * tests/unistr/test-u8-strchr.c: Likewise.
21934         * tests/unistr/test-u16-strchr.c: Likewise.
21935         * tests/unistr/test-u32-strchr.c: Likewise.
21936         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21937         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21938         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21939         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21940
21941 2010-07-28  Bruno Haible  <bruno@clisp.org>
21942
21943         Use spaces for indentation, not tabs.
21944         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21945
21946 2010-07-27  Bruno Haible  <bruno@clisp.org>
21947
21948         mbspcasecmp: Fix function specification.
21949         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21950         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21951         Reported by Eric Blake <eblake@redhat.com>.
21952
21953 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21954
21955         timespec: use cast and not conditional, as truncation isn't possible
21956         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21957         instead of a conditional.  Comment about the situation in more detail.
21958         This undoes most of the 2009-10-29 patch.
21959
21960 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21961
21962         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21963         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21964         * lib/unistr/u8-strchr.c: Likewise.
21965         * modules/unistr/u8-chr: Depend on memchr.
21966
21967         unistr/u*-strchr: add tests
21968         * modules/unistr/u8-strchr-tests: New file.
21969         * modules/unistr/u16-strchr-tests: New file.
21970         * modules/unistr/u32-strchr-tests: New file.
21971         * tests/unistr/test-strchr.h: New file.
21972         * tests/unistr/test-u8-strchr.c: New file.
21973         * tests/unistr/test-u16-strchr.c: New file.
21974         * tests/unistr/test-u32-strchr.c: New file.
21975
21976         unistr/u*-chr: test multibyte sequences more
21977         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21978         test vector.
21979         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21980         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21981         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21982
21983         unistr/u*-chr: test multibyte sequences
21984         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21985
21986         unistr/u*-chr: prepare for multibyte tests
21987         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21988         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21989         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21990         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21991         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21992         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21993
21994 2010-07-18  Bruno Haible  <bruno@clisp.org>
21995
21996         unistr/u8-strchr: Optimize non-ASCII argument case.
21997         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21998         because the first byte often matches anyway.
21999         Reported by Pádraig Brady <P@draigbrady.com>.
22000
22001 2010-07-15  Karl Berry  <karl@gnu.org>
22002
22003         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22004
22005 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22006
22007         getcwd: on Solaris, work better if ancestors are inaccessible
22008         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22009         buffer and size, try again with a large buffer.  This works better
22010         on Solaris, since its getcwd succeeds even if the path to the root
22011         is inaccessible, and this is helpful in common cases such as .zfs
22012         hidden directories.  Problem reported by J Chapman Flack in
22013         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22014         Use system getcwd if it's declared, not merely if it's partly
22015         working; use the partly-working test only to avoid needless effort
22016         if the system getcwd fails.
22017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22018         comment that was already obsolete and is now even more obsolete.
22019         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22020         now might call strdup.
22021
22022 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22023
22024         pthread: Add enough so that coreutils/src/sort.c compiles.
22025         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22026         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22027         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22028         Include <sys/types.h>, in case it defines pthread_t.
22029         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22030         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22031         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22032         (pthread_rwlockattr_t, pthread_spinlock_t):
22033         New typedefs, if HAVE_PTHREAD_T is not defined.
22034         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22035         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22036         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22037         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22038         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22039         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22040         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22041         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22042         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22043         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22044         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22045         New macros.
22046         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22047         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22048         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22049         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22050         (pthread_spin_unlock): New dummy functions.
22051         (pthread_create): Return EAGAIN; don't set errno.
22052         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22053         require AC_C_INLINE.
22054         * modules/pthread (Depends-on): Add sched, time.
22055         (pthread.h): Use AM_V_GEN.
22056
22057 2010-07-13  Bruno Haible  <bruno@clisp.org>
22058
22059         striconveh: Don't malloc memory if the result buffer is sufficient.
22060         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22061         buffer if its size is sufficient.
22062         Reported by Ludovic Courtès <ludo@gnu.org>.
22063
22064 2010-07-13  Bruno Haible  <bruno@clisp.org>
22065
22066         strtod: Add safety check.
22067         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22068
22069 2010-07-12  Bruno Haible  <bruno@clisp.org>
22070
22071         Unify tests that set gl_cv_func_ldexpl_no_libm.
22072         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22073         gl_FUNC_LDEXPL.
22074         (gl_FUNC_LDEXPL): Invoke it.
22075         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22076
22077 2010-07-12  Bruno Haible  <bruno@clisp.org>
22078
22079         Unify tests that set gl_cv_func_ldexp_no_libm.
22080         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22081         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22082         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22083         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22084         * modules/strtod (Files): Add m4/ldexp.m4.
22085
22086 2010-07-12  Bruno Haible  <bruno@clisp.org>
22087
22088         Unify tests that set gl_cv_func_frexpl_no_libm.
22089         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22090         gl_FUNC_FREXPL_NO_LIBM.
22091         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22092         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22093
22094 2010-07-12  Bruno Haible  <bruno@clisp.org>
22095
22096         Unify tests that set gl_cv_func_frexp_no_libm.
22097         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22098         gl_FUNC_FREXP_NO_LIBM.
22099         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22100         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22101
22102 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22103
22104         memcoll: clarify sizes versus lengths, document better, and tweak perf
22105         * lib/memcoll.c (strcoll_loop, memcoll0):
22106         Improve quality of descriptive comments.  Name variables
22107         consistently as to whether they are lengths (which do not include
22108         terminating null) versus sizes (which do).
22109         * lib/xmemcoll.c (xmemcoll0): Likewise.
22110         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22111         returned when s1size == 0; this is easier to compile and saves
22112         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22113
22114 2010-07-12  Bruno Haible  <bruno@clisp.org>
22115
22116         Tests for module '_Exit'.
22117         * modules/_Exit-tests: New file.
22118         * tests/test-_Exit.sh: New file.
22119         * tests/test-_Exit.c: New file.
22120
22121         New module '_Exit'.
22122         * lib/stdlib.in.h (__attribute__): New macro.
22123         (_Exit): New declaration.
22124         * lib/_Exit.c: New file.
22125         * m4/_Exit.m4: New file.
22126         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22127         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22128         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22129         * modules/_Exit: New file.
22130         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22131         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22132
22133 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22134
22135         strtod: make it more-accurate typically, and don't require libm
22136         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22137         Include limits.h.  Don't include string.h.
22138         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22139         (locale_isspace): New function, so that no casts are needed to
22140         check whether *s is a space.
22141         (ldexp): Provide an unused dummy if not available.
22142         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22143         (strtod): Use them.  This implementation prefers to use the
22144         underlying strtod if available, falling back on our own code
22145         only to fix known bugs.  This is more likely to produce an
22146         accurate result.  Also, it avoids the use of libm functions.
22147         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22148         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22149         was absent, but it caused a test failure with coreutils.
22150         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22151         with libm.
22152         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22153         * modules/strtod-tests (Makefile.am): Likewise.
22154
22155 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22156             Bruno Haible  <bruno@clisp.org>
22157
22158         unistr/u8-strchr: Optimize ASCII argument case.
22159         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22160
22161 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22162
22163         (x)memcoll: minor tweaks
22164         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22165         is after the type that it qualifies.
22166         (memcoll0): Likewise.
22167         * lib/memcoll.h (memcoll0): Likewise.
22168         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22169         * lib/xmemcoll.h (xmemcoll0): Likewise.
22170         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22171         differs from memcoll in that the NUL byte is part of the argument.
22172         Omit the abort-checks, as performance is a real issue here.  Plus,
22173         the checks were wrong anyway (an off-by-one error).  Omit local
22174         variable 'diff', as it's a bit clearer that way.
22175         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22176         no longer needed.
22177
22178 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22179
22180         (x)memcoll: speedup when input is known to be NUL delimited
22181         * lib/memcoll.c: Include stdlib.
22182         (memcoll0): New function.
22183         (strcoll_loop): New function, refactored for use in both memcoll
22184         and memcoll0.
22185         * lib/memcoll.h (memcoll0): Add prototype.
22186         * lib/xmemcoll.c (xmemcoll0): New function.
22187         (collate_error): New function, refactored for use in both xmemcoll
22188         and xmemcoll0.
22189         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22190         * m4/memcoll.m4: add inline invocation.
22191
22192 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22193
22194         * build-aux/bootstrap: Remove any local translations
22195         from the translation project synchronization directory,
22196         so that local only translations are not distributed.
22197
22198 2010-07-04  Bruno Haible  <bruno@clisp.org>
22199
22200         fsusage: Clarify which code applies to which platforms.
22201         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22202         platform.
22203         * lib/fsusage.c (get_fs_usage): Likewise.
22204
22205 2010-07-04  Bruno Haible  <bruno@clisp.org>
22206
22207         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22208         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22209         Reported by Martin Lambers <marlam@marlam.de>.
22210
22211 2010-07-04  Jim Meyering  <meyering@redhat.com>
22212
22213         hash: once again explicitly disallow insertion of NULL
22214         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22215         inserting a NULL pointer cannot work with these functions.
22216         Add a comment with details.
22217         This reverts part of the 2010-07-01 commit, 5bef1a35
22218         "hash: extend module to deal with non-pointer keys".
22219
22220 2010-07-01  Bruno Haible  <bruno@clisp.org>
22221
22222         stdbool: Update doc.
22223         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22224         Info from Christian Weisgerber <naddy@mips.inka.de>.
22225
22226 2010-07-01  Jim Meyering  <meyering@redhat.com>
22227
22228         hash: extend module to deal with non-pointer keys
22229         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22230         but that allows insertion of non-pointer entries.
22231         Do not disallow an ENTRY value of NULL.
22232         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22233         * lib/hash.h (hash_insert0): Declare.
22234
22235 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22236
22237         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22238         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22239         not present (i.e. with autoconf 2.59 and when using gettextize, not
22240         gnulib), require AC_GNU_SOURCE instead.
22241
22242 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22243
22244         idpriv-drop: Fix tests.
22245         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22246         not to the test-idpriv-droptemp program.
22247
22248 2010-06-29  Bruno Haible  <bruno@clisp.org>
22249
22250         string: Fix syntax error with g++ 2.96.
22251         * lib/string.in.h (__pure__): Remove definition.
22252         (_GL_ATTRIBUTE_PURE): New macro.
22253         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22254         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22255         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22256
22257 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22258
22259         unitypes: Fix bug introduced on 2010-05-18.
22260         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22261
22262 2010-06-22  Eric Blake  <eblake@redhat.com>
22263
22264         memmem: slight optimization
22265         * lib/str-two-way.h (critical_factorization): Update comments.
22266         Reduce work during factorization phase.
22267         Reported by Carlos Bueno <carlos@bueno.org>.
22268
22269 2010-06-21  Bruno Haible  <bruno@clisp.org>
22270
22271         Fix HAVE_CALLOC_POSIX misnomer.
22272         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22273         !HAVE_CALLOC_POSIX.
22274         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22275         HAVE_CALLOC_POSIX.
22276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22277         instead of HAVE_CALLOC_POSIX.
22278         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22279         HAVE_CALLOC_POSIX.
22280
22281         Use modern idiom for calloc() replacement.
22282         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22283         AC_FUNC_CALLOC.
22284         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22285         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22286         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22287         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22288         (gl_REPLACE_CALLOC): New macro.
22289
22290 2010-06-21  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix HAVE_REALLOC_POSIX misnomer.
22293         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22294         !HAVE_REALLOC_POSIX.
22295         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22296         HAVE_REALLOC_POSIX.
22297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22298         instead of HAVE_REALLOC_POSIX.
22299         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22300         HAVE_REALLOC_POSIX.
22301
22302         Use modern idiom for realloc() replacement.
22303         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22304         AC_FUNC_REALLOC.
22305         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22306         Autoconf's AC_FUNC_REALLOC.
22307         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22308         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22309         (gl_REPLACE_REALLOC): New macro.
22310         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22311
22312 2010-06-21  Bruno Haible  <bruno@clisp.org>
22313
22314         Fix HAVE_MALLOC_POSIX misnomer.
22315         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22316         !HAVE_MALLOC_POSIX.
22317         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22318         HAVE_MALLOC_POSIX.
22319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22320         instead of HAVE_MALLOC_POSIX.
22321         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22322         HAVE_MALLOC_POSIX.
22323
22324         Use modern idiom for malloc() replacement.
22325         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22326         AC_FUNC_MALLOC.
22327         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22328         Autoconf's AC_FUNC_MALLOC.
22329         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22330         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22331         (gl_REPLACE_MALLOC): New macro.
22332         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22333
22334 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22335
22336         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22337         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22338         This macro takes 3 arguments, not 4.
22339
22340 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22341
22342         ipv6: fix detection under mingw
22343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22344         in6_addr.
22345
22346 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22347
22348         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22349         that strtod() works when cross-compiling to a glibc version known
22350         to work.
22351
22352 2010-06-15  Bruno Haible  <bruno@clisp.org>
22353
22354         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22355
22356 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22357
22358         select: Correct timeout.
22359         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22360
22361 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22362
22363         git-version-gen: init shell var to avoid env var influence
22364         * build-aux/git-version-gen (v): Init shell var to empty.
22365
22366 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22367
22368         priv-set: Don't assume that priv.h exists merely because getppriv does.
22369         See Jan Andersen's bug report about AIX 5L in
22370         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22371         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22372         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22373         * lib/priv-set.h: Likewise.
22374         * tests/test-priv-set.c: Likewise.
22375
22376 2010-06-13  Bruno Haible  <bruno@clisp.org>
22377
22378         relocatable: Make it easier to test whether to install wrappers.
22379         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22380         RELOCATABLE_VIA_WRAPPER.
22381
22382 2010-06-13  Bruno Haible  <bruno@clisp.org>
22383
22384         gnulib-tool: Display specified modules and dependencies differently.
22385         * gnulib-tool (func_show_module_list): New function.
22386         (func_import, func_create_testdir): Invoke it.
22387         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22388
22389 2010-06-13  Bruno Haible  <bruno@clisp.org>
22390
22391         gnulib-tool: Align code of func_import and func_create_testdir.
22392         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22393         specified_modules.
22394
22395 2010-06-12  Jim Meyering  <meyering@redhat.com>
22396
22397         test-inttostr: avoid spurious failure on Solaris 9
22398         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22399         to accept "%ju".  Reported by Bruno Haible.
22400
22401 2010-06-11  Jim Meyering  <meyering@redhat.com>
22402
22403         test-sys_socket: mark variables as used more readably
22404         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22405         as "used" explicitly via (void) statement casts.  This is more
22406         readable than using them in an artificial return expression.
22407         Suggestion from Bruno Haible.
22408
22409 2010-06-11  Bruno Haible  <bruno@clisp.org>
22410
22411         Avoid some more warnings from "gcc -Wwrite-strings".
22412         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22413         to 'const char *'.
22414         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22415         * tests/test-c-strcasestr.c (main): Likewise.
22416         * tests/test-mbscasestr1.c (main): Likewise.
22417         * tests/test-mbscasestr2.c (main): Likewise.
22418         * tests/test-memmem.c (main): Likewise.
22419         * tests/test-strstr.c (main): Likewise.
22420         * tests/test-strcasestr.c (main): Likewise.
22421
22422 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22423
22424         init.sh: change framework_failure_ to fail with status 99, not 1
22425         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22426         automake's parallel-tests rule that this is an unexpected failure,
22427         even if the test is listed in XFAIL_TESTS.
22428
22429 2010-06-11  Jim Meyering  <meyering@redhat.com>
22430
22431         test-inttostr: avoid warnings about 4-6KB literal strings
22432         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22433         Include "macros.h", for its definition of ASSERT.
22434         (CK): s/assert/ASSERT/
22435         * modules/inttostr-tests (Files): Add macros.h.
22436
22437         init.sh: don't use $ME_ or skip_ before they are defined
22438         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22439         their first uses.  Also hoist their companions: warn_, fail_,
22440         framework_failure_, $stderr_fileno.  Prompted by a patch from
22441         Stefano Lattarini.
22442
22443         test-sys_socket: avoid set-but-not-used warnings from gcc
22444         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22445         avoid warning about set-but-not-used variables.
22446
22447         test-xvasprintf: avoid 'const' discard warnings
22448         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22449         "const" when assigning from literal strings.
22450         (test_xasprintf): Add "void" in function argument list to placate
22451         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22452
22453         tests: avoid compilation warnings in argmatch and exclude tests...
22454         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22455         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22456         Since it always exits, declare with the "noreturn" attribute.
22457         * tests/test-argmatch.c: Likewise.
22458
22459         tests: avoid 'const' discard warnings in mbsstr tests
22460         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22461         * tests/test-mbsstr2.c (main): Likewise.
22462
22463         test-verify: avoid warning from gcc's -Wmissing-declarations
22464         * tests/test-verify.c (function): Declare to be static.
22465
22466         test-inttostr.c: include <string.h> for use of strcmp
22467         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22468
22469         test-linkat: avoid failed assertion on "other" architectures
22470         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22471         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22472         sparc: https://bugs.launchpad.net/bugs/591968
22473
22474 2010-06-11  Jim Meyering  <meyering@redhat.com>
22475
22476         printf.m4: avoid autoconf's "Expanded Before Required" warning
22477         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22478         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22479         autoconf warning.
22480
22481 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22482
22483         Replacement header templates are now named with ".in", not "_".
22484         * doc/gnulib-intro.texi: Correct.
22485
22486 2010-06-10  Jim Meyering  <meyering@redhat.com>
22487
22488         inttostr-tests: depend on snprintf, not snprintf-posix
22489         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22490         snprintf-posix, to avoid this aclocal failure:
22491           missing file gnulib-tests/vasnprintf.c
22492           configure.ac:45: error: expected source file, required through \
22493           AC_LIBSOURCES, not found
22494
22495 2010-06-10  Jim Meyering  <meyering@redhat.com>
22496
22497         inttostr: add a new function, inttostr, and tests
22498         The namesake function was not available.  The existence of the
22499         template file, inttostr.c makes its addition nontrivial.
22500         * lib/anytostr.c: Rename from inttostr.c.
22501         (anytostr): Rename from inttostr.
22502         * lib/inttostr.c: New file.
22503         * modules/inttostr (Files): Add anytostr.c.
22504         (Makefile.am): Set lib_SOURCES instead of ...
22505         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22506         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22507         * lib/offtostr.c: Likewise.
22508         * lib/uinttostr.c: Likewise.
22509         * lib/umaxtostr.c: Likewise.
22510         * modules/inttostr-tests: New file.
22511         * tests/test-inttostr.c: New file.  Test these functions.
22512
22513 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22514             Bruno Haible  <bruno@clisp.org>
22515
22516         Add "Extending Gnulib" chapter to manual.
22517         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22518         chapter.
22519         (Extending Gnulib): New chapter.
22520         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22521         chapter.
22522
22523 2010-06-09  Bruno Haible  <bruno@clisp.org>
22524
22525         Avoid relocwrapper link errors due to gnulib replacement functions.
22526         * lib/areadlink.c: Use the system's malloc, realloc functions.
22527         (areadlink): Set errno to ENOMEM explicitly.
22528         * modules/areadlink (Depends-on): Remove malloc-posix.
22529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22530
22531 2010-06-09  Bruno Haible  <bruno@clisp.org>
22532
22533         Avoid relocwrapper link errors due to gnulib replacement functions.
22534         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22535         * lib/malloca.c: Likewise.
22536         * lib/relocatable.c: Likewise.
22537         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22538         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22539         * lib/setenv.c: Use the system's malloc, realloc functions.
22540         * lib/strerror.c: Use the system's sprintf function.
22541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22542
22543 2010-06-04  Bruno Haible  <bruno@clisp.org>
22544
22545         Prefer documented low-level autoconf macro names.
22546         * m4/lib-link.m4: Use m4_translit instead of translit.
22547         * m4/environ.m4: Likewise.
22548         * m4/mathfunc.m4: Likewise.
22549         * m4/onceonly.m4: Likewise.
22550         * m4/stdint.m4: Likewise.
22551         Suggested by Eric Blake.
22552
22553 2010-06-04  Martin Lambers  <marlam@marlam.de>
22554             Bruno Haible  <bruno@clisp.org>
22555
22556         havelib: Allow library names with '+' characters.
22557         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22558         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22559
22560 2010-06-09  Bruno Haible  <bruno@clisp.org>
22561
22562         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22563         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22564         realloc failed.
22565
22566 2010-06-08  Peter Simons  <simons@cryp.to>
22567
22568         maint.mk: make the news-check rule more configurable
22569         * top/maint.mk (news-check-lines-spec): New variable.
22570         (news-check): Use "sed -n 1,10p" in place of "head".
22571
22572 2010-06-07  Jim Meyering  <meyering@redhat.com>
22573
22574         do-release-commit-and-tag: fix typo in --help
22575         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22576
22577         regex: avoid new dead-code warning with gcc-4.6.0
22578         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22579         if-block containing a while-loop.  It's been unused for at least
22580         5 years.
22581
22582 2010-06-05  Bruno Haible  <bruno@clisp.org>
22583
22584         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22585         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22586
22587 2010-06-04  Bruno Haible  <bruno@clisp.org>
22588
22589         Update to GNU gettext 0.18.1.
22590         * modules/gettext (configure.ac): Require gettext infrastructure from
22591         version 0.18.1.
22592
22593 2010-06-03  Bruno Haible  <bruno@clisp.org>
22594
22595         Don't use AC_LIBOBJ with file names in subdirectories.
22596         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22597         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22598         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22599         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22600         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22601         gl_LIBUNISTRING_LIBSOURCE.
22602         (Makefile.am): Augment lib_SOURCES here, conditionally.
22603         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22604
22605 2010-06-03  Bruno Haible  <bruno@clisp.org>
22606
22607         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22608         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22609         expansion does not end with a newline.
22610         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22611         unnecessary newline.
22612
22613 2010-06-03  Bruno Haible  <bruno@clisp.org>
22614
22615         Reduce dependencies.
22616         * tests/test-quotearg.h: New file, extracted from
22617         tests/test-quotearg.c.
22618         * tests/test-quotearg-simple.c: New file, extracted from
22619         tests/test-quotearg.c.
22620         * tests/test-quotearg.c: Don't include <ctype.h>.
22621         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22622         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22623         use_quote_double_quotes, use_quotearg_colon): Moved to
22624         tests/test-quotearg.h.
22625         (results_g, flag_results, custom_quotes, custom_results): Moved
22626         to tests/test-quotearg-simple.c.
22627         (main): Moved the part that does not depend on gettext to
22628         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22629         performed.
22630         * modules/quotearg-simple: New file.
22631         * modules/quotearg-simple-tests: New file.
22632         * modules/quotearg (Depends-on): Add quotearg-simple.
22633         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22634         (Files): Add tests/test-quotearg.h.
22635         Reported by Paolo Bonzini.
22636
22637 2010-06-03  Bruno Haible  <bruno@clisp.org>
22638
22639         Reduce dependencies.
22640         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22641
22642 2010-06-03  Bruno Haible  <bruno@clisp.org>
22643
22644         time: Undefine more broken macros.
22645         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22646         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22647         Reported by Eric Blake.
22648
22649 2010-06-03  Bruno Haible  <bruno@clisp.org>
22650
22651         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22652         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22653         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22654         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22655         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22656         Reported by Ludovic Courtès <ludo@gnu.org>.
22657
22658 2010-06-02  Eric Blake  <eblake@redhat.com>
22659
22660         time: work with mingw + pthreads-win32 library
22661         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22662         if timespec is defined only in pthread.h.
22663         * modules/time (Makefile.am): Substitute it.
22664         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22665         <pthread.h>, when needed.
22666         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22667         from the library.
22668
22669 2010-05-31  Bruno Haible  <bruno@clisp.org>
22670
22671         Avoid expanding two macros in the wrong order.
22672         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22673         gl_LIBUNISTRING if it is defined.
22674         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22675         autoconf >= 2.64.
22676         Reported by Ludovic Courtès <ludo@gnu.org>.
22677
22678 2010-05-27  Jim Meyering  <meyering@redhat.com>
22679
22680         maint.mk: also prohibit "#undef" of always-defined symbols
22681         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22682         Allow more than one space before the symbol name.
22683         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22684         the regexp uses alternation.
22685
22686 2010-05-26  Eric Blake  <eblake@redhat.com>
22687
22688         maint.mk: avoid echo -e
22689         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22690         Convert all uses of echo -* to printf.
22691         Reported by Matthias Bolte.
22692
22693 2010-05-25  Bruno Haible  <bruno@clisp.org>
22694
22695         Update to GNU gettext 0.18, part 2.
22696         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22697         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22698
22699 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22700
22701         Add missing include in test-pwrite.c.
22702         * tests/test-pwrite.c: Include string.h, for strcmp.
22703
22704 2010-05-24  Bruno Haible  <bruno@clisp.org>
22705
22706         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22707
22708 2010-05-24  Bruno Haible  <bruno@clisp.org>
22709
22710         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22711         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22712         iconveh_error argument.
22713         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22714         U_STRCONV_TO_LOCALE.
22715         * lib/unistr/u16-strcoll.c: Likewise.
22716         * lib/unistr/u32-strcoll.c: Likewise.
22717         * modules/unistr/u8-strcoll (Depends-on): Add
22718         uniconv/u8-strconv-to-enc, localcharset. Remove
22719         uniconv/u8-strconv-to-locale.
22720         (configure.ac): Bump version number.
22721         * modules/unistr/u16-strcoll (Depends-on): Add
22722         uniconv/u16-strconv-to-enc, localcharset. Remove
22723         uniconv/u16-strconv-to-locale.
22724         (configure.ac): Bump version number.
22725         * modules/unistr/u32-strcoll (Depends-on): Add
22726         uniconv/u32-strconv-to-enc, localcharset. Remove
22727         uniconv/u32-strconv-to-locale.
22728         (configure.ac): Bump version number.
22729
22730 2010-05-24  Bruno Haible  <bruno@clisp.org>
22731
22732         Avoid a test failure on NetBSD 5.0.
22733         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22734         an iconv() bug.
22735
22736 2010-05-24  Bruno Haible  <bruno@clisp.org>
22737
22738         Adjust #include directive style.
22739         * modules/regex (Includes): Recommend to write <regex.h>.
22740
22741 2010-05-24  Bruno Haible  <bruno@clisp.org>
22742
22743         regex: Don't require alloca.
22744         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22745         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22746         only inside if (0).
22747
22748 2010-05-23  Jim Meyering  <meyering@redhat.com>
22749
22750         test-renameat.c: include <sys/stat.h>
22751         * tests/test-renameat.c: Include <sys/stat.h>; required for
22752         definition of S_IS* macros.
22753
22754 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22755
22756         Update maintainer documentation for 'relocatable-prog' module.
22757         * doc/relocatable-maint.texi: Update.
22758         Comments by Bruno Haible.
22759
22760 2010-05-23  Bruno Haible  <bruno@clisp.org>
22761
22762         git-merge-changelog: Enable --split-merged-entry by default.
22763         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22764         (usage): Don't mention this option any more.
22765         Reported by Ralf Wildenhues.
22766
22767 2010-05-23  Jim Meyering  <meyering@redhat.com>
22768
22769         test-pwrite: do not leave behind a test file named "out"
22770         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22771         The trivial-looking use of init.sh is really necessary.
22772         It ensures that the temporary file, "out", is created in
22773         a temporary directory, and removed upon termination.
22774         * tests/test-pwrite.sh: Re-add file.
22775         * modules/pwrite-tests: Reference it.
22776
22777 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22778
22779         Fix output redirection buglet in init.sh.
22780         * tests/init.sh: Fix redirection of stderr.
22781
22782 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22783
22784         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22785
22786 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22787
22788         * modules/valgrind-tests: New file.
22789         * m4/valgrind-tests.m4: New file.
22790         * doc/valgrind-tests.texi: New file.
22791         * doc/gnulib.texi (Running self-tests under valgrind): New
22792         section.
22793
22794 2010-05-19  Bruno Haible  <bruno@clisp.org>
22795
22796         Clean up dead code in recent commit.
22797         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22798         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22799         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22800         Suggested by Paolo Bonzini.
22801
22802 2010-05-19  Bruno Haible  <bruno@clisp.org>
22803
22804         Avoid valgrind error reports from libunistring.
22805         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22806         * modules/libunistring (Files): Add it.
22807         * modules/libunistring-optional (Files): Likewise.
22808
22809 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22810             Bruno Haible  <bruno@clisp.org>
22811
22812         New module 'libunistring-optional'.
22813         * modules/libunistring-optional: New file.
22814         * m4/libunistring-base.m4: New file.
22815         * m4/libunistring-optional.m4: New file.
22816         * lib/unicase.in.h: Renamed from lib/unicase.h.
22817         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22818         * lib/unictype.in.h: Renamed from lib/unictype.h.
22819         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22820         * lib/uniname.in.h: Renamed from lib/uniname.h.
22821         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22822         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22823         * lib/unistr.in.h: Renamed from lib/unistr.h.
22824         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22825         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22826         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22827         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22828         gl_LIBUNISTRING. If the library was found, determine the installed
22829         version and set LIBUNISTRING_VERSION.
22830         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22831         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22832         handle a configuration option --with-included-libunistring.
22833         * modules/libunistring (Files): Add m4/absolute-header.m4.
22834         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22835         Add m4/libunistring-base.m4.
22836         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22837         (Makefile.am): Build unicase.h from unicase.in.h.
22838         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22839         Add m4/libunistring-base.m4.
22840         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22841         (Makefile.am): Build uniconv.h from uniconv.in.h.
22842         * modules/unictype/base (Files): Use unictype.in.h instead of
22843         unictype.h. Add m4/libunistring-base.m4.
22844         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22845         (Makefile.am): Build unictype.h from unictype.in.h.
22846         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22847         Add m4/libunistring-base.m4.
22848         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22849         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22850         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22851         Add m4/libunistring-base.m4.
22852         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22853         (Makefile.am): Build uniname.h from uniname.in.h.
22854         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22855         Add m4/libunistring-base.m4.
22856         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22857         (Makefile.am): Build uninorm.h from uninorm.in.h.
22858         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22859         unistdio.h. Add m4/libunistring-base.m4.
22860         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22861         (Makefile.am): Build unistdio.h from unistdio.in.h.
22862         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22863         Add m4/libunistring-base.m4.
22864         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22865         (Makefile.am): Build unistr.h from unistr.in.h.
22866         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22867         Add m4/libunistring-base.m4.
22868         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22869         (Makefile.am): Build unitypes.h from unitypes.in.h.
22870         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22871         Add m4/libunistring-base.m4.
22872         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22873         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22874         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22875         uniwidth.h. Add m4/libunistring-base.m4.
22876         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22877         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22878         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22879         instead of augmenting lib_SOURCES.
22880         * modules/unicase/empty-suffix-context: Likewise.
22881         * modules/unicase/locale-language: Likewise.
22882         * modules/unicase/tolower: Likewise.
22883         * modules/unicase/totitle: Likewise.
22884         * modules/unicase/toupper: Likewise.
22885         * modules/unicase/u8-casecmp: Likewise.
22886         * modules/unicase/u8-casecoll: Likewise.
22887         * modules/unicase/u8-casefold: Likewise.
22888         * modules/unicase/u8-casexfrm: Likewise.
22889         * modules/unicase/u8-ct-casefold: Likewise.
22890         * modules/unicase/u8-ct-tolower: Likewise.
22891         * modules/unicase/u8-ct-totitle: Likewise.
22892         * modules/unicase/u8-ct-toupper: Likewise.
22893         * modules/unicase/u8-is-cased: Likewise.
22894         * modules/unicase/u8-is-casefolded: Likewise.
22895         * modules/unicase/u8-is-lowercase: Likewise.
22896         * modules/unicase/u8-is-titlecase: Likewise.
22897         * modules/unicase/u8-is-uppercase: Likewise.
22898         * modules/unicase/u8-prefix-context: Likewise.
22899         * modules/unicase/u8-suffix-context: Likewise.
22900         * modules/unicase/u8-tolower: Likewise.
22901         * modules/unicase/u8-totitle: Likewise.
22902         * modules/unicase/u8-toupper: Likewise.
22903         * modules/unicase/u16-casecmp: Likewise.
22904         * modules/unicase/u16-casecoll: Likewise.
22905         * modules/unicase/u16-casefold: Likewise.
22906         * modules/unicase/u16-casexfrm: Likewise.
22907         * modules/unicase/u16-ct-casefold: Likewise.
22908         * modules/unicase/u16-ct-tolower: Likewise.
22909         * modules/unicase/u16-ct-totitle: Likewise.
22910         * modules/unicase/u16-ct-toupper: Likewise.
22911         * modules/unicase/u16-is-cased: Likewise.
22912         * modules/unicase/u16-is-casefolded: Likewise.
22913         * modules/unicase/u16-is-lowercase: Likewise.
22914         * modules/unicase/u16-is-titlecase: Likewise.
22915         * modules/unicase/u16-is-uppercase: Likewise.
22916         * modules/unicase/u16-prefix-context: Likewise.
22917         * modules/unicase/u16-suffix-context: Likewise.
22918         * modules/unicase/u16-tolower: Likewise.
22919         * modules/unicase/u16-totitle: Likewise.
22920         * modules/unicase/u16-toupper: Likewise.
22921         * modules/unicase/u32-casecmp: Likewise.
22922         * modules/unicase/u32-casecoll: Likewise.
22923         * modules/unicase/u32-casefold: Likewise.
22924         * modules/unicase/u32-casexfrm: Likewise.
22925         * modules/unicase/u32-ct-casefold: Likewise.
22926         * modules/unicase/u32-ct-tolower: Likewise.
22927         * modules/unicase/u32-ct-totitle: Likewise.
22928         * modules/unicase/u32-ct-toupper: Likewise.
22929         * modules/unicase/u32-is-cased: Likewise.
22930         * modules/unicase/u32-is-casefolded: Likewise.
22931         * modules/unicase/u32-is-lowercase: Likewise.
22932         * modules/unicase/u32-is-titlecase: Likewise.
22933         * modules/unicase/u32-is-uppercase: Likewise.
22934         * modules/unicase/u32-prefix-context: Likewise.
22935         * modules/unicase/u32-suffix-context: Likewise.
22936         * modules/unicase/u32-tolower: Likewise.
22937         * modules/unicase/u32-totitle: Likewise.
22938         * modules/unicase/u32-toupper: Likewise.
22939         * modules/unicase/ulc-casecmp: Likewise.
22940         * modules/unicase/ulc-casecoll: Likewise.
22941         * modules/unicase/ulc-casexfrm: Likewise.
22942         * modules/uniconv/u8-conv-from-enc: Likewise.
22943         * modules/uniconv/u8-conv-to-enc: Likewise.
22944         * modules/uniconv/u8-strconv-from-enc: Likewise.
22945         * modules/uniconv/u8-strconv-from-locale: Likewise.
22946         * modules/uniconv/u8-strconv-to-enc: Likewise.
22947         * modules/uniconv/u8-strconv-to-locale: Likewise.
22948         * modules/uniconv/u16-conv-from-enc: Likewise.
22949         * modules/uniconv/u16-conv-to-enc: Likewise.
22950         * modules/uniconv/u16-strconv-from-enc: Likewise.
22951         * modules/uniconv/u16-strconv-from-locale: Likewise.
22952         * modules/uniconv/u16-strconv-to-enc: Likewise.
22953         * modules/uniconv/u16-strconv-to-locale: Likewise.
22954         * modules/uniconv/u32-conv-from-enc: Likewise.
22955         * modules/uniconv/u32-conv-to-enc: Likewise.
22956         * modules/uniconv/u32-strconv-from-enc: Likewise.
22957         * modules/uniconv/u32-strconv-from-locale: Likewise.
22958         * modules/uniconv/u32-strconv-to-enc: Likewise.
22959         * modules/uniconv/u32-strconv-to-locale: Likewise.
22960         * modules/unictype/bidicategory-byname: Likewise.
22961         * modules/unictype/bidicategory-name: Likewise.
22962         * modules/unictype/bidicategory-of: Likewise.
22963         * modules/unictype/bidicategory-test: Likewise.
22964         * modules/unictype/block-list: Likewise.
22965         * modules/unictype/block-test: Likewise.
22966         * modules/unictype/category-C: Likewise.
22967         * modules/unictype/category-Cc: Likewise.
22968         * modules/unictype/category-Cf: Likewise.
22969         * modules/unictype/category-Cn: Likewise.
22970         * modules/unictype/category-Co: Likewise.
22971         * modules/unictype/category-Cs: Likewise.
22972         * modules/unictype/category-L: Likewise.
22973         * modules/unictype/category-Ll: Likewise.
22974         * modules/unictype/category-Lm: Likewise.
22975         * modules/unictype/category-Lo: Likewise.
22976         * modules/unictype/category-Lt: Likewise.
22977         * modules/unictype/category-Lu: Likewise.
22978         * modules/unictype/category-M: Likewise.
22979         * modules/unictype/category-Mc: Likewise.
22980         * modules/unictype/category-Me: Likewise.
22981         * modules/unictype/category-Mn: Likewise.
22982         * modules/unictype/category-N: Likewise.
22983         * modules/unictype/category-Nd: Likewise.
22984         * modules/unictype/category-Nl: Likewise.
22985         * modules/unictype/category-No: Likewise.
22986         * modules/unictype/category-P: Likewise.
22987         * modules/unictype/category-Pc: Likewise.
22988         * modules/unictype/category-Pd: Likewise.
22989         * modules/unictype/category-Pe: Likewise.
22990         * modules/unictype/category-Pf: Likewise.
22991         * modules/unictype/category-Pi: Likewise.
22992         * modules/unictype/category-Po: Likewise.
22993         * modules/unictype/category-Ps: Likewise.
22994         * modules/unictype/category-S: Likewise.
22995         * modules/unictype/category-Sc: Likewise.
22996         * modules/unictype/category-Sk: Likewise.
22997         * modules/unictype/category-Sm: Likewise.
22998         * modules/unictype/category-So: Likewise.
22999         * modules/unictype/category-Z: Likewise.
23000         * modules/unictype/category-Zl: Likewise.
23001         * modules/unictype/category-Zp: Likewise.
23002         * modules/unictype/category-Zs: Likewise.
23003         * modules/unictype/category-and: Likewise.
23004         * modules/unictype/category-and-not: Likewise.
23005         * modules/unictype/category-byname: Likewise.
23006         * modules/unictype/category-name: Likewise.
23007         * modules/unictype/category-none: Likewise.
23008         * modules/unictype/category-of: Likewise.
23009         * modules/unictype/category-or: Likewise.
23010         * modules/unictype/category-test: Likewise.
23011         * modules/unictype/combining-class: Likewise.
23012         * modules/unictype/ctype-alnum: Likewise.
23013         * modules/unictype/ctype-alpha: Likewise.
23014         * modules/unictype/ctype-blank: Likewise.
23015         * modules/unictype/ctype-cntrl: Likewise.
23016         * modules/unictype/ctype-digit: Likewise.
23017         * modules/unictype/ctype-graph: Likewise.
23018         * modules/unictype/ctype-lower: Likewise.
23019         * modules/unictype/ctype-print: Likewise.
23020         * modules/unictype/ctype-punct: Likewise.
23021         * modules/unictype/ctype-space: Likewise.
23022         * modules/unictype/ctype-upper: Likewise.
23023         * modules/unictype/ctype-xdigit: Likewise.
23024         * modules/unictype/decimal-digit: Likewise.
23025         * modules/unictype/digit: Likewise.
23026         * modules/unictype/mirror: Likewise.
23027         * modules/unictype/numeric: Likewise.
23028         * modules/unictype/property-alphabetic: Likewise.
23029         * modules/unictype/property-ascii-hex-digit: Likewise.
23030         * modules/unictype/property-bidi-arabic-digit: Likewise.
23031         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23032         * modules/unictype/property-bidi-block-separator: Likewise.
23033         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23034         * modules/unictype/property-bidi-common-separator: Likewise.
23035         * modules/unictype/property-bidi-control: Likewise.
23036         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23037         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23038         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23039         * modules/unictype/property-bidi-european-digit: Likewise.
23040         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23041         * modules/unictype/property-bidi-left-to-right: Likewise.
23042         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23043         * modules/unictype/property-bidi-other-neutral: Likewise.
23044         * modules/unictype/property-bidi-pdf: Likewise.
23045         * modules/unictype/property-bidi-segment-separator: Likewise.
23046         * modules/unictype/property-bidi-whitespace: Likewise.
23047         * modules/unictype/property-byname: Likewise.
23048         * modules/unictype/property-combining: Likewise.
23049         * modules/unictype/property-composite: Likewise.
23050         * modules/unictype/property-currency-symbol: Likewise.
23051         * modules/unictype/property-dash: Likewise.
23052         * modules/unictype/property-decimal-digit: Likewise.
23053         * modules/unictype/property-default-ignorable-code-point: Likewise.
23054         * modules/unictype/property-deprecated: Likewise.
23055         * modules/unictype/property-diacritic: Likewise.
23056         * modules/unictype/property-extender: Likewise.
23057         * modules/unictype/property-format-control: Likewise.
23058         * modules/unictype/property-grapheme-base: Likewise.
23059         * modules/unictype/property-grapheme-extend: Likewise.
23060         * modules/unictype/property-grapheme-link: Likewise.
23061         * modules/unictype/property-hex-digit: Likewise.
23062         * modules/unictype/property-hyphen: Likewise.
23063         * modules/unictype/property-id-continue: Likewise.
23064         * modules/unictype/property-id-start: Likewise.
23065         * modules/unictype/property-ideographic: Likewise.
23066         * modules/unictype/property-ids-binary-operator: Likewise.
23067         * modules/unictype/property-ids-trinary-operator: Likewise.
23068         * modules/unictype/property-ignorable-control: Likewise.
23069         * modules/unictype/property-iso-control: Likewise.
23070         * modules/unictype/property-join-control: Likewise.
23071         * modules/unictype/property-left-of-pair: Likewise.
23072         * modules/unictype/property-line-separator: Likewise.
23073         * modules/unictype/property-logical-order-exception: Likewise.
23074         * modules/unictype/property-lowercase: Likewise.
23075         * modules/unictype/property-math: Likewise.
23076         * modules/unictype/property-non-break: Likewise.
23077         * modules/unictype/property-not-a-character: Likewise.
23078         * modules/unictype/property-numeric: Likewise.
23079         * modules/unictype/property-other-alphabetic: Likewise.
23080         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23081         * modules/unictype/property-other-grapheme-extend: Likewise.
23082         * modules/unictype/property-other-id-continue: Likewise.
23083         * modules/unictype/property-other-id-start: Likewise.
23084         * modules/unictype/property-other-lowercase: Likewise.
23085         * modules/unictype/property-other-math: Likewise.
23086         * modules/unictype/property-other-uppercase: Likewise.
23087         * modules/unictype/property-paired-punctuation: Likewise.
23088         * modules/unictype/property-paragraph-separator: Likewise.
23089         * modules/unictype/property-pattern-syntax: Likewise.
23090         * modules/unictype/property-pattern-white-space: Likewise.
23091         * modules/unictype/property-private-use: Likewise.
23092         * modules/unictype/property-punctuation: Likewise.
23093         * modules/unictype/property-quotation-mark: Likewise.
23094         * modules/unictype/property-radical: Likewise.
23095         * modules/unictype/property-sentence-terminal: Likewise.
23096         * modules/unictype/property-soft-dotted: Likewise.
23097         * modules/unictype/property-space: Likewise.
23098         * modules/unictype/property-terminal-punctuation: Likewise.
23099         * modules/unictype/property-test: Likewise.
23100         * modules/unictype/property-titlecase: Likewise.
23101         * modules/unictype/property-unassigned-code-value: Likewise.
23102         * modules/unictype/property-unified-ideograph: Likewise.
23103         * modules/unictype/property-uppercase: Likewise.
23104         * modules/unictype/property-variation-selector: Likewise.
23105         * modules/unictype/property-white-space: Likewise.
23106         * modules/unictype/property-xid-continue: Likewise.
23107         * modules/unictype/property-xid-start: Likewise.
23108         * modules/unictype/property-zero-width: Likewise.
23109         * modules/unictype/scripts: Likewise.
23110         * modules/unictype/syntax-c-ident: Likewise.
23111         * modules/unictype/syntax-c-whitespace: Likewise.
23112         * modules/unictype/syntax-java-ident: Likewise.
23113         * modules/unictype/syntax-java-whitespace: Likewise.
23114         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23115         * modules/unilbrk/u8-width-linebreaks: Likewise.
23116         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23117         * modules/unilbrk/u16-width-linebreaks: Likewise.
23118         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23119         * modules/unilbrk/u32-width-linebreaks: Likewise.
23120         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23121         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23122         * modules/uniname/uniname: Likewise.
23123         * modules/uninorm/canonical-decomposition: Likewise.
23124         * modules/uninorm/composition: Likewise.
23125         * modules/uninorm/decomposing-form: Likewise.
23126         * modules/uninorm/decomposition: Likewise.
23127         * modules/uninorm/filter: Likewise.
23128         * modules/uninorm/nfc: Likewise.
23129         * modules/uninorm/nfd: Likewise.
23130         * modules/uninorm/nfkc: Likewise.
23131         * modules/uninorm/nfkd: Likewise.
23132         * modules/uninorm/u8-normalize: Likewise.
23133         * modules/uninorm/u8-normcmp: Likewise.
23134         * modules/uninorm/u8-normcoll: Likewise.
23135         * modules/uninorm/u8-normxfrm: Likewise.
23136         * modules/uninorm/u16-normalize: Likewise.
23137         * modules/uninorm/u16-normcmp: Likewise.
23138         * modules/uninorm/u16-normcoll: Likewise.
23139         * modules/uninorm/u16-normxfrm: Likewise.
23140         * modules/uninorm/u32-normalize: Likewise.
23141         * modules/uninorm/u32-normcmp: Likewise.
23142         * modules/uninorm/u32-normcoll: Likewise.
23143         * modules/uninorm/u32-normxfrm: Likewise.
23144         * modules/unistdio/u8-asnprintf: Likewise.
23145         * modules/unistdio/u8-asprintf: Likewise.
23146         * modules/unistdio/u8-snprintf: Likewise.
23147         * modules/unistdio/u8-sprintf: Likewise.
23148         * modules/unistdio/u8-u8-asnprintf: Likewise.
23149         * modules/unistdio/u8-u8-asprintf: Likewise.
23150         * modules/unistdio/u8-u8-snprintf: Likewise.
23151         * modules/unistdio/u8-u8-sprintf: Likewise.
23152         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23153         * modules/unistdio/u8-u8-vasprintf: Likewise.
23154         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23155         * modules/unistdio/u8-u8-vsprintf: Likewise.
23156         * modules/unistdio/u8-vasnprintf: Likewise.
23157         * modules/unistdio/u8-vasprintf: Likewise.
23158         * modules/unistdio/u8-vsnprintf: Likewise.
23159         * modules/unistdio/u8-vsprintf: Likewise.
23160         * modules/unistdio/u16-asnprintf: Likewise.
23161         * modules/unistdio/u16-asprintf: Likewise.
23162         * modules/unistdio/u16-snprintf: Likewise.
23163         * modules/unistdio/u16-sprintf: Likewise.
23164         * modules/unistdio/u16-u16-asnprintf: Likewise.
23165         * modules/unistdio/u16-u16-asprintf: Likewise.
23166         * modules/unistdio/u16-u16-snprintf: Likewise.
23167         * modules/unistdio/u16-u16-sprintf: Likewise.
23168         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23169         * modules/unistdio/u16-u16-vasprintf: Likewise.
23170         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23171         * modules/unistdio/u16-u16-vsprintf: Likewise.
23172         * modules/unistdio/u16-vasnprintf: Likewise.
23173         * modules/unistdio/u16-vasprintf: Likewise.
23174         * modules/unistdio/u16-vsnprintf: Likewise.
23175         * modules/unistdio/u16-vsprintf: Likewise.
23176         * modules/unistdio/u32-asnprintf: Likewise.
23177         * modules/unistdio/u32-asprintf: Likewise.
23178         * modules/unistdio/u32-snprintf: Likewise.
23179         * modules/unistdio/u32-sprintf: Likewise.
23180         * modules/unistdio/u32-u32-asnprintf: Likewise.
23181         * modules/unistdio/u32-u32-asprintf: Likewise.
23182         * modules/unistdio/u32-u32-snprintf: Likewise.
23183         * modules/unistdio/u32-u32-sprintf: Likewise.
23184         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23185         * modules/unistdio/u32-u32-vasprintf: Likewise.
23186         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23187         * modules/unistdio/u32-u32-vsprintf: Likewise.
23188         * modules/unistdio/u32-vasnprintf: Likewise.
23189         * modules/unistdio/u32-vasprintf: Likewise.
23190         * modules/unistdio/u32-vsnprintf: Likewise.
23191         * modules/unistdio/u32-vsprintf: Likewise.
23192         * modules/unistdio/ulc-asnprintf: Likewise.
23193         * modules/unistdio/ulc-asprintf: Likewise.
23194         * modules/unistdio/ulc-fprintf: Likewise.
23195         * modules/unistdio/ulc-snprintf: Likewise.
23196         * modules/unistdio/ulc-sprintf: Likewise.
23197         * modules/unistdio/ulc-vasnprintf: Likewise.
23198         * modules/unistdio/ulc-vasprintf: Likewise.
23199         * modules/unistdio/ulc-vfprintf: Likewise.
23200         * modules/unistdio/ulc-vsnprintf: Likewise.
23201         * modules/unistdio/ulc-vsprintf: Likewise.
23202         * modules/unistr/u8-check: Likewise.
23203         * modules/unistr/u8-chr: Likewise.
23204         * modules/unistr/u8-cmp: Likewise.
23205         * modules/unistr/u8-cmp2: Likewise.
23206         * modules/unistr/u8-cpy: Likewise.
23207         * modules/unistr/u8-cpy-alloc: Likewise.
23208         * modules/unistr/u8-endswith: Likewise.
23209         * modules/unistr/u8-mblen: Likewise.
23210         * modules/unistr/u8-mbsnlen: Likewise.
23211         * modules/unistr/u8-mbtouc: Likewise.
23212         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23213         * modules/unistr/u8-mbtoucr: Likewise.
23214         * modules/unistr/u8-move: Likewise.
23215         * modules/unistr/u8-next: Likewise.
23216         * modules/unistr/u8-prev: Likewise.
23217         * modules/unistr/u8-set: Likewise.
23218         * modules/unistr/u8-startswith: Likewise.
23219         * modules/unistr/u8-stpcpy: Likewise.
23220         * modules/unistr/u8-stpncpy: Likewise.
23221         * modules/unistr/u8-strcat: Likewise.
23222         * modules/unistr/u8-strchr: Likewise.
23223         * modules/unistr/u8-strcmp: Likewise.
23224         * modules/unistr/u8-strcoll: Likewise.
23225         * modules/unistr/u8-strcpy: Likewise.
23226         * modules/unistr/u8-strcspn: Likewise.
23227         * modules/unistr/u8-strdup: Likewise.
23228         * modules/unistr/u8-strlen: Likewise.
23229         * modules/unistr/u8-strmblen: Likewise.
23230         * modules/unistr/u8-strmbtouc: Likewise.
23231         * modules/unistr/u8-strncat: Likewise.
23232         * modules/unistr/u8-strncmp: Likewise.
23233         * modules/unistr/u8-strncpy: Likewise.
23234         * modules/unistr/u8-strnlen: Likewise.
23235         * modules/unistr/u8-strpbrk: Likewise.
23236         * modules/unistr/u8-strrchr: Likewise.
23237         * modules/unistr/u8-strspn: Likewise.
23238         * modules/unistr/u8-strstr: Likewise.
23239         * modules/unistr/u8-strtok: Likewise.
23240         * modules/unistr/u8-to-u16: Likewise.
23241         * modules/unistr/u8-to-u32: Likewise.
23242         * modules/unistr/u8-uctomb: Likewise.
23243         * modules/unistr/u16-check: Likewise.
23244         * modules/unistr/u16-chr: Likewise.
23245         * modules/unistr/u16-cmp: Likewise.
23246         * modules/unistr/u16-cmp2: Likewise.
23247         * modules/unistr/u16-cpy: Likewise.
23248         * modules/unistr/u16-cpy-alloc: Likewise.
23249         * modules/unistr/u16-endswith: Likewise.
23250         * modules/unistr/u16-mblen: Likewise.
23251         * modules/unistr/u16-mbsnlen: Likewise.
23252         * modules/unistr/u16-mbtouc: Likewise.
23253         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23254         * modules/unistr/u16-mbtoucr: Likewise.
23255         * modules/unistr/u16-move: Likewise.
23256         * modules/unistr/u16-next: Likewise.
23257         * modules/unistr/u16-prev: Likewise.
23258         * modules/unistr/u16-set: Likewise.
23259         * modules/unistr/u16-startswith: Likewise.
23260         * modules/unistr/u16-stpcpy: Likewise.
23261         * modules/unistr/u16-stpncpy: Likewise.
23262         * modules/unistr/u16-strcat: Likewise.
23263         * modules/unistr/u16-strchr: Likewise.
23264         * modules/unistr/u16-strcmp: Likewise.
23265         * modules/unistr/u16-strcoll: Likewise.
23266         * modules/unistr/u16-strcpy: Likewise.
23267         * modules/unistr/u16-strcspn: Likewise.
23268         * modules/unistr/u16-strdup: Likewise.
23269         * modules/unistr/u16-strlen: Likewise.
23270         * modules/unistr/u16-strmblen: Likewise.
23271         * modules/unistr/u16-strmbtouc: Likewise.
23272         * modules/unistr/u16-strncat: Likewise.
23273         * modules/unistr/u16-strncmp: Likewise.
23274         * modules/unistr/u16-strncpy: Likewise.
23275         * modules/unistr/u16-strnlen: Likewise.
23276         * modules/unistr/u16-strpbrk: Likewise.
23277         * modules/unistr/u16-strrchr: Likewise.
23278         * modules/unistr/u16-strspn: Likewise.
23279         * modules/unistr/u16-strstr: Likewise.
23280         * modules/unistr/u16-strtok: Likewise.
23281         * modules/unistr/u16-to-u32: Likewise.
23282         * modules/unistr/u16-to-u8: Likewise.
23283         * modules/unistr/u16-uctomb: Likewise.
23284         * modules/unistr/u32-check: Likewise.
23285         * modules/unistr/u32-chr: Likewise.
23286         * modules/unistr/u32-cmp: Likewise.
23287         * modules/unistr/u32-cmp2: Likewise.
23288         * modules/unistr/u32-cpy: Likewise.
23289         * modules/unistr/u32-cpy-alloc: Likewise.
23290         * modules/unistr/u32-endswith: Likewise.
23291         * modules/unistr/u32-mblen: Likewise.
23292         * modules/unistr/u32-mbsnlen: Likewise.
23293         * modules/unistr/u32-mbtouc: Likewise.
23294         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23295         * modules/unistr/u32-mbtoucr: Likewise.
23296         * modules/unistr/u32-move: Likewise.
23297         * modules/unistr/u32-next: Likewise.
23298         * modules/unistr/u32-prev: Likewise.
23299         * modules/unistr/u32-set: Likewise.
23300         * modules/unistr/u32-startswith: Likewise.
23301         * modules/unistr/u32-stpcpy: Likewise.
23302         * modules/unistr/u32-stpncpy: Likewise.
23303         * modules/unistr/u32-strcat: Likewise.
23304         * modules/unistr/u32-strchr: Likewise.
23305         * modules/unistr/u32-strcmp: Likewise.
23306         * modules/unistr/u32-strcoll: Likewise.
23307         * modules/unistr/u32-strcpy: Likewise.
23308         * modules/unistr/u32-strcspn: Likewise.
23309         * modules/unistr/u32-strdup: Likewise.
23310         * modules/unistr/u32-strlen: Likewise.
23311         * modules/unistr/u32-strmblen: Likewise.
23312         * modules/unistr/u32-strmbtouc: Likewise.
23313         * modules/unistr/u32-strncat: Likewise.
23314         * modules/unistr/u32-strncmp: Likewise.
23315         * modules/unistr/u32-strncpy: Likewise.
23316         * modules/unistr/u32-strnlen: Likewise.
23317         * modules/unistr/u32-strpbrk: Likewise.
23318         * modules/unistr/u32-strrchr: Likewise.
23319         * modules/unistr/u32-strspn: Likewise.
23320         * modules/unistr/u32-strstr: Likewise.
23321         * modules/unistr/u32-strtok: Likewise.
23322         * modules/unistr/u32-to-u16: Likewise.
23323         * modules/unistr/u32-to-u8: Likewise.
23324         * modules/unistr/u32-uctomb: Likewise.
23325         * modules/uniwbrk/u8-wordbreaks: Likewise.
23326         * modules/uniwbrk/u16-wordbreaks: Likewise.
23327         * modules/uniwbrk/u32-wordbreaks: Likewise.
23328         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23329         * modules/uniwbrk/wordbreak-property: Likewise.
23330         * modules/uniwidth/u8-strwidth: Likewise.
23331         * modules/uniwidth/u8-width: Likewise.
23332         * modules/uniwidth/u16-strwidth: Likewise.
23333         * modules/uniwidth/u16-width: Likewise.
23334         * modules/uniwidth/u32-strwidth: Likewise.
23335         * modules/uniwidth/u32-width: Likewise.
23336         * modules/uniwidth/width: Likewise.
23337         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23338         with $(LIBUNISTRING).
23339         * modules/unicase/ignorable-tests: Likewise.
23340         * modules/unicase/locale-language-tests: Likewise.
23341         * modules/unicase/tolower-tests: Likewise.
23342         * modules/unicase/totitle-tests: Likewise.
23343         * modules/unicase/toupper-tests: Likewise.
23344         * modules/unicase/u8-casecmp-tests: Likewise.
23345         * modules/unicase/u8-casecoll-tests: Likewise.
23346         * modules/unicase/u8-casefold-tests: Likewise.
23347         * modules/unicase/u8-is-cased-tests: Likewise.
23348         * modules/unicase/u8-is-casefolded-tests: Likewise.
23349         * modules/unicase/u8-is-lowercase-tests: Likewise.
23350         * modules/unicase/u8-is-titlecase-tests: Likewise.
23351         * modules/unicase/u8-is-uppercase-tests: Likewise.
23352         * modules/unicase/u8-tolower-tests: Likewise.
23353         * modules/unicase/u8-totitle-tests: Likewise.
23354         * modules/unicase/u8-toupper-tests: Likewise.
23355         * modules/unicase/u16-casecmp-tests: Likewise.
23356         * modules/unicase/u16-casecoll-tests: Likewise.
23357         * modules/unicase/u16-casefold-tests: Likewise.
23358         * modules/unicase/u16-is-cased-tests: Likewise.
23359         * modules/unicase/u16-is-casefolded-tests: Likewise.
23360         * modules/unicase/u16-is-lowercase-tests: Likewise.
23361         * modules/unicase/u16-is-titlecase-tests: Likewise.
23362         * modules/unicase/u16-is-uppercase-tests: Likewise.
23363         * modules/unicase/u16-tolower-tests: Likewise.
23364         * modules/unicase/u16-totitle-tests: Likewise.
23365         * modules/unicase/u16-toupper-tests: Likewise.
23366         * modules/unicase/u32-casecmp-tests: Likewise.
23367         * modules/unicase/u32-casecoll-tests: Likewise.
23368         * modules/unicase/u32-casefold-tests: Likewise.
23369         * modules/unicase/u32-is-cased-tests: Likewise.
23370         * modules/unicase/u32-is-casefolded-tests: Likewise.
23371         * modules/unicase/u32-is-lowercase-tests: Likewise.
23372         * modules/unicase/u32-is-titlecase-tests: Likewise.
23373         * modules/unicase/u32-is-uppercase-tests: Likewise.
23374         * modules/unicase/u32-tolower-tests: Likewise.
23375         * modules/unicase/u32-totitle-tests: Likewise.
23376         * modules/unicase/u32-toupper-tests: Likewise.
23377         * modules/unicase/ulc-casecmp-tests: Likewise.
23378         * modules/unicase/ulc-casecoll-tests: Likewise.
23379         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23380         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23381         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23382         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23383         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23384         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23385         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23386         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23387         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23388         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23389         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23390         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23391         * modules/unictype/bidicategory-byname-tests: Likewise.
23392         * modules/unictype/bidicategory-name-tests: Likewise.
23393         * modules/unictype/bidicategory-of-tests: Likewise.
23394         * modules/unictype/bidicategory-test-tests: Likewise.
23395         * modules/unictype/block-list-tests: Likewise.
23396         * modules/unictype/block-of-tests: Likewise.
23397         * modules/unictype/block-test-tests: Likewise.
23398         * modules/unictype/category-C-tests: Likewise.
23399         * modules/unictype/category-Cc-tests: Likewise.
23400         * modules/unictype/category-Cf-tests: Likewise.
23401         * modules/unictype/category-Cn-tests: Likewise.
23402         * modules/unictype/category-Co-tests: Likewise.
23403         * modules/unictype/category-Cs-tests: Likewise.
23404         * modules/unictype/category-L-tests: Likewise.
23405         * modules/unictype/category-Ll-tests: Likewise.
23406         * modules/unictype/category-Lm-tests: Likewise.
23407         * modules/unictype/category-Lo-tests: Likewise.
23408         * modules/unictype/category-Lt-tests: Likewise.
23409         * modules/unictype/category-Lu-tests: Likewise.
23410         * modules/unictype/category-M-tests: Likewise.
23411         * modules/unictype/category-Mc-tests: Likewise.
23412         * modules/unictype/category-Me-tests: Likewise.
23413         * modules/unictype/category-Mn-tests: Likewise.
23414         * modules/unictype/category-N-tests: Likewise.
23415         * modules/unictype/category-Nd-tests: Likewise.
23416         * modules/unictype/category-Nl-tests: Likewise.
23417         * modules/unictype/category-No-tests: Likewise.
23418         * modules/unictype/category-P-tests: Likewise.
23419         * modules/unictype/category-Pc-tests: Likewise.
23420         * modules/unictype/category-Pd-tests: Likewise.
23421         * modules/unictype/category-Pe-tests: Likewise.
23422         * modules/unictype/category-Pf-tests: Likewise.
23423         * modules/unictype/category-Pi-tests: Likewise.
23424         * modules/unictype/category-Po-tests: Likewise.
23425         * modules/unictype/category-Ps-tests: Likewise.
23426         * modules/unictype/category-S-tests: Likewise.
23427         * modules/unictype/category-Sc-tests: Likewise.
23428         * modules/unictype/category-Sk-tests: Likewise.
23429         * modules/unictype/category-Sm-tests: Likewise.
23430         * modules/unictype/category-So-tests: Likewise.
23431         * modules/unictype/category-Z-tests: Likewise.
23432         * modules/unictype/category-Zl-tests: Likewise.
23433         * modules/unictype/category-Zp-tests: Likewise.
23434         * modules/unictype/category-Zs-tests: Likewise.
23435         * modules/unictype/category-and-not-tests: Likewise.
23436         * modules/unictype/category-and-tests: Likewise.
23437         * modules/unictype/category-byname-tests: Likewise.
23438         * modules/unictype/category-name-tests: Likewise.
23439         * modules/unictype/category-none-tests: Likewise.
23440         * modules/unictype/category-of-tests: Likewise.
23441         * modules/unictype/category-or-tests: Likewise.
23442         * modules/unictype/category-test-withtable-tests: Likewise.
23443         * modules/unictype/combining-class-tests: Likewise.
23444         * modules/unictype/ctype-alnum-tests: Likewise.
23445         * modules/unictype/ctype-alpha-tests: Likewise.
23446         * modules/unictype/ctype-blank-tests: Likewise.
23447         * modules/unictype/ctype-cntrl-tests: Likewise.
23448         * modules/unictype/ctype-digit-tests: Likewise.
23449         * modules/unictype/ctype-graph-tests: Likewise.
23450         * modules/unictype/ctype-lower-tests: Likewise.
23451         * modules/unictype/ctype-print-tests: Likewise.
23452         * modules/unictype/ctype-punct-tests: Likewise.
23453         * modules/unictype/ctype-space-tests: Likewise.
23454         * modules/unictype/ctype-upper-tests: Likewise.
23455         * modules/unictype/ctype-xdigit-tests: Likewise.
23456         * modules/unictype/decimal-digit-tests: Likewise.
23457         * modules/unictype/digit-tests: Likewise.
23458         * modules/unictype/mirror-tests: Likewise.
23459         * modules/unictype/numeric-tests: Likewise.
23460         * modules/unictype/property-alphabetic-tests: Likewise.
23461         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23462         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23463         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23464         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23465         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23466         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23467         * modules/unictype/property-bidi-control-tests: Likewise.
23468         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23469         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23470         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23471         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23472         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23473         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23474         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23475         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23476         * modules/unictype/property-bidi-pdf-tests: Likewise.
23477         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23478         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23479         * modules/unictype/property-byname-tests: Likewise.
23480         * modules/unictype/property-combining-tests: Likewise.
23481         * modules/unictype/property-composite-tests: Likewise.
23482         * modules/unictype/property-currency-symbol-tests: Likewise.
23483         * modules/unictype/property-dash-tests: Likewise.
23484         * modules/unictype/property-decimal-digit-tests: Likewise.
23485         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23486         * modules/unictype/property-deprecated-tests: Likewise.
23487         * modules/unictype/property-diacritic-tests: Likewise.
23488         * modules/unictype/property-extender-tests: Likewise.
23489         * modules/unictype/property-format-control-tests: Likewise.
23490         * modules/unictype/property-grapheme-base-tests: Likewise.
23491         * modules/unictype/property-grapheme-extend-tests: Likewise.
23492         * modules/unictype/property-grapheme-link-tests: Likewise.
23493         * modules/unictype/property-hex-digit-tests: Likewise.
23494         * modules/unictype/property-hyphen-tests: Likewise.
23495         * modules/unictype/property-id-continue-tests: Likewise.
23496         * modules/unictype/property-id-start-tests: Likewise.
23497         * modules/unictype/property-ideographic-tests: Likewise.
23498         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23499         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23500         * modules/unictype/property-ignorable-control-tests: Likewise.
23501         * modules/unictype/property-iso-control-tests: Likewise.
23502         * modules/unictype/property-join-control-tests: Likewise.
23503         * modules/unictype/property-left-of-pair-tests: Likewise.
23504         * modules/unictype/property-line-separator-tests: Likewise.
23505         * modules/unictype/property-logical-order-exception-tests: Likewise.
23506         * modules/unictype/property-lowercase-tests: Likewise.
23507         * modules/unictype/property-math-tests: Likewise.
23508         * modules/unictype/property-non-break-tests: Likewise.
23509         * modules/unictype/property-not-a-character-tests: Likewise.
23510         * modules/unictype/property-numeric-tests: Likewise.
23511         * modules/unictype/property-other-alphabetic-tests: Likewise.
23512         * modules/unictype/property-other-default-ignorable-code-point-tests:
23513         Likewise.
23514         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23515         * modules/unictype/property-other-id-continue-tests: Likewise.
23516         * modules/unictype/property-other-id-start-tests: Likewise.
23517         * modules/unictype/property-other-lowercase-tests: Likewise.
23518         * modules/unictype/property-other-math-tests: Likewise.
23519         * modules/unictype/property-other-uppercase-tests: Likewise.
23520         * modules/unictype/property-paired-punctuation-tests: Likewise.
23521         * modules/unictype/property-paragraph-separator-tests: Likewise.
23522         * modules/unictype/property-pattern-syntax-tests: Likewise.
23523         * modules/unictype/property-pattern-white-space-tests: Likewise.
23524         * modules/unictype/property-private-use-tests: Likewise.
23525         * modules/unictype/property-punctuation-tests: Likewise.
23526         * modules/unictype/property-quotation-mark-tests: Likewise.
23527         * modules/unictype/property-radical-tests: Likewise.
23528         * modules/unictype/property-sentence-terminal-tests: Likewise.
23529         * modules/unictype/property-soft-dotted-tests: Likewise.
23530         * modules/unictype/property-space-tests: Likewise.
23531         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23532         * modules/unictype/property-test-tests: Likewise.
23533         * modules/unictype/property-titlecase-tests: Likewise.
23534         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23535         * modules/unictype/property-unified-ideograph-tests: Likewise.
23536         * modules/unictype/property-uppercase-tests: Likewise.
23537         * modules/unictype/property-variation-selector-tests: Likewise.
23538         * modules/unictype/property-white-space-tests: Likewise.
23539         * modules/unictype/property-xid-continue-tests: Likewise.
23540         * modules/unictype/property-xid-start-tests: Likewise.
23541         * modules/unictype/property-zero-width-tests: Likewise.
23542         * modules/unictype/scripts-tests: Likewise.
23543         * modules/unictype/syntax-c-ident-tests: Likewise.
23544         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23545         * modules/unictype/syntax-java-ident-tests: Likewise.
23546         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23547         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23548         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23549         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23550         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23551         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23552         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23553         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23554         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23555         * modules/uniname/uniname-tests: Likewise.
23556         * modules/uninorm/canonical-decomposition-tests: Likewise.
23557         * modules/uninorm/compat-decomposition-tests: Likewise.
23558         * modules/uninorm/composition-tests: Likewise.
23559         * modules/uninorm/decomposing-form-tests: Likewise.
23560         * modules/uninorm/decomposition-tests: Likewise.
23561         * modules/uninorm/filter-tests: Likewise.
23562         * modules/uninorm/nfc-tests: Likewise.
23563         * modules/uninorm/nfd-tests: Likewise.
23564         * modules/uninorm/nfkc-tests: Likewise.
23565         * modules/uninorm/nfkd-tests: Likewise.
23566         * modules/uninorm/u8-normcmp-tests: Likewise.
23567         * modules/uninorm/u8-normcoll-tests: Likewise.
23568         * modules/uninorm/u16-normcmp-tests: Likewise.
23569         * modules/uninorm/u16-normcoll-tests: Likewise.
23570         * modules/uninorm/u32-normcmp-tests: Likewise.
23571         * modules/uninorm/u32-normcoll-tests: Likewise.
23572         * modules/unistdio/u8-asnprintf-tests: Likewise.
23573         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23574         * modules/unistdio/u8-vasprintf-tests: Likewise.
23575         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23576         * modules/unistdio/u8-vsprintf-tests: Likewise.
23577         * modules/unistdio/u16-asnprintf-tests: Likewise.
23578         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23579         * modules/unistdio/u16-vasprintf-tests: Likewise.
23580         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23581         * modules/unistdio/u16-vsprintf-tests: Likewise.
23582         * modules/unistdio/u32-asnprintf-tests: Likewise.
23583         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23584         * modules/unistdio/u32-vasprintf-tests: Likewise.
23585         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23586         * modules/unistdio/u32-vsprintf-tests: Likewise.
23587         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23588         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23589         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23590         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23591         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23592         * modules/unistr/u8-check-tests: Likewise.
23593         * modules/unistr/u8-chr-tests: Likewise.
23594         * modules/unistr/u8-cmp-tests: Likewise.
23595         * modules/unistr/u8-cmp2-tests: Likewise.
23596         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23597         * modules/unistr/u8-cpy-tests: Likewise.
23598         * modules/unistr/u8-mblen-tests: Likewise.
23599         * modules/unistr/u8-mbsnlen-tests: Likewise.
23600         * modules/unistr/u8-mbtouc-tests: Likewise.
23601         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23602         * modules/unistr/u8-mbtoucr-tests: Likewise.
23603         * modules/unistr/u8-move-tests: Likewise.
23604         * modules/unistr/u8-next-tests: Likewise.
23605         * modules/unistr/u8-prev-tests: Likewise.
23606         * modules/unistr/u8-set-tests: Likewise.
23607         * modules/unistr/u8-stpcpy-tests: Likewise.
23608         * modules/unistr/u8-stpncpy-tests: Likewise.
23609         * modules/unistr/u8-strcat-tests: Likewise.
23610         * modules/unistr/u8-strcmp-tests: Likewise.
23611         * modules/unistr/u8-strcoll-tests: Likewise.
23612         * modules/unistr/u8-strcpy-tests: Likewise.
23613         * modules/unistr/u8-strdup-tests: Likewise.
23614         * modules/unistr/u8-strlen-tests: Likewise.
23615         * modules/unistr/u8-strmblen-tests: Likewise.
23616         * modules/unistr/u8-strmbtouc-tests: Likewise.
23617         * modules/unistr/u8-strncat-tests: Likewise.
23618         * modules/unistr/u8-strncmp-tests: Likewise.
23619         * modules/unistr/u8-strncpy-tests: Likewise.
23620         * modules/unistr/u8-strnlen-tests: Likewise.
23621         * modules/unistr/u8-to-u16-tests: Likewise.
23622         * modules/unistr/u8-to-u32-tests: Likewise.
23623         * modules/unistr/u8-uctomb-tests: Likewise.
23624         * modules/unistr/u16-check-tests: Likewise.
23625         * modules/unistr/u16-chr-tests: Likewise.
23626         * modules/unistr/u16-cmp-tests: Likewise.
23627         * modules/unistr/u16-cmp2-tests: Likewise.
23628         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23629         * modules/unistr/u16-cpy-tests: Likewise.
23630         * modules/unistr/u16-mblen-tests: Likewise.
23631         * modules/unistr/u16-mbsnlen-tests: Likewise.
23632         * modules/unistr/u16-mbtouc-tests: Likewise.
23633         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23634         * modules/unistr/u16-mbtoucr-tests: Likewise.
23635         * modules/unistr/u16-move-tests: Likewise.
23636         * modules/unistr/u16-next-tests: Likewise.
23637         * modules/unistr/u16-prev-tests: Likewise.
23638         * modules/unistr/u16-set-tests: Likewise.
23639         * modules/unistr/u16-stpcpy-tests: Likewise.
23640         * modules/unistr/u16-stpncpy-tests: Likewise.
23641         * modules/unistr/u16-strcat-tests: Likewise.
23642         * modules/unistr/u16-strcmp-tests: Likewise.
23643         * modules/unistr/u16-strcoll-tests: Likewise.
23644         * modules/unistr/u16-strcpy-tests: Likewise.
23645         * modules/unistr/u16-strdup-tests: Likewise.
23646         * modules/unistr/u16-strlen-tests: Likewise.
23647         * modules/unistr/u16-strmblen-tests: Likewise.
23648         * modules/unistr/u16-strmbtouc-tests: Likewise.
23649         * modules/unistr/u16-strncat-tests: Likewise.
23650         * modules/unistr/u16-strncmp-tests: Likewise.
23651         * modules/unistr/u16-strncpy-tests: Likewise.
23652         * modules/unistr/u16-strnlen-tests: Likewise.
23653         * modules/unistr/u16-to-u32-tests: Likewise.
23654         * modules/unistr/u16-to-u8-tests: Likewise.
23655         * modules/unistr/u16-uctomb-tests: Likewise.
23656         * modules/unistr/u32-check-tests: Likewise.
23657         * modules/unistr/u32-chr-tests: Likewise.
23658         * modules/unistr/u32-cmp-tests: Likewise.
23659         * modules/unistr/u32-cmp2-tests: Likewise.
23660         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23661         * modules/unistr/u32-cpy-tests: Likewise.
23662         * modules/unistr/u32-mblen-tests: Likewise.
23663         * modules/unistr/u32-mbsnlen-tests: Likewise.
23664         * modules/unistr/u32-mbtouc-tests: Likewise.
23665         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23666         * modules/unistr/u32-mbtoucr-tests: Likewise.
23667         * modules/unistr/u32-move-tests: Likewise.
23668         * modules/unistr/u32-next-tests: Likewise.
23669         * modules/unistr/u32-prev-tests: Likewise.
23670         * modules/unistr/u32-set-tests: Likewise.
23671         * modules/unistr/u32-stpcpy-tests: Likewise.
23672         * modules/unistr/u32-stpncpy-tests: Likewise.
23673         * modules/unistr/u32-strcat-tests: Likewise.
23674         * modules/unistr/u32-strcmp-tests: Likewise.
23675         * modules/unistr/u32-strcoll-tests: Likewise.
23676         * modules/unistr/u32-strcpy-tests: Likewise.
23677         * modules/unistr/u32-strdup-tests: Likewise.
23678         * modules/unistr/u32-strlen-tests: Likewise.
23679         * modules/unistr/u32-strmblen-tests: Likewise.
23680         * modules/unistr/u32-strmbtouc-tests: Likewise.
23681         * modules/unistr/u32-strncat-tests: Likewise.
23682         * modules/unistr/u32-strncmp-tests: Likewise.
23683         * modules/unistr/u32-strncpy-tests: Likewise.
23684         * modules/unistr/u32-strnlen-tests: Likewise.
23685         * modules/unistr/u32-to-u16-tests: Likewise.
23686         * modules/unistr/u32-to-u8-tests: Likewise.
23687         * modules/unistr/u32-uctomb-tests: Likewise.
23688         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23689         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23690         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23691         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23692         * modules/uniwidth/u8-strwidth-tests: Likewise.
23693         * modules/uniwidth/u8-width-tests: Likewise.
23694         * modules/uniwidth/u16-strwidth-tests: Likewise.
23695         * modules/uniwidth/u16-width-tests: Likewise.
23696         * modules/uniwidth/u32-strwidth-tests: Likewise.
23697         * modules/uniwidth/u32-width-tests: Likewise.
23698         * modules/uniwidth/width-tests: Likewise.
23699
23700 2010-05-18  Richard Jones  <rjones@redhat.com>
23701
23702         doc: users.txt: list hivex
23703         * users.txt: Add hivex.
23704
23705 2010-05-18  Richard Jones  <rjones@redhat.com>
23706
23707         doc: users.txt: list febootstrap
23708         * users.txt: Add febootstrap.
23709
23710 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23711
23712         bootstrap: fix an error when gnulib is not used as a git submodule
23713         * build-aux/bootstrap (gnulib_path): If its length is zero then
23714         assign "gnulib" to it.
23715         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23716
23717 2010-05-16  Bruno Haible  <bruno@clisp.org>
23718
23719         Avoid autoconf warnings about AM_ICONV.
23720         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23721         2.64.
23722
23723 2010-05-16  Bruno Haible  <bruno@clisp.org>
23724
23725         absolute-header: Make the macro usable in more situations.
23726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23727         from gl_ABSOLUTE_HEADER.
23728         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23729
23730 2010-05-16  James Youngman  <jay@gnu.org>
23731
23732         doc: update users.txt
23733         * users.txt: Add CSSC.
23734
23735 2010-05-16  Jim Meyering  <meyering@redhat.com>
23736
23737         init.sh: fix an error in the previous change; add more comments
23738         * tests/init.sh: Compare exit code in loop against 9, not 2.
23739         Patch by Bruno Haible.
23740         Make the two tests more similar by adding an empty "then" clause.
23741         Add comments.
23742
23743         init.sh: avoid unnecessary shell re-exec
23744         * tests/init.sh: Improve the re-exec-required check to first test the
23745         current shell.  If it passes the test, do not search for a shell that
23746         does pass, and do not re-exec.  This test is particularly contorted to
23747         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23748         of $(...) evokes a syntax error and causes immediate shell exit with
23749         status 2.  Bruno Haible reported that the re-exec made it impossible
23750         to single-step through any init.sh-using script.
23751
23752 2010-05-16  Bruno Haible  <bruno@clisp.org>
23753
23754         Fix collision between gnulib's and libintl's printf replacements.
23755         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23756         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23757         (printf): When using GNU C, map the __printf__ function to rpl_printf
23758         via __asm__. When not using GNU C, define rpl_printf instead of
23759         __printf__.
23760         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23761         commit.
23762         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23763         commit.
23764         * m4/asm-underscore.m4: New file.
23765         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23766         * modules/stdio (Files): Add m4/asm-underscore.m4.
23767         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23768         Reported by Ben Pfaff.
23769
23770 2010-05-16  Bruno Haible  <bruno@clisp.org>
23771
23772         verify: Avoid skipping the test on openSUSE 11.0.
23773         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23774
23775 2010-05-13  Bruno Haible  <bruno@clisp.org>
23776
23777         Avoid useless warnings from G++.
23778         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23779         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23780         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23781
23782 2010-05-11  Jim Meyering  <meyering@redhat.com>
23783
23784         maint.mk: tweak preceding change
23785         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23786         regexps tighter by anchoring at EOL, and make the new group "shy"
23787         for slightly decreased overhead.
23788
23789 2010-05-11  Eric Blake  <eblake@redhat.com>
23790
23791         maint.mk: gnulib doesn't guarantee NSIG
23792         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23793
23794 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23795
23796         test-pwrite.c: Remove unused variable declaration.
23797         * tests/test-pwrite.c (main): Remove read_buf declaration.
23798
23799         Remove useless test-pwrite.sh file.
23800         * tests/test-pwrite.sh: Delete file.
23801         * modules/pwrite-tests: Remove references.
23802         Reported by Bruno Haible.
23803
23804 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23805
23806         init.sh: fix a typo
23807         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23808
23809 2010-05-10  Jim Meyering  <meyering@redhat.com>
23810
23811         maint.mk: avoid using a temporary file in the always-defined-macros check
23812         * top/maint.mk (.re-defmac): Remove rule.
23813         (gl_trap_): Remove definition.
23814         (sc_prohibit_always-defined_macros): Rewrite not to create and
23815         depend on a temporary file.  Instead, depend on GNU grep's ability
23816         to read a list of regular expressions from stdin when given "-f -".
23817
23818 2010-05-09  Bruno Haible  <bruno@clisp.org>
23819
23820         Update to GNU gettext 0.18, part 1.
23821         * m4/gettext.m4: Update to GNU gettext 0.18.
23822         * m4/intl.m4: Likewise.
23823         * m4/po.m4: Likewise.
23824         * modules/gettext (Files): Add m4/fcntl-o.m4.
23825         (configure.ac): Require gettext infrastructure from version 0.18.
23826
23827 2010-05-09  Jim Meyering  <meyering@redhat.com>
23828
23829         init.sh: enable MALLOC_PERTURB_
23830         * tests/init.sh: Enable glibc's malloc-perturbing option.
23831
23832         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23833         With my recent change in init.sh from the two-line form:
23834             -#   : ${srcdir=.}
23835             -#   . "$srcdir/init.sh"; path_prepend_ .
23836             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23837         I noticed that using the one-line form would cause this test
23838         to fail with a false-positive, or to stop working altogether,
23839         depending on whether help-version changed or all the tests did.
23840         * top/maint.mk (_hv_regex): Remove this definition.
23841         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23842         (_hv_regex_strong): Use a stronger regex to check for conformance.
23843         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23844         Give a separate diagnostic for lack of conforming use.
23845
23846         maint.mk: prohibit definition of symbols defined by gnulib
23847         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23848         definition of symbols defined by gnulib.
23849
23850 2010-05-09  Bruno Haible  <bruno@clisp.org>
23851
23852         acl: Avoid test failure on Cygwin-hosted mingw.
23853         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23854
23855 2010-05-09  Bruno Haible  <bruno@clisp.org>
23856
23857         error: Use system's fcntl function.
23858         * lib/error.c (fcntl): Undefine.
23859
23860 2010-05-09  Jim Meyering  <meyering@redhat.com>
23861
23862         verify: adjust formatting to be more consistent
23863         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23864         argument-list '('s, and after one comma.
23865
23866 2010-05-09  Bruno Haible  <bruno@clisp.org>
23867
23868         error: More reliable output on mingw.
23869         * lib/error.c: Include <windows.h>.
23870         (is_open): New function.
23871         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23872         defined.
23873
23874 2010-05-09  Bruno Haible  <bruno@clisp.org>
23875
23876         vasnprintf: Fix syntax errors in libintl build on mingw.
23877         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23878         pad_ourselves and prec_ourselves after use.
23879
23880 2010-05-08  Bruno Haible  <bruno@clisp.org>
23881
23882         * lib/config.charset: Update comments for Cygwin 1.7.
23883         * lib/localcharset.c: Likewise.
23884
23885 2010-05-07  Jim Meyering  <meyering@redhat.com>
23886
23887         init.sh: improve comments
23888         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23889         . "${srcdir=.}/init.sh"; path_prepend_ .
23890         Add a note about path_prepend_ and the alternative of using
23891         TESTS_ENVIRONMENT.
23892
23893 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23894
23895         exclude: Unescape hashed patterns in wildcard mode.
23896         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23897         to the hash list.
23898         * tests/test-exclude8.sh: New test case.
23899         * modules/exclude-tests: Add new test.
23900
23901 2010-05-05  Eric Blake  <eblake@redhat.com>
23902
23903         verify: automate tests
23904         * modules/verify-tests: New module.
23905         * tests/test-verify.sh: New file.
23906         * tests/test-verify.c: Guard each negative test with a unique id.
23907         Also avoid warning about unused left hand of comma expressions.
23908
23909 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23910
23911         Further improvements to verify.h, suggested by Eric Blake.
23912         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23913         the GL_* versions, to avoid collision with OpenGL.
23914         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23915         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23916         than testing merely whether it's defined.
23917
23918         Modify verify.h to pacify gcc -Wredundant_decls.
23919         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23920         These use the prefix "GL_" since they're likely to be useful elsewhere.
23921         We may need to break them out into a different .h file.
23922         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23923         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23924         of verify_function__.
23925
23926 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23927
23928         Tests for module pwrite.
23929         * modules/pwrite-tests: New file.
23930         * tests/test-pwrite.sh: New file.
23931         * tests/test-pwrite.c: New file.
23932
23933         New module pwrite.
23934         * lib/unistd.in.h (pwrite): New declaration.
23935         * lib/pwrite.c: New file, from glibc with modifications.
23936         * m4/pwrite.m4: New file.
23937         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23938         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23939         REPLACE_PWRITE.
23940         * modules/pwrite: New file.
23941         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23942         REPLACE_PWRITE.
23943         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23944         * doc/posix-functions/pwrite.texi: Mention the new module.
23945
23946 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23947
23948         pread: Update documentation.
23949         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23950
23951 2010-05-04  Eric Blake  <eblake@redhat.com>
23952
23953         docs: update cygwin progress
23954         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23955         this bug.
23956         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23957         Added in cygwin 1.7.2.
23958         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23959         Likewise.
23960         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23961         Likewise.
23962         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23963         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23964         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23965         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23966         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23967         Mention nproc module.
23968         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23969         bug in cygwin 1.7.5 addition.
23970         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23971         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23972         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23973         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23974         1.7.5.
23975         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23976         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23977         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23978         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23979         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23980         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23981         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23982         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23983         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23984         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23985         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23986         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23987         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23988         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23989         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23990         Likewise.
23991         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23992         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23993         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23994         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23995         Likewise.
23996         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23997         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23998         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23999         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24000         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24001         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24002         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24003         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24004         Likewise.
24005         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24006         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24007         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24008         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24009         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24010         Likewise.
24011         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24012         Likewise.
24013         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24014         Likewise.
24015         * doc/glibc-functions/xdrrec_endofrecord.texi
24016         (xdrrec_endofrecord): Likewise.
24017         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24018         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24019         Likewise.
24020         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24021         Likewise.
24022
24023 2010-05-04  Jim Meyering  <meyering@redhat.com>
24024
24025         gendocs.sh: make its "-s FILE" option more useful
24026         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24027         $PACKAGE to reflect the probably-different basename of "FILE".
24028
24029 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24030
24031         bootstrap: don't ignore download_po_files failure
24032         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24033         failure.
24034
24035 2010-05-03  Jim Meyering  <meyering@redhat.com>
24036
24037         maint.mk: allow to pass options to gendocs.sh
24038         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24039         (gendocs_options_): New overridable variable.
24040
24041         gnu-web-doc-update: don't ignore configure or build failure
24042         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24043
24044         announce-gen: backslash-escape '@'s in --help output
24045         * build-aux/announce-gen: Fix syntax errors.
24046
24047         maint.mk, announce-gen: allow project-specific announcement mail headers
24048         * top/maint.mk (translation_project_): Define default.
24049         (announcement_Cc_, announcement_mail_headers_): Likewise.
24050         (announcement): Invoke announce-gen with new --mail-headers option.
24051         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24052
24053         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24054         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24055         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24056         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24057         line in the "err2" output file when running "make check" in verbose
24058         mode (i.e., with set -x enabled).
24059
24060 2010-05-03  Bruno Haible  <bruno@clisp.org>
24061
24062         wctob: Fix for weird platforms.
24063         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24064         argument value.
24065
24066 2010-05-03  Jim Meyering  <meyering@redhat.com>
24067
24068         maint.mk: prohibit unwarranted use of <strings.h>
24069         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24070         strings.h in a file that does not also use strcasecmp, strncasecmp,
24071         ffs or ffsll.
24072
24073         maint.mk: remove obsolete comments
24074         * top/maint.mk: Remove stale, commented-out rules.
24075
24076 2010-05-02  Bruno Haible  <bruno@clisp.org>
24077
24078         wcwidth: Declare also when it's aliased.
24079         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24080         macro.
24081
24082 2010-05-02  Bruno Haible  <bruno@clisp.org>
24083
24084         Fix regression from 2010-04-25.
24085         * gnulib-tool (func_modules_transitive_closure): Check the status of
24086         all modules, not only of the tests that are of the form foo-tests where
24087         foo is a module.
24088
24089 2010-05-02  Bruno Haible  <bruno@clisp.org>
24090
24091         wctob: Work around nasty Cygwin 1.7.2 bug.
24092         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24093         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24094
24095 2010-05-01  Bruno Haible  <bruno@clisp.org>
24096
24097         fpurge: Sharper test.
24098         * tests/test-fpurge.c (main): Add one more ftell check.
24099         * modules/fpurge-tests (Depends-on): Add ftell.
24100         Suggested by Eric Blake.
24101
24102 2010-05-01  Bruno Haible  <bruno@clisp.org>
24103
24104         ftello: Another test.
24105         * tests/test-ftello3.c: New file.
24106         * modules/ftello-tests (Files): Add it.
24107         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24108         MOSTLYCLEANFILES.
24109
24110         ftell: Another test.
24111         * tests/test-ftell3.c: New file.
24112         * modules/ftell-tests (Files): Add it.
24113         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24114         MOSTLYCLEANFILES.
24115
24116 2010-05-01  Bruno Haible  <bruno@clisp.org>
24117
24118         ftell, ftello: Work around Solaris bug.
24119         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24120         * lib/ftello.c: Include stdio-impl.h.
24121         (ftello): On Solaris, when _IOWRT is set, compute the result without
24122         looking at _IOREAD.
24123         * modules/ftello (Files): Add lib/stdio-impl.h.
24124         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24125         * doc/posix-functions/ftello.texi: Likewise.
24126         Reported by Eric Blake.
24127
24128 2010-05-01  Bruno Haible  <bruno@clisp.org>
24129
24130         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24131         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24132         the _IOWRT flag is also set.
24133
24134 2010-05-01  Bruno Haible  <bruno@clisp.org>
24135
24136         Fix doc about a HP-UX stdio bug.
24137         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24138         * doc/posix-functions/ftello.texi: Likewise.
24139
24140 2010-05-01  Bruno Haible  <bruno@clisp.org>
24141
24142         lseek test: Fix failure on Solaris.
24143         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24144         output.
24145
24146 2010-04-30  Jim Meyering  <meyering@redhat.com>
24147
24148         bootstrap: don't ignore failure to generate po*/Makevars
24149         * build-aux/bootstrap (with_gettext): Don't ignore failure
24150         to create po/Makevars or runtime-po/Makevars.
24151
24152 2010-04-29  Eric Blake  <eblake@redhat.com>
24153
24154         headers: relax license to LGPLv2+
24155         * modules/fcntl-h (License): Relax license.
24156         * modules/getopt-posix (License): Likewise.
24157         * modules/locale (License): Likewise.
24158         * modules/math (License): Likewise.
24159         * modules/pty (License): Likewise.
24160         * modules/sched (License): Likewise.
24161         * modules/search (License): Likewise.
24162         * modules/spawn (License): Likewise.
24163         * modules/stdarg (License): Likewise.
24164         * modules/sysexits (License): Likewise.
24165
24166 2010-04-29  Jim Meyering  <meyering@redhat.com>
24167
24168         inttypes: relax license to LGPLv2+
24169         * modules/inttypes (License): Relax license.
24170
24171 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24172
24173         * top/maint.mk (indent): Run twice to produce idempotent results.
24174
24175 2010-04-28  Bruno Haible  <bruno@clisp.org>
24176
24177         getdate: Generate getdate.c in the source directory.
24178         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24179         MOSTLYCLEANFILES.
24180         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24181
24182 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24183
24184         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24185         is not declared as a const *; avoid warnings in that case.
24186
24187 2010-04-28  Eric Blake  <eblake@redhat.com>
24188
24189         canonicalize-lgpl: avoid compiler warning
24190         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24191         declaration' / 'extraneous semicolon' warning with some compilers.
24192         Reported by Andreas Gruenbacher.
24193
24194 2010-04-28  Jim Meyering  <meyering@redhat.com>
24195
24196         init.sh: ensure a more reliable exit status when exiting via trap
24197         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24198         Inspired by patches from Dmitry V. Levin.
24199         Also trap on signal 3 (SIGQUIT).
24200
24201 2010-04-27  Bruno Haible  <bruno@clisp.org>
24202
24203         Update doc about utimes().
24204         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24205         'utimens' module.
24206         Reported by Andreas Gruenbacher <agruen@suse.de>.
24207
24208 2010-04-27  Eric Blake  <eblake@redhat.com>
24209
24210         full-read, full-write: relax license
24211         * modules/full-read (License): Drop to LGPLv2+.
24212         * modules/full-write (License): Likewise.
24213         * modules/safe-read (License): Likewise.
24214         * modules/safe-write (License): Likewise.
24215
24216         pthread: mention library for linking
24217         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24218
24219 2010-04-27  Jim Meyering  <meyering@redhat.com>
24220
24221         maint.mk: fix a bug introduced in last change
24222         * top/maint.mk (gl_assured_headers_): Now that all names are on
24223         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24224         is not anchored to end of word, it should be adequate.
24225
24226         maint.mk: avoid side-effect in latest syntax-check
24227         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24228         to run commands via $(shell...), and hence to incur cost only when
24229         the new rule is actually run.
24230
24231         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24232         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24233         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24234         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24235         (gl_assured_headers_, az_, AZ_): Define.
24236         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24237
24238 2010-04-26  Jim Meyering  <jim@meyering.net>
24239             Bruno Haible  <bruno@clisp.org>
24240
24241         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24242         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24243         Prompted by an exchange with Gilles Espinasse.
24244
24245 2010-04-26  Jim Meyering  <meyering@redhat.com>
24246
24247         git-version-gen: aesthetic tweak
24248         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24249         so that the command remains on a single line.
24250
24251 2010-04-26  Eric Blake  <eblake@redhat.com>
24252
24253         git-version-gen: allow use on EBCDIC hosts
24254         * build-aux/git-version-gen (dirty): Use literal rather than tying
24255         ourselves to ascii.
24256         Reported by Steve Goetze.
24257
24258 2010-04-25  Bruno Haible  <bruno@clisp.org>
24259
24260         netdb: Add support for GNULIB_POSIXCHECK.
24261         * lib/netdb.in.h: Include warn-on-use.h.
24262         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24263         functions are used when GNULIB_POSIXCHECK is defined and the
24264         getaddrinfo module is not in use.
24265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24266         freeaddrinfo, gai_strerror, getnameinfo are declared.
24267         * modules/netdb (Depends-on): Add warn-on-use.
24268         (Makefile.am): Include warn-on-use.h in netdb.h.
24269
24270 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24271
24272         build: avoid "make check" failure without .git/ directory
24273         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24274         there is no .git/ directory.
24275
24276 2010-04-25  Bruno Haible  <bruno@clisp.org>
24277
24278         ptsname: Fix misuse of ttyname_r.
24279         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24280         of errno.
24281
24282 2010-04-25  Bruno Haible  <bruno@clisp.org>
24283
24284         ttyname_r: Make it work on Solaris 10.
24285         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24286         if the system function has the POSIX declaration. Test whether the
24287         function fails if the buffer is less than 128 bytes large.
24288         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24289         system's ttyname_r function. Provide a reasonably large buffer.
24290         * modules/ttyname_r (Depends-on): Add extensions.
24291         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24292
24293 2010-04-25  Bruno Haible  <bruno@clisp.org>
24294
24295         Use the 'extensions' module for some more functions on Solaris.
24296         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24297         module.
24298         * doc/posix-functions/ctime_r.texi: Likewise.
24299         * doc/posix-functions/getgrgid_r.texi: Likewise.
24300         * doc/posix-functions/getgrnam_r.texi: Likewise.
24301         * doc/posix-functions/getpwnam_r.texi: Likewise.
24302         * doc/posix-functions/getpwuid_r.texi: Likewise.
24303         * doc/posix-functions/readdir_r.texi: Likewise.
24304         * doc/posix-functions/sigwait.texi: Likewise.
24305         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24306         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24307
24308 2010-04-25  Bruno Haible  <bruno@clisp.org>
24309
24310         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24311         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24312         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24313         * lib/ttyname_r.c: Include <limits.h>.
24314         (ttyname_r): Define using the system's ttyname_r function, if it exists
24315         and not on Solaris.
24316         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24317         set.
24318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24319         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24320         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24321         Reported by Simon Josefsson.
24322
24323 2010-04-25  Bruno Haible  <bruno@clisp.org>
24324
24325         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24326         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24327         * doc/posix-functions/ctime_r.texi: Likewise.
24328         * doc/posix-functions/getgrgid_r.texi: Likewise.
24329         * doc/posix-functions/getgrnam_r.texi: Likewise.
24330         * doc/posix-functions/getlogin_r.texi: Likewise.
24331         * doc/posix-functions/getpwnam_r.texi: Likewise.
24332         * doc/posix-functions/getpwuid_r.texi: Likewise.
24333         * doc/posix-functions/readdir_r.texi: Likewise.
24334         * doc/posix-functions/sigwait.texi: Likewise.
24335         * doc/posix-functions/ttyname_r.texi: Likewise.
24336         Reported by Simon Josefsson.
24337
24338 2010-04-25  Bruno Haible  <bruno@clisp.org>
24339
24340         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24341         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24342         also to --create-testdir.
24343         (func_acceptable): Don't consider the status of *-tests modules here.
24344         (func_modules_transitive_closure): Consider it here, before including a
24345         test module.
24346         (func_import, func_create_testdir): Set inc_all_direct_tests,
24347         inc_all_indirect_tests.
24348         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24349         --create-testdir and --create-megatestdir.
24350
24351 2010-04-25  Bruno Haible  <bruno@clisp.org>
24352
24353         gnulib-tool: Add --without-*-tests options.
24354         * gnulib-tool (func_usage): Document the --without-*-tests options.
24355         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24356         excl_unportable_tests): New variables.
24357         Fail if they are specified with --import or --update.
24358         (func_acceptable): Respect the excl_*_tests variables.
24359         (func_import): Set the excl_*_tests variables to empty.
24360
24361 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24362             Bruno Haible  <bruno@clisp.org>
24363
24364         Work around a MacOS X 10.4 bug with openpty.
24365         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24366         * tests/test-openpty.c (main): Close the master side explicitly.
24367
24368 2010-04-25  Bruno Haible  <bruno@clisp.org>
24369
24370         strnlen: Fix a C++ test error on MacOS X and Solaris.
24371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24372         the function is not declared.
24373         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24374         Simon Josefsson.
24375
24376 2010-04-24  Bruno Haible  <bruno@clisp.org>
24377
24378         Avoid a gcc warning.
24379         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24380         of correct type for %08lx directive.
24381         Reported by Eric Blake.
24382
24383 2010-04-24  Bruno Haible  <bruno@clisp.org>
24384
24385         vasnprintf: Correct errno value in case of out-of-memory.
24386         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24387         or sprintf. Use the errno value from SNPRINTF or sprintf.
24388         Reported by Ian Beckwith <ianb@erislabs.net>.
24389
24390 2010-04-24  Bruno Haible  <bruno@clisp.org>
24391
24392         ansi-c++-opt: Find correct compiler when cross-compiling.
24393         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24394         AC_CHECK_PROGS.
24395         Reported by Simon Josefsson.
24396
24397 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24398
24399         vc-list-files: Add support for subversion
24400         * build-aux/vc-list-files: Use "svn list" to generate the list of
24401         files controlled by subversion.
24402
24403 2010-04-23  Jim Meyering  <meyering@redhat.com>
24404
24405         vc-list-files tests: convert to use init.sh
24406         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24407         path_prepend_.
24408         Use Exit, not exit.
24409         Use skip_ rather than open coding it.
24410         Remove trap set-up and compare definitions.
24411         * tests/test-vc-list-files-git.sh: Likewise.
24412         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24413
24414 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24415
24416         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24417         backup files.
24418
24419 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24420
24421         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24422
24423 2010-04-20  Eric Blake  <eblake@redhat.com>
24424
24425         tests: be robust to ignored SIGPIPE
24426         * tests/test-select-in.sh: Consume all output.
24427         * tests/test-lseek.sh: Check correct exit status, while avoiding
24428         EPIPE.
24429
24430 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24431             Bruno Haible  <bruno@clisp.org>
24432
24433         visibility: Don't use -fvisibility if it leads to a warning.
24434         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24435         yes, don't pretend that visibility works if it leads to a warning.
24436         Reported by Mike Gran <spk121@yahoo.com>.
24437
24438 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24439
24440         * build-aux/bootstrap: Use "git -h" for testing for supported options
24441         instead of "git --help".  The short-form option only shows a summary,
24442         and doesn't layout the full man page.  Grep for the full option name
24443         in the summary, too.
24444
24445 2010-04-19  Bruno Haible  <bruno@clisp.org>
24446
24447         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24448         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24449         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24450         mention of RELOCATABLE_STRIP.
24451         Reported by Sylvain Beucler <beuc@beuc.net>.
24452
24453 2010-04-19  Bruno Haible  <bruno@clisp.org>
24454
24455         * lib/diffseq.h: Fix typo in comment.
24456         Reported by Eric Blake.
24457
24458 2010-04-19  Bruno Haible  <bruno@clisp.org>
24459
24460         ioctl: Move autoconf macro to a .m4 file.
24461         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24462         * modules/ioctl (Files): Add it.
24463         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24464         Reported by Ian Beckwith <ianb@erislabs.net>.
24465
24466 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24467             Bruno Haible  <bruno@clisp.org>
24468
24469         diffseq: Accommodate use-case with abstract arrays.
24470         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24471         is not defined.
24472         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24473         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24474
24475 2010-04-18  Bruno Haible  <bruno@clisp.org>
24476
24477         * doc/posix-headers/stdbool.texi: More precise wording.
24478
24479 2010-04-17  Jim Meyering  <meyering@redhat.com>
24480
24481         maint.mk: use gnu-style indentation in an embedded perl script
24482         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24483         Rename variable: s/two/last_two_bytes/
24484
24485 2010-04-16  Eric Blake  <eblake@redhat.com>
24486
24487         test-stdbool: skip test that fails with Solaris CC
24488         * tests/test-stdbool.c (f): Skip test that causes compilation
24489         error under buggy C++ compiler.
24490         * lib/stdbool.in.h: Document the limitation.
24491         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24492
24493         setenv: allow compilation with C++
24494         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24495         register keyword.
24496
24497         stdint: allow test to pass with C++
24498         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24499
24500         getopt: allow compilation with C++
24501         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24502         struct.
24503         * lib/getopt.c (_getopt_internal_r): Use correct type.
24504         Reported by Dagobert Michelson, via Joel E. Denny.
24505
24506 2010-04-16  Bruno Haible  <bruno@clisp.org>
24507
24508         Override netdb.h always.
24509         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24510         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24511         Reported by Ludovic Courtès <ludo@gnu.org>.
24512
24513 2010-04-15  Bruno Haible  <bruno@clisp.org>
24514
24515         openpty: Fix mistake from 2010-03-21.
24516         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24517         Reported by Simon Josefsson.
24518
24519 2010-04-15  Eric Blake  <eblake@redhat.com>
24520
24521         test-forkpty: fix expected signature
24522         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24523         Reported by Simon Josefsson.
24524
24525 2010-04-15  Jim Meyering  <meyering@redhat.com>
24526
24527         maint.mk: texinfo_suffix_re_: correct the default regexp
24528         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24529
24530         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24531         make it configurable via texinfo_suffix_re_.
24532
24533 2010-04-14  Eric Blake  <eblake@redhat.com>
24534
24535         strtok_r: relax license to LGPLv2+
24536         * modules/strtok_r (License): Relax license.
24537         Reported by Matthias Bolte.
24538
24539 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24540
24541         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24542         version 1.4.4 by default instead of requiring the libgcrypt
24543         version used during build.  This makes it possible to use the
24544         application with older but still binary compatible libgcrypt
24545         versions.
24546
24547 2010-04-13  Eric Blake  <eblake@redhat.com>
24548
24549         getopt-gnu: match recent glibc fixes and posix ruling
24550         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24551         '+' handling, when requesting extensions.
24552         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24553         'W;' handling.
24554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24555         * doc/posix-functions/getopt.texi (getopt): Document this.
24556         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24557         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24558         Likewise.
24559
24560         getopt: merge bug fixes from glibc
24561         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24562         diagnostics.  Honor '+:' correctly.  Reject ';'.
24563
24564         getopt-posix: detect MacOS bug
24565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24566         optind when missing a required argument.
24567         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24568         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24569         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24570         Likewise.
24571
24572         getopt-posix: avoid spurious failure on Solaris
24573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24574         an indicator that setting optind=1 is sufficient for reset.
24575
24576         getopt-posix: avoid spurious failure on FreeBSD
24577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24578         in POSIX mode, since the m4 test uses it.
24579
24580         gnulib-tool: silence warning on BSD sh
24581         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24582
24583 2010-04-13  Jim Meyering  <meyering@redhat.com>
24584
24585         doc: users.txt: GNU patch now uses gnulib
24586         * users.txt: Add patch.
24587
24588 2010-04-12  Jim Meyering  <meyering@redhat.com>
24589
24590         maint.mk: generate more concise timing data for syntax-check rules
24591         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24592         " done" from each line that reports a syntax-check test duration.
24593
24594 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24595
24596         git-version-gen: use "git update-index..." rather than "git status"
24597         * build-aux/git-version-gen: Use git update-index --refresh, not
24598         "git status".  With some versions of git, "git status" would fail
24599         to update the index and result in an unwarranted "-dirty" suffix.
24600
24601 2010-04-11  Jim Meyering  <meyering@redhat.com>
24602
24603         openat: correct formatting (no semantic change)
24604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24605         Suggested by Bruno Haible.
24606
24607 2010-04-11  Bruno Haible  <bruno@clisp.org>
24608
24609         Stricter declaration checking in testdirs.
24610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24611         If for_tests is true, augment AM_CPPFLAGS to define
24612         GNULIB_STRICT_CHECKING.
24613         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24614         GNULIB_STRICT_CHECKING is defined, verify that the function is
24615         declared.
24616
24617 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24618             Bruno Haible  <bruno@clisp.org>
24619
24620         libunistring: Improve configure output.
24621         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24622         Don't say "consider installing GNU libunistring" when checking again
24623         with libiconv.
24624
24625 2010-04-11  Bruno Haible  <bruno@clisp.org>
24626
24627         libunistring: Correct value of $LTLIBUNISTRING.
24628         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24629         correct the value of $LTLIBUNISTRING.
24630
24631 2010-04-11  Bruno Haible  <bruno@clisp.org>
24632
24633         havelib: Add static libraries to LIBS in the right order.
24634         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24635         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24636
24637 2010-04-11  Bruno Haible  <bruno@clisp.org>
24638
24639         libunistring: Detect libunistring also when it depends on libiconv.
24640         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24641         the second AC_LIB_HAVE_LINKFLAGS invocation.
24642
24643 2010-04-11  James Youngman  <jay@gnu.org>
24644
24645         close-stream: declare local scalars to be "const"
24646         * lib/close-stream.c (close_stream): Make boolean variables const
24647         to document the fact that we set but do not change them.
24648
24649 2010-04-11  Bruno Haible  <bruno@clisp.org>
24650
24651         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24652
24653 2010-04-11  Jim Meyering  <meyering@redhat.com>
24654
24655         maint.mk: don't include dist-check.mk
24656         * top/maint.mk: Remove bogus include directive.
24657
24658         maint.mk: improve empty-line-at-EOF check
24659         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24660         solution, rather than tail+Perl-based one.  The latter would read
24661         a few kilobytes from the end of each file, and did not handle empty
24662         files properly.
24663
24664         maint.mk: print the elapsed time for each syntax-check rule
24665         * top/maint.mk (sc_m_rules_): Save start time in a file.
24666         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24667         (local-check): Interpose the .z rules
24668
24669 2010-04-11  Jim Meyering  <meyering@redhat.com>
24670
24671         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24672         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24673         empty file with one that ends in an empty line.
24674
24675 2010-04-10  Bruno Haible  <bruno@clisp.org>
24676
24677         mkdir: Make it work on mingw64.
24678         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24679         * lib/mkdir.c: Update comment.
24680         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24681
24682 2010-04-10  Bruno Haible  <bruno@clisp.org>
24683
24684         Don't override improved macro from newer autoconf.
24685         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24686         autoconf >= 2.62.
24687         Reported by Joel E. Denny <jdenny@clemson.edu>.
24688
24689 2010-04-10  Jim Meyering  <meyering@redhat.com>
24690
24691         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24692         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24693
24694         maint.mk: correct a diagnostic
24695         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24696         in diagnostic; now use $prohibit.
24697
24698 2010-04-10  Bruno Haible  <address@hidden>
24699
24700         fchownat: Fix a C++ test error on Solaris 8.
24701         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24702         the function does not exist.
24703
24704 2010-04-10  Bruno Haible  <bruno@clisp.org>
24705
24706         vasnprintf: Add more tests.
24707         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24708         (test_function): Test converting an invalid wide string.
24709
24710         vasnprintf: Correct handling of unconvertible wide string arguments.
24711         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24712         VASNPRINTF.
24713         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24714         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24715         smaller than the expected maximum need for the directive. Set errno to
24716         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24717         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24719         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24720         * modules/vasnprintf (Files): Add m4/printf.m4.
24721         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24722
24723 2010-04-10  Bruno Haible  <bruno@clisp.org>
24724
24725         vasnprintf: Fix crash in %ls directive.
24726         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24727         string is passed as argument to %ls, with no precision and no width.
24728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24729
24730 2010-04-10  Bruno Haible  <bruno@clisp.org>
24731
24732         vasnprintf: Fix multiple test failures on mingw.
24733         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24734         _snprintf, or snwprintf, not _snwprintf.
24735
24736 2010-04-10  Bruno Haible  <bruno@clisp.org>
24737
24738         write: Fix a C++ test error on mingw.
24739         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24740
24741 2010-04-10  Bruno Haible  <bruno@clisp.org>
24742
24743         vasnprintf test: Reduce code duplication.
24744         * tests/test-vasnprintf.c (test_function): New function, extracted from
24745         test_vasnprintf.
24746         (test_vasnprintf, test_asnprintf): Invoke it.
24747
24748 2010-04-10  Bruno Haible  <bruno@clisp.org>
24749
24750         strnlen: Fix warning in C++ mode on MacOS X.
24751         * lib/string.in.h (strnlen): Use the modern idiom.
24752         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24753         defining strnlen as a macro already in <config.h>.
24754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24755         REPLACE_STRNLEN.
24756         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24757         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24758
24759 2010-04-08  James Youngman  <jay@gnu.org>
24760
24761         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24762         the example.
24763
24764 2010-04-09  Jim Meyering  <meyering@redhat.com>
24765
24766         maint.mk: print better diagnostic when there is no $(_hv_file)
24767         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24768         announce that when $(_hv_file) (aka help-version) does not exist.
24769
24770         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24771         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24772         not try to interpret its random input bytes.  Jarno Rajahalme reported
24773         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24774         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24775         (mktempd_): Likewise, just in case.
24776
24777         ftruncate: add two years to projected module removal date: 2012
24778         * m4/ftruncate.m4: Adjust comments.
24779
24780         ftruncate: mark module as obsolete; even MinGW provides it, now
24781         * modules/ftruncate (Status): Obsolete.
24782         (Notice): Say that.
24783         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24784         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24785
24786 2010-04-08  Bruno Haible  <bruno@clisp.org>
24787
24788         Fix side effects from tests-related modules.
24789         * modules/dprintf-posix (Comment): New section.
24790         * modules/fprintf-posix (Comment): Likewise.
24791         * modules/obstack-printf-posix (Comment): Likewise.
24792         * modules/printf-posix (Comment): Likewise.
24793         * modules/snprintf-posix (Comment): Likewise.
24794         * modules/sprintf-posix (Comment): Likewise.
24795         * modules/vasnprintf-posix (Comment): Likewise.
24796         * modules/vasprintf-posix (Comment): Likewise.
24797         * modules/vdprintf-posix (Comment): Likewise.
24798         * modules/vfprintf-posix (Comment): Likewise.
24799         * modules/vprintf-posix (Comment): Likewise.
24800         * modules/vsnprintf-posix (Comment): Likewise.
24801         * modules/vsprintf-posix (Comment): Likewise.
24802         * modules/xprintf-posix (Comment): Likewise.
24803         * modules/xvasprintf-posix (Comment): Likewise.
24804         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24805         * modules/floorf-tests (Depends-on): Likewise.
24806         * modules/round-tests (Depends-on): Likewise.
24807         * modules/roundf-tests (Depends-on): Likewise.
24808         * modules/trunc-tests (Depends-on): Likewise.
24809         * modules/truncf-tests (Depends-on): Likewise.
24810         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24811         'fprintf-posix' module is not present.
24812         * tests/test-floorf2.c (check): Likewise.
24813         * tests/test-trunc2.c (check): Likewise.
24814         * tests/test-truncf2.c (check): Likewise.
24815         * tests/test-round2.c (equal): Likewise.
24816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24817
24818 2010-04-07  Karl Berry  <karl@gnu.org>
24819
24820         * config/srclist.txt,
24821         * config/srclistvars.sh,
24822         * config/srclist-update: doc fixes.
24823
24824 2010-04-07  Jim Meyering  <meyering@redhat.com>
24825
24826         maint.mk: add a PATH crosschecking syntax-check rule
24827         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24828         Useful if you use a test like the one in help-version (coreutils,
24829         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24830         printed by prog --version.
24831
24832 2010-04-06  Bruno Haible  <bruno@clisp.org>
24833
24834         Fix link error on mingw.
24835         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24836         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24837
24838 2010-04-06  Bruno Haible  <bruno@clisp.org>
24839
24840         Assume rmdir exists.
24841         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24842
24843 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24844
24845         doc: update users.txt
24846         * users.txt: Add gcal.
24847
24848 2010-04-06  Jim Meyering  <meyering@redhat.com>
24849
24850         init.sh: simply unset TMPDIR rather than risking env -i
24851         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24852         although it probably works fine on all Unix-based systems, some
24853         systems (Cygwin?) cannot tolerate a totally cleared environment.
24854         Suggestion from Eric Blake.
24855
24856 2010-04-06  Jim Meyering  <meyering@redhat.com>
24857
24858         init.sh: portability fix: use env's POSIX-specified -i option not -u
24859         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24860         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24861
24862 2010-04-05  Bruno Haible  <bruno@clisp.org>
24863
24864         btowc: Work around Cygwin 1.7.2 bug.
24865         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24866         does not map NUL to 0.
24867         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24868
24869 2010-04-05  Bruno Haible  <bruno@clisp.org>
24870
24871         Make the multithread modules work on Cygwin 1.7.2.
24872         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24873         imported symbols can be declared weak, so that it returns "no" on
24874         Cygwin 1.7.2.
24875
24876 2010-04-05  Bruno Haible  <bruno@clisp.org>
24877
24878         Use the module 'strncat'.
24879         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24880
24881         Tests for module 'strncat'.
24882         * modules/strncat-tests: New file.
24883         * tests/test-strncat.c: New file.
24884
24885         New module 'strncat'.
24886         * lib/string.in.h (strncat): New declaration.
24887         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24888         * m4/strncat.m4: New file, based on m4/memchr.m4.
24889         * modules/strncat: New file.
24890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24891         is declared.
24892         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24893         REPLACE_STRNCAT.
24894         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24895         REPLACE_STRNCAT.
24896         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24897         module.
24898         * tests/test-string-c++.cc: Check signature of strncat.
24899
24900 2010-04-05  Jim Meyering  <meyering@redhat.com>
24901
24902         xstrtoumax-tests: convert to use init.sh
24903         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24904         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24905         Use Exit, not exit.
24906         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24907
24908         xstrtoimax-tests: convert to use init.sh
24909         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24910         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24911         Use Exit, not exit.
24912         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24913
24914 2010-04-05  Bruno Haible  <bruno@clisp.org>
24915
24916         sys_socket: Avoid #define replacements in C++ mode.
24917         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24918         warning to the function if possible, rather than #defining the symbol
24919         to a dysfunctional alias.
24920
24921 2010-04-05  Bruno Haible  <bruno@clisp.org>
24922
24923         fseeko: Fix C++ test error on mingw.
24924         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24925         gl_FUNC_FSEEKO.
24926         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24927         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24929         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24930
24931 2010-04-05  Bruno Haible  <bruno@clisp.org>
24932
24933         duplocale: Improve test output.
24934         * tests/test-duplocale.c (main): Print reason for skipped test.
24935
24936 2010-04-05  Bruno Haible  <bruno@clisp.org>
24937
24938         Assume rmdir exists.
24939         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24940         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24941
24942 2010-04-05  Bruno Haible  <bruno@clisp.org>
24943
24944         Fix link error on Solaris 8 with cc.
24945         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24946
24947 2010-04-05  Bruno Haible  <bruno@clisp.org>
24948
24949         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24950         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24951
24952 2010-04-05  Bruno Haible  <bruno@clisp.org>
24953
24954         vasprintf: Update documentation.
24955         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24956
24957 2010-04-05  Bruno Haible  <bruno@clisp.org>
24958
24959         ptsname: Improve test.
24960         * tests/test-ptsname.c (main): Also try the various master names of BSD
24961         systems.
24962
24963 2010-04-05  Bruno Haible  <bruno@clisp.org>
24964
24965         memchr: Avoid a possible C++ test error.
24966         * lib/string.in.h (memchr): Provide declaration if function is missing.
24967         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24968         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24970         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24971
24972 2010-04-05  Bruno Haible  <bruno@clisp.org>
24973
24974         strtok_r: Improve idiom.
24975         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24976         AC_LIBOBJ is used.
24977
24978 2010-04-05  Bruno Haible  <bruno@clisp.org>
24979
24980         strdup: Improve idiom.
24981         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24982         AC_LIBOBJ is used.
24983         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24984         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24985         when AC_LIBOBJ is used.
24986
24987 2010-04-05  Bruno Haible  <bruno@clisp.org>
24988
24989         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24991         don't set REPLACE_MBSINIT to 1.
24992         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24993         don't set REPLACE_MBRTOWC to 1.
24994         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24995         exist, don't set REPLACE_MBSRTOWCS to 1.
24996         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24997         exist, don't set REPLACE_MBSNRTOWCS to 1.
24998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24999         don't set REPLACE_WCRTOMB to 1.
25000         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25001         exist, don't set REPLACE_WCSRTOMBS to 1.
25002         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25003         exist, don't set REPLACE_WCSNRTOMBS to 1.
25004
25005 2010-04-05  Bruno Haible  <bruno@clisp.org>
25006
25007         ldexpl: Improve idiom.
25008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25009         make sure to set HAVE_DECL_LDEXPL to 0.
25010
25011 2010-04-05  Jim Meyering  <meyering@redhat.com>
25012
25013         xstrtol-tests: convert to use init.sh
25014         * modules/xstrtol-tests (Files): Add tests/init.sh.
25015         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25016         Use Exit, not exit.
25017         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25018
25019         atexit-tests: convert to use init.sh
25020         * modules/atexit-tests (Files): Add tests/init.sh.
25021         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25022         Use Exit, not exit.
25023         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25024
25025         init.sh: fix typo
25026         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25027
25028         init.sh: make it easier for a test script to write to the tty, ...
25029         when using automake's parallel-tests mode.
25030         * tests/init.sh (stderr_fileno_): Define overridable variable.
25031         (warn_): New function, to use it.
25032         (fail_, skip_, framework_failure_): Use warn_.
25033
25034 2010-04-04  Bruno Haible  <bruno@clisp.org>
25035
25036         btowc: Avoid warning.
25037         * lib/btowc.c: Include <stdlib.h>.
25038         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25039
25040 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25041             Bruno Haible  <bruno@clisp.org>
25042
25043         wchar: Port to NetBSD 1.5.
25044         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25045         * lib/wctype.in.h (WEOF): Likewise.
25046
25047 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25048             Bruno Haible  <bruno@clisp.org>
25049
25050         Port extended stdio to NetBSD 1.5.
25051         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25052         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25053         older.
25054
25055 2010-04-04  Bruno Haible  <bruno@clisp.org>
25056
25057         string: Remove unused substitution.
25058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25059         HAVE_DECL_STRERROR.
25060         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25061
25062 2010-04-04  Bruno Haible  <bruno@clisp.org>
25063
25064         strtod: Avoid a possible C++ test error.
25065         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25066         set REPLACE_STRTOD.
25067
25068 2010-04-04  Bruno Haible  <bruno@clisp.org>
25069
25070         strerror: Update documentation.
25071         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25072
25073 2010-04-04  Bruno Haible  <bruno@clisp.org>
25074
25075         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25076         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25077         _GL_CXXALIAS_SYS_CAST.
25078
25079 2010-04-04  Bruno Haible  <bruno@clisp.org>
25080
25081         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25082         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25083         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25084         REPLACE_FREXPL to 1.
25085         * doc/posix-functions/frexpl.texi: Update documentation.
25086
25087 2010-04-04  Bruno Haible  <bruno@clisp.org>
25088
25089         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25090         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25091
25092 2010-04-04  Bruno Haible  <bruno@clisp.org>
25093
25094         Implement nanosleep for native Windows.
25095         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25096
25097 2010-04-04  Bruno Haible  <bruno@clisp.org>
25098
25099         math: Fix some C++ test errors on Solaris 8.
25100         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25101
25102 2010-04-04  Bruno Haible  <bruno@clisp.org>
25103
25104         math: Fix some C++ test errors on Cygwin.
25105         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25106         truncl): Provide declaration if the system does not have it.
25107         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25108         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25109         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25110         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25111         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25112         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25113         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25114         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25115         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25116         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25117         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25118         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25119         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25120         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25121         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25122         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25124         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25125         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25126         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25127         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25128         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25129
25130 2010-04-04  Bruno Haible  <bruno@clisp.org>
25131
25132         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25133         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25134         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25135         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25136         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25137         * m4/isinf.m4 (gl_ISINF): Likewise.
25138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25139
25140 2010-04-04  Bruno Haible  <bruno@clisp.org>
25141
25142         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25143         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25144
25145 2010-04-04  Bruno Haible  <bruno@clisp.org>
25146
25147         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25148         * modules/tmpfile (configure.ac): Update.
25149
25150         tmpfile: Fix C++ test error on mingw.
25151         * lib/stdio.in.h (tmpfile): New declaration.
25152         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25153         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25154         * modules/tmpfile (Depends-on): Add stdio.
25155         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25156         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25157         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25158         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25159         REPLACE_TMPFILE.
25160         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25161
25162 2010-04-04  Bruno Haible  <bruno@clisp.org>
25163
25164         ioctl: Fix C++ test error on mingw.
25165         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25166         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25167         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25168
25169 2010-04-03  Bruno Haible  <bruno@clisp.org>
25170
25171         wcwidth: Fix C++ test error on mingw.
25172         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25174         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25175
25176 2010-04-03  Bruno Haible  <bruno@clisp.org>
25177
25178         nanosleep: Fix C++ test error on mingw.
25179         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25180         * lib/time.in.h (nanosleep): Use modern idiom.
25181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25182         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25183         REPLACE_NANOSLEEP to 1.
25184         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25185         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25186
25187 2010-04-03  Bruno Haible  <bruno@clisp.org>
25188
25189         strptime: Fix C++ test error on mingw.
25190         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25191         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25192         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25193         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25194         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25195         not REPLACE_STRPTIME.
25196         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25197         REPLACE_STRPTIME.
25198
25199 2010-04-03  Bruno Haible  <bruno@clisp.org>
25200
25201         timegm: Fix C++ test error on mingw.
25202         * lib/time.in.h (timegm): Use modern idiom.
25203         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25204         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25205         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25206         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25207
25208 2010-04-03  Bruno Haible  <bruno@clisp.org>
25209
25210         timegm: Assume declaration if function exists.
25211         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25212         if it exists. Don't clobber ac_cv_func_timegm.
25213
25214 2010-04-03  Bruno Haible  <bruno@clisp.org>
25215
25216         time_r: Fix C++ test error on mingw.
25217         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25218         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25219         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25221         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25222
25223 2010-04-03  Bruno Haible  <bruno@clisp.org>
25224
25225         time_r: Minor updates.
25226         * modules/time_r (Description): Mention the provided functions.
25227         * lib/time_r.c: Don't include <string.h>.
25228         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25229         * doc/posix-functions/localtime_r.texi: Likewise.
25230
25231 2010-04-03  Bruno Haible  <bruno@clisp.org>
25232
25233         time: Fix regression introduced on 2010-03-08.
25234         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25235         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25236
25237 2010-04-03  Jim Meyering  <meyering@redhat.com>
25238
25239         maint.mk: don't silently disable project-specific syntax-check rules
25240         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25241         that they need to convert their project-specific syntax-check rules
25242         to use the new _sc_search_regexp.
25243
25244 2010-04-03  Bruno Haible  <bruno@clisp.org>
25245
25246         fchdir: Fix regression introduced on 2010-03-08.
25247         * lib/unistd.in.h (fchdir): Fix declaration.
25248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25250         REPLACE_FCHDIR.
25251         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25252         REPLACE_FCHDIR.
25253
25254 2010-04-03  Bruno Haible  <bruno@clisp.org>
25255
25256         getpagesize: Fix C++ test error on mingw.
25257         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25258         system does not declare the function.
25259         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25260         declared.
25261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25262         HAVE_DECL_GETPAGESIZE.
25263         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25264
25265 2010-04-03  Bruno Haible  <bruno@clisp.org>
25266
25267         stdio: Make C++ tests work on mingw.
25268         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25269         does not declare the function.
25270
25271 2010-04-03  Bruno Haible  <bruno@clisp.org>
25272
25273         ftello: Fix C++ test error on mingw.
25274         * lib/stdio.in.h (ftello): Use modern idiom.
25275         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25276         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25277         is missing and that it needs to be replaced.
25278         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25280         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25281
25282 2010-04-03  Bruno Haible  <bruno@clisp.org>
25283
25284         fseeko: Fix C++ test error on mingw.
25285         * lib/stdio.in.h (fseeko): Use modern idiom.
25286         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25288         is missing and that it needs to be replaced.
25289         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25291         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25292
25293 2010-04-03  Bruno Haible  <bruno@clisp.org>
25294
25295         mkstemp: Fix C++ test error on mingw.
25296         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25298         function is missing and that it needs to be replaced.
25299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25300         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25301
25302 2010-04-03  Bruno Haible  <bruno@clisp.org>
25303
25304         stpncpy: Fix C++ test error on mingw.
25305         * lib/string.in.h (stpncpy): Use modern idiom.
25306         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25307         function is missing and that it needs to be replaced.
25308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25309         REPLACE_STPNCPY.
25310         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25311
25312 2010-04-03  Bruno Haible  <bruno@clisp.org>
25313
25314         sys_stat: Fix C++ test error on mingw.
25315         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25316         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25317
25318 2010-04-03  Bruno Haible  <bruno@clisp.org>
25319
25320         pty: Update doc.
25321         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25322
25323 2010-04-03  Bruno Haible  <bruno@clisp.org>
25324
25325         unistd: Fix C++ test error on mingw.
25326         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25327
25328 2010-04-03  Bruno Haible  <bruno@clisp.org>
25329
25330         Update doc regarding mingw.
25331         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25332         * doc/glibc-functions/login_tty.texi: Likewise.
25333         * doc/glibc-functions/forkpty.texi: Likewise.
25334
25335 2010-04-03  Bruno Haible  <bruno@clisp.org>
25336
25337         stdlib: Avoid compilation failure of c-strtold on mingw.
25338         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25339
25340 2010-04-03  Bruno Haible  <bruno@clisp.org>
25341
25342         locale: Make C++ tests work on Cygwin and mingw.
25343         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25344         cannot provide the function.
25345         Reported by Simon Josefsson.
25346
25347 2010-04-03  Bruno Haible  <bruno@clisp.org>
25348
25349         localename: Port to MacOS X 10.6.
25350         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25351         memory layout of the locales in MacOS X 10.6 as well.
25352         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25353
25354 2010-04-02  Bruno Haible  <bruno@clisp.org>
25355
25356         gnulib-tool: Ensure that long-running tests are executed last.
25357         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25358         running tests after the one for the other tests.
25359
25360 2010-04-02  Bruno Haible  <bruno@clisp.org>
25361
25362         gnulib-tool: Ensure the tests in the main directory are executed first.
25363         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25364         start with the current directory.
25365
25366 2010-04-02  Bruno Haible  <bruno@clisp.org>
25367
25368         Tests for module 'havelib', moved here from GNU gettext.
25369         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25370         modifications.
25371         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25372         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25373         with modifications.
25374         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25375         modifications.
25376         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25377         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25378         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25379         with modifications.
25380         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25381         with modifications.
25382         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25383         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25384         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25385         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25386         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25387         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25388         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25389         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25390         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25391         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25392         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25393         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25394         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25395         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25396         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25397         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25398         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25399         with modifications.
25400         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25401         with modifications.
25402         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25403         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25404         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25405         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25406         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25407         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25408         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25409         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25410         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25411         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25412         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25413         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25414         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25415         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25416         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25417         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25418         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25419         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25420         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25421         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25422         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25423         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25424         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25425         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25426         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25427         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25428         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25429         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25430         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25431         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25432         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25433         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25434         * tests/havelib/rpathx/rpathx.c: New file, from
25435         gettext/autoconf-lib-link.
25436         * tests/havelib/rpathx/Makefile.am: New file, from
25437         gettext/autoconf-lib-link.
25438         * tests/havelib/rpathx/configure.ac: New file, from
25439         gettext/autoconf-lib-link with modifications.
25440         * tests/havelib/rpathy/rpathy.c: New file, from
25441         gettext/autoconf-lib-link.
25442         * tests/havelib/rpathy/Makefile.am: New file, from
25443         gettext/autoconf-lib-link.
25444         * tests/havelib/rpathy/configure.ac: New file, from
25445         gettext/autoconf-lib-link with modifications.
25446         * tests/havelib/rpathz/rpathz.c: New file, from
25447         gettext/autoconf-lib-link.
25448         * tests/havelib/rpathz/Makefile.am: New file, from
25449         gettext/autoconf-lib-link.
25450         * tests/havelib/rpathz/configure.ac: New file, from
25451         gettext/autoconf-lib-link with modifications.
25452         * tests/havelib/rpathlx/usex.c: New file, from
25453         gettext/autoconf-lib-link.
25454         * tests/havelib/rpathlx/Makefile.am: New file, from
25455         gettext/autoconf-lib-link.
25456         * tests/havelib/rpathlx/configure.ac: New file, from
25457         gettext/autoconf-lib-link with modifications.
25458         * tests/havelib/rpathly/usey.c: New file, from
25459         gettext/autoconf-lib-link.
25460         * tests/havelib/rpathly/Makefile.am: New file, from
25461         gettext/autoconf-lib-link.
25462         * tests/havelib/rpathly/configure.ac: New file, from
25463         gettext/autoconf-lib-link with modifications.
25464         * tests/havelib/rpathlz/usez.c: New file, from
25465         gettext/autoconf-lib-link.
25466         * tests/havelib/rpathlz/Makefile.am: New file, from
25467         gettext/autoconf-lib-link.
25468         * tests/havelib/rpathlz/configure.ac: New file, from
25469         gettext/autoconf-lib-link with modifications.
25470         * tests/havelib/rpathlyx/usey.c: New file, from
25471         gettext/autoconf-lib-link.
25472         * tests/havelib/rpathlyx/Makefile.am: New file, from
25473         gettext/autoconf-lib-link.
25474         * tests/havelib/rpathlyx/configure.ac: New file, from
25475         gettext/autoconf-lib-link with modifications.
25476         * tests/havelib/rpathlzyx/usez.c: New file, from
25477         gettext/autoconf-lib-link.
25478         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25479         gettext/autoconf-lib-link.
25480         * tests/havelib/rpathlzyx/configure.ac: New file, from
25481         gettext/autoconf-lib-link with modifications.
25482         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25483         with modifications.
25484
25485 2010-04-02  Bruno Haible  <bruno@clisp.org>
25486
25487         gnulib-tool: Create distributed built sources also for the tests.
25488         * gnulib-tool (func_create_testdir): Also generate distributed built
25489         sources in the tests directory.
25490
25491 2010-04-02  Bruno Haible  <bruno@clisp.org>
25492
25493         gnulib-tool: Obey user's environment variables.
25494         * gnulib-tool (func_create_testdir): When creating built sources,
25495         respect the environment variables for autoconf, automake, etc. given by
25496         the user.
25497
25498 2010-04-02  Bruno Haible  <bruno@clisp.org>
25499
25500         gnulib-tool: Provide the value of --m4-base to modules.
25501         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25502         of gl_m4_base.
25503
25504 2010-04-02  Eric Blake  <eblake@redhat.com>
25505
25506         maint.mk: fix some fallout
25507         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25508         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25509
25510 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25511
25512         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25513         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25514         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25515         (sc_cast_of_x_alloc_return_value): Likewise.
25516         (sc_cast_of_alloca_return_value): Likewise.
25517         (sc_space_tab): Likewise.
25518         (sc_prohibit_atoi_atof): Likewise.
25519         (sc_prohibit_magic_number_exit): Likewise.
25520         (sc_error_exit_success): Likewise.
25521         (sc_file_system): Likewise.
25522         (sc_prohibit_have_config_h): Likewise.
25523         (sc_require_config_h): Likewise.
25524         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25525         (sc_obsolete_symbols): Likewise.
25526         (sc_changelog): Likewise.
25527         (sc_program_name): Likewise.
25528         (sc_the_the): Likewise.
25529         (sc_trailing_blank): Likewise.
25530         (sc_two_space_separator_in_usage): Likewise.
25531         (sc_useless_cpp_parens): Likewise.
25532         (sc_GPL_version): Likewise.
25533         (sc_GFDL_version): Likewise.
25534         (sc_texinfo_acronym): Likewise.
25535         (sc_prohibit_cvs_keyword): Likewise.
25536         (sc_prohibit_stat_st_blocks): Likewise.
25537         (sc_prohibit_S_IS_definition): Likewise.
25538         (sc_redundant_const): Likewise.
25539         (sc_makefile_TAB_only_indentation): Likewise.
25540         (sc_m4_quote_check): Likewise.
25541         (sc_makefile_path_separator_check): Likewise.
25542         (sc_copyright_check): Likewise.
25543         (sc_Wundef_boolean): Likewise.
25544         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25545
25546         maint.mk: match 0 or more whitespace-before-function-call '('
25547         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25548         that have zero or two-and-more spaces between the function name
25549         and the open parenthesis.
25550         (sc_error_message_warn_fatal): Likewise.
25551         (sc_error_message_uppercase): Likewise.
25552         (sc_error_message_period): Likewise.
25553
25554 2010-03-31  Eric Blake  <eblake@redhat.com>
25555
25556         maint.mk: check for [ as well as test
25557         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25558         Based on a libvirt report by Matthias Bolte.
25559
25560         gnumakefile: don't squelch _version output
25561         * top/GNUmakefile (_version): Create one-shot dependency rather
25562         than using $(shell) when version must be regenerated.
25563         (_autoreconf): Run verbosely, by default.
25564
25565         sys_time: avoid compiler warnings
25566         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25567         unconditional, fixing regression from 2010-03-29.
25568         Reported by Simon Josefsson.
25569
25570 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25571
25572         maint.mk: s/_header_without_use/_sc_header_without_use/
25573         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25574         (sc_prohibit_assert_without_use): Use the new name.
25575         (sc_prohibit_close_stream_without_use): Likewise.
25576         (sc_prohibit_getopt_without_use): Likewise.
25577         (sc_prohibit_quotearg_without_use): Likewise.
25578         (sc_prohibit_quote_without_use): Likewise.
25579         (sc_prohibit_long_options_without_use): Likewise.
25580         (sc_prohibit_inttostr_without_use): Likewise.
25581         (sc_prohibit_ignore_value_without_use): Likewise.
25582         (sc_prohibit_error_without_use): Likewise.
25583         (sc_prohibit_xalloc_without_use): Likewise.
25584         (sc_prohibit_hash_without_use): Likewise.
25585         (sc_prohibit_hash_pjw_without_use): Likewise.
25586         (sc_prohibit_safe_read_without_use): Likewise.
25587         (sc_prohibit_argmatch_without_use): Likewise.
25588         (sc_prohibit_canonicalize_without_use): Likewise.
25589         (sc_prohibit_root_dev_ino_without_use): Likewise.
25590         (sc_prohibit_openat_without_use): Likewise.
25591         (sc_prohibit_c_ctype_without_use): Likewise.
25592         (sc_prohibit_signal_without_use): Likewise.
25593         (sc_prohibit_intprops_without_use): Likewise.
25594
25595 2010-03-30  Eric Blake  <eblake@redhat.com>
25596
25597         maint: improve module indicators
25598         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25599         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25600         columns, and avoid extra macro expansion.
25601
25602         fdopendir: work around FreeBSD bug
25603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25604         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25605         * modules/dirent (Makefile.am): Substitute it.
25606         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25607         declaration.
25608         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25609         fix.
25610         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25611
25612 2010-03-29  Bruno Haible  <bruno@clisp.org>
25613
25614         Emit #pragma system_header after the inclusion guard, not before.
25615         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25616         guard that spans the entire file, not before. This enables an
25617         optimization in GCC's preprocessor.
25618         * lib/ctype.in.h: Likewise.
25619         * lib/dirent.in.h: Likewise.
25620         * lib/errno.in.h: Likewise.
25621         * lib/float.in.h: Likewise.
25622         * lib/getopt.in.h: Likewise.
25623         * lib/iconv.in.h: Likewise.
25624         * lib/langinfo.in.h: Likewise.
25625         * lib/locale.in.h: Likewise.
25626         * lib/math.in.h: Likewise.
25627         * lib/netdb.in.h: Likewise.
25628         * lib/netinet_in.in.h: Likewise.
25629         * lib/pty.in.h: Likewise.
25630         * lib/sched.in.h: Likewise.
25631         * lib/se-selinux.in.h: Likewise.
25632         * lib/search.in.h: Likewise.
25633         * lib/spawn.in.h: Likewise.
25634         * lib/stdarg.in.h: Likewise.
25635         * lib/stdint.in.h: Likewise.
25636         * lib/string.in.h: Likewise.
25637         * lib/strings.in.h: Likewise.
25638         * lib/sys_file.in.h: Likewise.
25639         * lib/sys_ioctl.in.h: Likewise.
25640         * lib/sys_time.in.h: Likewise.
25641         * lib/sys_times.in.h: Likewise.
25642         * lib/sys_utsname.in.h: Likewise.
25643         * lib/sys_wait.in.h: Likewise.
25644         * lib/sysexits.in.h: Likewise.
25645         * lib/wctype.in.h: Likewise.
25646
25647 2010-03-28  James Youngman  <jay@gnu.org>
25648
25649         save-cwd: don't leak a file descriptor when the caller execs.
25650         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25651         saved file descriptor.
25652         * modules/save-cwd (Depends-on): Depend on cloexec.
25653
25654 2010-03-29  Bruno Haible  <bruno@clisp.org>
25655
25656         Remove vestiges of fts-lgpl module.
25657         * lib/fts_.h: Assume GNULIB_FTS is 1.
25658         * lib/fts.c: Likewise.
25659         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25660
25661 2010-03-28  Bruno Haible  <bruno@clisp.org>
25662
25663         Fix definition of tests witness macro.
25664         * gnulib-tool (func_import): Fix definition of witness macro.
25665
25666 2010-03-28  Bruno Haible  <bruno@clisp.org>
25667
25668         Fix ioctl's protoype on glibc systems.
25669         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25670         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25671         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25672         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25673         signature. If not, arrange to replace the ioctl function.
25674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25675         REPLACE_IOCTL.
25676         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25677         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25678         Reported by Ludovic Courtès <ludo@gnu.org>.
25679
25680 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25681
25682         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25683         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25684         made it so grep -r --include=GLOB* ... did not work.
25685
25686 2010-03-26  Jim Meyering  <meyering@redhat.com>
25687             Eric Blake  <eblake@redhat.com>
25688
25689         maint.mk: prohibit use of test's -o and -a operators
25690         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25691
25692 2010-03-28  Bruno Haible  <bruno@clisp.org>
25693
25694         Remove unused GNULIB_XYZ macro definitions.
25695         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25696         invocation.
25697
25698 2010-03-28  Bruno Haible  <bruno@clisp.org>
25699
25700         Mark privileged tests modules.
25701         * modules/idpriv-drop-tests (Status): New section.
25702         * modules/idpriv-droptemp-tests (Status): New section.
25703
25704 2010-03-28  Bruno Haible  <bruno@clisp.org>
25705
25706         Split C++ tests into separate tests modules.
25707         * modules/dirent-c++-tests: New file, extracted from
25708         modules/dirent-tests.
25709         * modules/dirent-tests: Depend on it.
25710         * modules/fcntl-h-c++-tests: New file, extracted from
25711         modules/fcntl-h-tests.
25712         * modules/fcntl-h-tests: Depend on it.
25713         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25714         * modules/glob-tests: Depend on it.
25715         * modules/iconv-h-c++-tests: New file, extracted from
25716         modules/iconv-h-tests.
25717         * modules/iconv-h-tests: Depend on it.
25718         * modules/langinfo-c++-tests: New file, extracted from
25719         modules/langinfo-tests.
25720         * modules/langinfo-tests: Depend on it.
25721         * modules/locale-c++-tests: New file, extracted from
25722         modules/locale-tests.
25723         * modules/locale-tests: Depend on it.
25724         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25725         * modules/math-tests: Depend on it.
25726         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25727         * modules/pty-tests: Depend on it.
25728         * modules/search-c++-tests: New file, extracted from
25729         modules/search-tests.
25730         * modules/search-tests: Depend on it.
25731         * modules/signal-c++-tests: New file, extracted from
25732         modules/signal-tests.
25733         * modules/signal-tests: Depend on it.
25734         * modules/spawn-c++-tests: New file, extracted from
25735         modules/spawn-tests.
25736         * modules/spawn-tests: Depend on it.
25737         * modules/stdio-c++-tests: New file, extracted from
25738         modules/stdio-tests.
25739         * modules/stdio-tests: Depend on it.
25740         * modules/stdlib-c++-tests: New file, extracted from
25741         modules/stdlib-tests.
25742         * modules/stdlib-tests: Depend on it.
25743         * modules/string-c++-tests: New file, extracted from
25744         modules/string-tests.
25745         * modules/string-tests: Depend on it.
25746         * modules/sys_ioctl-c++-tests: New file, extracted from
25747         modules/sys_ioctl-tests.
25748         * modules/sys_ioctl-tests: Depend on it.
25749         * modules/sys_select-c++-tests: New file, extracted from
25750         modules/sys_select-tests.
25751         * modules/sys_select-tests: Depend on it.
25752         * modules/sys_socket-c++-tests: New file, extracted from
25753         modules/sys_socket-tests.
25754         * modules/sys_socket-tests: Depend on it.
25755         * modules/sys_stat-c++-tests: New file, extracted from
25756         modules/sys_stat-tests.
25757         * modules/sys_stat-tests: Depend on it.
25758         * modules/sys_time-c++-tests: New file, extracted from
25759         modules/sys_time-tests.
25760         * modules/sys_time-tests: Depend on it.
25761         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25762         * modules/time-tests: Depend on it.
25763         * modules/unistd-c++-tests: New file, extracted from
25764         modules/unistd-tests.
25765         * modules/unistd-tests: Depend on it.
25766         * modules/wchar-c++-tests: New file, extracted from
25767         modules/wchar-tests.
25768         * modules/wchar-tests: Depend on it.
25769         * modules/wctype-c++-tests: New file, extracted from
25770         modules/wctype-tests.
25771         * modules/wctype-tests: Depend on it.
25772         Reported by Simon Josefsson.
25773
25774 2010-03-28  Bruno Haible  <bruno@clisp.org>
25775
25776         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25777         * gnulib-tool (func_exists_module): New function, extracted from
25778         func_verify_module.
25779         (func_verify_module): Use it.
25780         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25781         'foo' only if 'foo' exists.
25782         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25783         module.
25784
25785 2010-03-28  Bruno Haible  <bruno@clisp.org>
25786
25787         gnulib-tool: Add support for special categories of tests.
25788         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25789         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25790         (func_usage): Document them.
25791         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25792         inc_unportable_tests, inc_all_tests): New variables.
25793         (func_acceptable): Consider these variables.
25794         (func_modules_transitive_closure): Make it work when the 'Status' field
25795         consists of multiple words.
25796         (func_import): Store and restore the values of inc_cxx_tests,
25797         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25798         inc_all_tests in gnulib-comp.m4.
25799         (func_create_testdir): Set inc_all_tests to true.
25800         * doc/gnulib.texi (Extra tests modules): New section.
25801         Suggested by Jim Meyering.
25802
25803 2010-03-28  Bruno Haible  <bruno@clisp.org>
25804
25805         ansi-c++-opt: Allow turning off the C++ build by default.
25806         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25807         gl_CXX_CHOICE_DEFAULT_NO is defined.
25808         Requested by Eric Blake.
25809
25810 2010-03-28  Bruno Haible  <bruno@clisp.org>
25811
25812         unistd: Avoid #define replacements in C++ mode.
25813         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25814         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25815         setsockopt, shutdown, select): In C++, attach a warning to the function
25816         if possible, rather than #defining the symbol to a dysfunctional alias.
25817         Reported by John W. Eaton <jwe@gnu.org>.
25818
25819 2010-03-28  Bruno Haible  <bruno@clisp.org>
25820
25821         Fix link errors on mingw.
25822         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25823         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25824         $(LIBSOCKET).
25825         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25826         $(LIBSOCKET).
25827
25828 2010-03-28  Bruno Haible  <bruno@clisp.org>
25829             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25830
25831         lib-ignore: Determine different options for different compilers.
25832         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25833         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25834         Add comments.
25835         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25836         * NEWS: Mention the change.
25837
25838 2010-03-27  Bruno Haible  <bruno@clisp.org>
25839
25840         Remove unused GNULIB_XYZ macro definitions.
25841         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25842         * modules/fseek (configure.ac): Likewise.
25843         * modules/ioctl (configure.ac): Likewise.
25844         * modules/open (configure.ac): Likewise.
25845         * modules/stdlib-safer (configure.ac): Likewise.
25846
25847 2010-03-27  Bruno Haible  <bruno@clisp.org>
25848
25849         Add a remark about certain modules.
25850         * modules/malloc (Comment): New section.
25851         * modules/realloc (Comment): Likewise.
25852         * modules/sigpipe (Comment): Likewise.
25853
25854 2010-03-27  Bruno Haible  <bruno@clisp.org>
25855
25856         Resolve conflict between the two kinds of module indicators.
25857         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25858         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25859         * modules/canonicalize (configure.ac): Invoke
25860         gl_MODULE_INDICATOR_FOR_TESTS.
25861         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25862         GNULIB_XYZ.
25863         * tests/test-dirent-c++.cc: Likewise.
25864         * tests/test-dirent-safer.c: Likewise.
25865         * tests/test-dup2.c: Likewise.
25866         * tests/test-fchdir.c: Likewise.
25867         * tests/test-fcntl-h-c++.cc: Likewise.
25868         * tests/test-getopt.c: Likewise.
25869         * tests/test-getopt.h: Likewise.
25870         * tests/test-langinfo-c++.cc: Likewise.
25871         * tests/test-locale-c++.cc: Likewise.
25872         * tests/test-math-c++.cc: Likewise.
25873         * tests/test-pty-c++.cc: Likewise.
25874         * tests/test-search-c++.cc: Likewise.
25875         * tests/test-signal-c++.cc: Likewise.
25876         * tests/test-spawn-c++.cc: Likewise.
25877         * tests/test-stdio-c++.cc: Likewise.
25878         * tests/test-stdlib-c++.cc: Likewise.
25879         * tests/test-string-c++.cc: Likewise.
25880         * tests/test-sys_ioctl-c++.cc: Likewise.
25881         * tests/test-sys_select-c++.cc: Likewise.
25882         * tests/test-sys_socket-c++.cc: Likewise.
25883         * tests/test-sys_stat-c++.cc: Likewise.
25884         * tests/test-sys_time-c++.cc: Likewise.
25885         * tests/test-time-c++.cc: Likewise.
25886         * tests/test-unistd-c++.cc: Likewise.
25887         * tests/test-wchar-c++.cc: Likewise.
25888         * tests/uninorm/test-u8-nfc.c: Likewise.
25889         * tests/uninorm/test-u8-nfd.c: Likewise.
25890         * tests/uninorm/test-u8-nfkc.c: Likewise.
25891         * tests/uninorm/test-u8-nfkd.c: Likewise.
25892         * tests/uninorm/test-u16-nfc.c: Likewise.
25893         * tests/uninorm/test-u16-nfd.c: Likewise.
25894         * tests/uninorm/test-u16-nfkc.c: Likewise.
25895         * tests/uninorm/test-u16-nfkd.c: Likewise.
25896         * tests/uninorm/test-u32-nfc.c: Likewise.
25897         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25898         * tests/uninorm/test-u32-nfd.c: Likewise.
25899         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25900         * tests/uninorm/test-u32-nfkc.c: Likewise.
25901         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25902         * tests/uninorm/test-u32-nfkd.c: Likewise.
25903         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25904         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25905
25906 2010-03-27  Bruno Haible  <bruno@clisp.org>
25907
25908         Distinguish two kinds of module indicators.
25909         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25910         gl_MODULE_INDICATOR.
25911         (gl_MODULE_INDICATOR): New macro.
25912         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25913         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25914         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25915         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25916         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25917         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25918         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25919         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25920         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25921         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25922         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25923         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25925         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25926         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25927         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25928         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25929         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25930         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25931         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25932         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25933         * modules/cloexec (configure.ac): Likewise.
25934         * modules/getopt-gnu (configure.ac): Likewise.
25935         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25936         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25937         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25938         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25939
25940 2010-03-27  Bruno Haible  <bruno@clisp.org>
25941
25942         New module description field 'Comment'.
25943         * gnulib-tool: New option --extract-comment.
25944         (func_usage): Document it.
25945         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25946         (func_get_comment): New function.
25947         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25948
25949 2010-03-27  Bruno Haible  <bruno@clisp.org>
25950
25951         Addendum to 2010-02-07 commit.
25952         * gnulib-tool (func_usage): Document --extract-applicability option.
25953
25954 2010-03-27  Bruno Haible  <bruno@clisp.org>
25955
25956         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25957         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25958         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25959         rather than link errors.
25960
25961 2010-03-27  Bruno Haible  <bruno@clisp.org>
25962
25963         Avoid side effects from tests-related modules on the compilation of lib.
25964         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25965         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25966         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25967         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25968         macro.
25969         (func_import): Define a witness macro. Assign it a value that depends
25970         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25971         tests-related modules.
25972         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25973         Reported by Jim Meyering.
25974
25975 2010-03-27  Bruno Haible  <bruno@clisp.org>
25976
25977         Factorize common .m4 code.
25978         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25979         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25980         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25981         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25982         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25983         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25984         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25985         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25986         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25987         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25988         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25989         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25990         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25991         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25992         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25993         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25994         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25995         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25997         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25998         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26000         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26001         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26002         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26003         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26004         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26005         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26006         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26007         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26008         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26009         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26010
26011 2010-03-27  Bruno Haible  <bruno@clisp.org>
26012
26013         Fix a compilation error on Cygwin with g++ >= 4.3.
26014         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26015         if it is undefined or if we alias it to chmod.
26016         (lstat): Don't warn about the use of this function if it is undefined
26017         or if we alias it to stat.
26018         Reported by Simon Josefsson.
26019
26020 2010-03-27  Bruno Haible  <bruno@clisp.org>
26021
26022         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26023         * modules/getlogin (configure.ac): Update.
26024
26025         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26026         * modules/getlogin_r (configure.ac): Update.
26027
26028         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26030         * modules/inet_ntop (configure.ac): Update.
26031
26032         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26033         * modules/inet_pton (configure.ac): Update.
26034
26035         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26036         * modules/mbslen (configure.ac): Update.
26037
26038         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26039         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26040         * modules/forkpty (configure.ac): Update.
26041         * modules/openpty (configure.ac): Update.
26042
26043 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26044
26045         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26046         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26047
26048 2010-03-25  Eric Blake  <eblake@redhat.com>
26049
26050         maint: use pragma consistently across replacement headers
26051         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26052         * lib/dirent.in.h (system_header): Likewise.
26053         * lib/errno.in.h (system_header): Likewise.
26054         * lib/float.in.h (system_header): Likewise.
26055         * lib/getopt.in.h (system_header): Likewise.
26056         * lib/iconv.in.h (system_header): Likewise.
26057         * lib/inttypes.in.h (system_header): Likewise.
26058         * lib/langinfo.in.h (system_header): Likewise.
26059         * lib/locale.in.h (system_header): Likewise.
26060         * lib/math.in.h (system_header): Likewise.
26061         * lib/netdb.in.h (system_header): Likewise.
26062         * lib/netinet_in.in.h (system_header): Likewise.
26063         * lib/pty.in.h (system_header): Likewise.
26064         * lib/sched.in.h (system_header): Likewise.
26065         * lib/se-selinux.in.h (system_header): Likewise.
26066         * lib/search.in.h (system_header): Likewise.
26067         * lib/spawn.in.h (system_header): Likewise.
26068         * lib/stdarg.in.h (system_header): Likewise.
26069         * lib/stdint.in.h (system_header): Likewise.
26070         * lib/string.in.h (system_header): Likewise.
26071         * lib/strings.in.h (system_header): Likewise.
26072         * lib/sys_file.in.h (system_header): Likewise.
26073         * lib/sys_ioctl.in.h (system_header): Likewise.
26074         * lib/sys_socket.in.h (system_header): Likewise.
26075         * lib/sys_times.in.h (system_header): Likewise.
26076         * lib/sys_utsname.in.h (system_header): Likewise.
26077         * lib/sys_wait.in.h (system_header): Likewise.
26078         * lib/sysexits.in.h (system_header): Likewise.
26079         * lib/unistd.in.h (system_header): Likewise.
26080         * lib/wctype.in.h (system_header): Likewise.
26081
26082         arpa/inet: fix mingw compilation warning
26083         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26084         Reported by Matthew Bolte.
26085
26086 2010-03-25  Bruno Haible  <bruno@clisp.org>
26087
26088         Avoid collision between gnulib wrapper and libintl wrapper.
26089         * lib/printf.c (printf): Don't define if a printf wrapper is already
26090         defined in intl/printf.c.
26091         Reported by Michel Boaventura <michel@michelboaventura.com>.
26092
26093 2010-03-25  Bruno Haible  <bruno@clisp.org>
26094
26095         Use ANSI C.
26096         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26097
26098 2010-03-25  Bruno Haible  <bruno@clisp.org>
26099
26100         Minor formatting changes.
26101         * lib/acosl.c: Insert space before function argument list.
26102         * lib/argz.c: Likewise.
26103         * lib/asinl.c: Likewise.
26104         * lib/expl.c: Likewise.
26105         * lib/gen-uni-tables.c: Likewise.
26106         * lib/gettext.h: Likewise.
26107         * lib/glthread/lock.h: Likewise.
26108         * lib/tanl.c: Likewise.
26109         * lib/uniname/uniname.c: Likewise.
26110         * tests/test-idpriv-drop.c: Likewise.
26111         * tests/test-idpriv-droptemp.c: Likewise.
26112         * tests/test-lock.c: Likewise.
26113         * tests/test-tls.c: Likewise.
26114         * lib/argp-help.c: Insert space before function-like macro argument
26115         list.
26116         * lib/memcmp.c: Likewise.
26117         * tests/test-base64.c: Likewise.
26118         * lib/localename.c: Insert space before sizeof's argument list.
26119         * lib/safe-alloc.h: Likewise.
26120         * lib/file-set.h: Insert space before macro argument list.
26121         * tests/test-argp.c: Likewise.
26122         * lib/argp-namefrob.h: Insert space before function parameter list.
26123         * lib/getaddrinfo.c: Likewise.
26124         * lib/netdb.in.h: Likewise.
26125         * lib/parse-duration.h: Likewise.
26126         * lib/parse-duration.c: Likewise.
26127         * lib/poll.c: Likewise.
26128         * lib/select.c: Likewise.
26129         * lib/trim.h: Likewise.
26130         * tests/test-usleep.c: Likewise.
26131         * lib/ldexpl.c: Insert space before function parameter list and before
26132         function argument list.
26133         * lib/logl.c: Likewise.
26134         * lib/sqrtl.c: Likewise.
26135         * lib/trim.c: Likewise.
26136         * lib/cosl.c: Use GNU style indentation. Insert space before function
26137         argument list.
26138         * lib/sinl.c: Likewise.
26139         * lib/tsearch.c: Insert space after 'for'.
26140         Reported by Jim Meyering.
26141
26142 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26143
26144         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26145         config header before grepping, as it's not present before
26146         autoreconf/configure are run.  Reported by Simon Josefsson.
26147
26148 2010-03-23  Bruno Haible  <bruno@clisp.org>
26149
26150         pt_chown: Make it work with automake < 1.11.
26151         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26152         Reported by Simon Josefsson.
26153
26154 2010-03-23  Bruno Haible  <bruno@clisp.org>
26155
26156         pt_chown: Don't depend on GPLed modules.
26157         * lib/pt_chown.c: Don't include idpriv.h.
26158         (main): Don't drop privileges.
26159         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26160         Reported by Simon Josefsson.
26161
26162 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26163
26164         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26165         suggestions from karl@freefriends.org (Karl Berry).
26166
26167 2010-03-22  Eric Blake  <eblake@redhat.com>
26168
26169         gethostname: further tweaks
26170         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26171         are overriding gethostname.
26172         Suggested by Bruno Haible.
26173
26174 2010-03-21  Bruno Haible  <bruno@clisp.org>
26175
26176         Fix comments.
26177         * lib/forkpty.c (rpl_forkpty): Fix comment.
26178         * lib/openpty.c (rpl_openpty): Likewise.
26179         Reported by Eric Blake.
26180
26181 2010-03-22  Eric Blake  <eblake@redhat.com>
26182
26183         gethostname: fix build on mingw
26184         * lib/unistd.in.h (includes): Work around fact that mingw
26185         <winsock2.h> re-includes <unistd.h>, by avoiding any
26186         redeclarations if we are being included by <winsock2.h>.
26187         Reported by Matthias Bolte.
26188
26189 2010-03-21  Bruno Haible  <bruno@clisp.org>
26190
26191         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26192         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26193         modifications.
26194         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26195         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26196         provide the replacement.
26197         * modules/forkpty (Depends-on): Add openpty, login_tty.
26198         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26199         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26200         * doc/glibc-functions/forkpty.texi: More supported platforms.
26201         * config/srclist.txt: Add forkpty.c (commented).
26202
26203 2010-03-21  Bruno Haible  <bruno@clisp.org>
26204
26205         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26206         (Makefile.am): Verify that PTY_LIB is defined.
26207
26208         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26209
26210 2010-03-21  Bruno Haible  <bruno@clisp.org>
26211
26212         Tests for module 'login_tty'.
26213         * modules/login_tty-tests: New file.
26214         * tests/test-login_tty.c: New file.
26215
26216         New module 'login_tty'.
26217         * lib/login_tty.c: New file.
26218         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26219         * modules/login_tty: New file.
26220         * doc/glibc-functions/login_tty.texi: Mention the new module.
26221
26222 2010-03-21  Bruno Haible  <bruno@clisp.org>
26223
26224         login_tty: Documentation.
26225         * doc/glibc-functions/login_tty.texi: New file.
26226         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26227
26228 2010-03-21  Bruno Haible  <bruno@clisp.org>
26229
26230         pty: Consistent macro naming.
26231         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26232         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26233         * modules/pty (configure.ac): Update.
26234
26235 2010-03-21  Bruno Haible  <bruno@clisp.org>
26236
26237         Tests for openpty: Make stricter.
26238         * tests/test-openpty.c (main): Add test of canonical processing and
26239         erase.
26240         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26241
26242         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26243         * lib/openpty.c (openpty): New replacement function.
26244         * lib/pty.in.h: Include <termios.h>.
26245         (openpty): Update declaration. Add comments.
26246         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26247         is not declared, arrange to provide the replacement. Check for _getpty
26248         and posix_openpt.
26249         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26250         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26251         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26252         * modules/pty-tests (test_pty_c___LDADD): New variable.
26253         * doc/glibc-functions/openpty.texi: More supported platforms.
26254
26255 2010-03-21  Bruno Haible  <bruno@clisp.org>
26256
26257         setenv: Tweaks.
26258         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26259         the test program.
26260         * doc/posix-functions/setenv.texi: Update platforms list.
26261
26262 2010-03-21  Bruno Haible  <bruno@clisp.org>
26263
26264         New module 'unlockpt'.
26265         * lib/unlockpt.c: New file, from glibc with modifications.
26266         * m4/unlockpt.m4: New file.
26267         * modules/unlockpt: New file.
26268         * lib/stdlib.in.h (unlockpt): New declaration.
26269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26270         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26271         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26272         HAVE_UNLOCKPT.
26273         * doc/posix-functions/unlockpt.texi: Mention the new module.
26274         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26275         * config/srclist.txt: Add unlockpt.c (commented).
26276
26277 2010-03-21  Jim Meyering  <meyering@redhat.com>
26278
26279         maint.mk: prohibit inclusion of "intprops.h" without use
26280         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26281
26282 2010-03-21  Bruno Haible  <bruno@clisp.org>
26283
26284         New module 'grantpt'.
26285         * lib/grantpt.c: New file, from glibc with modifications.
26286         * m4/grantpt.m4: New file.
26287         * modules/grantpt: New file.
26288         * lib/stdlib.in.h (grantpt): New declaration.
26289         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26290         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26291         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26292         HAVE_GRANTPT.
26293         * doc/posix-functions/grantpt.texi: Mention the new module.
26294         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26295         * config/srclist.txt: Add grantpt.c (commented).
26296
26297 2010-03-21  Bruno Haible  <bruno@clisp.org>
26298
26299         New module 'pt_chown'.
26300         * lib/pt_chown.c: New file, from glibc with modifications.
26301         * lib/pty-private.h: New file, from glibc with modifications.
26302         * modules/pt_chown: New file.
26303         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26304
26305 2010-03-21  Bruno Haible  <bruno@clisp.org>
26306
26307         Tests for module 'ptsname'.
26308         * modules/ptsname-tests: New file.
26309         * tests/test-ptsname.c: New file.
26310
26311         New module 'ptsname'.
26312         * lib/ptsname.c: New file, from glibc with modifications.
26313         * m4/ptsname.m4: New file.
26314         * modules/ptsname: New file.
26315         * lib/stdlib.in.h (ptsname): New declaration.
26316         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26317         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26318         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26319         HAVE_PTSNAME.
26320         * doc/posix-functions/ptsname.texi: Mention the new module.
26321         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26322         * config/srclist.txt: Add ptsname.c (commented).
26323
26324 2010-03-21  Bruno Haible  <bruno@clisp.org>
26325
26326         Tests for module 'ttyname_r'.
26327         * modules/ttyname_r-tests: New file.
26328         * tests/test-ttyname_r.c: New file.
26329
26330         New module 'ttyname_r'.
26331         * lib/ttyname_r.c: New file.
26332         * m4/ttyname_r.m4: New file.
26333         * modules/ttyname_r: New file.
26334         * lib/unistd.in.h (ttyname_r): New declaration.
26335         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26336         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26337         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26338         HAVE_TTYNAME_R.
26339         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26340         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26341
26342 2010-03-20  Bruno Haible  <bruno@clisp.org>
26343
26344         signal: Undefine macro definitions in C++ mode.
26345         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26346         sigfillset): Undefine macro definitions from the system header in C++
26347         mode.
26348         Reported by John W. Eaton <jwe@gnu.org>.
26349
26350 2010-03-20  Bruno Haible  <bruno@clisp.org>
26351
26352         Ensure no #include statements inside extern "C" { ... }.
26353         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26354         contain #include statements.
26355         * lib/time.in.h: Likewise.
26356
26357 2010-03-20  Bruno Haible  <bruno@clisp.org>
26358
26359         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26360         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26361         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26362         Reported by John W. Eaton <jwe@gnu.org>.
26363
26364 2010-03-20  Bruno Haible  <bruno@clisp.org>
26365
26366         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26367         Reported by Jim Meyering.
26368
26369 2010-03-20  Bruno Haible  <bruno@clisp.org>
26370
26371         pipe: Set errno upon failure.
26372         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26373         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26374         errno value in error message.
26375
26376 2010-03-20  Bruno Haible  <bruno@clisp.org>
26377             Jim Meyering  <meyering@redhat.com>
26378
26379         lchown: Avoid "unused variable" warning.
26380         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26381
26382 2010-03-20  Bruno Haible  <bruno@clisp.org>
26383
26384         Work around unlink() bug on MacOS X 10.5.6.
26385         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26386         attempting to unlink a parent directory.
26387         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26388         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26389         activate for the replacement function.
26390         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26391
26392 2010-03-20  Bruno Haible  <bruno@clisp.org>
26393
26394         Fix link errors on Solaris 8.
26395         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26396         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26397
26398 2010-03-19  Jim Meyering  <meyering@redhat.com>
26399
26400         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26401         The _LIBC implementation of build_range_exp correctly honors the
26402         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26403         However, the non-_LIBC implementation would ignore that syntax-bit
26404         flag and return REG_ERANGE unconditionally.
26405         This change makes it honor that flag.
26406         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26407         Make two pointer parameters "const".
26408         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26409         (parse_bracket_exp): Update caller.
26410
26411         regex.m4: correct the reversed range endpoint ([b-a]) test
26412         * m4/regex.m4: When requiring that [b-a] evoke failure,
26413         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26414         test pass once again for x86-based systems.
26415
26416 2010-03-19  Bruno Haible  <bruno@clisp.org>
26417
26418         scandir: Fix link error on Solaris 8.
26419         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26420         macros.
26421
26422 2010-03-19  Bruno Haible  <bruno@clisp.org>
26423
26424         getusershell: Fix documentation.
26425         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26426         module.
26427         * doc/glibc-functions/setusershell.texi: Likewise.
26428
26429         getusershell: Provide declaration, missing on Solaris 9.
26430         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26431         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26432         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26433         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26435         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26436         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26437         HAVE_GETUSERSHELL.
26438         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26439
26440 2010-03-19  Bruno Haible  <bruno@clisp.org>
26441
26442         wctype: Provide iswblank function.
26443         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26444         exists and is fine.
26445         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26446         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26447         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26448         * doc/posix-functions/iswblank.texi: Update.
26449
26450 2010-03-19  Bruno Haible  <bruno@clisp.org>
26451
26452         Tests of module 'pty' in C++ mode.
26453         * modules/pty-tests: New file.
26454         * tests/test-pty-c++.cc: New file.
26455         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26456
26457 2010-03-19  Eric Blake  <eblake@redhat.com>
26458
26459         logb: fix documentation
26460         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26461         1.5 declaration bug.
26462
26463         forkpty, openpty: prefer glibc's const-safe prototype
26464         * lib/forkpty.c (rpl_forkpty): New file.
26465         * lib/openpty.c (rpl_openpty): Likewise.
26466         * modules/forkpty (Files): Distribute it.
26467         * modules/openpty (Files): Likewise.
26468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26469         check...
26470         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26471         replacement for for non-const BSD signature.
26472         * modules/pty (Makefile.am): Substitute witnesses.
26473         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26474         * tests/test-forkpty.c: Update signature check.
26475         * tests/test-openpty.c: Likewise.
26476         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26477         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26478
26479         forkpty, openpty: split functions into new modules
26480         * modules/pty (Makefile.am): Substitute new witnesses.
26481         (Libraries): Move library detection...
26482         * modules/forkpty: ...into new module.
26483         * modules/openpty: Another new module.
26484         * modules/pty-tests: Rename and split...
26485         * modules/forkpty-tests: ...to this...
26486         * modules/openpty-tests: ...and this.
26487         * tests/test-pty.c: Rename and split...
26488         * tests/test-forkpty.c: ...to this...
26489         * tests/test-openpty.c: ...and this.
26490         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26491         (gl_PTY): Split library searching...
26492         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26493         (gl_FORKPTY, gl_OPENPTY): New macros.
26494         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26495         * NEWS: Mention the split.
26496         * MODULES.html.sh (Misc): Document the modules.
26497         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26498         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26499
26500         pty: improve replacement header
26501         * lib/pty.in.h: New file.
26502         * modules/pty (Files): Ship it.
26503         (Makefile.am): Always build replacement.
26504         * m4/pty.m4: Rename...
26505         * m4/pty_h.m4: ...to this.
26506         (gl_PTY): Modernize setting of witness macros; update check of
26507         forkpty to take proper advantage of cache.
26508         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26509
26510         getopt: avoid compiler warning
26511         * lib/getopt.c (attribute_hidden): Remove unused macro.
26512
26513 2010-03-18  Bruno Haible  <bruno@clisp.org>
26514
26515         Fix link errors on Solaris 8.
26516         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26517         * modules/search-tests (test_search_c___LDADD): Likewise.
26518         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26519         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26520         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26521         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26522         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26523         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26524         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26525
26526 2010-03-18  Bruno Haible  <bruno@clisp.org>
26527
26528         Fix bug introduced on 2010-03-14.
26529         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26530         (gl_SPAWN_H): Require it.
26531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26532         Reported by Simon Josefsson.
26533
26534 2010-03-18  Bruno Haible  <bruno@clisp.org>
26535
26536         Fix typo introduced on 2009-12-31.
26537         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26538         posix_spawn_file_actions_adddup2.
26539
26540 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26541         and Eric Blake  <eblake@redhat.com>
26542
26543         test-vc-list-files-git: make more robust
26544         * tests/test-vc-list-files-git.sh: Unset problematic environment
26545         variables.  Chain commands together.
26546
26547 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26548
26549         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26550         `AC_CHECK_DECL' invocation.
26551
26552 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26553
26554         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26555         appears before executable statements. Suggested by Petr Sumbera
26556         <Petr.Sumbera@Sun.COM>.
26557
26558 2010-03-14  Bruno Haible  <bruno@clisp.org>
26559
26560         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26561         portability problems. Instead use a simpler test.
26562         (main): Check that invalid arguments are rejected only on Linux.
26563
26564 2010-03-14  Bruno Haible  <bruno@clisp.org>
26565
26566         Fix bug introduced on 2009-12-31.
26567         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26568         gl_PREREQ_SYS_H_WINSOCK2 always.
26569         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26570         SYS_SOCKET_H variable.
26571         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26572         Update comments.
26573         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26574         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26575         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26576         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26577         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26578
26579 2010-03-14  Bruno Haible  <bruno@clisp.org>
26580
26581         Fix values returned by sinl, cosl.
26582         * lib/trigl.h: Add specification comments.
26583         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26584         that combines the values from the precomputed table with the values of
26585         the Chebyshev polynomials.
26586
26587 2010-03-14  Bruno Haible  <bruno@clisp.org>
26588
26589         Fix compilation error when modules 'posix_spawn[p]' are not used.
26590         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26592
26593 2010-03-14  Bruno Haible  <bruno@clisp.org>
26594
26595         Fix compilation error on mingw when module 'time_r' is not used.
26596         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26597         is 1.
26598         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26599         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26600         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26602
26603 2010-03-14  Bruno Haible  <bruno@clisp.org>
26604
26605         Fix compilation error with Sun C.
26606         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26607         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26608         instead of GCC specific ULONG_LONG_MAX.
26609         * lib/xstrtoll.c: Likewise.
26610         * lib/xstrtoull.c: Likewise.
26611
26612 2010-03-13  Bruno Haible  <bruno@clisp.org>
26613
26614         Allow the user to disable C++ code and tests.
26615         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26616         (gl_PROG_ANSI_CXX): Require it.
26617
26618 2010-03-13  Bruno Haible  <bruno@clisp.org>
26619
26620         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26621         cases.
26622
26623 2010-03-13  Bruno Haible  <bruno@clisp.org>
26624
26625         Test that gnulib does not break the standard C++ headers.
26626         * tests/test-locale-c++2.cc: New file.
26627         * modules/locale-tests (Files): Add it.
26628         (Makefile.am): Compile it for test-locale-c++.
26629         * tests/test-math-c++2.cc: New file.
26630         * modules/math-tests (Files): Add it.
26631         (Makefile.am): Compile it for test-math-c++.
26632         * tests/test-signal-c++2.cc: New file.
26633         * modules/signal-tests (Files): Add it.
26634         (Makefile.am): Compile it for test-signal-c++.
26635         * tests/test-stdio-c++2.cc: New file.
26636         * modules/stdio-tests (Files): Add it.
26637         (Makefile.am): Compile it for test-stdio-c++.
26638         * tests/test-stdlib-c++2.cc: New file.
26639         * modules/stdlib-tests (Files): Add it.
26640         (Makefile.am): Compile it for test-stdlib-c++.
26641         * tests/test-string-c++2.cc: New file.
26642         * modules/string-tests (Files): Add it.
26643         (Makefile.am): Compile it for test-string-c++.
26644         * tests/test-time-c++2.cc: New file.
26645         * modules/time-tests (Files): Add it.
26646         (Makefile.am): Compile it for test-time-c++.
26647         Reported by John W. Eaton <jwe@gnu.org>.
26648
26649 2010-03-13  Bruno Haible  <bruno@clisp.org>
26650
26651         * gnulib-tool (func_usage): Clarify which options are available for
26652         --create-testdir and --create-megatestdir.
26653
26654 2010-03-13  Bruno Haible  <bruno@clisp.org>
26655
26656         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26657         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26658         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26659         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26660         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26661         when appropriate.
26662         Reported by Jim Meyering.
26663
26664 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26665
26666         * gnulib-tool (func_import): Explain origin of code.
26667
26668 2010-03-12  Bruno Haible  <bruno@clisp.org>
26669
26670         Fix problem with automake's definition of CXXLINK.
26671         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26672         Reported by Simon Josefsson and Ludovic Courtès.
26673
26674 2010-03-12  Bruno Haible  <bruno@clisp.org>
26675
26676         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26677         stable releases.
26678
26679 2010-03-11  Bruno Haible  <bruno@clisp.org>
26680
26681         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26682         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26683         whether the system provides one variant or multiple variants of the
26684         function.
26685         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26686         C++ compilers.
26687         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26688         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26689         Reported by Jim Meyering.
26690
26691 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26692
26693         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26694
26695 2010-03-08  Bruno Haible  <bruno@clisp.org>
26696
26697         gnulib-tool: Add support for --libtool in --create-testdir.
26698         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26699         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26700
26701 2010-03-08  Eric Blake  <eblake@redhat.com>
26702
26703         gnulib-tool.texi: mention possibility of git submodule
26704         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26705         submodules.
26706         * doc/.gitignore: Ignore another generated file.
26707
26708 2010-03-08  Karl Berry  <karl@gnu.org>
26709
26710         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26711         of committing gnulib files while skipping others.
26712
26713 2010-03-07  Bruno Haible  <bruno@clisp.org>
26714
26715         Tests of module 'wctype' in C++ mode.
26716         * tests/test-wctype-c++.cc: New file.
26717         * modules/wctype-tests (Files): Add it and tests/signature.h.
26718         (Depends-on): Add ansi-c++-opt.
26719         (Makefile.am): Arrange to compile and run test-wctype-c++.
26720
26721         Tests of module 'wchar' in C++ mode.
26722         * tests/test-wchar-c++.cc: New file.
26723         * modules/wchar-tests (Files): Add it and tests/signature.h.
26724         (Depends-on): Add ansi-c++-opt.
26725         (Makefile.am): Arrange to compile and run test-wchar-c++.
26726         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26727         gl_MODULE_INDICATOR.
26728
26729         Tests of module 'unistd' in C++ mode.
26730         * tests/test-unistd-c++.cc: New file.
26731         * modules/unistd-tests (Files): Add it and tests/signature.h.
26732         (Depends-on): Add ansi-c++-opt.
26733         (Makefile.am): Arrange to compile and run test-unistd-c++.
26734         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26735         gl_MODULE_INDICATOR.
26736
26737         Tests of module 'time' in C++ mode.
26738         * tests/test-time-c++.cc: New file.
26739         * modules/time-tests (Files): Add it and tests/signature.h.
26740         (Depends-on): Add ansi-c++-opt.
26741         (Makefile.am): Arrange to compile and run test-time-c++.
26742         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26743
26744         Tests of module 'sys_time' in C++ mode.
26745         * tests/test-sys_time-c++.cc: New file.
26746         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26747         (Depends-on): Add ansi-c++-opt.
26748         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26749         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26750         gl_MODULE_INDICATOR.
26751
26752         Tests of module 'sys_stat' in C++ mode.
26753         * tests/test-sys_stat-c++.cc: New file.
26754         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26755         (Depends-on): Add ansi-c++-opt.
26756         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26757         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26758         gl_MODULE_INDICATOR.
26759
26760         Tests of module 'sys_socket' in C++ mode.
26761         * tests/test-sys_socket-c++.cc: New file.
26762         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26763         (Depends-on): Add ansi-c++-opt.
26764         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26766         gl_MODULE_INDICATOR.
26767
26768         Tests of module 'sys_select' in C++ mode.
26769         * tests/test-sys_select-c++.cc: New file.
26770         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26771         (Depends-on): Add ansi-c++-opt.
26772         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26773         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26774         gl_MODULE_INDICATOR.
26775
26776         Tests of module 'sys_ioctl' in C++ mode.
26777         * tests/test-sys_ioctl-c++.cc: New file.
26778         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26779         (Depends-on): Add ansi-c++-opt.
26780         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26782         gl_MODULE_INDICATOR.
26783
26784         Tests of module 'string' in C++ mode.
26785         * tests/test-string-c++.cc: New file.
26786         * modules/string-tests (Files): Add it and tests/signature.h.
26787         (Depends-on): Add ansi-c++-opt.
26788         (Makefile.am): Arrange to compile and run test-string-c++.
26789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26790         gl_MODULE_INDICATOR.
26791
26792         Tests of module 'stdlib' in C++ mode.
26793         * tests/test-stdlib-c++.cc: New file.
26794         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26795         (Depends-on): Add ansi-c++-opt.
26796         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26797         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26798         gl_MODULE_INDICATOR.
26799
26800         Tests of module 'stdio' in C++ mode.
26801         * tests/test-stdio-c++.cc: New file.
26802         * modules/stdio-tests (Files): Add it and tests/signature.h.
26803         (Depends-on): Add ansi-c++-opt.
26804         (Makefile.am): Arrange to compile and run test-stdio-c++.
26805         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26806         gl_MODULE_INDICATOR.
26807
26808         Tests of module 'spawn' in C++ mode.
26809         * tests/test-spawn-c++.cc: New file.
26810         * modules/spawn-tests (Files): Add it and tests/signature.h.
26811         (Depends-on): Add ansi-c++-opt.
26812         (Makefile.am): Arrange to compile and run test-spawn-c++.
26813         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26814         gl_MODULE_INDICATOR.
26815
26816         Tests of module 'signal' in C++ mode.
26817         * tests/test-signal-c++.cc: New file.
26818         * modules/signal-tests (Files): Add it and tests/signature.h.
26819         (Depends-on): Add ansi-c++-opt.
26820         (Makefile.am): Arrange to compile and run test-signal-c++.
26821         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26822         gl_MODULE_INDICATOR.
26823
26824         Tests of module 'search' in C++ mode.
26825         * tests/test-search-c++.cc: New file.
26826         * modules/search-tests (Files): Add it and tests/signature.h.
26827         (Depends-on): Add ansi-c++-opt.
26828         (Makefile.am): Arrange to compile and run test-search-c++.
26829         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26830         gl_MODULE_INDICATOR.
26831
26832         Tests of module 'math' in C++ mode.
26833         * tests/test-math-c++.cc: New file.
26834         * modules/math-tests (Files): Add it and tests/signature.h.
26835         (Depends-on): Add ansi-c++-opt.
26836         (Makefile.am): Arrange to compile and run test-math-c++.
26837         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26838
26839         Tests of module 'locale' in C++ mode.
26840         * tests/test-locale-c++.cc: New file.
26841         * modules/locale-tests (Files): Add it and tests/signature.h.
26842         (Depends-on): Add ansi-c++-opt.
26843         (Makefile.am): Arrange to compile and run test-locale-c++.
26844         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26845         gl_MODULE_INDICATOR.
26846
26847         Tests of module 'langinfo' in C++ mode.
26848         * tests/test-langinfo-c++.cc: New file.
26849         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26850         (Depends-on): Add ansi-c++-opt.
26851         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26852         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26853         gl_MODULE_INDICATOR.
26854
26855         Tests of module 'iconv-h' in C++ mode.
26856         * tests/test-iconv-h-c++.cc: New file.
26857         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26858         (Depends-on): Add ansi-c++-opt.
26859         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26860
26861         Tests of module 'glob' in C++ mode.
26862         * tests/test-glob-c++.cc: New file.
26863         * modules/glob-tests (Files): Add it.
26864         (Depends-on): Add ansi-c++-opt.
26865         (Makefile.am): Arrange to compile and run test-glob-c++.
26866
26867         Tests of module 'fcntl-h' in C++ mode.
26868         * tests/test-fcntl-h-c++.cc: New file.
26869         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26870         (Depends-on): Add ansi-c++-opt.
26871         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26872         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26873         gl_MODULE_INDICATOR.
26874
26875         Tests of module 'dirent' in C++ mode.
26876         * tests/test-dirent-c++.cc: New file.
26877         * modules/dirent-tests (Files): Add it and tests/signature.h.
26878         (Depends-on): Add ansi-c++-opt.
26879         (Makefile.am): Arrange to compile and run test-dirent-c++.
26880         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26881         gl_MODULE_INDICATOR.
26882
26883         New module 'ansi-c++-opt'.
26884         * modules/ansi-c++-opt: New file.
26885         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26886
26887         Document C++ namespace mode.
26888         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26889
26890         wctype: Avoid #define replacements in C++ mode.
26891         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26892         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26893         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26894         In C++, define a namespaced alias symbol.
26895         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26896         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26897         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26898         rule.
26899
26900         wchar: Avoid #define replacements in C++ mode.
26901         * lib/wchar.in.h: Include c++defs.h.
26902         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26903         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26904         symbol.
26905         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26906         * modules/wchar (Depends-on): Add c++defs.
26907         (Makefile.am): Update wchar.h rule.
26908
26909         unistd: Avoid #define replacements in C++ mode.
26910         * lib/unistd.in.h: Include c++defs.h.
26911         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26912         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26913         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26914         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26915         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26916         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26917         symbol.
26918         (environ): Update.
26919         * modules/unistd (Depends-on): Add c++defs.
26920         (Makefile.am): Update unistd.h rule.
26921
26922         time: Avoid #define replacements in C++ mode.
26923         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26924         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26925         define a namespaced alias symbol.
26926         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26927         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26928         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26929         * modules/time (Depends-on): Add c++defs, warn-on-use.
26930         (Makefile.am): Update time.h rule.
26931         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26932         * modules/nanosleep (configure.ac): Likewise.
26933         * modules/strptime (configure.ac): Likewise.
26934         * modules/timegm (configure.ac): Likewise.
26935
26936         sys_time: Avoid #define replacements in C++ mode.
26937         * lib/sys_time.in.h: Include c++defs.h.
26938         (gettimeofday): In C++, define a namespaced alias symbol.
26939         * modules/sys_time (Depends-on): Add c++defs.
26940         (Makefile.am): Update sys/time.h rule.
26941
26942         sys_stat: Avoid #define replacements in C++ mode.
26943         * lib/sys_stat.in.h: Include c++defs.h.
26944         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26945         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26946         namespaced alias symbol.
26947         In C++, define a namespaced alias symbol.
26948         * modules/sys_stat (Depends-on): Add c++defs.
26949         (Makefile.am): Update sys/stat.h rule.
26950
26951         sys_socket: Avoid #define replacements in C++ mode.
26952         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26953         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26954         definitions also when the system has a <sys/socket.h>.
26955         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26956         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26957         In C++, define a namespaced alias symbol.
26958         * modules/sys_socket (Depends-on): Add c++defs.
26959         (Makefile.am): Update sys/socket.h rule.
26960
26961         sys_select: Avoid #define replacements in C++ mode.
26962         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26963         definitions also when the system has a <sys/select.h>.
26964         (select): In C++, define a namespaced alias symbol.
26965         * modules/sys_select (Depends-on): Add c++defs.
26966         (Makefile.am): Update sys/select.h rule.
26967
26968         sys_ioctl: Avoid #define replacements in C++ mode.
26969         * lib/sys_ioctl.in.h: Include c++defs.h.
26970         (ioctl): In C++, define a namespaced alias symbol.
26971         * modules/sys_ioctl (Depends-on): Add c++defs.
26972         (Makefile.am): Update sys/ioctl.h rule.
26973
26974         string: Avoid #define replacements in C++ mode.
26975         * lib/string.in.h: Include c++defs.h.
26976         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26977         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26978         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26979         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26980         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26981         * modules/string (Depends-on): Add c++defs.
26982         (Makefile.am): Update string.h rule.
26983
26984         stdlib: Avoid #define replacements in C++ mode.
26985         * lib/stdlib.in.h: Include c++defs.h.
26986         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26987         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26988         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26989         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26990         symbol.
26991         * modules/stdlib (Depends-on): Add c++defs.
26992         (Makefile.am): Update stdlib.h rule.
26993
26994         stdio: Avoid #define replacements in C++ mode.
26995         * lib/stdio.in.h: Include c++defs.h.
26996         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26997         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26998         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26999         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27000         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27001         namespaced alias symbol.
27002         * modules/stdio (Depends-on): Add c++defs.
27003         (Makefile.am): Update stdio.h rule.
27004
27005         spawn: Avoid #define replacements in C++ mode.
27006         * lib/spawn.in.h: Include c++defs.h.
27007         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27008         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27009         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27010         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27011         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27012         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27013         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27014         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27015         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27016         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27017         In C++, define a namespaced alias symbol.
27018         * modules/spawn (Depends-on): Add c++defs.
27019         (Makefile.am): Update spawn.h rule.
27020
27021         signal: Avoid #define replacements in C++ mode.
27022         * lib/signal.in.h: Include c++defs.h.
27023         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27024         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27025         namespaced alias symbol.
27026         * modules/signal (Depends-on): Add c++defs.
27027         (Makefile.am): Update signal.h rule.
27028
27029         search: Avoid #define replacements in C++ mode.
27030         * lib/search.in.h: Include c++defs.h.
27031         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27032         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27033         symbol.
27034         * modules/search (Depends-on): Add c++defs.
27035         (Makefile.am): Update search.h rule.
27036
27037         math: Avoid #define replacements in C++ mode.
27038         * lib/math.in.h: Include c++defs.h.
27039         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27040         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27041         trunc, truncl): In C++, define a namespaced alias symbol.
27042         * modules/math (Depends-on): Add c++defs.
27043         (Makefile.am): Update math.h rule.
27044
27045         locale: Avoid #define replacements in C++ mode.
27046         * lib/locale.in.h: Include c++defs.h.
27047         (duplocale): In C++, define a namespaced alias symbol.
27048         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27049         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27050         * modules/locale (Depends-on): Add c++defs.
27051         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27052
27053         langinfo: Avoid #define replacements in C++ mode.
27054         * lib/langinfo.in.h: Include c++defs.h.
27055         (nl_langinfo): In C++, define a namespaced alias symbol.
27056         * modules/langinfo (Depends-on): Add c++defs.
27057         (Makefile.am): Update langinfo.h rule.
27058
27059         iconv-h: Avoid #define replacements in C++ mode.
27060         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27061         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27062         symbol.
27063         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27064         whenever iconv is present.
27065         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27066         (Makefile.am): Update iconv.h rule.
27067
27068         glob: Avoid #define replacements in C++ mode.
27069         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27070         (_gl_glob_errfunc_fn): New type.
27071         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27072         symbol.
27073         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27074         (Makefile.am): Update glob.h rule.
27075
27076         fcntl-h: Avoid #define replacements in C++ mode.
27077         * lib/fcntl.in.h: Include c++defs.h.
27078         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27079         * modules/fcntl-h (Depends-on): Add c++defs.
27080         (Makefile.am): Update fcntl.h rule.
27081
27082         dirent: Avoid #define replacements in C++ mode.
27083         * lib/dirent.in.h: Include c++defs.h.
27084         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27085         namespaced alias symbol.
27086         (dirfd): Update declaration.
27087         * modules/dirent (Depends-on): Add c++defs.
27088         (Makefile.am): Update dirent.h rule.
27089
27090         ctype: Make it usable in C++ code.
27091         * lib/ctype.in.h: Include c++defs.h.
27092         (isblank): Declare as extern "C".
27093         * modules/ctype (Depends-on): Add c++defs.
27094         (Makefile.am): Update ctype.h rule.
27095
27096         New module 'c++defs'.
27097         * modules/c++defs: New file.
27098         * build-aux/c++defs.h: New file.
27099         Reported by John W. Eaton <jwe@gnu.org>.
27100
27101 2010-03-07  Bruno Haible  <bruno@clisp.org>
27102
27103         logb: Provide missing declaration for Cygwin.
27104         * lib/math.in.h (logb): New declaration.
27105         * m4/logb.m4: New file.
27106         * modules/logb (Files): Add m4/logb.m4.
27107         (Depends-on): Add math.
27108         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27109         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27111         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27112         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27113
27114 2010-03-07  Bruno Haible  <bruno@clisp.org>
27115
27116         Fix test-cond link error.
27117         * tests/test-cond.c: Include <stdio.h>.
27118
27119 2010-03-07  Bruno Haible  <bruno@clisp.org>
27120
27121         Fix test-dirent-safer link error.
27122         * modules/dirent-safer-tests (Makefile.am): Define
27123         test_dirent_safer_LDADD.
27124
27125 2010-03-07  Bruno Haible  <bruno@clisp.org>
27126
27127         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27128         among default module list.
27129
27130 2010-03-07  Bruno Haible  <bruno@clisp.org>
27131
27132         Fix link error on platforms with GNU libiconv.
27133         * modules/unistr/u8-strcoll-tests (Makefile): Define
27134         test_u8_strcoll_LDADD.
27135         * modules/unistr/u16-strcoll-tests (Makefile): Define
27136         test_u16_strcoll_LDADD.
27137         * modules/unistr/u32-strcoll-tests (Makefile): Define
27138         test_u32_strcoll_LDADD.
27139
27140 2010-03-07  Bruno Haible  <bruno@clisp.org>
27141
27142         Use POSIX declarations for socket functions.
27143         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27144         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27145         rpl_sendto): Change declaration to match POSIX.
27146         * lib/connect.c (rpl_connect): Likewise.
27147         * lib/accept.c (rpl_accept): Likewise.
27148         * lib/bind.c (rpl_bind): Likewise.
27149         * lib/getpeername.c (rpl_getpeername): Likewise.
27150         * lib/getsockname.c (rpl_getsockname): Likewise.
27151         * lib/recv.c (rpl_recv): Likewise.
27152         * lib/send.c (rpl_send): Likewise.
27153         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27154         * lib/sendto.c (rpl_sendto): Likewise.
27155
27156 2010-03-06  Bruno Haible  <bruno@clisp.org>
27157
27158         Clarify access, euidaccess, faccessat.
27159         * doc/posix-functions/faccessat.texi: Mention security problem under
27160         "Other problems", not "Portability problems".
27161         * doc/posix-functions/access.texi: Likewise. Mention a related security
27162         problem.
27163         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27164         * lib/euidaccess.c: Add comments about platforms.
27165         * lib/unistd.in.h (access, euidaccess): Add warnings.
27166
27167 2010-03-07  Bruno Haible  <bruno@clisp.org>
27168
27169         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27170         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27171         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27172         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27173         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27174         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27175         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27176         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27177         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27178         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27179         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27180         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27181         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27182         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27183         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27184         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27185         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27186         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27187         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27188         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27189         Likewise.
27190         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27191         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27192         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27193         Likewise.
27194         * tests/test-spawn.c (main): Make it work when
27195         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27196
27197 2010-03-07  Bruno Haible  <bruno@clisp.org>
27198
27199         Fix incorrect Makefile.am generation in German locale.
27200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27201         Execute sed command with character range in C locale.
27202
27203 2010-03-06  Bruno Haible  <bruno@clisp.org>
27204
27205         Tests for module 'iconv-h'.
27206         * modules/iconv-h-tests: New file.
27207         * tests/test-iconv-h.c: New file.
27208
27209         New module 'iconv-h'.
27210         * modules/iconv-h: New file.
27211         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27212         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27213         (configure.ac): Remove gl_ICONV_H.
27214         (Makefile.am): Remove rule for iconv.h.
27215
27216 2010-03-06  Bruno Haible  <bruno@clisp.org>
27217
27218         More consistent naming of *.m4 files.
27219         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27220         * modules/wctype (Files): Update.
27221
27222         More consistent naming of *.m4 files.
27223         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27224         * modules/wchar (Files): Update.
27225
27226 2010-03-06  Jim Meyering  <meyering@redhat.com>
27227
27228         euidaccess: relax license to LGPLv2+
27229         * modules/euidaccess (License): Relax to LGPLv2+.
27230
27231 2010-03-06  Bruno Haible  <bruno@clisp.org>
27232
27233         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27234         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27235         (Makefile.am): Augment lib_SOURCES instead.
27236
27237 2010-03-04  Jim Meyering  <meyering@redhat.com>
27238
27239         utime: remove obsolete module
27240         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27241         unnecessary for years, and has been marked as obsolete for 10 months.
27242         * modules/utime: Remove file.
27243         * lib/utime.c: Remove file.
27244         * m4/utime.m4: Remove file.
27245         * m4/utimes-null.m4: Remove file.
27246         * doc/posix-functions/utime.texi (utime): Remove reference to
27247         the module.  Move the sole "fixed by gnulib" item into the
27248         "problems not fixed by Gnulib" list.
27249         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27250
27251 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27252
27253         * modules/exit (License): Relax license to LGPLv2+.
27254         (Status): Mark as obsolete.
27255         * NEWS: Mention deprecated 'exit' module.
27256         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27257         of now obsolete 'exit'.
27258
27259 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27260
27261         fts-lgpl: remove unused module
27262         * modules/fts-lgpl: Remove.
27263         * MODULES.html.sh (func_all_modules): Adjust.
27264         * check-module (find_included_lib_files): Adjust.
27265         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27266
27267 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27268
27269         copy-acl: enhance Solaris ACL error handling
27270         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27271         * lib/set-mode-acl.c (qset_acl): Likewise.
27272
27273 2010-03-02  Bruno Haible  <bruno@clisp.org>
27274
27275         spawn: Don't override the system defined values on FreeBSD 8.
27276         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27277         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27278         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27279         if HAVE_POSIX_SPAWN is 1.
27280         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27281
27282 2010-03-01  Bruno Haible  <bruno@clisp.org>
27283
27284         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27285         regarding Automake.
27286
27287 2010-02-25  Bruno Haible  <bruno@clisp.org>
27288
27289         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27290         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27291         setting, not afterwards.
27292         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27293
27294 2010-02-24  Eric Blake  <eblake@redhat.com>
27295
27296         bootstrap, git-version-gen: use timestamp
27297         * build-aux/git-version-gen (scriptversion): Force UTC.
27298         * build-aux/bootstrap (scriptversion): New variable.
27299
27300         bootstrap: allow older git
27301         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27302         older than 1.6.4.  Requested by the libvirt project.
27303
27304 2010-02-23  Eric Blake  <eblake@redhat.com>
27305
27306         warn-on-use: work with old autoconf
27307         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27308         AS_VAR semantics of autoconf 2.60.
27309         Reported by Bruno Haible.
27310
27311         bootstrap: improve some comments
27312         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27313         clarification comments.
27314
27315         gettimeofday: provide correct function
27316         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27317         when replacement is declared, otherwise provide gettimeofday.
27318         Reported by Michael Goffioul.
27319
27320 2010-02-23  Jim Meyering  <meyering@redhat.com>
27321
27322         lib-ignore: relax license to "unlimited", not LGPLv2+
27323         * modules/lib-ignore (License): Relax to "unlimited".
27324
27325 2010-02-23  Jim Meyering  <meyering@redhat.com>
27326
27327         lib-ignore: relax license to LGPLv2+
27328         * modules/lib-ignore (License): Relax to LGPLv2+.
27329
27330 2010-02-22  Eric Blake  <eblake@redhat.com>
27331
27332         lseek: avoid bash 3.2 broken pipe bug
27333         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27334         warning from bash 3.2.
27335         Reported by Ben Pfaff, with analysis from Bruno Haible.
27336
27337         bootstrap: support non-FSF copyright holder
27338         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27339         bootstrap.conf override of COPYRIGHT_HOLDER.
27340         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27341
27342         bootstrap: interoperate with gettext 0.14.1
27343         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27344
27345         bootstrap: allow for alternate submodule location
27346         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27347         hardcoding submodule location.
27348         (gnulib_mk): Allow direct use of Makefile.am.
27349
27350         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27351         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27352         rather than reconfiguring where the submodule points.
27353
27354         gettimeofday: restore support for platforms that lack function
27355         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27356         replacement if function is missing.
27357         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27358         * modules/sys_time (Makefile.am): Substitute it.
27359         * lib/sys_time.in.h (gettimeofday): Check it.
27360         Reported by Michael Goffioul.
27361
27362 2010-02-21  Bruno Haible  <bruno@clisp.org>
27363
27364         * lib/stdio.in.h (obstack_printf): Fix typo.
27365
27366 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27367
27368         vc-list-files: use bzr ls's -R option
27369         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27370         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27371
27372 2010-02-21  Jim Meyering  <meyering@redhat.com>
27373
27374         init.sh: fix EXEEXT shims to work also for names like test-prog
27375         * tests/init.sh: Re-exec a better shell, when needed.
27376         If the current shell lacks support for posix $(...), an init.sh-using
27377         test will now try to find a shell that supports that.  If EXEEXT is
27378         nonempty, we also require support for hyphen-in-alias-name and shell
27379         substitutions like ${var#glob}.  Failure to find such a shell results
27380         in a skipped test.
27381
27382 2010-02-21  Bruno Haible  <bruno@clisp.org>
27383
27384         Really work around around "broken pipe" error message from bash 3.2.
27385         * gnulib-tool (func_reset_sigpipe): Remove function.
27386         (echo): In bash 3.2, define to a function that uses printf.
27387         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27388
27389 2010-02-20  Bruno Haible  <bruno@clisp.org>
27390
27391         Restore support for automake 1.9.6 with autoconf 2.61.
27392         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27393         Reported by James Youngman <jay@gnu.org>.
27394
27395 2010-02-20  Bruno Haible  <bruno@clisp.org>
27396
27397         Improve *printf warning condition.
27398         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27399         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27400         and the function is overridden due to SIGPIPE emulation.
27401
27402 2010-02-20  Bruno Haible  <bruno@clisp.org>
27403
27404         * lib/stdio.in.h: Tweak comments.
27405
27406 2010-02-19  Bruno Haible  <bruno@clisp.org>
27407
27408         Make it easier to find modules. New gnulib-tool option '--find'.
27409         * gnulib-tool: New option --find.
27410         (func_usage): Document it.
27411         (func_sanitize_modulelist): New function, extracted from
27412         func_all_modules.
27413         (func_all_modules): Invoke it.
27414         * doc/gnulib-tool.texi (Which modules?): New node.
27415
27416 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27417
27418         * lib/sys_select.in.h: Provide select replacement even if
27419         sys/select.h exists on a system, for Interix.
27420
27421 2010-02-18  Jim Meyering  <meyering@redhat.com>
27422
27423         init.sh: don't use $(...) just yet
27424         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27425         to accommodate e.g., Solaris' /bin/sh.
27426
27427 2010-02-17  Bruno Haible  <bruno@clisp.org>
27428
27429         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27430         Reported by Ludovic Courtès <ludo@gnu.org>.
27431
27432 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27433
27434         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27435         linking with -lintl.
27436
27437 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27438
27439         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27440         if not provided by the system's netdb.h.  Reported by
27441         ludo@gnu.org (Ludovic Courtès).
27442
27443 2010-02-15  Jim Meyering  <meyering@redhat.com>
27444
27445         init.sh: improve portability and efficiency
27446         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27447         "dummy" in a for loop.
27448         Use '!', not '^' to select the complement of a character set used
27449         in a "case" statement.
27450         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27451         Suggestions from Eric Blake.
27452
27453         init.sh: automatically accommodate programs with the .exe suffix
27454         Automatically arrange for an invocation of "prog" to execute the
27455         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27456         may use the simpler "prog", yet still work when built on a system
27457         that requires specifying the added suffix.
27458         Do this by constructing a function named "prog" that invokes
27459         "prog.exe" for each .exe file in selected directories.
27460         * tests/init.sh (find_exe_basenames_): New function.
27461         (create_exe_shim_functions_): New function.
27462         (path_prepend_): Use it.
27463
27464         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27465         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27466         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27467
27468 2010-02-14  Jim Meyering  <meyering@redhat.com>
27469
27470         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27471         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27472         (sc_prohibit_hash_pjw_without_use): New rule.
27473
27474         maint.mk: allow the default upload destination dir to be overridden
27475         * top/maint.mk (upload_dest_dir_): Define with a default that
27476         preserves the status quo.
27477         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27478         Reported by Peter Simons.
27479
27480         maint.mk: prohibit inclusion of "hash.h" without_use
27481         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27482
27483 2010-02-10  Jim Meyering  <meyering@redhat.com>
27484
27485         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27486         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27487
27488 2010-02-09  Eric Blake  <ebb9@byu.net>
27489         and Bruno Haible  <bruno@clisp.org>
27490
27491         obstack-printf-posix: ensure declaration
27492         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27493         extracted from gl_FUNC_OBSTACK_PRINTF.
27494         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27495         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27496         Likewise.
27497         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27498         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27499         0.
27500
27501 2010-02-08  Bruno Haible  <bruno@clisp.org>
27502
27503         gnulib-tool: Fix typo in 2010-02-07 commit.
27504         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27505         Reported by Eric Blake.
27506
27507 2010-02-07  Bruno Haible  <bruno@clisp.org>
27508
27509         gnulib-tool: Fix up caching patches.
27510         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27511         option --no-cache. Use associative arrays when supported by the shell.
27512         (sed_comments): New variable.
27513         (modcache): Renamed from do_cache.
27514         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27515         abbreviate unnecessarily.
27516         (have_associative): New variable.
27517         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27518         way also for ksh and zsh.
27519         (func_init_sed_convert_to_cache_statements): New function, extracted
27520         from func_cache_lookup_module. Add support for associative arrays.
27521         Don't set the c_MODULE_cached variable here. Ignore all lines before
27522         the first field header. Remove only the final newline, not all trailing
27523         newlines. Support empty fields correctly. Limit the use of 'eval' to
27524         assignments.
27525         (func_get_description, func_get_status, func_get_notice,
27526         func_get_applicability, func_get_filelist, func_get_dependencies,
27527         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27528         func_get_automake_snippet, func_get_include_directive,
27529         func_get_link_directive, func_get_license, func_get_maintainer):
27530         Update documentation. List the unoptimized code first. Add support for
27531         associative arrays. Limit the use of 'eval' to assignments.
27532         (func_get_applicability): Undo stylistic pessimisations.
27533         (func_get_automake_snippet, func_get_include_directive): Reduce code
27534         duplication.
27535         (func_modules_transitive_closure, func_modules_add_dummy,
27536         func_modules_notice, func_modules_to_filelist, func_add_file,
27537         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27538         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27539         func_create_testdir, func_create_megatestdir): Update documentation.
27540
27541 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27542
27543         * gnulib-tool (func_cache_lookup_module): Store the module name
27544         belonging to the cache variable; error out if two different
27545         module names map to the same cache variable name.
27546
27547 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27548
27549         gnulib-tool: Make caching optional.
27550         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27551         Update matching short versions of --no-changelog.
27552         (func_usage): Update.
27553         (sed_extract_cache_prog): Renamed from ...
27554         (sed_extract_prog): ... this; revert to old extraction script.
27555         (func_get_description, func_get_status)
27556         (func_get_notice, func_get_applicability, func_get_filelist)
27557         (func_get_dependencies, func_get_autoconf_early_snippet)
27558         (func_get_autoconf_snippet, func_get_automake_snippet)
27559         (func_get_include_directive, func_get_link_directive)
27560         (func_get_license, func_get_maintainer): If $do_cache is false,
27561         use old, non-caching extraction scripts.
27562         Suggestion by Bruno Haible.
27563
27564 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27565
27566         gnulib-tool: cache module metainformation.
27567         * gnulib-tool (sed_extract_prog): Match newline before each
27568         header, and rewrite header to a shell variable suffix.
27569         (func_cache_var, func_cache_lookup_module): New functions,
27570         to turn a module name into a cache variable prefix, and to
27571         look up and cache module metainformation.
27572         (func_get_description, func_get_status)
27573         (func_get_notice, func_get_applicability, func_get_filelist)
27574         (func_get_dependencies, func_get_autoconf_early_snippet)
27575         (func_get_autoconf_snippet, func_get_automake_snippet)
27576         (func_get_include_directive, func_get_link_directive)
27577         (func_get_license, func_get_maintainer): Use
27578         func_cache_lookup_module.
27579
27580 2010-02-07  Bruno Haible  <bruno@clisp.org>
27581
27582         fnctl: Fix missing dependency.
27583         * modules/fcntl (Depends-on): Add getdtablesize.
27584         Reported by John W. Eaton <jwe@gnu.org>.
27585
27586 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27587
27588         Argp: fix recognition of short alias options.
27589
27590         * lib/argp-parse.c (convert_options): Fix improper use of
27591         `|' between character values.
27592         * tests/test-argp.c (group1_option): New alias option
27593         --read (-r).
27594         (group1_parser): Special handling for 'r'.
27595         (test15): New test case.
27596         (test_fun): Add test15.
27597         * tests/test-argp-2.sh: Update expected --help and --usage
27598         outputs.
27599
27600 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27601
27602         * tests/test-argp.c: Fix indentation.
27603
27604 2010-02-04  Eric Blake  <ebb9@byu.net>
27605
27606         gettimeofday: expose type of second argument
27607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27608         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27609         * tests/test-gettimeofday.c: Use it to silence warning.
27610         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27611         the issue.
27612
27613 2010-02-03  Jim Meyering  <meyering@redhat.com>
27614
27615         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27616         * lib/regcomp.c (TYPE_SIGNED): Define.
27617         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27618
27619         regcomp.c: avoid a new -Wshadow warning
27620         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27621
27622 2010-02-01  Jim Meyering  <meyering@redhat.com>
27623
27624         removing useless parentheses in cpp #define directives
27625         For motivation, see commit c0221df4, "define STREQ(a,b)
27626         consistently, removing useless parentheses"
27627         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27628         * lib/mountlist.c (MNT_IGNORE): Likewise.
27629         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27630
27631 2010-02-01  Eric Blake  <ebb9@byu.net>
27632
27633         sys_time: use link-warning
27634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27635         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27636         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27637         * modules/sys_time (Depends-on): Add warn-on-use.
27638         (Makefile.am): Always build replacement.
27639         (configure.ac): Update substitutions.
27640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27641         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27642         bother with SYS_TIME_H.
27643         * modules/gettimeofday (configure.ac): Declare indicator.
27644         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27645         in use.
27646
27647         closein-tests: silence compiler warning
27648         * tests/test-closein.c (main): Ignore fread result.
27649         * modules/closein-tests (Depends-on): Add ignore-value.
27650
27651         tests: silence warning about system return
27652         * tests/test-areadlink-with-size.c (main): Ignore system result.
27653         * tests/test-areadlink.c (main): Likewise.
27654         * tests/test-areadlinkat-with-size.c (main): Likewise.
27655         * tests/test-areadlinkat.c (main): Likewise.
27656         * tests/test-canonicalize-lgpl.c (main): Likewise.
27657         * tests/test-canonicalize.c (main): Likewise.
27658         * tests/test-chown.c (main): Likewise.
27659         * tests/test-fchownat.c (main): Likewise.
27660         * tests/test-fdutimensat.c (main): Likewise.
27661         * tests/test-fstatat.c (main): Likewise.
27662         * tests/test-futimens.c (main): Likewise.
27663         * tests/test-lchown.c (main): Likewise.
27664         * tests/test-link.c (main): Likewise.
27665         * tests/test-linkat.c (main): Likewise.
27666         * tests/test-lstat.c (main): Likewise.
27667         * tests/test-mkdir.c (main): Likewise.
27668         * tests/test-mkdirat.c (main): Likewise.
27669         * tests/test-mkfifo.c (main): Likewise.
27670         * tests/test-mkfifoat.c (main): Likewise.
27671         * tests/test-mknod.c (main): Likewise.
27672         * tests/test-readlink.c (main): Likewise.
27673         * tests/test-remove.c (main): Likewise.
27674         * tests/test-rename.c (main): Likewise.
27675         * tests/test-renameat.c (main): Likewise.
27676         * tests/test-rmdir.c (main): Likewise.
27677         * tests/test-symlink.c (main): Likewise.
27678         * tests/test-symlinkat.c (main): Likewise.
27679         * tests/test-unlink.c (main): Likewise.
27680         * tests/test-unlinkat.c (main): Likewise.
27681         * tests/test-utimens.c (main): Likewise.
27682         * tests/test-utimensat.c (main): Likewise.
27683         * modules/areadlink-tests (Depends-on): Add ignore-value.
27684         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27685         * modules/areadlinkat-tests (Depends-on): Likewise.
27686         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27687         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27688         * modules/canonicalize-tests (Depends-on): Likewise.
27689         * modules/chown-tests (Depends-on): Likewise.
27690         * modules/fdutimensat-tests (Depends-on): Likewise.
27691         * modules/futimens-tests (Depends-on): Likewise.
27692         * modules/lchown-tests (Depends-on): Likewise.
27693         * modules/link-tests (Depends-on): Likewise.
27694         * modules/linkat-tests (Depends-on): Likewise.
27695         * modules/lstat-tests (Depends-on): Likewise.
27696         * modules/mkdir-tests (Depends-on): Likewise.
27697         * modules/mkfifo-tests (Depends-on): Likewise.
27698         * modules/mkfifoat-tests (Depends-on): Likewise.
27699         * modules/mknod-tests (Depends-on): Likewise.
27700         * modules/openat-tests (Depends-on): Likewise.
27701         * modules/readlink-tests (Depends-on): Likewise.
27702         * modules/remove-tests (Depends-on): Likewise.
27703         * modules/rename-tests (Depends-on): Likewise.
27704         * modules/renameat-tests (Depends-on): Likewise.
27705         * modules/rmdir-tests (Depends-on): Likewise.
27706         * modules/symlink-tests (Depends-on): Likewise.
27707         * modules/symlinkat-tests (Depends-on): Likewise.
27708         * modules/unlink-tests (Depends-on): Likewise.
27709         * modules/utimens-tests (Depends-on): Likewise.
27710         * modules/utimensat-tests (Depends-on): Likewise.
27711
27712 2010-01-31  Bruno Haible  <bruno@clisp.org>
27713
27714         Perform the same test for many <math.h> functions.
27715         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27716         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27717         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27718         of gl_MATHFUNC.
27719         * modules/acos (configure.ac): Likewise.
27720         * modules/asin (configure.ac): Likewise.
27721         * modules/atan (configure.ac): Likewise.
27722         * modules/atan2 (configure.ac): Likewise.
27723         * modules/cbrt (configure.ac): Likewise.
27724         * modules/copysign (configure.ac): Likewise.
27725         * modules/cos (configure.ac): Likewise.
27726         * modules/cosh (configure.ac): Likewise.
27727         * modules/erf (configure.ac): Likewise.
27728         * modules/erfc (configure.ac): Likewise.
27729         * modules/exp (configure.ac): Likewise.
27730         * modules/fmod (configure.ac): Likewise.
27731         * modules/hypot (configure.ac): Likewise.
27732         * modules/j0 (configure.ac): Likewise.
27733         * modules/j1 (configure.ac): Likewise.
27734         * modules/jn (configure.ac): Likewise.
27735         * modules/lgamma (configure.ac): Likewise.
27736         * modules/log (configure.ac): Likewise.
27737         * modules/log10 (configure.ac): Likewise.
27738         * modules/log1p (configure.ac): Likewise.
27739         * modules/pow (configure.ac): Likewise.
27740         * modules/remainder (configure.ac): Likewise.
27741         * modules/sin (configure.ac): Likewise.
27742         * modules/sinh (configure.ac): Likewise.
27743         * modules/tan (configure.ac): Likewise.
27744         * modules/tanh (configure.ac): Likewise.
27745         * modules/y0 (configure.ac): Likewise.
27746         * modules/y1 (configure.ac): Likewise.
27747         * modules/yn (configure.ac): Likewise.
27748         Suggested by Paolo Bonzini.
27749
27750 2010-01-31  Bruno Haible  <bruno@clisp.org>
27751
27752         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27753
27754 2010-01-31  Bruno Haible  <bruno@clisp.org>
27755
27756         Work around getdelim() bug on FreeBSD 8.0.
27757         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27758         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27759         not work.
27760         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27761         is 1.
27762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27763         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27764         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27765         a non-zero size.
27766         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27767
27768 2010-01-31  Bruno Haible  <bruno@clisp.org>
27769
27770         Work around getline() bug on FreeBSD 8.0.
27771         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27772         and a non-zero size.
27773         * tests/test-getline.c (main): Likewise.
27774         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27775         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27776
27777 2010-01-28  Eric Blake  <ebb9@byu.net>
27778
27779         regex: fix build failure
27780         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27781         platforms.
27782
27783 2010-01-28  Jim Meyering  <meyering@redhat.com>
27784
27785         regex: do not ignore memory allocation failure
27786         * lib/regex_internal.c (create_cd_newstate): Detect
27787         re_node_set_init_copy failure.   Extracted from glibc commit
27788         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27789
27790         regex: sync more white-space changes from libc
27791         * lib/regex_internal.c: White-space only changes.
27792         * lib/regexec.c: Likewise.
27793
27794         regex: add many uses of __attribute_warn_unused_result__
27795         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27796         * lib/regexec.c: Likewise.
27797         Extracted from a messy glibc commit.
27798
27799         regcomp.c: spelling and merge-artifact from glibc
27800         * lib/regcomp.c: Merge remainder of glibc's
27801         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27802
27803         regcomp.c: sync white-space changes from glibc
27804         * lib/regcomp.c: Merge to accommodate white space
27805         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27806
27807         regcomp.c: do not ignore internal return values
27808         * lib/regcomp.c: Do not ignore internal return values.
27809         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27810         but without its white-space changes and spelling fixes.
27811
27812         regex_internal.h: define __attribute_warn_unused_result__
27813         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27814
27815         maint: add a syntax-check rule to check for vulnerable Makefile.in
27816         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27817
27818 2010-01-27  Jim Meyering  <meyering@redhat.com>
27819
27820         ncftpput-ftp: clean up spaces
27821         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27822         Remove trailing blanks.
27823
27824 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27825
27826         * build-aux/git-version-gen: Fix copyright statement.
27827         * build-aux/gnupload: Likewise.
27828         * tests/test-arcfour.c: Likewise.
27829         * tests/test-arctwo.c: Likewise.
27830         * tests/test-count-one-bits.c: Likewise.
27831         * tests/test-crc.c: Likewise.
27832         * tests/test-des.c: Likewise.
27833         * tests/test-gc-arcfour.c: Likewise.
27834         * tests/test-gc-arctwo.c: Likewise.
27835         * tests/test-gc-des.c: Likewise.
27836         * tests/test-gc-hmac-md5.c: Likewise.
27837         * tests/test-gc-hmac-sha1.c: Likewise.
27838         * tests/test-gc-md2.c: Likewise.
27839         * tests/test-gc-md4.c: Likewise.
27840         * tests/test-gc-md5.c: Likewise.
27841         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27842         * tests/test-gc-rijndael.c: Likewise.
27843         * tests/test-gc-sha1.c: Likewise.
27844         * tests/test-gc.c: Likewise.
27845         * tests/test-gethostname.c: Likewise.
27846         * tests/test-gettimeofday.c: Likewise.
27847         * tests/test-hash.c: Likewise.
27848         * tests/test-hmac-md5.c: Likewise.
27849         * tests/test-hmac-sha1.c: Likewise.
27850         * tests/test-md2.c: Likewise.
27851         * tests/test-md4.c: Likewise.
27852         * tests/test-md5.c: Likewise.
27853         * tests/test-memchr.c: Likewise.
27854         * tests/test-memchr2.c: Likewise.
27855         * tests/test-memcmp.c: Likewise.
27856         * tests/test-memmem.c: Likewise.
27857         * tests/test-memrchr.c: Likewise.
27858         * tests/test-rawmemchr.c: Likewise.
27859         * tests/test-read-file.c: Likewise.
27860         * tests/test-rijndael.c: Likewise.
27861         * tests/test-sockets.c: Likewise.
27862         * tests/test-strchrnul.c: Likewise.
27863         * tests/test-strstr.c: Likewise.
27864         * tests/test-strtod.c: Likewise.
27865         * build-aux/ncftpput-ftp: Likewise.
27866
27867 2010-01-26  Eric Blake  <ebb9@byu.net>
27868
27869         ignore-value: update recommended header name
27870         * modules/ignore-value (Include): Only use <> for headers that
27871         exist in glibc.
27872
27873 2010-01-26  Jim Meyering  <meyering@redhat.com>
27874
27875         test-userspec.c: avoid compiler warnings
27876         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27877         and "initialization discards qualifiers..." warnings.
27878         Put the first "uid" in its own scope, and make char* members "const".
27879
27880 2010-01-25  Bruno Haible  <bruno@clisp.org>
27881
27882         gnulib-tool: Make warning diagnostics consistent.
27883         * gnulib-tool (func_warning): New function.
27884         Use it everywhere where gnulib-tool produces output to stderr and it is
27885         not a fatal error.
27886
27887 2010-01-25  Bruno Haible  <bruno@clisp.org>
27888
27889         Fix test dependencies.
27890         * modules/xstrtol-tests (Depends-on): Add inttypes.
27891         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27892
27893 2010-01-25 Pádraig Brady <P@draigBrady.com>
27894
27895         syntax-check: detect incorrect boolean macro values in config.h
27896         * modules/maintainer-makefile (configure.ac): Parameterize the location
27897         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27898         The logic is from Eric Blake and the location indicated by Jim Meyering.
27899         Note the more natural CONFIG_HEADER name is prohibited by automake
27900         for backwards compatibility reasons.
27901         * top/maint.mk (sc_Wundef_boolean): New rule.
27902
27903 2010-01-25  Jim Meyering  <meyering@redhat.com>
27904
27905         bootstrap: detect MacOS 10.6's shasum, too
27906         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27907         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27908
27909 2010-01-23  Jim Meyering  <meyering@redhat.com>
27910
27911         xstrtoll: new module
27912         * modules/xstrtoll: New file.
27913         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27914         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27915         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27916         ./configure fails if you use this module and lack "long long".
27917         * modules/xstrtoll-tests: New module.
27918         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27919         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27920         new init.sh-based test framework.
27921
27922 2010-01-24  Bruno Haible  <bruno@clisp.org>
27923
27924         Tests for module 'yn'.
27925         * modules/yn-tests: New file.
27926         * tests/test-yn.c: New file.
27927
27928         Tests for module 'y1'.
27929         * modules/y1-tests: New file.
27930         * tests/test-y1.c: New file.
27931
27932         Tests for module 'y0'.
27933         * modules/y0-tests: New file.
27934         * tests/test-y0.c: New file.
27935
27936         Tests for module 'tanh'.
27937         * modules/tanh-tests: New file.
27938         * tests/test-tanh.c: New file.
27939
27940         Tests for module 'tan'.
27941         * modules/tan-tests: New file.
27942         * tests/test-tan.c: New file.
27943
27944         Tests for module 'sqrt'.
27945         * modules/sqrt-tests: New file.
27946         * tests/test-sqrt.c: New file.
27947
27948         Tests for module 'sinh'.
27949         * modules/sinh-tests: New file.
27950         * tests/test-sinh.c: New file.
27951
27952         Tests for module 'sin'.
27953         * modules/sin-tests: New file.
27954         * tests/test-sin.c: New file.
27955
27956         Tests for module 'rint'.
27957         * modules/rint-tests: New file.
27958         * tests/test-rint.c: New file.
27959
27960         Tests for module 'remainder'.
27961         * modules/remainder-tests: New file.
27962         * tests/test-remainder.c: New file.
27963
27964         Tests for module 'pow'.
27965         * modules/pow-tests: New file.
27966         * tests/test-pow.c: New file.
27967
27968         Tests for module 'nextafter'.
27969         * modules/nextafter-tests: New file.
27970         * tests/test-nextafter.c: New file.
27971
27972         Tests for module 'modf'.
27973         * modules/modf-tests: New file.
27974         * tests/test-modf.c: New file.
27975
27976         Tests for module 'logb'.
27977         * modules/logb-tests: New file.
27978         * tests/test-logb.c: New file.
27979
27980         Tests for module 'log1p'.
27981         * modules/log1p-tests: New file.
27982         * tests/test-log1p.c: New file.
27983
27984         Tests for module 'log10'.
27985         * modules/log10-tests: New file.
27986         * tests/test-log10.c: New file.
27987
27988         Tests for module 'log'.
27989         * modules/log-tests: New file.
27990         * tests/test-log.c: New file.
27991
27992         Tests for module 'lgamma'.
27993         * modules/lgamma-tests: New file.
27994         * tests/test-lgamma.c: New file.
27995
27996         Tests for module 'ldexp'.
27997         * modules/ldexp-tests: New file.
27998         * tests/test-ldexp.c: New file.
27999
28000         Tests for module 'jn'.
28001         * modules/jn-tests: New file.
28002         * tests/test-jn.c: New file.
28003
28004         Tests for module 'j1'.
28005         * modules/j1-tests: New file.
28006         * tests/test-j1.c: New file.
28007
28008         Tests for module 'j0'.
28009         * modules/j0-tests: New file.
28010         * tests/test-j0.c: New file.
28011
28012         Tests for module 'hypot'.
28013         * modules/hypot-tests: New file.
28014         * tests/test-hypot.c: New file.
28015
28016         Tests for module 'fmod'.
28017         * modules/fmod-tests: New file.
28018         * tests/test-fmod.c: New file.
28019
28020         Tests for module 'fabs'.
28021         * modules/fabs-tests: New file.
28022         * tests/test-fabs.c: New file.
28023
28024         Tests for module 'exp'.
28025         * modules/exp-tests: New file.
28026         * tests/test-exp.c: New file.
28027
28028         Tests for module 'erfc'.
28029         * modules/erfc-tests: New file.
28030         * tests/test-erfc.c: New file.
28031
28032         Tests for module 'erf'.
28033         * modules/erf-tests: New file.
28034         * tests/test-erf.c: New file.
28035
28036         Tests for module 'cosh'.
28037         * modules/cosh-tests: New file.
28038         * tests/test-cosh.c: New file.
28039
28040         Tests for module 'cos'.
28041         * modules/cos-tests: New file.
28042         * tests/test-cos.c: New file.
28043
28044         Tests for module 'copysign'.
28045         * modules/copysign-tests: New file.
28046         * tests/test-copysign.c: New file.
28047
28048         Tests for module 'cbrt'.
28049         * modules/cbrt-tests: New file.
28050         * tests/test-cbrt.c: New file.
28051
28052         Tests for module 'atan2'.
28053         * modules/atan2-tests: New file.
28054         * tests/test-atan2.c: New file.
28055
28056         Tests for module 'atan'.
28057         * modules/atan-tests: New file.
28058         * tests/test-atan.c: New file.
28059
28060         Tests for module 'asin'.
28061         * modules/asin-tests: New file.
28062         * tests/test-asin.c: New file.
28063
28064         Tests for module 'acos'.
28065         * modules/acos-tests: New file.
28066         * tests/test-acos.c: New file.
28067
28068 2010-01-24  Bruno Haible  <bruno@clisp.org>
28069
28070         Fix tests for common <math.h> functions.
28071         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28072         code snippet that references the function pointer, rather than merely
28073         calling the function. Substitute the FUNC_LIBM variable.
28074         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28075         * modules/acos (configure.ac): Likewise.
28076         * modules/asin (configure.ac): Likewise.
28077         * modules/atan (configure.ac): Likewise.
28078         * modules/atan2 (configure.ac): Likewise.
28079         * modules/cbrt (configure.ac): Likewise.
28080         * modules/copysign (configure.ac): Likewise.
28081         * modules/cos (configure.ac): Likewise.
28082         * modules/cosh (configure.ac): Likewise.
28083         * modules/erf (configure.ac): Likewise.
28084         * modules/erfc (configure.ac): Likewise.
28085         * modules/exp (configure.ac): Likewise.
28086         * modules/fabs (configure.ac): Likewise.
28087         * modules/fmod (configure.ac): Likewise.
28088         * modules/hypot (configure.ac): Likewise.
28089         * modules/j0 (configure.ac): Likewise.
28090         * modules/j1 (configure.ac): Likewise.
28091         * modules/jn (configure.ac): Likewise.
28092         * modules/ldexp (configure.ac): Likewise.
28093         * modules/lgamma (configure.ac): Likewise.
28094         * modules/log (configure.ac): Likewise.
28095         * modules/log10 (configure.ac): Likewise.
28096         * modules/log1p (configure.ac): Likewise.
28097         * modules/logb (configure.ac): Likewise.
28098         * modules/modf (configure.ac): Likewise.
28099         * modules/nextafter (configure.ac): Likewise.
28100         * modules/pow (configure.ac): Likewise.
28101         * modules/remainder (configure.ac): Likewise.
28102         * modules/rint (configure.ac): Likewise.
28103         * modules/sin (configure.ac): Likewise.
28104         * modules/sinh (configure.ac): Likewise.
28105         * modules/tan (configure.ac): Likewise.
28106         * modules/tanh (configure.ac): Likewise.
28107         * modules/y0 (configure.ac): Likewise.
28108         * modules/y1 (configure.ac): Likewise.
28109         * modules/yn (configure.ac): Likewise.
28110
28111 2010-01-24  Bruno Haible  <bruno@clisp.org>
28112
28113         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28114         * tests/test-acosl.c (x): New variable.
28115         (main): Store argument in x and fetch it from x.
28116         * tests/test-asinl.c (x): New variable.
28117         (main): Store argument in x and fetch it from x.
28118         * tests/test-atanl.c (x): New variable.
28119         (main): Store argument in x and fetch it from x.
28120         * tests/test-cosl.c (x): New variable.
28121         (main): Store argument in x and fetch it from x.
28122         * tests/test-expl.c (x): New variable.
28123         (main): Store argument in x and fetch it from x.
28124         * tests/test-logl.c (x): New variable.
28125         (main): Store argument in x and fetch it from x.
28126         * tests/test-sinl.c (x): New variable.
28127         (main): Store argument in x and fetch it from x.
28128         * tests/test-sqrtl.c (x): New variable.
28129         (main): Store argument in x and fetch it from x.
28130         * tests/test-tanl.c (x): New variable.
28131         (main): Store argument in x and fetch it from x.
28132
28133 2010-01-24  Bruno Haible  <bruno@clisp.org>
28134
28135         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28136         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28137         assignments to the initial TESTS_ENVIRONMENT.
28138         * doc/gnulib.texi (Unit test modules): Document it.
28139         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28140         TESTS_ENVIRONMENT.
28141         * modules/btowc-tests (Makefile.am): Likewise.
28142         * modules/c-stack-tests (Makefile.am): Likewise.
28143         * modules/c-strcase-tests (Makefile.am): Likewise.
28144         * modules/copy-file-tests (Makefile.am): Likewise.
28145         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28146         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28147         * modules/mbrtowc-tests (Makefile.am): Likewise.
28148         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28149         * modules/mbscasestr-tests (Makefile.am): Likewise.
28150         * modules/mbschr-tests (Makefile.am): Likewise.
28151         * modules/mbscspn-tests (Makefile.am): Likewise.
28152         * modules/mbsinit-tests (Makefile.am): Likewise.
28153         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28154         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28155         * modules/mbspbrk-tests (Makefile.am): Likewise.
28156         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28157         * modules/mbsrchr-tests (Makefile.am): Likewise.
28158         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28159         * modules/mbsspn-tests (Makefile.am): Likewise.
28160         * modules/mbsstr-tests (Makefile.am): Likewise.
28161         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28162         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28163         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28164         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28165         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28166         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28167         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28168         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28169         * modules/wcrtomb-tests (Makefile.am): Likewise.
28170         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28171         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28172         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28173         assignments from TESTS_ENVIRONMENT.
28174         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28175         augmentation.
28176         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28177         * modules/atexit-tests (Makefile.am): Likewise.
28178         * modules/binary-io-tests (Makefile.am): Likewise.
28179         * modules/closein-tests (Makefile.am): Likewise.
28180         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28181         * modules/exclude-tests (Makefile.am): Likewise.
28182         * modules/fflush-tests (Makefile.am): Likewise.
28183         * modules/fpending-tests (Makefile.am): Likewise.
28184         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28185         * modules/freadahead-tests (Makefile.am): Likewise.
28186         * modules/freadptr-tests (Makefile.am): Likewise.
28187         * modules/freadseek-tests (Makefile.am): Likewise.
28188         * modules/fseek-tests (Makefile.am): Likewise.
28189         * modules/fseeko-tests (Makefile.am): Likewise.
28190         * modules/ftell-tests (Makefile.am): Likewise.
28191         * modules/ftello-tests (Makefile.am): Likewise.
28192         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28193         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28194         * modules/lseek-tests (Makefile.am): Likewise.
28195         * modules/parse-duration-tests (Makefile.am): Likewise.
28196         * modules/perror-tests (Makefile.am): Likewise.
28197         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28198         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28199         * modules/pipe-tests (Makefile.am): Likewise.
28200         * modules/pread-tests (Makefile.am): Likewise.
28201         * modules/printf-posix-tests (Makefile.am): Likewise.
28202         * modules/select-tests (Makefile.am): Likewise.
28203         * modules/sigpipe-tests (Makefile.am): Likewise.
28204         * modules/tsearch-tests (Makefile.am): Likewise.
28205         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28206         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28207         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28208         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28209         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28210         * modules/version-etc-tests (Makefile.am): Likewise.
28211         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28212         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28213         * modules/xalloc-die-tests (Makefile.am): Likewise.
28214         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28215         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28216         * modules/xstrtol-tests (Makefile.am): Likewise.
28217         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28218         * modules/yesno-tests (Makefile.am): Likewise.
28219         Suggested by Jim Meyering.
28220
28221 2010-01-24  Bruno Haible  <bruno@clisp.org>
28222
28223         More documentation.
28224         * doc/gnulib.texi (Writing modules): New chapter.
28225         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28226         the new chapter.
28227
28228 2010-01-24  Jim Meyering  <meyering@redhat.com>
28229
28230         maint.mk: do not prepend "./" after filtering
28231         * top/maint.mk (_prepend_srcdir_prefix): New variable
28232         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28233         "./" when $(srcdir) is ".".
28234
28235         define STREQ(a,b) consistently, removing useless parentheses
28236         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28237         since the only risk is that "a" or "b" contains an unparenthesized
28238         comma, but if either did that, STREQ would have 3 or more arguments.
28239         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28240         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28241         * lib/hash-triple.c (STREQ): Likewise.
28242         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28243         * lib/getugroups.c (STREQ): Likewise.
28244
28245 2010-01-23  Jim Meyering  <meyering@redhat.com>
28246
28247         maint.mk: fix syntax-check in a non-srcdir build directory
28248         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28249         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28250
28251 2010-01-22  Jim Meyering  <meyering@redhat.com>
28252
28253         userspec: add unit tests
28254         * tests/test-userspec.c: New file.
28255         * modules/userspec-tests: Likewise.
28256
28257 2010-01-21  Jim Meyering  <meyering@redhat.com>
28258
28259         maint.mk: handle source file names containing "." robustly
28260         * top/maint.mk (_dot_escaped_srcdir): Define.
28261         (VC_LIST): Use it in LHS of sed substitution.
28262
28263 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28264
28265         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28266         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28267         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28268         from a non-srcdir build.
28269
28270 2010-01-20  Eric Blake  <ebb9@byu.net>
28271
28272         warn-on-use: use instead of link-warning
28273         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28274         * modules/unistd (Depends-on, Makefile.am): Likewise.
28275         * modules/arpa_inet (Depends-on): Replace link-warning with
28276         warn-on-use.
28277         (Makefile.am): Update rules accordingly.
28278         * modules/ctype (Depends-on, Makefile.am): Likewise.
28279         * modules/dirent (Depends-on, Makefile.am): Likewise.
28280         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28281         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28282         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28283         * modules/locale (Depends-on, Makefile.am): Likewise.
28284         * modules/math (Depends-on, Makefile.am): Likewise.
28285         * modules/search (Depends-on, Makefile.am): Likewise.
28286         * modules/signal (Depends-on, Makefile.am): Likewise.
28287         * modules/spawn (Depends-on, Makefile.am): Likewise.
28288         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28289         * modules/string (Depends-on, Makefile.am): Likewise.
28290         * modules/strings (Depends-on, Makefile.am): Likewise.
28291         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28292         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28293         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28294         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28295         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28296         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28297         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28298         * modules/wchar (Depends-on, Makefile.am): Likewise.
28299         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28300         should be poisoned.
28301         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28302         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28303         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28304         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28305         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28306         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28307         * m4/math_h.m4 (gl_MATH_H): Likewise.
28308         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28309         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28310         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28311         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28312         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28313         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28314         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28315         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28316         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28322         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28323         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28324         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28325         GL_LINK_WARNING.
28326         * lib/ctype.in.h: Likewise.
28327         * lib/dirent.in.h: Likewise.
28328         * lib/fcntl.in.h: Likewise.
28329         * lib/inttypes.in.h: Likewise.
28330         * lib/langinfo.in.h: Likewise.
28331         * lib/locale.in.h: Likewise.
28332         * lib/math.in.h: Likewise.
28333         * lib/search.in.h: Likewise.
28334         * lib/signal.in.h: Likewise.
28335         * lib/spawn.in.h: Likewise.
28336         * lib/stdio.in.h: Likewise.
28337         * lib/stdlib.in.h: Likewise.
28338         * lib/string.in.h: Likewise.
28339         * lib/strings.in.h: Likewise.
28340         * lib/sys_file.in.h: Likewise.
28341         * lib/sys_ioctl.in.h: Likewise.
28342         * lib/sys_select.in.h: Likewise.
28343         * lib/sys_socket.in.h: Likewise.
28344         * lib/sys_stat.in.h: Likewise.
28345         * lib/sys_times.in.h: Likewise.
28346         * lib/sys_utsname.in.h: Likewise.
28347         * lib/unistd.in.h: Likewise.
28348         * lib/wchar.in.h: Likewise.
28349
28350 2010-01-20  Bruno Haible  <bruno@clisp.org>
28351
28352         Avoid duplicate -lm.
28353         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28354         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28357         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28358         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28359         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28360         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28361         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28362         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28363         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28364         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28365         Reported by Paolo Bonzini.
28366
28367 2010-01-19  Bruno Haible  <bruno@clisp.org>
28368
28369         langinfo, nl_langinfo: Relicense under LGPLv2+.
28370         * modules/langinfo (License): Change to LGPLv2+.
28371         * modules/nl_langinfo (License): Likewise.
28372         Patch by David Lutterkort <lutter@redhat.com>.
28373
28374 2010-01-19  Bruno Haible  <bruno@clisp.org>
28375
28376         Avoid compilation error with cc on OSF/1 5.1.
28377         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28378         statement, not before.
28379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28380
28381 2010-01-18  Bruno Haible  <bruno@clisp.org>
28382
28383         Avoid a link error due to the __printf__ symbol.
28384         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28385         and 2.6.x.
28386         (__format__, __printf__): Remove definitions.
28387         * lib/argp-fmtstream.h: Likewise.
28388         * lib/argp.h: Likewise.
28389         * lib/error.h: Likewise.
28390         * lib/vasnprintf.h: Likewise.
28391         * lib/xprintf.h: Likewise.
28392         * lib/xvasprintf.h: Likewise.
28393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28394
28395 2010-01-18  Bruno Haible  <bruno@clisp.org>
28396
28397         Tests for module 'tanl'.
28398         * modules/tanl-tests: New file.
28399         * tests/test-tanl.c: New file.
28400
28401         Tests for module 'sqrtl'.
28402         * modules/sqrtl-tests: New file.
28403         * tests/test-sqrtl.c: New file.
28404
28405         Tests for module 'sinl'.
28406         * modules/sinl-tests: New file.
28407         * tests/test-sinl.c: New file.
28408
28409         Tests for module 'logl'.
28410         * modules/logl-tests: New file.
28411         * tests/test-logl.c: New file.
28412
28413         Tests for module 'expl'.
28414         * modules/expl-tests: New file.
28415         * tests/test-expl.c: New file.
28416
28417         Tests for module 'cosl'.
28418         * modules/cosl-tests: New file.
28419         * tests/test-cosl.c: New file.
28420
28421         Tests for module 'atanl'.
28422         * modules/atanl-tests: New file.
28423         * tests/test-atanl.c: New file.
28424
28425         Tests for module 'asinl'.
28426         * modules/asinl-tests: New file.
28427         * tests/test-asinl.c: New file.
28428
28429         Tests for module 'acosl'.
28430         * modules/acosl-tests: New file.
28431         * tests/test-acosl.c: New file.
28432
28433         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28434         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28435         tanl): Use the standard gnulib idiom.
28436         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28437         * lib/sinl.c: Likewise.
28438         * lib/tanl.c: Don't include trigl.c.
28439         (kernel_tanl): Make static.
28440         * lib/sincosl.c: Include trigl.h first.
28441         * lib/trigl.c: Likewise.
28442         * m4/acosl.m4: New file.
28443         * m4/asinl.m4: New file.
28444         * m4/atanl.m4: New file.
28445         * m4/cosl.m4: New file.
28446         * m4/expl.m4: New file.
28447         * m4/logl.m4: New file.
28448         * m4/sinl.m4: New file.
28449         * m4/sqrtl.m4: New file.
28450         * m4/tanl.m4: New file.
28451         * m4/mathl.m4: Remove file.
28452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28453         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28454         Don't initialize GNULIB_MATHL.
28455         * modules/acosl: New file.
28456         * modules/asinl: New file.
28457         * modules/atanl: New file.
28458         * modules/cosl: New file.
28459         * modules/expl: New file.
28460         * modules/logl: New file.
28461         * modules/sinl: New file.
28462         * modules/sqrtl: New file.
28463         * modules/tanl: New file.
28464         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28465         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28466         substitute GNULIB_MATHL.
28467         * modules/mathl: Rewritten.
28468         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28469         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28470         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28471         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28472         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28473         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28474         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28475         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28476         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28477
28478 2010-01-18  Bruno Haible  <bruno@clisp.org>
28479
28480         sqrt: Make gl_FUNC_SQRT requirable.
28481         * m4/sqrt.m4: New file.
28482         * modules/sqrt (Files): Add it.
28483         (configure.ac): Invoke gl_FUNC_SQRT.
28484
28485 2010-01-18  Bruno Haible  <bruno@clisp.org>
28486
28487         New modules for common <math.h> functions.
28488         * m4/mathfunc.m4: New file.
28489         * modules/acos: New file.
28490         * modules/asin: New file.
28491         * modules/atan: New file.
28492         * modules/atan2: New file.
28493         * modules/cbrt: New file.
28494         * modules/copysign: New file.
28495         * modules/cos: New file.
28496         * modules/cosh: New file.
28497         * modules/erf: New file.
28498         * modules/erfc: New file.
28499         * modules/exp: New file.
28500         * modules/fabs: New file.
28501         * modules/fmod: New file.
28502         * modules/hypot: New file.
28503         * modules/j0: New file.
28504         * modules/j1: New file.
28505         * modules/jn: New file.
28506         * modules/ldexp: New file.
28507         * modules/lgamma: New file.
28508         * modules/log: New file.
28509         * modules/log10: New file.
28510         * modules/log1p: New file.
28511         * modules/logb: New file.
28512         * modules/modf: New file.
28513         * modules/nextafter: New file.
28514         * modules/pow: New file.
28515         * modules/remainder: New file.
28516         * modules/rint: New file.
28517         * modules/sin: New file.
28518         * modules/sinh: New file.
28519         * modules/sqrt: New file.
28520         * modules/tan: New file.
28521         * modules/tanh: New file.
28522         * modules/y0: New file.
28523         * modules/y1: New file.
28524         * modules/yn: New file.
28525         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28526         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28527         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28528         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28529         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28530         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28531         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28532         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28533         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28534         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28535         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28536         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28537         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28538         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28539         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28540         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28541         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28542         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28543         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28544         * doc/posix-functions/log.texi: Mention the 'log' module.
28545         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28546         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28547         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28548         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28549         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28550         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28551         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28552         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28553         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28554         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28555         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28556         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28557         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28558         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28559         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28560         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28561
28562 2010-01-18  Jim Meyering  <meyering@redhat.com>
28563
28564         ignore-value: relax license to LGPLv2+
28565         * modules/ignore-value (License): Relax to LGPLv2+.
28566
28567         getdate: don't leak when TZ contains two or more '"'s
28568         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28569         double quote in TZ after the first one.
28570
28571         readtokens: do not leak internal token_lengths buffer
28572         * lib/readtokens.c (readtokens): Free the local, lengths,
28573         when the supplied "token_lengths" parameter is NULL.
28574
28575 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28576
28577         Fix a couple of missing LIBTHREAD link failures on AIX.
28578         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28579         $(LIBTHREAD).
28580         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28581
28582         Link test-poll against INET_PTON_LIB.
28583         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28584         for inet_pton on Solaris 10.
28585
28586 2010-01-17  Bruno Haible  <bruno@clisp.org>
28587
28588         unistdio/*-sprintf: Fix typo in module description.
28589         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28590         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28591         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28592         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28593         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28594         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28595         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28597
28598 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28599
28600         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28601         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28602         variables in shell case patterns, for AIX and HP-UX ksh.
28603
28604         Split large sed scripts, for HP-UX sed.
28605         * modules/stdio: Split sed scripts around 50 sed commands,
28606         to avoid HP-UX limit of 99 commands, in the near future.
28607         * modules/string: Likewise.
28608         * modules/unistd: Likewise.
28609
28610         gnulib-tool: avoid writing in the current directory.
28611         * gnulib-tool (func_emit_lib_Makefile_am)
28612         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28613         not in the current directory, so concurrent gnulib-tool
28614         instances do not interfere.
28615
28616 2010-01-16  Jim Meyering  <meyering@redhat.com>
28617
28618         doc: update users.txt
28619         * users.txt: Add grep.
28620         (diffutils, gzip): Update URLs.
28621
28622 2010-01-12  Bruno Haible  <bruno@clisp.org>
28623
28624         posix_spawn: Avoid test failure on Cygwin.
28625         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28626         characters.
28627         Reported by Simon Josefsson.
28628
28629 2010-01-12  Bruno Haible  <bruno@clisp.org>
28630
28631         * tests/test-cond.c (main): When skipping the test, show the reason.
28632
28633 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28634
28635         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28636
28637 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28638
28639         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28640         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28641
28642 2010-01-12  Eric Blake  <ebb9@byu.net>
28643
28644         build: guarantee AS_VAR_IF
28645         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28646         (gl_AS_VAR_IF): Move...
28647         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28648         Reported by Simon Josefsson.
28649
28650 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28651
28652         * lib/stdio.in.h: Fix typo.
28653
28654 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28655
28656         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28657         libgpg-error.
28658
28659 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28660
28661         * tests/test-xalloc-die.sh: Use $EXEEXT.
28662
28663 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28664             Bruno Haible  <bruno@clisp.org>
28665
28666         getlogin, getlogin_r: Avoid test failure.
28667         * tests/test-getlogin.c: Include <stdio.h>.
28668         (main): Skip the test when the function fails because stdin is not a
28669         tty.
28670         * tests/test-getlogin_r.c: Include <stdio.h>.
28671         (main): Skip the test when the function fails because stdin is not a
28672         tty.
28673
28674 2010-01-11  Eric Blake  <ebb9@byu.net>
28675
28676         tests: avoid more large file warnings
28677         * tests/test-fflush.c: Avoid warning about ftell use.
28678         * tests/test-fseek.c: Avoid warning about fseek use.
28679
28680 2010-01-10  Bruno Haible  <bruno@clisp.org>
28681
28682         nproc: Work better on Linux when /proc and /sys are not mounted.
28683         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28684         as lower bound when, on glibc/Linux systems,
28685         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28686         Suggested by Pádraig Brady <P@draigbrady.com>.
28687         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28688
28689         nproc: Refactor.
28690         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28691         extracted from num_processors.
28692         (num_processors): Call it.
28693
28694 2010-01-11  Jim Meyering  <meyering@redhat.com>
28695
28696         utimecmp: avoid new warning from upcoming gcc-4.5.0
28697         * lib/utimecmp.c (BILLION): Define using #define rather than an
28698         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28699
28700 2010-01-11  Eric Blake  <ebb9@byu.net>
28701
28702         math: add portability warnings for classification macros
28703         * modules/math (Depends-on): Add warn-on-use.
28704         (Makefile.am): Provide new substitutions.
28705         * m4/math_h.m4 (gl_MATH_H): Require inline.
28706         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28707         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28708         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28709         implement warnings.
28710
28711         unistd: warn on use of environ without module
28712         * modules/unistd (Depends-on): Add warn-on-use.
28713         (Makefile.am): Provide new substitutions.
28714         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28715         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28716
28717         stdio: warn on suspicious uses
28718         * modules/stdio (Depends-on): Add warn-on-use.
28719         (Makefile.am): Provide new substitutions.
28720         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28721         fseeko.
28722         * lib/stdio.in.h (gets): Always warn on use.
28723         (fseek, ftell): Adjust when warnings are issued, and honor
28724         _GL_NO_LARGE_FILES as a way to silence the warning.
28725         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28726         any warning about large file offsets.
28727         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28728         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28729         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28730         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28731         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28732         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28733         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28734         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28735
28736         warn-on-use: new module
28737         * modules/warn-on-use: New file.
28738         * build-aux/warn-on-use.h: Likewise.
28739         * m4/warn-on-use.m4: Likewise.
28740         * MODULES.html.sh (Support for building): Mention it.
28741
28742 2010-01-10  Bruno Haible  <bruno@clisp.org>
28743
28744         Tests for module 'unistr/u32-strdup'.
28745         * modules/unistr/u32-strdup-tests: New file.
28746         * tests/unistr/test-u32-strdup.c: New file.
28747
28748         Tests for module 'unistr/u16-strdup'.
28749         * modules/unistr/u16-strdup-tests: New file.
28750         * tests/unistr/test-u16-strdup.c: New file.
28751
28752         Tests for module 'unistr/u8-strdup'.
28753         * modules/unistr/u8-strdup-tests: New file.
28754         * tests/unistr/test-u8-strdup.c: New file.
28755         * tests/unistr/test-strdup.h: New file.
28756
28757         Tests for module 'unistr/u32-strncmp'.
28758         * modules/unistr/u32-strncmp-tests: New file.
28759         * tests/unistr/test-u32-strncmp.c: New file.
28760
28761         Tests for module 'unistr/u16-strncmp'.
28762         * modules/unistr/u16-strncmp-tests: New file.
28763         * tests/unistr/test-u16-strncmp.c: New file.
28764
28765         Tests for module 'unistr/u8-strncmp'.
28766         * modules/unistr/u8-strncmp-tests: New file.
28767         * tests/unistr/test-u8-strncmp.c: New file.
28768         * tests/unistr/test-strncmp.h: New file.
28769
28770         Tests for module 'unistr/u32-strcoll'.
28771         * modules/unistr/u32-strcoll-tests: New file.
28772         * tests/unistr/test-u32-strcoll.c: New file.
28773
28774         Tests for module 'unistr/u16-strcoll'.
28775         * modules/unistr/u16-strcoll-tests: New file.
28776         * tests/unistr/test-u16-strcoll.c: New file.
28777
28778         Tests for module 'unistr/u8-strcoll'.
28779         * modules/unistr/u8-strcoll-tests: New file.
28780         * tests/unistr/test-u8-strcoll.c: New file.
28781
28782         Tests for module 'unistr/u32-strcmp'.
28783         * modules/unistr/u32-strcmp-tests: New file.
28784         * tests/unistr/test-u32-strcmp.c: New file.
28785         * tests/unistr/test-u32-strcmp.h: New file.
28786
28787         Tests for module 'unistr/u16-strcmp'.
28788         * modules/unistr/u16-strcmp-tests: New file.
28789         * tests/unistr/test-u16-strcmp.c: New file.
28790         * tests/unistr/test-u16-strcmp.h: New file.
28791
28792         Tests for module 'unistr/u8-strcmp'.
28793         * modules/unistr/u8-strcmp-tests: New file.
28794         * tests/unistr/test-u8-strcmp.c: New file.
28795         * tests/unistr/test-u8-strcmp.h: New file.
28796         * tests/unistr/test-strcmp.h: New file.
28797
28798         Tests for module 'unistr/u32-strncat'.
28799         * modules/unistr/u32-strncat-tests: New file.
28800         * tests/unistr/test-u32-strncat.c: New file.
28801
28802         Tests for module 'unistr/u16-strncat'.
28803         * modules/unistr/u16-strncat-tests: New file.
28804         * tests/unistr/test-u16-strncat.c: New file.
28805
28806         Tests for module 'unistr/u8-strncat'.
28807         * modules/unistr/u8-strncat-tests: New file.
28808         * tests/unistr/test-u8-strncat.c: New file.
28809         * tests/unistr/test-strncat.h: New file.
28810
28811         Tests for module 'unistr/u32-strcat'.
28812         * modules/unistr/u32-strcat-tests: New file.
28813         * tests/unistr/test-u32-strcat.c: New file.
28814
28815         Tests for module 'unistr/u16-strcat'.
28816         * modules/unistr/u16-strcat-tests: New file.
28817         * tests/unistr/test-u16-strcat.c: New file.
28818
28819         Tests for module 'unistr/u8-strcat'.
28820         * modules/unistr/u8-strcat-tests: New file.
28821         * tests/unistr/test-u8-strcat.c: New file.
28822         * tests/unistr/test-strcat.h: New file.
28823
28824         Tests for module 'unistr/u32-stpncpy'.
28825         * modules/unistr/u32-stpncpy-tests: New file.
28826         * tests/unistr/test-u32-stpncpy.c: New file.
28827
28828         Tests for module 'unistr/u16-stpncpy'.
28829         * modules/unistr/u16-stpncpy-tests: New file.
28830         * tests/unistr/test-u16-stpncpy.c: New file.
28831
28832         Tests for module 'unistr/u8-stpncpy'.
28833         * modules/unistr/u8-stpncpy-tests: New file.
28834         * tests/unistr/test-u8-stpncpy.c: New file.
28835         * tests/unistr/test-stpncpy.h: New file.
28836
28837         Tests for module 'unistr/u32-strncpy'.
28838         * modules/unistr/u32-strncpy-tests: New file.
28839         * tests/unistr/test-u32-strncpy.c: New file.
28840
28841         Tests for module 'unistr/u16-strncpy'.
28842         * modules/unistr/u16-strncpy-tests: New file.
28843         * tests/unistr/test-u16-strncpy.c: New file.
28844
28845         Tests for module 'unistr/u8-strncpy'.
28846         * modules/unistr/u8-strncpy-tests: New file.
28847         * tests/unistr/test-u8-strncpy.c: New file.
28848         * tests/unistr/test-strncpy.h: New file.
28849
28850         Tests for module 'unistr/u32-stpcpy'.
28851         * modules/unistr/u32-stpcpy-tests: New file.
28852         * tests/unistr/test-u32-stpcpy.c: New file.
28853
28854         Tests for module 'unistr/u16-stpcpy'.
28855         * modules/unistr/u16-stpcpy-tests: New file.
28856         * tests/unistr/test-u16-stpcpy.c: New file.
28857
28858         Tests for module 'unistr/u8-stpcpy'.
28859         * modules/unistr/u8-stpcpy-tests: New file.
28860         * tests/unistr/test-u8-stpcpy.c: New file.
28861         * tests/unistr/test-stpcpy.h: New file.
28862
28863         Tests for module 'unistr/u32-strcpy'.
28864         * modules/unistr/u32-strcpy-tests: New file.
28865         * tests/unistr/test-u32-strcpy.c: New file.
28866
28867         Tests for module 'unistr/u16-strcpy'.
28868         * modules/unistr/u16-strcpy-tests: New file.
28869         * tests/unistr/test-u16-strcpy.c: New file.
28870
28871         Tests for module 'unistr/u8-strcpy'.
28872         * modules/unistr/u8-strcpy-tests: New file.
28873         * tests/unistr/test-u8-strcpy.c: New file.
28874         * tests/unistr/test-strcpy.h: New file.
28875
28876         Tests for module 'unistr/u32-strnlen'.
28877         * modules/unistr/u32-strnlen-tests: New file.
28878         * tests/unistr/test-u32-strnlen.c: New file.
28879
28880         Tests for module 'unistr/u16-strnlen'.
28881         * modules/unistr/u16-strnlen-tests: New file.
28882         * tests/unistr/test-u16-strnlen.c: New file.
28883
28884         Tests for module 'unistr/u8-strnlen'.
28885         * modules/unistr/u8-strnlen-tests: New file.
28886         * tests/unistr/test-u8-strnlen.c: New file.
28887         * tests/unistr/test-strnlen.h: New file.
28888
28889         Tests for module 'unistr/u32-strlen'.
28890         * modules/unistr/u32-strlen-tests: New file.
28891         * tests/unistr/test-u32-strlen.c: New file.
28892
28893         Tests for module 'unistr/u16-strlen'.
28894         * modules/unistr/u16-strlen-tests: New file.
28895         * tests/unistr/test-u16-strlen.c: New file.
28896
28897         Tests for module 'unistr/u8-strlen'.
28898         * modules/unistr/u8-strlen-tests: New file.
28899         * tests/unistr/test-u8-strlen.c: New file.
28900
28901         Tests for module 'unistr/u32-prev'.
28902         * modules/unistr/u32-prev-tests: New file.
28903         * tests/unistr/test-u32-prev.c: New file.
28904
28905         Tests for module 'unistr/u16-prev'.
28906         * modules/unistr/u16-prev-tests: New file.
28907         * tests/unistr/test-u16-prev.c: New file.
28908
28909         Tests for module 'unistr/u8-prev'.
28910         * modules/unistr/u8-prev-tests: New file.
28911         * tests/unistr/test-u8-prev.c: New file.
28912
28913         Tests for module 'unistr/u32-next'.
28914         * modules/unistr/u32-next-tests: New file.
28915         * tests/unistr/test-u32-next.c: New file.
28916
28917         Tests for module 'unistr/u16-next'.
28918         * modules/unistr/u16-next-tests: New file.
28919         * tests/unistr/test-u16-next.c: New file.
28920
28921         Tests for module 'unistr/u8-next'.
28922         * modules/unistr/u8-next-tests: New file.
28923         * tests/unistr/test-u8-next.c: New file.
28924
28925         Tests for module 'unistr/u32-strmbtouc'.
28926         * modules/unistr/u32-strmbtouc-tests: New file.
28927         * tests/unistr/test-u32-strmbtouc.c: New file.
28928
28929         Tests for module 'unistr/u16-strmbtouc'.
28930         * modules/unistr/u16-strmbtouc-tests: New file.
28931         * tests/unistr/test-u16-strmbtouc.c: New file.
28932
28933         Tests for module 'unistr/u8-strmbtouc'.
28934         * modules/unistr/u8-strmbtouc-tests: New file.
28935         * tests/unistr/test-u8-strmbtouc.c: New file.
28936
28937         Tests for module 'unistr/u32-strmblen'.
28938         * modules/unistr/u32-strmblen-tests: New file.
28939         * tests/unistr/test-u32-strmblen.c: New file.
28940
28941         Tests for module 'unistr/u16-strmblen'.
28942         * modules/unistr/u16-strmblen-tests: New file.
28943         * tests/unistr/test-u16-strmblen.c: New file.
28944
28945         Tests for module 'unistr/u8-strmblen'.
28946         * modules/unistr/u8-strmblen-tests: New file.
28947         * tests/unistr/test-u8-strmblen.c: New file.
28948
28949         Tests for module 'unistr/u32-cpy-alloc'.
28950         * modules/unistr/u32-cpy-alloc-tests: New file.
28951         * tests/unistr/test-u32-cpy-alloc.c: New file.
28952
28953         Tests for module 'unistr/u16-cpy-alloc'.
28954         * modules/unistr/u16-cpy-alloc-tests: New file.
28955         * tests/unistr/test-u16-cpy-alloc.c: New file.
28956
28957         Tests for module 'unistr/u8-cpy-alloc'.
28958         * modules/unistr/u8-cpy-alloc-tests: New file.
28959         * tests/unistr/test-u8-cpy-alloc.c: New file.
28960         * tests/unistr/test-cpy-alloc.h: New file.
28961
28962         Tests for module 'unistr/u32-mbsnlen'.
28963         * modules/unistr/u32-mbsnlen-tests: New file.
28964         * tests/unistr/test-u32-mbsnlen.c: New file.
28965
28966         Tests for module 'unistr/u16-mbsnlen'.
28967         * modules/unistr/u16-mbsnlen-tests: New file.
28968         * tests/unistr/test-u16-mbsnlen.c: New file.
28969
28970         Tests for module 'unistr/u8-mbsnlen'.
28971         * modules/unistr/u8-mbsnlen-tests: New file.
28972         * tests/unistr/test-u8-mbsnlen.c: New file.
28973
28974         Tests for module 'unistr/u32-chr'.
28975         * modules/unistr/u32-chr-tests: New file.
28976         * tests/unistr/test-u32-chr.c: New file.
28977
28978         Tests for module 'unistr/u16-chr'.
28979         * modules/unistr/u16-chr-tests: New file.
28980         * tests/unistr/test-u16-chr.c: New file.
28981
28982         Tests for module 'unistr/u8-chr'.
28983         * modules/unistr/u8-chr-tests: New file.
28984         * tests/unistr/test-u8-chr.c: New file.
28985         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28986
28987         Tests for module 'unistr/u32-cmp2'.
28988         * modules/unistr/u32-cmp2-tests: New file.
28989         * tests/unistr/test-u32-cmp2.c: New file.
28990
28991         Tests for module 'unistr/u16-cmp2'.
28992         * modules/unistr/u16-cmp2-tests: New file.
28993         * tests/unistr/test-u16-cmp2.c: New file.
28994
28995         Tests for module 'unistr/u8-cmp2'.
28996         * modules/unistr/u8-cmp2-tests: New file.
28997         * tests/unistr/test-u8-cmp2.c: New file.
28998         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28999
29000         Tests for module 'unistr/u32-cmp'.
29001         * modules/unistr/u32-cmp-tests: New file.
29002         * tests/unistr/test-u32-cmp.c: New file.
29003
29004         Tests for module 'unistr/u16-cmp'.
29005         * modules/unistr/u16-cmp-tests: New file.
29006         * tests/unistr/test-u16-cmp.c: New file.
29007
29008         Tests for module 'unistr/u8-cmp'.
29009         * modules/unistr/u8-cmp-tests: New file.
29010         * tests/unistr/test-u8-cmp.c: New file.
29011         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29012
29013         Tests for module 'unistr/u32-set'.
29014         * modules/unistr/u32-set-tests: New file.
29015         * tests/unistr/test-u32-set.c: New file.
29016
29017         Tests for module 'unistr/u16-set'.
29018         * modules/unistr/u16-set-tests: New file.
29019         * tests/unistr/test-u16-set.c: New file.
29020
29021         Tests for module 'unistr/u8-set'.
29022         * modules/unistr/u8-set-tests: New file.
29023         * tests/unistr/test-u8-set.c: New file.
29024         * tests/unistr/test-set.h: New file.
29025
29026         Tests for module 'unistr/u32-move'.
29027         * modules/unistr/u32-move-tests: New file.
29028         * tests/unistr/test-u32-move.c: New file.
29029
29030         Tests for module 'unistr/u16-move'.
29031         * modules/unistr/u16-move-tests: New file.
29032         * tests/unistr/test-u16-move.c: New file.
29033
29034         Tests for module 'unistr/u8-move'.
29035         * modules/unistr/u8-move-tests: New file.
29036         * tests/unistr/test-u8-move.c: New file.
29037         * tests/unistr/test-move.h: New file.
29038
29039         Tests for module 'unistr/u32-cpy'.
29040         * modules/unistr/u32-cpy-tests: New file.
29041         * tests/unistr/test-u32-cpy.c: New file.
29042
29043         Tests for module 'unistr/u16-cpy'.
29044         * modules/unistr/u16-cpy-tests: New file.
29045         * tests/unistr/test-u16-cpy.c: New file.
29046
29047         Tests for module 'unistr/u8-cpy'.
29048         * modules/unistr/u8-cpy-tests: New file.
29049         * tests/unistr/test-u8-cpy.c: New file.
29050         * tests/unistr/test-cpy.h: New file.
29051
29052 2010-01-09  Bruno Haible  <bruno@clisp.org>
29053
29054         Tests for module 'unistr/u32-uctomb'.
29055         * modules/unistr/u32-uctomb-tests: New file.
29056         * tests/unistr/test-u32-uctomb.c: New file.
29057
29058         Tests for module 'unistr/u16-uctomb'.
29059         * modules/unistr/u16-uctomb-tests: New file.
29060         * tests/unistr/test-u16-uctomb.c: New file.
29061
29062         Tests for module 'unistr/u8-uctomb'.
29063         * modules/unistr/u8-uctomb-tests: New file.
29064         * tests/unistr/test-u8-uctomb.c: New file.
29065
29066         Tests for module 'unistr/u32-mbtoucr'.
29067         * modules/unistr/u32-mbtoucr-tests: New file.
29068         * tests/unistr/test-u32-mbtoucr.c: New file.
29069
29070         Tests for module 'unistr/u16-mbtoucr'.
29071         * modules/unistr/u16-mbtoucr-tests: New file.
29072         * tests/unistr/test-u16-mbtoucr.c: New file.
29073
29074         Tests for module 'unistr/u8-mbtoucr'.
29075         * modules/unistr/u8-mbtoucr-tests: New file.
29076         * tests/unistr/test-u8-mbtoucr.c: New file.
29077
29078         Tests for module 'unistr/u32-mbtouc'.
29079         * modules/unistr/u32-mbtouc-tests: New file.
29080         * tests/unistr/test-u32-mbtouc.c: New file.
29081
29082         Tests for module 'unistr/u16-mbtouc'.
29083         * modules/unistr/u16-mbtouc-tests: New file.
29084         * tests/unistr/test-u16-mbtouc.c: New file.
29085
29086         Tests for module 'unistr/u8-mbtouc'.
29087         * modules/unistr/u8-mbtouc-tests: New file.
29088         * tests/unistr/test-u8-mbtouc.c: New file.
29089
29090         Tests for module 'unistr/u32-mbtouc-unsafe'.
29091         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29092         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29093         * tests/unistr/test-u32-mbtouc.h: New file.
29094
29095         Tests for module 'unistr/u16-mbtouc-unsafe'.
29096         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29097         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29098         * tests/unistr/test-u16-mbtouc.h: New file.
29099
29100         Tests for module 'unistr/u8-mbtouc-unsafe'.
29101         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29102         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29103         * tests/unistr/test-u8-mbtouc.h: New file.
29104
29105         Tests for module 'unistr/u32-mblen'.
29106         * modules/unistr/u32-mblen-tests: New file.
29107         * tests/unistr/test-u32-mblen.c: New file.
29108
29109         Tests for module 'unistr/u16-mblen'.
29110         * modules/unistr/u16-mblen-tests: New file.
29111         * tests/unistr/test-u16-mblen.c: New file.
29112
29113         Tests for module 'unistr/u8-mblen'.
29114         * modules/unistr/u8-mblen-tests: New file.
29115         * tests/unistr/test-u8-mblen.c: New file.
29116
29117         Tests for module 'unistr/u32-to-u16'.
29118         * modules/unistr/u32-to-u16-tests: New file.
29119         * tests/unistr/test-u32-to-u16.c: New file.
29120
29121         Tests for module 'unistr/u32-to-u8'.
29122         * modules/unistr/u32-to-u8-tests: New file.
29123         * tests/unistr/test-u32-to-u8.c: New file.
29124
29125         Tests for module 'unistr/u16-to-u32'.
29126         * modules/unistr/u16-to-u32-tests: New file.
29127         * tests/unistr/test-u16-to-u32.c: New file.
29128
29129         Tests for module 'unistr/u16-to-u8'.
29130         * modules/unistr/u16-to-u8-tests: New file.
29131         * tests/unistr/test-u16-to-u8.c: New file.
29132
29133         Tests for module 'unistr/u8-to-u32'.
29134         * modules/unistr/u8-to-u32-tests: New file.
29135         * tests/unistr/test-u8-to-u32.c: New file.
29136
29137         Tests for module 'unistr/u8-to-u16'.
29138         * modules/unistr/u8-to-u16-tests: New file.
29139         * tests/unistr/test-u8-to-u16.c: New file.
29140
29141         Tests for module 'unistr/u32-check'.
29142         * modules/unistr/u32-check-tests: New file.
29143         * tests/unistr/test-u32-check.c: New file.
29144
29145         Tests for module 'unistr/u16-check'.
29146         * modules/unistr/u16-check-tests: New file.
29147         * tests/unistr/test-u16-check.c: New file.
29148
29149         Tests for module 'unistr/u8-check'.
29150         * modules/unistr/u8-check-tests: New file.
29151         * tests/unistr/test-u8-check.c: New file.
29152
29153         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29154         (category_equals): New function.
29155         (main): Add more tests.
29156         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29157
29158         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29159
29160 2010-01-10  Bruno Haible  <bruno@clisp.org>
29161
29162         unistr/u*-strcoll: Try harder to distinguish different strings.
29163         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29164         compare s1 and s2 to see if they are different.
29165
29166 2010-01-10  Bruno Haible  <bruno@clisp.org>
29167
29168         unistr/u*-stpncpy: Fix the return value.
29169         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29170         description of the return value consistent with stpncpy in glibc.
29171         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29172         written non-NUL unit.
29173
29174 2010-01-10  Bruno Haible  <bruno@clisp.org>
29175
29176         unistr/u*-next: Add missing dependencies.
29177         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29178         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29179         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29180
29181 2010-01-10  Bruno Haible  <bruno@clisp.org>
29182
29183         unistr/u8-mbsnlen: Fix return value for incomplete character.
29184         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29185         u8_mblen.
29186         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29187         Remove unistr/u8-mblen.
29188         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29189         u16_mblen.
29190         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29191         Remove unistr/u16-mblen.
29192
29193 2010-01-10  Bruno Haible  <bruno@clisp.org>
29194
29195         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29196         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29197         Reported by Brian Gough <bjg@gnu.org> and
29198         Chris Clayton <chris2553@googlemail.com> via
29199         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29200
29201 2010-01-09  Bruno Haible  <bruno@clisp.org>
29202
29203         unistr/u16-to-u32: Reject invalid input.
29204         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29205         u16_mbtouc.
29206         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29207         Remove unistr/u16-mbtouc.
29208
29209         unistr/u16-to-u8: Reject invalid input.
29210         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29211         u16_mbtouc.
29212         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29213         Remove unistr/u16-mbtouc.
29214
29215         unistr/u8-to-u32: Reject invalid input.
29216         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29217         u8_mbtouc.
29218         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29219         Remove unistr/u8-mbtouc.
29220
29221         unistr/u8-to-u16: Reject invalid input.
29222         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29223         u8_mbtouc.
29224         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29225         Remove unistr/u8-mbtouc.
29226
29227 2010-01-09  Bruno Haible  <bruno@clisp.org>
29228
29229         Tests for module 'getlogin'.
29230         * modules/getlogin-tests: New file.
29231         * tests/test-getlogin.c: New file.
29232
29233         New module 'getlogin'.
29234         * lib/unistd.in.h (getlogin): New declaration.
29235         * lib/getlogin.c: New file.
29236         * m4/getlogin.m4: New file.
29237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29238         HAVE_GETLOGIN.
29239         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29240         HAVE_GETLOGIN.
29241         * modules/getlogin: New file.
29242         * doc/posix-functions/getlogin.texi: Mention the new module.
29243         Reported by John W. Eaton <jwe@gnu.org>.
29244
29245 2010-01-09  Bruno Haible  <bruno@clisp.org>
29246
29247         getlogin_r: Support for native Windows.
29248         * lib/getlogin_r.c: Include <windows.h>
29249         (getlogin_r): Implement for native Windows.
29250         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29251         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29252         via John W. Eaton <jwe@gnu.org>.
29253
29254 2010-01-09  Bruno Haible  <bruno@clisp.org>
29255
29256         getlogin_r: Small fixes.
29257         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29258         succeeds.
29259         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29260         before testing whether getlogin_r is declared. No need to set
29261         HAVE_DECL_GETLOGIN_R to 1.
29262         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29263
29264 2010-01-09  Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/unistd.in.h (getlogin_r): Add comment.
29267
29268 2010-01-09  Bruno Haible  <bruno@clisp.org>
29269
29270         Tests for module 'getlogin_r'.
29271         * modules/getlogin_r-tests: New file.
29272         * tests/test-getlogin_r.c: New file.
29273
29274 2010-01-09  Jim Meyering  <meyering@redhat.com>
29275
29276         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29277         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29278         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29279
29280 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29281
29282         * lib/dup2.c (rpl_dup2): Improve comment.
29283
29284 2010-01-08  Eric Blake  <ebb9@byu.net>
29285
29286         maint.mk: allow packages to add makefile @@ exceptions
29287         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29288         (sc_makefile_check): Rename...
29289         (sc_makefile_at_at_check): ...to this, and use hook.
29290
29291         dup2: work around mingw bug
29292         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29293         Reported by Simon Josefsson.
29294
29295 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29296
29297         glob: Fix C++ compilation.
29298         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29299         C++.
29300
29301 2010-01-07  Bruno Haible  <bruno@clisp.org>
29302
29303         Fix indentation of wctype.in.h, broken since 2007-01-06.
29304         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29305
29306 2010-01-07  Bruno Haible  <bruno@clisp.org>
29307
29308         mbslen: Avoid collision with system function.
29309         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29310         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29311         * m4/mbslen.m4: New file.
29312         * modules/mbslen (Files): Add it.
29313         (configure.ac): Invoke gl_MBSLEN.
29314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29315         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29316         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29317         via Ian Beckwith <ianb@erislabs.net>.
29318
29319 2010-01-07  Bruno Haible  <bruno@clisp.org>
29320
29321         dirent: Document the last fix.
29322         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29323
29324 2010-01-07  Bruno Haible  <bruno@clisp.org>
29325
29326         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29327         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29328         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29329         va_list are defined.
29330         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29331         Reported by Eric Blake.
29332
29333 2010-01-07  Bruno Haible  <bruno@clisp.org>
29334
29335         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29336         * modules/xlist (Depends-on): Add 'list',
29337         * modules/xoset (Depends-on): Add 'oset'.
29338         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29339
29340 2010-01-07  Bruno Haible  <bruno@clisp.org>
29341
29342         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29343         * doc/posix-functions/strncasecmp.texi: Likewise.
29344
29345 2010-01-07  Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29348
29349 2010-01-07  John W. Eaton  <jwe@octave.org>
29350
29351         wctype: allow C++ use
29352         * lib/wctype.in.h: Add extern "C" block for C++.
29353
29354 2010-01-06  Eric Blake  <ebb9@byu.net>
29355
29356         maint.mk: detect incorrect GFDL usage
29357         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29358
29359 2010-01-06  Jim Meyering  <meyering@redhat.com>
29360         and Eric Blake  <ebb9@byu.net>
29361
29362         maint.mk: ignore multi-line copyright in NEWS
29363         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29364
29365 2010-01-06  Eric Blake  <ebb9@byu.net>
29366
29367         select: add missing dependency
29368         * modules/select-tests (Depends-on): Move sockets dependency...
29369         * modules/select (Depends-on): ...here.
29370         Reported by Ian Beckwith.
29371
29372         doc: regenerate INSTALL
29373         * doc/INSTALL: Reflect recent autoconf update.
29374         * doc/INSTALL.ISO: Likewise.
29375         * doc/INSTALL.UTF-8: Likewise.
29376
29377         pread: fix compilation on glibc
29378         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29379         Reported by Ralf Wildenhues.
29380
29381         dirent: fix test failure
29382         * lib/dirent.in.h (includes): Guarantee ino_t.
29383         Reported by Ralf Wildenhues.
29384
29385 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29386
29387         linkat, renameat: avoid bad free
29388         * lib/at-func2.c (at_func2): Fix typo.
29389         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29390
29391 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29392
29393         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29394         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29395         to avoid failure of symlink test later.
29396
29397 2010-01-06  Eric Blake  <ebb9@byu.net>
29398
29399         stdio, unistd: guarantee ssize_t
29400         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29401         2008 are exposed when needed.
29402         * lib/stdio.in.h (includes): Likewise.
29403         Reported by Ralf Wildenhues.
29404
29405 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29406
29407         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29409         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29410
29411 2010-01-06  Jim Meyering  <meyering@redhat.com>
29412
29413         readtokens: this module *does* require xalloc.h
29414         It uses only functions that were omitted by the old syntax-check rule.
29415         * lib/readtokens.c: Include "xalloc.h" once again.
29416         * modules/readtokens (Depends-on): Add xalloc.
29417         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29418
29419 2010-01-05  Eric Blake  <ebb9@byu.net>
29420
29421         maint: support 'make announcement' from a VPATH build
29422         * top/maint.mk (announcement): Look for correct NEWS file.
29423
29424 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29425
29426         utimens (fdutimens): ignore a negative FD, per contract
29427         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29428         when we have a valid file descriptor.  Otherwise, using a brand
29429         new glibc (with just-patched futimens that now fails with EBADF)
29430         would cause this function to fail with ENOSYS.
29431         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29432         See also http://bugzilla.redhat.com/552320.
29433
29434 2010-01-05  Eric Blake  <ebb9@byu.net>
29435
29436         strcase: document what it provides
29437         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29438         gnulib module.
29439         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29440         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29441
29442 2010-01-05  Jim Meyering  <meyering@redhat.com>
29443
29444         maint: remove useless inclusions of "xalloc.h"
29445         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29446         * lib/readtokens.c: Likewise.
29447         * lib/same.c: Likewise.
29448         * modules/getloadavg (Depends-on): Remove xalloc.
29449         * modules/readtokens: Likewise.
29450         * modules/same: Likewise.
29451
29452         maint.mk: include 4 more function names in alloca.h-checking regexp
29453         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29454         regexp.  Before, we would give a false-positive (saying alloca.h
29455         is included unnecessarily) when the only uses involved omitted symbols.
29456
29457         xalloc.h: use consistent formatting
29458         * lib/xalloc.h: Move declarations to start in the first column.
29459
29460 2010-01-05  Eric Blake  <ebb9@byu.net>
29461
29462         mkdir: avoid xalloc
29463         * lib/mkdir.c (includes): Drop unused header.
29464         Reported by John W. Eaton.
29465
29466 2010-01-04  Jim Meyering  <meyering@redhat.com>
29467
29468         nl_langinfo: avoid configure-time syntax error
29469         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29470         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29471         the empty string.  Don't let that provoke a shell syntax error.
29472
29473         regcomp, regexec, fnmatch: avoid array bounds read error
29474         * lib/regcomp.c (build_equiv_class): From glibc:
29475         Use only the low 24 bits of a findidx return value as an index
29476         into the weights array.  Patch by Ulrich Drepper:
29477         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29478         * lib/regexec.c (check_node_accept_bytes): Likewise.
29479         * lib/fnmatch_loop.c (FCT): Likewise.
29480
29481         regcomp: skip collseq lookup when there are no rules
29482         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29483         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29484
29485         regcomp: recognize ill-formed { } expressions
29486         * lib/regcomp.c (parse_dup_op): From glibc:
29487         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29488
29489         regcomp: fix typo in comment
29490         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29491         s/satisfy/satisfies/.
29492
29493         regcomp: sync from glibc: remove dead store
29494         * lib/regcomp.c (duplicate_node_closure): Remove useless
29495         search_duplicated_node call and dead store.
29496
29497         regcomp: sync from glibc; always use nl_langinfo
29498         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29499         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29500         * modules/regex (Depends-on): Add nl_langinfo.
29501
29502 2010-01-04  Eric Blake  <ebb9@byu.net>
29503
29504         fdopendir: fix configure test
29505         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29506
29507 2010-01-01  Bruno Haible  <bruno@clisp.org>
29508
29509         wchar: Remove unused configure check.
29510         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29511
29512 2010-01-01  Eric Blake  <ebb9@byu.net>
29513
29514         headers: make check of system header explicit
29515         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29516         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29517         ourselves.
29518         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29519         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29520         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29521         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29522         internals.
29523         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29524         missing.
29525         Suggested by Bruno Haible.
29526
29527 2010-01-01  Jim Meyering  <meyering@redhat.com>
29528
29529         ChangeLog: tweak to eliminate unnecessary copyright line
29530         * ChangeLog: Remove a copyright line that was mistakenly updated
29531         by today's update-copyright run.  Reported by Eric Blake.
29532
29533         test-update-copyright: don't let envvar setting cause test failure
29534         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29535
29536 2010-01-01  Bruno Haible  <bruno@clisp.org>
29537
29538         localename: Avoid gcc warning.
29539         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29540         function if it is not used.
29541
29542 2010-01-01  Jim Meyering  <meyering@redhat.com>
29543
29544         update nearly all FSF copyright year lists to include 2010
29545         Use the same procedure as for 2009, outlined in
29546         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29547
29548         version-etc: set COPYRIGHT_YEAR to 2010
29549         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29550
29551 2009-12-31  Eric Blake  <ebb9@byu.net>
29552
29553         doc: correct availability of cygwin 1.5.x getopt
29554         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29555         variables.
29556         * doc/posix-functions/opterr.texi (opterr): Likewise.
29557         * doc/posix-functions/optind.texi (optind): Likewise.
29558         * doc/posix-functions/optopt.texi (optopt): Likewise.
29559         * doc/posix-functions/tzname.texi (tzname): Likewise.
29560
29561         openat: update maintainer
29562         * modules/openat (Maintainer): Add myself.
29563
29564         utimens: avoid shadowing warning
29565         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29566         buffers into one, to avoid shadowing, as well as avoiding a
29567         redundant stat.
29568         Reported by Jim Meyering.
29569
29570         test-dup2: avoid compiler warning
29571         * tests/test-dup2.c (is_inheritable): Only define if used.
29572
29573 2010-01-01  Bruno Haible  <bruno@clisp.org>
29574
29575         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29576         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29577         defined, use wctomb instead of wcrtomb.
29578
29579 2010-01-01  Bruno Haible  <bruno@clisp.org>
29580
29581         iconv: Reject native Solaris iconv.
29582         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29583         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29584
29585 2009-12-31  Bruno Haible  <bruno@clisp.org>
29586
29587         * tests/test-signal.c (main): Remove test of 'SIG'.
29588
29589 2009-12-31  Bruno Haible  <bruno@clisp.org>
29590
29591         spawn: Fix incomplete fix.
29592         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29593         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29594         warnings for GNULIB_POSIXCHECK again.
29595         Reported by Eric Blake.
29596
29597 2009-12-31  Bruno Haible  <bruno@clisp.org>
29598
29599         Avoid namespace pollution on glibc systems.
29600         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29601         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29602         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29603         glibc systems.
29604
29605 2009-12-31  Bruno Haible  <bruno@clisp.org>
29606
29607         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29608         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29609         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29611         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29612         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29613         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29614
29615 2009-12-31  Bruno Haible  <bruno@clisp.org>
29616
29617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29618         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29619         afterwards.
29620
29621 2009-12-31  Bruno Haible  <bruno@clisp.org>
29622
29623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29624         SYS_UTSNAME_H.
29625
29626 2009-12-31  Bruno Haible  <bruno@clisp.org>
29627
29628         spawn: Fix misapplied patch.
29629         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29630         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29631         warnings for GNULIB_POSIXCHECK.
29632
29633 2009-12-31  Bruno Haible  <bruno@clisp.org>
29634
29635         times: Update after sys_times changed.
29636         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29637         * modules/times (Files): Add it.
29638         (configure.ac): Invoke gl_FUNC_TIMES.
29639
29640 2009-12-31  Bruno Haible  <bruno@clisp.org>
29641
29642         Use AC_C_INLINE where necessary.
29643         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29646         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29647         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29648         * m4/mbiter.m4 (gl_MBITER): Likewise.
29649         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29650         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29651         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29652         * modules/u64 (configure.ac): Likewise.
29653
29654 2009-12-31  Bruno Haible  <bruno@clisp.org>
29655
29656         Use AC_C_INLINE instead of module 'inline' where possible.
29657         * modules/inline (Description): Clarify purpose.
29658         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29659         * modules/count-one-bits (Depends-on): Remove inline.
29660         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29661         * modules/openat (Depends-on): Remove inline.
29662         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29663         instead of depending on module 'inline'.
29664         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29665         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29666         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29667         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29668         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29669         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29670         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29671         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29672         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29673         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29674         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29675         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29676         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29677         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29678         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29679         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29680         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29681         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29682         Likewise.
29683         * modules/unictype/property-ascii-hex-digit (Depends-on,
29684         configure.ac): Likewise.
29685         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29686         configure.ac): Likewise.
29687         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29688         configure.ac): Likewise.
29689         * modules/unictype/property-bidi-block-separator (Depends-on,
29690         configure.ac): Likewise.
29691         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29692         configure.ac): Likewise.
29693         * modules/unictype/property-bidi-common-separator (Depends-on,
29694         configure.ac): Likewise.
29695         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29696         Likewise.
29697         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29698         configure.ac): Likewise.
29699         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29700         configure.ac): Likewise.
29701         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29702         configure.ac): Likewise.
29703         * modules/unictype/property-bidi-european-digit (Depends-on,
29704         configure.ac): Likewise.
29705         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29706         configure.ac): Likewise.
29707         * modules/unictype/property-bidi-left-to-right (Depends-on,
29708         configure.ac): Likewise.
29709         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29710         configure.ac): Likewise.
29711         * modules/unictype/property-bidi-other-neutral (Depends-on,
29712         configure.ac): Likewise.
29713         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29714         Likewise.
29715         * modules/unictype/property-bidi-segment-separator (Depends-on,
29716         configure.ac): Likewise.
29717         * modules/unictype/property-bidi-whitespace (Depends-on,
29718         configure.ac): Likewise.
29719         * modules/unictype/property-combining (Depends-on, configure.ac):
29720         Likewise.
29721         * modules/unictype/property-composite (Depends-on, configure.ac):
29722         Likewise.
29723         * modules/unictype/property-currency-symbol (Depends-on,
29724         configure.ac): Likewise.
29725         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29726         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29727         Likewise.
29728         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29729         configure.ac): Likewise.
29730         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29731         Likewise.
29732         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29733         Likewise.
29734         * modules/unictype/property-extender (Depends-on, configure.ac):
29735         Likewise.
29736         * modules/unictype/property-format-control (Depends-on, configure.ac):
29737         Likewise.
29738         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29739         Likewise.
29740         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29741         Likewise.
29742         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29743         Likewise.
29744         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29745         Likewise.
29746         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29747         Likewise.
29748         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29749         Likewise.
29750         * modules/unictype/property-id-start (Depends-on, configure.ac):
29751         Likewise.
29752         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29753         Likewise.
29754         * modules/unictype/property-ids-binary-operator (Depends-on,
29755         configure.ac): Likewise.
29756         * modules/unictype/property-ids-trinary-operator (Depends-on,
29757         configure.ac): Likewise.
29758         * modules/unictype/property-ignorable-control (Depends-on,
29759         configure.ac): Likewise.
29760         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29761         Likewise.
29762         * modules/unictype/property-join-control (Depends-on, configure.ac):
29763         Likewise.
29764         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29765         Likewise.
29766         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29767         Likewise.
29768         * modules/unictype/property-logical-order-exception (Depends-on,
29769         configure.ac): Likewise.
29770         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29771         Likewise.
29772         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29773         * modules/unictype/property-non-break (Depends-on, configure.ac):
29774         Likewise.
29775         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29776         Likewise.
29777         * modules/unictype/property-numeric (Depends-on, configure.ac):
29778         Likewise.
29779         * modules/unictype/property-other-alphabetic (Depends-on,
29780         configure.ac): Likewise.
29781         * modules/unictype/property-other-default-ignorable-code-point
29782         (Depends-on, configure.ac): Likewise.
29783         * modules/unictype/property-other-grapheme-extend (Depends-on,
29784         configure.ac): Likewise.
29785         * modules/unictype/property-other-id-continue (Depends-on,
29786         configure.ac): Likewise.
29787         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29788         Likewise.
29789         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29790         Likewise.
29791         * modules/unictype/property-other-math (Depends-on, configure.ac):
29792         Likewise.
29793         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29794         Likewise.
29795         * modules/unictype/property-paired-punctuation (Depends-on,
29796         configure.ac): Likewise.
29797         * modules/unictype/property-paragraph-separator (Depends-on,
29798         configure.ac): Likewise.
29799         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29800         Likewise.
29801         * modules/unictype/property-pattern-white-space (Depends-on,
29802         configure.ac): Likewise.
29803         * modules/unictype/property-private-use (Depends-on, configure.ac):
29804         Likewise.
29805         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29806         Likewise.
29807         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29808         Likewise.
29809         * modules/unictype/property-radical (Depends-on, configure.ac):
29810         Likewise.
29811         * modules/unictype/property-sentence-terminal (Depends-on,
29812         configure.ac): Likewise.
29813         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29814         Likewise.
29815         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29816         * modules/unictype/property-terminal-punctuation (Depends-on,
29817         configure.ac): Likewise.
29818         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29819         Likewise.
29820         * modules/unictype/property-unassigned-code-value (Depends-on,
29821         configure.ac): Likewise.
29822         * modules/unictype/property-unified-ideograph (Depends-on,
29823         configure.ac): Likewise.
29824         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29825         Likewise.
29826         * modules/unictype/property-variation-selector (Depends-on,
29827         configure.ac): Likewise.
29828         * modules/unictype/property-white-space (Depends-on, configure.ac):
29829         Likewise.
29830         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29831         Likewise.
29832         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29833         Likewise.
29834         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29835         Likewise.
29836         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29837         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29838         Likewise.
29839
29840 2009-12-31  Bruno Haible  <bruno@clisp.org>
29841
29842         Remove unnecessary AC_C_INLINE invocation.
29843         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29844         since 2009-08-21.
29845
29846 2009-12-31  Jim Meyering  <meyering@redhat.com>
29847
29848         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29849         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29850         With this change, we can all remove the gpg_key_ID = ... definition
29851         from our respective cfg.mk files.
29852
29853         maint.mk: create announcement template in ~/, not in /tmp
29854         * top/maint.mk (emit_upload_commands): Adjust.
29855         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29856         Remove temporary file, .ci-msg.
29857
29858 2009-12-31  Eric Blake  <ebb9@byu.net>
29859
29860         link-warning: always build headers with link warnings
29861         * modules/arpa_inet (Makefile.am): Always build replacement
29862         header.
29863         * modules/ctype (Makefile.am): Likewise.
29864         * modules/dirent (Makefile.am): Likewise.
29865         * modules/inttypes (Makefile.am): Likewise.
29866         * modules/langinfo (Makefile.am): Likewise.
29867         * modules/locale (Makefile.am): Likewise.
29868         * modules/spawn (Makefile.am): Likewise.
29869         * modules/sys_file (Makefile.am): Likewise.
29870         * modules/sys_ioctl (Makefile.am): Likewise.
29871         * modules/sys_select (Makefile.am): Likewise.
29872         * modules/sys_socket (Makefile.am): Likewise.
29873         * modules/sys_times (Makefile.am): Likewise.
29874         * modules/sys_utsname (Makefile.am): Likewise.
29875         * modules/sys_wait (Makefile.am): Likewise.
29876         * modules/wchar (Makefile.am): Likewise.
29877         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29878         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29879         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29880         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29881         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29882         Likewise.
29883         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29884         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29885         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29886         Likewise.
29887         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29888         Likewise.
29889         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29890         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29891         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29893         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29894         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29895         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29896         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29897         (gl_WCHAR_H_DEFAULTS): Likewise.
29898
29899 2009-12-31  Eric Blake  <ebb9@byu.net>
29900
29901         signal, spawn: use link warnings
29902         * lib/signal.in.h (sigset_t): Make unconditional.
29903         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29904         (sigpending, sigprocmask, sigaction): Add link warnings.
29905         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29906         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29907         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29908         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29909         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29910         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29911         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29912         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29913         (posix_spawn_file_actions_destroy)
29914         (posix_spawn_file_actions_addopen)
29915         (posix_spawn_file_actions_addclose)
29916         (posix_spawn_file_actions_adddup2): Likewise.
29917         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29918         * tests/test-signal.c (main): Enhance test.
29919
29920         spawn: improve wrapper support
29921         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29922         (gl_SPAWN_H_DEFAULTS): New defaults.
29923         * modules/spawn (Makefile.am): Substitute them.
29924         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29925         Only declare if missing or broken.
29926
29927         sys_times, sys_utsname: use include_next
29928         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29929         header.
29930         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29932         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29933         * modules/sys_times (Depends-on): Add include_next.
29934         (Makefile.am): Substitute additional values.
29935         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29936         * lib/sys_times.in.h (includes): Include native header, if
29937         available.
29938         * lib/sys_utsname.in.h (includes): Likewise.
29939         * tests/test-sys_times.c (main): Enhance test.
29940
29941         fdutimensat: revert prior patch
29942         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29943         utimens.h.
29944         Reported by Bruno Haible.
29945
29946 2009-12-30  Eric Blake  <ebb9@byu.net>
29947
29948         sys_wait: drop link-warning dependency
29949         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29950         link-warning efforts.
29951         * lib/sys_wait.in.h: Likewise.
29952
29953         fdutimensat: remove bogus dependency
29954         * modules/fdutimensat (Depends-on): Drop inline.
29955
29956         unistd: fix typo
29957         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29958
29959 2009-12-30  Bruno Haible  <bruno@clisp.org>
29960
29961         Fix compilation error with Solaris cc.
29962         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29963         * lib/unicase/u16-is-invariant.c: Likewise.
29964         * lib/unicase/u32-is-invariant.c: Likewise.
29965         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29966
29967 2009-12-30  Bruno Haible  <bruno@clisp.org>
29968
29969         Fix test crash.
29970         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29971         locales.
29972         Reported by Simon Josefsson <simon@josefsson.org>.
29973
29974 2009-12-30  Bruno Haible  <bruno@clisp.org>
29975
29976         Fix compilation error on most platforms.
29977         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29978         Reported by Simon Josefsson <simon@josefsson.org>
29979         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29980
29981 2009-12-30  Eric Blake  <ebb9@byu.net>
29982
29983         futimens, utimensat: work around ntfs-3g bug
29984         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29985         a ctime bug is present, and expand workaround to cover ntfs-3g.
29986         * lib/utimens.c (fdutimens, lutimens): Likewise.
29987         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29988         (validate_timespec): Adjust return value.
29989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29990         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29991         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29992
29993 2009-12-29  Eric Blake  <ebb9@byu.net>
29994
29995         link-warning: make usage consistent
29996         * modules/ctype (Depends-on): Add link-warning.
29997         (Makefile.am): Update rules accordingly.
29998         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29999         * modules/locale (Depends-on, Makefile.am): Likewise.
30000         * modules/sys_file (Makefile.am): Likewise.
30001         * modules/getopt-posix (Makefile.am): Delete unused link warning
30002         efforts.
30003         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30004         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30005         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30006         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30007
30008         stdio: remove unused variables
30009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30011         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30012
30013         tests: test more substitute headers
30014         * modules/ctype-tests: New file.
30015         * modules/dirent-tests: Likewise.
30016         * modules/spawn-tests: Likewise.
30017         * modules/sys_file-tests: Likewise.
30018         * modules/sys_ioctl-tests: Likewise.
30019         * modules/sys_wait-tests: Likewise.
30020         * tests/test-ctype.c: Likewise.
30021         * tests/test-dirent.c: Likewise.
30022         * tests/test-spawn.c: Likewise.
30023         * tests/test-sys_file.c: Likewise.
30024         * tests/test-sys_ioctl.c: Likewise.
30025         * tests/test-sys_wait.c: Likewise.
30026         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30027         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30028         whether or not flock is in use.
30029
30030         tests: remove License section from module
30031         * modules/arpa_inet-tests: Remove unneeded section.
30032         * modules/byteswap-tests: Likewise.
30033         * modules/ceilf-tests: Likewise.
30034         * modules/ceill-tests: Likewise.
30035         * modules/crypto/des-tests: Likewise.
30036         * modules/crypto/gc-arcfour-tests: Likewise.
30037         * modules/crypto/gc-arctwo-tests: Likewise.
30038         * modules/crypto/gc-des-tests: Likewise.
30039         * modules/crypto/gc-hmac-md5-tests: Likewise.
30040         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30041         * modules/crypto/gc-md2-tests: Likewise.
30042         * modules/crypto/gc-md4-tests: Likewise.
30043         * modules/crypto/gc-md5-tests: Likewise.
30044         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30045         * modules/crypto/gc-rijndael-tests: Likewise.
30046         * modules/crypto/gc-sha1-tests: Likewise.
30047         * modules/crypto/gc-tests: Likewise.
30048         * modules/crypto/md2-tests: Likewise.
30049         * modules/crypto/md4-tests: Likewise.
30050         * modules/fcntl-h-tests: Likewise.
30051         * modules/floorf-tests: Likewise.
30052         * modules/floorl-tests: Likewise.
30053         * modules/frexp-nolibm-tests: Likewise.
30054         * modules/frexp-tests: Likewise.
30055         * modules/frexpl-nolibm-tests: Likewise.
30056         * modules/frexpl-tests: Likewise.
30057         * modules/getaddrinfo-tests: Likewise.
30058         * modules/inttypes-tests: Likewise.
30059         * modules/isfinite-tests: Likewise.
30060         * modules/isinf-tests: Likewise.
30061         * modules/ldexpl-tests: Likewise.
30062         * modules/locale-tests: Likewise.
30063         * modules/math-tests: Likewise.
30064         * modules/netdb-tests: Likewise.
30065         * modules/netinet_in-tests: Likewise.
30066         * modules/printf-frexp-tests: Likewise.
30067         * modules/printf-frexpl-tests: Likewise.
30068         * modules/priv-set-tests: Likewise.
30069         * modules/random_r-tests: Likewise.
30070         * modules/round-tests: Likewise.
30071         * modules/roundf-tests: Likewise.
30072         * modules/roundl-tests: Likewise.
30073         * modules/search-tests: Likewise.
30074         * modules/select-tests: Likewise.
30075         * modules/signal-tests: Likewise.
30076         * modules/stdbool-tests: Likewise.
30077         * modules/stddef-tests: Likewise.
30078         * modules/stdint-tests: Likewise.
30079         * modules/stdio-tests: Likewise.
30080         * modules/stdlib-tests: Likewise.
30081         * modules/string-tests: Likewise.
30082         * modules/strings-tests: Likewise.
30083         * modules/sys_select-tests: Likewise.
30084         * modules/sys_socket-tests: Likewise.
30085         * modules/sys_stat-tests: Likewise.
30086         * modules/sys_time-tests: Likewise.
30087         * modules/sys_utsname-tests: Likewise.
30088         * modules/sysexits-tests: Likewise.
30089         * modules/time-tests: Likewise.
30090         * modules/trunc-tests: Likewise.
30091         * modules/truncf-tests: Likewise.
30092         * modules/truncl-tests: Likewise.
30093         * modules/tsearch-tests: Likewise.
30094         * modules/unistd-tests: Likewise.
30095         * modules/wchar-tests: Likewise.
30096         * modules/wctype-tests: Likewise.
30097
30098         tests: fix license on several tests
30099         * tests/test-des.c: Update to GPLv3+.
30100         * tests/test-flock.c: Likewise.
30101         * tests/test-fsync.c: Likewise.
30102         * tests/test-futimens.h: Likewise.
30103         * tests/test-gc-arcfour.c: Likewise.
30104         * tests/test-gc-arctwo.c: Likewise.
30105         * tests/test-gc-des.c: Likewise.
30106         * tests/test-gc-hmac-md5.c: Likewise.
30107         * tests/test-gc-hmac-sha1.c: Likewise.
30108         * tests/test-gc-md2.c: Likewise.
30109         * tests/test-gc-md4.c: Likewise.
30110         * tests/test-gc-md5.c: Likewise.
30111         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30112         * tests/test-gc-rijndael.c: Likewise.
30113         * tests/test-gc-sha1.c: Likewise.
30114         * tests/test-gc.c: Likewise.
30115         * tests/test-getcwd.c: Likewise.
30116         * tests/test-link.c: Likewise.
30117         * tests/test-link.h: Likewise.
30118         * tests/test-lutimens.h: Likewise.
30119         * tests/test-md2.c: Likewise.
30120         * tests/test-md4.c: Likewise.
30121         * tests/test-mkdir.h: Likewise.
30122         * tests/test-rename.c: Likewise.
30123         * tests/test-rename.h: Likewise.
30124         * tests/test-safe-alloc.c: Likewise.
30125         * tests/test-utimens-common.h: Likewise.
30126         * tests/test-utimens.h: Likewise.
30127
30128         maint: sync license texts
30129         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30130         * doc/gpl-3.0.texi: Revert copyright year update.
30131         * doc/lgpl-3.0.texi: Likewise.
30132
30133 2009-12-29  Jim Meyering  <meyering@redhat.com>
30134
30135         update nearly all FSF copyright year lists to include 2009
30136         The files named by the following are exempted:
30137             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30138               test -f "$dst" && { echo "$dst"; continue; }
30139               test -d "$dst" || continue
30140               echo "$dst"/$(basename "$src")
30141             done > exempt
30142             git ls-files tests/unictype >> exempt
30143         In the remaining files, convert to all-interval notation if
30144         - there is already at least one year interval like 2000-2003
30145         - the file is maintained by me
30146         - the file is in lib/uni*/, where that style already prevails
30147         Otherwise, use update-copyright's default.
30148
30149 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30150         and Eric Blake  <ebb9@byu.net>
30151
30152         tests: don't require debug system() to pass
30153         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30154         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30155         * tests/test-unlink.h (test_unlink_func): Likewise.
30156         * tests/test-fstatat.c (main): ...into callers.
30157         * tests/test-lstat.c (main): Likewise.
30158         * tests/test-rmdir.c (main): Likewise.
30159         * tests/test-unlink.c (main): Likewise.
30160         * tests/test-unlinkat.c (main): Likewise.
30161         * tests/test-areadlink-with-size.c (main): Don't require a
30162         debug-only system call to pass, aiding cross-testing to mingw.
30163         * tests/test-areadlink.c (main): Likewise.
30164         * tests/test-areadlinkat-with-size.c (main): Likewise.
30165         * tests/test-areadlinkat.c (main): Likewise.
30166         * tests/test-canonicalize-lgpl.c (main): Likewise.
30167         * tests/test-canonicalize.c (main): Likewise.
30168         * tests/test-chown.c (main): Likewise.
30169         * tests/test-fchownat.c (main): Likewise.
30170         * tests/test-lchown.c (main): Likewise.
30171         * tests/test-fdutimensat.c (main): Likewise.
30172         * tests/test-futimens.c (main): Likewise.
30173         * tests/test-link.c (main): Likewise.
30174         * tests/test-linkat.c (main): Likewise.
30175         * tests/test-mkdir.c (main): Likewise.
30176         * tests/test-mkdirat.c (main): Likewise.
30177         * tests/test-mkfifo.c (main): Likewise.
30178         * tests/test-mkfifoat.c (main): Likewise.
30179         * tests/test-mknod.c (main): Likewise.
30180         * tests/test-readlink.c (main): Likewise.
30181         * tests/test-remove.c (main): Likewise.
30182         * tests/test-rename.c (main): Likewise.
30183         * tests/test-renameat.c (main): Likewise.
30184         * tests/test-symlink.c (main): Likewise.
30185         * tests/test-symlinkat.c (main): Likewise.
30186         * tests/test-utimens.c (main): Likewise.
30187         * tests/test-utimensat.c (main): Likewise.
30188
30189 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30190
30191         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30192         on $(UNUSED_PARAMETER_H) to avoid build failure.
30193
30194 2009-12-28  Jim Meyering  <meyering@redhat.com>
30195
30196         update-copyright: you may specify a max. line length other than 72
30197         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30198
30199         maint: use consistent FSF copyright line syntax
30200         * lib/posixtm.c: Add missing comma in FSF copyright line.
30201         * lib/posixtm.h: Likewise.
30202         * lib/getugroups.c: Add missing ", Inc.".
30203
30204         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30205         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30206         FSF copyright line.  Remove trailing blanks.
30207
30208 2009-12-28  Eric Blake  <ebb9@byu.net>
30209
30210         test-dup2: reduce dependencies
30211         * modules/cloexec (Configure.ac): Set witness.
30212         * modules/dup2-tests (Depends-on): Drop cloexec.
30213         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30214         not present.
30215         Suggested by Bruno Haible.
30216
30217 2009-12-26  Bruno Haible  <bruno@clisp.org>
30218
30219         Remove an unneeded dependency.
30220         * modules/fseterr (Depends-on): Remove dup2.
30221
30222 2009-12-26  Eric Blake  <ebb9@byu.net>
30223
30224         tests: use macros.h in more places
30225         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30226         (ASSERT_STREAM): Provide default of stderr.
30227         * tests/test-dirent-safer.c: Include macros.h, using alternate
30228         stream for assertions.
30229         * tests/test-dup-safer.c: Likewise.
30230         * tests/test-freopen-safer.c: Likewise.
30231         * tests/test-getopt.c: Likewise.
30232         * tests/test-openat-safer.c: Likewise.
30233         * tests/test-pipe.c: Likewise.
30234         * tests/test-popen-safer.c: Likewise.
30235         * modules/dirent-safer-tests (Files): Include macros.h.
30236         * modules/unistd-safer-tests (Files): Likewise.
30237         * modules/freopen-safer-tests (Files): Likewise.
30238         * modules/getopt-posix-tests (Files): Likewise.
30239         * modules/openat-safer-tests (Files): Likewise.
30240         * modules/pipe-tests (Files): Likewise.
30241
30242 2009-12-26  Bruno Haible  <bruno@clisp.org>
30243
30244         javacomp: Portability fix.
30245         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30246         that it also works on Solaris.
30247
30248 2009-12-26  Bruno Haible  <bruno@clisp.org>
30249
30250         localename: Fix storage allocation of gl_locale_name_thread's result.
30251         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30252         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30253         all platforms that have 'uselocale'.
30254         (gl_locale_name_thread_unsafe): New function, extracted from
30255         gl_locale_name_thread.
30256         (gl_locale_name_thread): Call struniq on all platforms that have
30257         'uselocale'.
30258         * tests/test-localename.c (test_locale_name_thread): Check that the
30259         resulting strings are permanently allocated.
30260         * modules/localename-tests (Depends-on): Add strdup.
30261
30262 2009-12-26  Bruno Haible  <bruno@clisp.org>
30263
30264         * tests/test-localename.c (categories): Fill in the strings.
30265
30266 2009-12-26  Jim Meyering  <meyering@redhat.com>
30267
30268         isdir: complete the removal of m4/isdir.m4
30269         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30270
30271         isdir: clean up, since at least grep still uses it
30272         * lib/isdir.c: Include "isdir.h".
30273         (S_ISDIR): Remove now-unneeded definition.
30274         * modules/isdir (Files): Add lib/isdir.h.
30275         * lib/isdir.h: New file, with declaration.
30276         * m4/isdir.m4: Remove file -- unneeded.
30277
30278 2009-12-25  Bruno Haible  <bruno@clisp.org>
30279
30280         selinux-h: Make generated .h files standalone.
30281         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30282         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30283         * lib/se-selinux.in.h: Likewise.
30284         * modules/selinux-h (Depends-on): Add unused-parameter.
30285         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30286         selinux/selinux.h and selinux/context.h.
30287         Suggested by Eric Blake.
30288
30289 2009-12-25  Bruno Haible  <bruno@clisp.org>
30290
30291         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30292         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30293         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30294         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30295         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30296
30297 2009-12-24  Bruno Haible  <bruno@clisp.org>
30298
30299         openat: Fix warning.
30300         * lib/openat-proc.c: Include <unistd.h>.
30301
30302 2009-12-24  Bruno Haible  <bruno@clisp.org>
30303
30304         New module 'unused-parameter'.
30305         * build-aux/unused-parameter.h: New file, extracted from earlier
30306         gnulib-common.m4.
30307         * modules/unused-parameter: New file.
30308         * lib/unistr.h: Include unused-parameter.h.
30309         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30310         _GL_UNUSED.
30311         * modules/unistr/base (Depends-on): Add unused-parameter.
30312
30313 2009-12-24  Bruno Haible  <bruno@clisp.org>
30314
30315         Add missing dependencies to 'extensions' module.
30316         * m4/extensions.m4: Add comment.
30317         * modules/accept4 (Depends-on): Add extensions.
30318         * modules/dup3 (Depends-on): Likewise.
30319         * modules/fcntl (Depends-on): Likewise.
30320         * modules/futimens (Depends-on): Likewise.
30321         * modules/mknod (Depends-on): Likewise.
30322         * modules/pipe2 (Depends-on): Likewise.
30323         * modules/stat-time (Depends-on): Likewise.
30324         * modules/strcasestr-simple (Depends-on): Likewise.
30325         * modules/strsignal (Depends-on): Likewise.
30326         * modules/utimensat (Depends-on): Likewise.
30327         * modules/localcharset (Depends-on): Likewise. Needed because of
30328         gl_FCNTL_O_FLAGS.
30329         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30330         AC_TYPE_MBSTATE_T.
30331         * modules/wcsnrtombs (Depends-on): Likewise.
30332         * modules/wcsrtombs (Depends-on): Likewise.
30333
30334 2009-12-24  Bruno Haible  <bruno@clisp.org>
30335
30336         binary-io: Avoid gcc warning due to SET_BINARY.
30337         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30338         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30339
30340 2009-12-24  Bruno Haible  <bruno@clisp.org>
30341
30342         Avoid future namespace pollution on glibc systems.
30343         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30344         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30345         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30346         glibc systems.
30347
30348 2009-12-24  Bruno Haible  <bruno@clisp.org>
30349
30350         Refactor common macros used in tests.
30351         * tests/macros.h: New file.
30352         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30353         and/or <stdlib.h>, if appropriate.
30354         (ASSERT, SIZEOF): Remove macros.
30355         * tests/test-areadlink-with-size.c: Likewise.
30356         * tests/test-areadlinkat.c: Likewise.
30357         * tests/test-areadlinkat-with-size.c: Likewise.
30358         * tests/test-argmatch.c: Likewise.
30359         * tests/test-argv-iter.c: Likewise.
30360         * tests/test-array-mergesort.c: Likewise.
30361         * tests/test-array_list.c: Likewise.
30362         * tests/test-array_oset.c: Likewise.
30363         * tests/test-avltree_list.c: Likewise.
30364         * tests/test-avltree_oset.c: Likewise.
30365         * tests/test-avltreehash_list.c: Likewise.
30366         * tests/test-base64.c: Likewise.
30367         * tests/test-binary-io.c: Likewise.
30368         * tests/test-bitrotate.c: Likewise.
30369         * tests/test-btowc.c: Likewise.
30370         * tests/test-byteswap.c: Likewise.
30371         * tests/test-c-ctype.c: Likewise.
30372         * tests/test-c-stack.c: Likewise.
30373         * tests/test-c-strcasecmp.c: Likewise.
30374         * tests/test-c-strcasestr.c: Likewise.
30375         * tests/test-c-strncasecmp.c: Likewise.
30376         * tests/test-c-strstr.c: Likewise.
30377         * tests/test-canonicalize-lgpl.c: Likewise.
30378         * tests/test-canonicalize.c: Likewise.
30379         * tests/test-carray_list.c: Likewise.
30380         * tests/test-ceilf1.c: Likewise.
30381         * tests/test-ceilf2.c: Likewise.
30382         * tests/test-ceill.c: Likewise.
30383         * tests/test-chown.c: Likewise.
30384         * tests/test-cloexec.c: Likewise.
30385         * tests/test-copy-acl.c: Likewise.
30386         * tests/test-copy-file.c: Likewise.
30387         * tests/test-count-one-bits.c: Likewise.
30388         * tests/test-dprintf-posix.c: Likewise.
30389         * tests/test-dup2.c: Likewise.
30390         * tests/test-dup3.c: Likewise.
30391         * tests/test-duplocale.c: Likewise.
30392         * tests/test-fbufmode.c: Likewise.
30393         * tests/test-fchdir.c: Likewise.
30394         * tests/test-fchownat.c: Likewise.
30395         * tests/test-fcntl-safer.c: Likewise.
30396         * tests/test-fcntl.c: Likewise.
30397         * tests/test-fdopendir.c: Likewise.
30398         * tests/test-fdutimensat.c: Likewise.
30399         * tests/test-fflush2.c: Likewise.
30400         * tests/test-file-has-acl.c: Likewise.
30401         * tests/test-filevercmp.c: Likewise.
30402         * tests/test-flock.c: Likewise.
30403         * tests/test-floorf1.c: Likewise.
30404         * tests/test-floorf2.c: Likewise.
30405         * tests/test-floorl.c: Likewise.
30406         * tests/test-fnmatch.c: Likewise.
30407         * tests/test-fopen.h: Likewise.
30408         * tests/test-fpending.c: Likewise.
30409         * tests/test-fprintf-posix.c: Likewise.
30410         * tests/test-fpurge.c: Likewise.
30411         * tests/test-freadable.c: Likewise.
30412         * tests/test-freadahead.c: Likewise.
30413         * tests/test-freading.c: Likewise.
30414         * tests/test-freadptr.c: Likewise.
30415         * tests/test-freadptr2.c: Likewise.
30416         * tests/test-freadseek.c: Likewise.
30417         * tests/test-freopen.c: Likewise.
30418         * tests/test-frexp.c: Likewise.
30419         * tests/test-frexpl.c: Likewise.
30420         * tests/test-fseek.c: Likewise.
30421         * tests/test-fseeko.c: Likewise.
30422         * tests/test-fstatat.c: Likewise.
30423         * tests/test-fstrcmp.c: Likewise.
30424         * tests/test-fsync.c: Likewise.
30425         * tests/test-ftell.c: Likewise.
30426         * tests/test-ftello.c: Likewise.
30427         * tests/test-func.c: Likewise.
30428         * tests/test-futimens.c: Likewise.
30429         * tests/test-fwritable.c: Likewise.
30430         * tests/test-fwriting.c: Likewise.
30431         * tests/test-getcwd.c: Likewise.
30432         * tests/test-getdate.c: Likewise.
30433         * tests/test-getdelim.c: Likewise.
30434         * tests/test-getdtablesize.c: Likewise.
30435         * tests/test-getgroups.c: Likewise.
30436         * tests/test-getline.c: Likewise.
30437         * tests/test-getndelim2.c: Likewise.
30438         * tests/test-glob.c: Likewise.
30439         * tests/test-hash.c: Likewise.
30440         * tests/test-i-ring.c: Likewise.
30441         * tests/test-iconv-utf.c: Likewise.
30442         * tests/test-iconv.c: Likewise.
30443         * tests/test-idpriv-drop.c: Likewise.
30444         * tests/test-idpriv-droptemp.c: Likewise.
30445         * tests/test-inet_ntop.c: Likewise.
30446         * tests/test-inet_pton.c: Likewise.
30447         * tests/test-isblank.c: Likewise.
30448         * tests/test-isfinite.c: Likewise.
30449         * tests/test-isinf.c: Likewise.
30450         * tests/test-isnan.c: Likewise.
30451         * tests/test-isnand.h: Likewise.
30452         * tests/test-isnanf.h: Likewise.
30453         * tests/test-isnanl.h: Likewise.
30454         * tests/test-lchown.c: Likewise.
30455         * tests/test-ldexpl.c: Likewise.
30456         * tests/test-link.c: Likewise.
30457         * tests/test-linkat.c: Likewise.
30458         * tests/test-linked_list.c: Likewise.
30459         * tests/test-linkedhash_list.c: Likewise.
30460         * tests/test-localename.c: Likewise.
30461         * tests/test-lseek.c: Likewise.
30462         * tests/test-lstat.c: Likewise.
30463         * tests/test-mbmemcasecmp.c: Likewise.
30464         * tests/test-mbmemcasecoll.c: Likewise.
30465         * tests/test-mbrtowc.c: Likewise.
30466         * tests/test-mbscasecmp.c: Likewise.
30467         * tests/test-mbscasestr1.c: Likewise.
30468         * tests/test-mbscasestr2.c: Likewise.
30469         * tests/test-mbscasestr3.c: Likewise.
30470         * tests/test-mbscasestr4.c: Likewise.
30471         * tests/test-mbschr.c: Likewise.
30472         * tests/test-mbscspn.c: Likewise.
30473         * tests/test-mbsinit.c: Likewise.
30474         * tests/test-mbsncasecmp.c: Likewise.
30475         * tests/test-mbsnrtowcs.c: Likewise.
30476         * tests/test-mbspbrk.c: Likewise.
30477         * tests/test-mbspcasecmp.c: Likewise.
30478         * tests/test-mbsrchr.c: Likewise.
30479         * tests/test-mbsrtowcs.c: Likewise.
30480         * tests/test-mbsspn.c: Likewise.
30481         * tests/test-mbsstr1.c: Likewise.
30482         * tests/test-mbsstr2.c: Likewise.
30483         * tests/test-mbsstr3.c: Likewise.
30484         * tests/test-memchr.c: Likewise.
30485         * tests/test-memchr2.c: Likewise.
30486         * tests/test-memcmp.c: Likewise.
30487         * tests/test-memmem.c: Likewise.
30488         * tests/test-memrchr.c: Likewise.
30489         * tests/test-mkdir.c: Likewise.
30490         * tests/test-mkdirat.c: Likewise.
30491         * tests/test-mkfifo.c: Likewise.
30492         * tests/test-mkfifoat.c: Likewise.
30493         * tests/test-mknod.c: Likewise.
30494         * tests/test-nanosleep.c: Likewise.
30495         * tests/test-nl_langinfo.c: Likewise.
30496         * tests/test-obstack-printf.c: Likewise.
30497         * tests/test-open.c: Likewise.
30498         * tests/test-openat.c: Likewise.
30499         * tests/test-pipe-filter-gi1.c: Likewise.
30500         * tests/test-pipe-filter-gi2-main.c: Likewise.
30501         * tests/test-pipe-filter-ii1.c: Likewise.
30502         * tests/test-pipe-filter-ii2-main.c: Likewise.
30503         * tests/test-pipe2.c: Likewise.
30504         * tests/test-popen.h: Likewise.
30505         * tests/test-posixtm.c: Likewise.
30506         * tests/test-pread.c: Likewise.
30507         * tests/test-printf-frexp.c: Likewise.
30508         * tests/test-printf-frexpl.c: Likewise.
30509         * tests/test-printf-posix.c: Likewise.
30510         * tests/test-priv-set.c: Likewise.
30511         * tests/test-quotearg.c: Likewise.
30512         * tests/test-random_r.c: Likewise.
30513         * tests/test-rawmemchr.c: Likewise.
30514         * tests/test-rbtree_list.c: Likewise.
30515         * tests/test-rbtree_oset.c: Likewise.
30516         * tests/test-rbtreehash_list.c: Likewise.
30517         * tests/test-readlink.c: Likewise.
30518         * tests/test-remove.c: Likewise.
30519         * tests/test-rename.c: Likewise.
30520         * tests/test-renameat.c: Likewise.
30521         * tests/test-rmdir.c: Likewise.
30522         * tests/test-round1.c: Likewise.
30523         * tests/test-roundf1.c: Likewise.
30524         * tests/test-roundl.c: Likewise.
30525         * tests/test-safe-alloc.c: Likewise.
30526         * tests/test-sameacls.c: Likewise.
30527         * tests/test-set-mode-acl.c: Likewise.
30528         * tests/test-setenv.c: Likewise.
30529         * tests/test-sigaction.c: Likewise.
30530         * tests/test-signbit.c: Likewise.
30531         * tests/test-sleep.c: Likewise.
30532         * tests/test-snprintf-posix.c: Likewise.
30533         * tests/test-snprintf.c: Likewise.
30534         * tests/test-sprintf-posix.c: Likewise.
30535         * tests/test-stat-time.c: Likewise.
30536         * tests/test-stat.c: Likewise.
30537         * tests/test-strcasestr.c: Likewise.
30538         * tests/test-strchrnul.c: Likewise.
30539         * tests/test-strerror.c: Likewise.
30540         * tests/test-striconv.c: Likewise.
30541         * tests/test-striconveh.c: Likewise.
30542         * tests/test-striconveha.c: Likewise.
30543         * tests/test-strsignal.c: Likewise.
30544         * tests/test-strstr.c: Likewise.
30545         * tests/test-strtod.c: Likewise.
30546         * tests/test-strverscmp.c: Likewise.
30547         * tests/test-symlink.c: Likewise.
30548         * tests/test-symlinkat.c: Likewise.
30549         * tests/test-trunc1.c: Likewise.
30550         * tests/test-trunc2.c: Likewise.
30551         * tests/test-truncf1.c: Likewise.
30552         * tests/test-truncf2.c: Likewise.
30553         * tests/test-truncl.c: Likewise.
30554         * tests/test-uname.c: Likewise.
30555         * tests/test-unlink.c: Likewise.
30556         * tests/test-unlinkat.c: Likewise.
30557         * tests/test-unsetenv.c: Likewise.
30558         * tests/test-usleep.c: Likewise.
30559         * tests/test-utimens.c: Likewise.
30560         * tests/test-utimensat.c: Likewise.
30561         * tests/test-vasnprintf-posix.c: Likewise.
30562         * tests/test-vasnprintf-posix2.c: Likewise.
30563         * tests/test-vasnprintf.c: Likewise.
30564         * tests/test-vasprintf-posix.c: Likewise.
30565         * tests/test-vasprintf.c: Likewise.
30566         * tests/test-vdprintf-posix.c: Likewise.
30567         * tests/test-vfprintf-posix.c: Likewise.
30568         * tests/test-vprintf-posix.c: Likewise.
30569         * tests/test-vsnprintf-posix.c: Likewise.
30570         * tests/test-vsnprintf.c: Likewise.
30571         * tests/test-vsprintf-posix.c: Likewise.
30572         * tests/test-wcrtomb.c: Likewise.
30573         * tests/test-wcsnrtombs.c: Likewise.
30574         * tests/test-wcsrtombs.c: Likewise.
30575         * tests/test-wctype.c: Likewise.
30576         * tests/test-wcwidth.c: Likewise.
30577         * tests/test-xfprintf-posix.c: Likewise.
30578         * tests/test-xmemdup0.c: Likewise.
30579         * tests/test-xprintf-posix.c: Likewise.
30580         * tests/test-xvasprintf.c: Likewise.
30581         * tests/unicase/test-locale-language.c: Likewise.
30582         * tests/unicase/test-mapping-part1.h: Likewise.
30583         * tests/unicase/test-predicate-part1.h: Likewise.
30584         * tests/unicase/test-u8-casecmp.c: Likewise.
30585         * tests/unicase/test-u8-casecoll.c: Likewise.
30586         * tests/unicase/test-u8-casefold.c: Likewise.
30587         * tests/unicase/test-u8-is-cased.c: Likewise.
30588         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30589         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30590         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30591         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30592         * tests/unicase/test-u8-tolower.c: Likewise.
30593         * tests/unicase/test-u8-totitle.c: Likewise.
30594         * tests/unicase/test-u8-toupper.c: Likewise.
30595         * tests/unicase/test-u16-casecmp.c: Likewise.
30596         * tests/unicase/test-u16-casecoll.c: Likewise.
30597         * tests/unicase/test-u16-casefold.c: Likewise.
30598         * tests/unicase/test-u16-is-cased.c: Likewise.
30599         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30600         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30601         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30602         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30603         * tests/unicase/test-u16-tolower.c: Likewise.
30604         * tests/unicase/test-u16-totitle.c: Likewise.
30605         * tests/unicase/test-u16-toupper.c: Likewise.
30606         * tests/unicase/test-u32-casecmp.c: Likewise.
30607         * tests/unicase/test-u32-casecoll.c: Likewise.
30608         * tests/unicase/test-u32-casefold.c: Likewise.
30609         * tests/unicase/test-u32-is-cased.c: Likewise.
30610         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30611         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30612         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30613         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30614         * tests/unicase/test-u32-tolower.c: Likewise.
30615         * tests/unicase/test-u32-totitle.c: Likewise.
30616         * tests/unicase/test-u32-toupper.c: Likewise.
30617         * tests/unicase/test-ulc-casecmp.c: Likewise.
30618         * tests/unicase/test-ulc-casecoll.c: Likewise.
30619         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30620         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30621         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30622         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30623         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30624         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30625         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30626         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30627         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30628         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30629         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30630         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30631         * tests/unictype/test-bidi_byname.c: Likewise.
30632         * tests/unictype/test-bidi_name.c: Likewise.
30633         * tests/unictype/test-bidi_of.c: Likewise.
30634         * tests/unictype/test-bidi_test.c: Likewise.
30635         * tests/unictype/test-block_list.c: Likewise.
30636         * tests/unictype/test-block_of.c: Likewise.
30637         * tests/unictype/test-block_test.c: Likewise.
30638         * tests/unictype/test-categ_and.c: Likewise.
30639         * tests/unictype/test-categ_and_not.c: Likewise.
30640         * tests/unictype/test-categ_byname.c: Likewise.
30641         * tests/unictype/test-categ_name.c: Likewise.
30642         * tests/unictype/test-categ_none.c: Likewise.
30643         * tests/unictype/test-categ_of.c: Likewise.
30644         * tests/unictype/test-categ_or.c: Likewise.
30645         * tests/unictype/test-categ_test_withtable.c: Likewise.
30646         * tests/unictype/test-combining.c: Likewise.
30647         * tests/unictype/test-decdigit.c: Likewise.
30648         * tests/unictype/test-digit.c: Likewise.
30649         * tests/unictype/test-mirror.c: Likewise.
30650         * tests/unictype/test-numeric.c: Likewise.
30651         * tests/unictype/test-pr_byname.c: Likewise.
30652         * tests/unictype/test-pr_test.c: Likewise.
30653         * tests/unictype/test-predicate-part1.h: Likewise.
30654         * tests/unictype/test-scripts.c: Likewise.
30655         * tests/unictype/test-sy_c_ident.c: Likewise.
30656         * tests/unictype/test-sy_java_ident.c: Likewise.
30657         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30658         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30659         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30660         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30661         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30662         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30663         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30664         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30665         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30666         * tests/uninorm/test-compat-decomposition.c: Likewise.
30667         * tests/uninorm/test-composition.c: Likewise.
30668         * tests/uninorm/test-decomposing-form.c: Likewise.
30669         * tests/uninorm/test-decomposition.c: Likewise.
30670         * tests/uninorm/test-u8-nfc.c: Likewise.
30671         * tests/uninorm/test-u8-nfd.c: Likewise.
30672         * tests/uninorm/test-u8-nfkc.c: Likewise.
30673         * tests/uninorm/test-u8-nfkd.c: Likewise.
30674         * tests/uninorm/test-u8-normcmp.c: Likewise.
30675         * tests/uninorm/test-u8-normcoll.c: Likewise.
30676         * tests/uninorm/test-u16-nfc.c: Likewise.
30677         * tests/uninorm/test-u16-nfd.c: Likewise.
30678         * tests/uninorm/test-u16-nfkc.c: Likewise.
30679         * tests/uninorm/test-u16-nfkd.c: Likewise.
30680         * tests/uninorm/test-u16-normcmp.c: Likewise.
30681         * tests/uninorm/test-u16-normcoll.c: Likewise.
30682         * tests/uninorm/test-u32-nfc.c: Likewise.
30683         * tests/uninorm/test-u32-nfd.c: Likewise.
30684         * tests/uninorm/test-u32-nfkc.c: Likewise.
30685         * tests/uninorm/test-u32-nfkd.c: Likewise.
30686         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30687         * tests/uninorm/test-u32-normcmp.c: Likewise.
30688         * tests/uninorm/test-u32-normcoll.c: Likewise.
30689         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30690         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30691         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30692         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30693         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30694         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30695         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30696         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30697         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30698         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30699         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30700         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30701         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30702         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30703         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30704         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30705         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30706         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30707         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30708         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30709         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30710         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30711         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30712         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30713         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30714         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30715         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30716         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30717         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30718         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30719         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30720         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30721         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30722         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30723         * tests/uniwidth/test-u8-width.c: Likewise.
30724         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30725         * tests/uniwidth/test-u16-width.c: Likewise.
30726         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30727         * tests/uniwidth/test-u32-width.c: Likewise.
30728         * tests/uniwidth/test-uc_width.c: Likewise.
30729         * tests/uniwidth/test-uc_width2.c: Likewise.
30730         * modules/acl-tests (Files): Add tests/macros.h.
30731         * modules/areadlink-tests (Files): Likewise.
30732         * modules/areadlink-with-size-tests (Files): Likewise.
30733         * modules/areadlinkat-tests (Files): Likewise.
30734         * modules/areadlinkat-with-size-tests (Files): Likewise.
30735         * modules/argmatch-tests (Files): Likewise.
30736         * modules/argv-iter-tests (Files): Likewise.
30737         * modules/array-list-tests (Files): Likewise.
30738         * modules/array-mergesort-tests (Files): Likewise.
30739         * modules/array-oset-tests (Files): Likewise.
30740         * modules/avltree-list-tests (Files): Likewise.
30741         * modules/avltree-oset-tests (Files): Likewise.
30742         * modules/avltreehash-list-tests (Files): Likewise.
30743         * modules/base64-tests (Files): Likewise.
30744         * modules/binary-io-tests (Files): Likewise.
30745         * modules/bitrotate-tests (Files): Likewise.
30746         * modules/btowc-tests (Files): Likewise.
30747         * modules/byteswap-tests (Files): Likewise.
30748         * modules/c-ctype-tests (Files): Likewise.
30749         * modules/c-stack-tests (Files): Likewise.
30750         * modules/c-strcase-tests (Files): Likewise.
30751         * modules/c-strcasestr-tests (Files): Likewise.
30752         * modules/c-strstr-tests (Files): Likewise.
30753         * modules/canonicalize-lgpl-tests (Files): Likewise.
30754         * modules/canonicalize-tests (Files): Likewise.
30755         * modules/carray-list-tests (Files): Likewise.
30756         * modules/ceilf-tests (Files): Likewise.
30757         * modules/ceill-tests (Files): Likewise.
30758         * modules/chown-tests (Files): Likewise.
30759         * modules/cloexec-tests (Files): Likewise.
30760         * modules/copy-file-tests (Files): Likewise.
30761         * modules/count-one-bits-tests (Files): Likewise.
30762         * modules/dprintf-posix-tests (Files): Likewise.
30763         * modules/dup2-tests (Files): Likewise.
30764         * modules/dup3-tests (Files): Likewise.
30765         * modules/duplocale-tests (Files): Likewise.
30766         * modules/fbufmode-tests (Files): Likewise.
30767         * modules/fchdir-tests (Files): Likewise.
30768         * modules/fcntl-safer-tests (Files): Likewise.
30769         * modules/fcntl-tests (Files): Likewise.
30770         * modules/fdopendir-tests (Files): Likewise.
30771         * modules/fdutimensat-tests (Files): Likewise.
30772         * modules/fflush-tests (Files): Likewise.
30773         * modules/filevercmp-tests (Files): Likewise.
30774         * modules/flock-tests (Files): Likewise.
30775         * modules/floorf-tests (Files): Likewise.
30776         * modules/floorl-tests (Files): Likewise.
30777         * modules/fnmatch-tests (Files): Likewise.
30778         * modules/fopen-safer-tests (Files): Likewise.
30779         * modules/fopen-tests (Files): Likewise.
30780         * modules/fpending-tests (Files): Likewise.
30781         * modules/fprintf-posix-tests (Files): Likewise.
30782         * modules/fpurge-tests (Files): Likewise.
30783         * modules/freadable-tests (Files): Likewise.
30784         * modules/freadahead-tests (Files): Likewise.
30785         * modules/freading-tests (Files): Likewise.
30786         * modules/freadptr-tests (Files): Likewise.
30787         * modules/freadseek-tests (Files): Likewise.
30788         * modules/freopen-tests (Files): Likewise.
30789         * modules/frexp-nolibm-tests (Files): Likewise.
30790         * modules/frexp-tests (Files): Likewise.
30791         * modules/frexpl-nolibm-tests (Files): Likewise.
30792         * modules/frexpl-tests (Files): Likewise.
30793         * modules/fseek-tests (Files): Likewise.
30794         * modules/fseeko-tests (Files): Likewise.
30795         * modules/fstrcmp-tests (Files): Likewise.
30796         * modules/fsync-tests (Files): Likewise.
30797         * modules/ftell-tests (Files): Likewise.
30798         * modules/ftello-tests (Files): Likewise.
30799         * modules/func-tests (Files): Likewise.
30800         * modules/futimens-tests (Files): Likewise.
30801         * modules/fwritable-tests (Files): Likewise.
30802         * modules/fwriting-tests (Files): Likewise.
30803         * modules/getcwd-tests (Files): Likewise.
30804         * modules/getdate-tests (Files): Likewise.
30805         * modules/getdelim-tests (Files): Likewise.
30806         * modules/getdtablesize-tests (Files): Likewise.
30807         * modules/getgroups-tests (Files): Likewise.
30808         * modules/getline-tests (Files): Likewise.
30809         * modules/getndelim2-tests (Files): Likewise.
30810         * modules/glob-tests (Files): Likewise.
30811         * modules/hash-tests (Files): Likewise.
30812         * modules/i-ring-tests (Files): Likewise.
30813         * modules/iconv-tests (Files): Likewise.
30814         * modules/iconv_open-utf-tests (Files): Likewise.
30815         * modules/idpriv-drop-tests (Files): Likewise.
30816         * modules/idpriv-droptemp-tests (Files): Likewise.
30817         * modules/inet_ntop-tests (Files): Likewise.
30818         * modules/inet_pton-tests (Files): Likewise.
30819         * modules/isblank-tests (Files): Likewise.
30820         * modules/isfinite-tests (Files): Likewise.
30821         * modules/isinf-tests (Files): Likewise.
30822         * modules/isnan-tests (Files): Likewise.
30823         * modules/isnand-nolibm-tests (Files): Likewise.
30824         * modules/isnand-tests (Files): Likewise.
30825         * modules/isnanf-nolibm-tests (Files): Likewise.
30826         * modules/isnanf-tests (Files): Likewise.
30827         * modules/isnanl-nolibm-tests (Files): Likewise.
30828         * modules/isnanl-tests (Files): Likewise.
30829         * modules/lchown-tests (Files): Likewise.
30830         * modules/ldexpl-tests (Files): Likewise.
30831         * modules/link-tests (Files): Likewise.
30832         * modules/linkat-tests (Files): Likewise.
30833         * modules/linked-list-tests (Files): Likewise.
30834         * modules/linkedhash-list-tests (Files): Likewise.
30835         * modules/localename-tests (Files): Likewise.
30836         * modules/lseek-tests (Files): Likewise.
30837         * modules/lstat-tests (Files): Likewise.
30838         * modules/mbmemcasecmp-tests (Files): Likewise.
30839         * modules/mbmemcasecoll-tests (Files): Likewise.
30840         * modules/mbrtowc-tests (Files): Likewise.
30841         * modules/mbscasecmp-tests (Files): Likewise.
30842         * modules/mbscasestr-tests (Files): Likewise.
30843         * modules/mbschr-tests (Files): Likewise.
30844         * modules/mbscspn-tests (Files): Likewise.
30845         * modules/mbsinit-tests (Files): Likewise.
30846         * modules/mbsncasecmp-tests (Files): Likewise.
30847         * modules/mbsnrtowcs-tests (Files): Likewise.
30848         * modules/mbspbrk-tests (Files): Likewise.
30849         * modules/mbspcasecmp-tests (Files): Likewise.
30850         * modules/mbsrchr-tests (Files): Likewise.
30851         * modules/mbsrtowcs-tests (Files): Likewise.
30852         * modules/mbsspn-tests (Files): Likewise.
30853         * modules/mbsstr-tests (Files): Likewise.
30854         * modules/memchr-tests (Files): Likewise.
30855         * modules/memchr2-tests (Files): Likewise.
30856         * modules/memcmp-tests (Files): Likewise.
30857         * modules/memmem-tests (Files): Likewise.
30858         * modules/memrchr-tests (Files): Likewise.
30859         * modules/mkdir-tests (Files): Likewise.
30860         * modules/mkfifo-tests (Files): Likewise.
30861         * modules/mkfifoat-tests (Files): Likewise.
30862         * modules/mknod-tests (Files): Likewise.
30863         * modules/nanosleep-tests (Files): Likewise.
30864         * modules/nl_langinfo-tests (Files): Likewise.
30865         * modules/obstack-printf-tests (Files): Likewise.
30866         * modules/open-tests (Files): Likewise.
30867         * modules/openat-tests (Files): Likewise.
30868         * modules/pipe-filter-gi-tests (Files): Likewise.
30869         * modules/pipe-filter-ii-tests (Files): Likewise.
30870         * modules/pipe2-tests (Files): Likewise.
30871         * modules/popen-safer-tests (Files): Likewise.
30872         * modules/popen-tests (Files): Likewise.
30873         * modules/posixtm-tests (Files): Likewise.
30874         * modules/pread-tests (Files): Likewise.
30875         * modules/printf-frexp-tests (Files): Likewise.
30876         * modules/printf-frexpl-tests (Files): Likewise.
30877         * modules/printf-posix-tests (Files): Likewise.
30878         * modules/priv-set-tests (Files): Likewise.
30879         * modules/quotearg-tests (Files): Likewise.
30880         * modules/random_r-tests (Files): Likewise.
30881         * modules/rawmemchr-tests (Files): Likewise.
30882         * modules/rbtree-list-tests (Files): Likewise.
30883         * modules/rbtree-oset-tests (Files): Likewise.
30884         * modules/rbtreehash-list-tests (Files): Likewise.
30885         * modules/readlink-tests (Files): Likewise.
30886         * modules/remove-tests (Files): Likewise.
30887         * modules/rename-tests (Files): Likewise.
30888         * modules/renameat-tests (Files): Likewise.
30889         * modules/rmdir-tests (Files): Likewise.
30890         * modules/round-tests (Files): Likewise.
30891         * modules/roundf-tests (Files): Likewise.
30892         * modules/roundl-tests (Files): Likewise.
30893         * modules/safe-alloc-tests (Files): Likewise.
30894         * modules/setenv-tests (Files): Likewise.
30895         * modules/sigaction-tests (Files): Likewise.
30896         * modules/signbit-tests (Files): Likewise.
30897         * modules/sleep-tests (Files): Likewise.
30898         * modules/snprintf-posix-tests (Files): Likewise.
30899         * modules/snprintf-tests (Files): Likewise.
30900         * modules/sprintf-posix-tests (Files): Likewise.
30901         * modules/stat-tests (Files): Likewise.
30902         * modules/stat-time-tests (Files): Likewise.
30903         * modules/strcasestr-tests (Files): Likewise.
30904         * modules/strchrnul-tests (Files): Likewise.
30905         * modules/strerror-tests (Files): Likewise.
30906         * modules/striconv-tests (Files): Likewise.
30907         * modules/striconveh-tests (Files): Likewise.
30908         * modules/striconveha-tests (Files): Likewise.
30909         * modules/strsignal-tests (Files): Likewise.
30910         * modules/strstr-tests (Files): Likewise.
30911         * modules/strtod-tests (Files): Likewise.
30912         * modules/strverscmp-tests (Files): Likewise.
30913         * modules/symlink-tests (Files): Likewise.
30914         * modules/symlinkat-tests (Files): Likewise.
30915         * modules/trunc-tests (Files): Likewise.
30916         * modules/truncf-tests (Files): Likewise.
30917         * modules/truncl-tests (Files): Likewise.
30918         * modules/uname-tests (Files): Likewise.
30919         * modules/unicase/cased-tests (Files): Likewise.
30920         * modules/unicase/ignorable-tests (Files): Likewise.
30921         * modules/unicase/locale-language-tests (Files): Likewise.
30922         * modules/unicase/tolower-tests (Files): Likewise.
30923         * modules/unicase/totitle-tests (Files): Likewise.
30924         * modules/unicase/toupper-tests (Files): Likewise.
30925         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30926         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30927         * modules/unicase/u8-casefold-tests (Files): Likewise.
30928         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30929         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30930         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30931         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30932         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30933         * modules/unicase/u8-tolower-tests (Files): Likewise.
30934         * modules/unicase/u8-totitle-tests (Files): Likewise.
30935         * modules/unicase/u8-toupper-tests (Files): Likewise.
30936         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30937         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30938         * modules/unicase/u16-casefold-tests (Files): Likewise.
30939         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30940         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30941         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30942         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30943         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30944         * modules/unicase/u16-tolower-tests (Files): Likewise.
30945         * modules/unicase/u16-totitle-tests (Files): Likewise.
30946         * modules/unicase/u16-toupper-tests (Files): Likewise.
30947         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30948         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30949         * modules/unicase/u32-casefold-tests (Files): Likewise.
30950         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30951         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30952         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30953         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30954         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30955         * modules/unicase/u32-tolower-tests (Files): Likewise.
30956         * modules/unicase/u32-totitle-tests (Files): Likewise.
30957         * modules/unicase/u32-toupper-tests (Files): Likewise.
30958         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30959         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30960         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30961         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30962         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30963         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30964         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30965         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30966         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30967         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30968         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30969         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30970         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30971         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30972         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30973         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30974         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30975         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30976         * modules/unictype/block-list-tests (Files): Likewise.
30977         * modules/unictype/block-of-tests (Files): Likewise.
30978         * modules/unictype/block-test-tests (Files): Likewise.
30979         * modules/unictype/category-C-tests (Files): Likewise.
30980         * modules/unictype/category-Cc-tests (Files): Likewise.
30981         * modules/unictype/category-Cf-tests (Files): Likewise.
30982         * modules/unictype/category-Cn-tests (Files): Likewise.
30983         * modules/unictype/category-Co-tests (Files): Likewise.
30984         * modules/unictype/category-Cs-tests (Files): Likewise.
30985         * modules/unictype/category-L-tests (Files): Likewise.
30986         * modules/unictype/category-Ll-tests (Files): Likewise.
30987         * modules/unictype/category-Lm-tests (Files): Likewise.
30988         * modules/unictype/category-Lo-tests (Files): Likewise.
30989         * modules/unictype/category-Lt-tests (Files): Likewise.
30990         * modules/unictype/category-Lu-tests (Files): Likewise.
30991         * modules/unictype/category-M-tests (Files): Likewise.
30992         * modules/unictype/category-Mc-tests (Files): Likewise.
30993         * modules/unictype/category-Me-tests (Files): Likewise.
30994         * modules/unictype/category-Mn-tests (Files): Likewise.
30995         * modules/unictype/category-N-tests (Files): Likewise.
30996         * modules/unictype/category-Nd-tests (Files): Likewise.
30997         * modules/unictype/category-Nl-tests (Files): Likewise.
30998         * modules/unictype/category-No-tests (Files): Likewise.
30999         * modules/unictype/category-P-tests (Files): Likewise.
31000         * modules/unictype/category-Pc-tests (Files): Likewise.
31001         * modules/unictype/category-Pd-tests (Files): Likewise.
31002         * modules/unictype/category-Pe-tests (Files): Likewise.
31003         * modules/unictype/category-Pf-tests (Files): Likewise.
31004         * modules/unictype/category-Pi-tests (Files): Likewise.
31005         * modules/unictype/category-Po-tests (Files): Likewise.
31006         * modules/unictype/category-Ps-tests (Files): Likewise.
31007         * modules/unictype/category-S-tests (Files): Likewise.
31008         * modules/unictype/category-Sc-tests (Files): Likewise.
31009         * modules/unictype/category-Sk-tests (Files): Likewise.
31010         * modules/unictype/category-Sm-tests (Files): Likewise.
31011         * modules/unictype/category-So-tests (Files): Likewise.
31012         * modules/unictype/category-Z-tests (Files): Likewise.
31013         * modules/unictype/category-Zl-tests (Files): Likewise.
31014         * modules/unictype/category-Zp-tests (Files): Likewise.
31015         * modules/unictype/category-Zs-tests (Files): Likewise.
31016         * modules/unictype/category-and-not-tests (Files): Likewise.
31017         * modules/unictype/category-and-tests (Files): Likewise.
31018         * modules/unictype/category-byname-tests (Files): Likewise.
31019         * modules/unictype/category-name-tests (Files): Likewise.
31020         * modules/unictype/category-none-tests (Files): Likewise.
31021         * modules/unictype/category-of-tests (Files): Likewise.
31022         * modules/unictype/category-or-tests (Files): Likewise.
31023         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31024         * modules/unictype/combining-class-tests (Files): Likewise.
31025         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31026         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31027         * modules/unictype/ctype-blank-tests (Files): Likewise.
31028         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31029         * modules/unictype/ctype-digit-tests (Files): Likewise.
31030         * modules/unictype/ctype-graph-tests (Files): Likewise.
31031         * modules/unictype/ctype-lower-tests (Files): Likewise.
31032         * modules/unictype/ctype-print-tests (Files): Likewise.
31033         * modules/unictype/ctype-punct-tests (Files): Likewise.
31034         * modules/unictype/ctype-space-tests (Files): Likewise.
31035         * modules/unictype/ctype-upper-tests (Files): Likewise.
31036         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31037         * modules/unictype/decimal-digit-tests (Files): Likewise.
31038         * modules/unictype/digit-tests (Files): Likewise.
31039         * modules/unictype/mirror-tests (Files): Likewise.
31040         * modules/unictype/numeric-tests (Files): Likewise.
31041         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31042         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31043         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31044         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31045         Likewise.
31046         * modules/unictype/property-bidi-block-separator-tests (Files):
31047         Likewise.
31048         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31049         Likewise.
31050         * modules/unictype/property-bidi-common-separator-tests (Files):
31051         Likewise.
31052         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31053         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31054         Likewise.
31055         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31056         Likewise.
31057         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31058         Likewise.
31059         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31060         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31061         Likewise.
31062         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31063         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31064         Likewise.
31065         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31066         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31067         * modules/unictype/property-bidi-segment-separator-tests (Files):
31068         Likewise.
31069         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31070         * modules/unictype/property-byname-tests (Files): Likewise.
31071         * modules/unictype/property-combining-tests (Files): Likewise.
31072         * modules/unictype/property-composite-tests (Files): Likewise.
31073         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31074         * modules/unictype/property-dash-tests (Files): Likewise.
31075         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31076         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31077         Likewise.
31078         * modules/unictype/property-deprecated-tests (Files): Likewise.
31079         * modules/unictype/property-diacritic-tests (Files): Likewise.
31080         * modules/unictype/property-extender-tests (Files): Likewise.
31081         * modules/unictype/property-format-control-tests (Files): Likewise.
31082         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31083         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31084         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31085         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31086         * modules/unictype/property-hyphen-tests (Files): Likewise.
31087         * modules/unictype/property-id-continue-tests (Files): Likewise.
31088         * modules/unictype/property-id-start-tests (Files): Likewise.
31089         * modules/unictype/property-ideographic-tests (Files): Likewise.
31090         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31091         * modules/unictype/property-ids-trinary-operator-tests (Files):
31092         Likewise.
31093         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31094         * modules/unictype/property-iso-control-tests (Files): Likewise.
31095         * modules/unictype/property-join-control-tests (Files): Likewise.
31096         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31097         * modules/unictype/property-line-separator-tests (Files): Likewise.
31098         * modules/unictype/property-logical-order-exception-tests (Files):
31099         Likewise.
31100         * modules/unictype/property-lowercase-tests (Files): Likewise.
31101         * modules/unictype/property-math-tests (Files): Likewise.
31102         * modules/unictype/property-non-break-tests (Files): Likewise.
31103         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31104         * modules/unictype/property-numeric-tests (Files): Likewise.
31105         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31106         * modules/unictype/property-other-default-ignorable-code-point-tests
31107         (Files): Likewise.
31108         * modules/unictype/property-other-grapheme-extend-tests (Files):
31109         Likewise.
31110         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31111         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31112         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31113         * modules/unictype/property-other-math-tests (Files): Likewise.
31114         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31115         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31116         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31117         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31118         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31119         * modules/unictype/property-private-use-tests (Files): Likewise.
31120         * modules/unictype/property-punctuation-tests (Files): Likewise.
31121         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31122         * modules/unictype/property-radical-tests (Files): Likewise.
31123         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31124         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31125         * modules/unictype/property-space-tests (Files): Likewise.
31126         * modules/unictype/property-terminal-punctuation-tests (Files):
31127         Likewise.
31128         * modules/unictype/property-test-tests (Files): Likewise.
31129         * modules/unictype/property-titlecase-tests (Files): Likewise.
31130         * modules/unictype/property-unassigned-code-value-tests (Files):
31131         Likewise.
31132         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31133         * modules/unictype/property-uppercase-tests (Files): Likewise.
31134         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31135         * modules/unictype/property-white-space-tests (Files): Likewise.
31136         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31137         * modules/unictype/property-xid-start-tests (Files): Likewise.
31138         * modules/unictype/property-zero-width-tests (Files): Likewise.
31139         * modules/unictype/scripts-tests (Files): Likewise.
31140         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31141         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31142         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31143         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31144         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31145         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31146         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31147         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31148         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31149         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31150         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31151         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31152         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31153         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31154         * modules/uninorm/composition-tests (Files): Likewise.
31155         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31156         * modules/uninorm/decomposition-tests (Files): Likewise.
31157         * modules/uninorm/filter-tests (Files): Likewise.
31158         * modules/uninorm/nfc-tests (Files): Likewise.
31159         * modules/uninorm/nfd-tests (Files): Likewise.
31160         * modules/uninorm/nfkc-tests (Files): Likewise.
31161         * modules/uninorm/nfkd-tests (Files): Likewise.
31162         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31163         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31164         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31165         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31166         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31167         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31168         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31169         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31170         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31171         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31172         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31173         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31174         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31175         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31176         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31177         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31178         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31179         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31180         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31181         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31182         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31183         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31184         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31185         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31186         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31187         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31188         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31189         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31190         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31191         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31192         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31193         * modules/uniwidth/u8-width-tests (Files): Likewise.
31194         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31195         * modules/uniwidth/u16-width-tests (Files): Likewise.
31196         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31197         * modules/uniwidth/u32-width-tests (Files): Likewise.
31198         * modules/uniwidth/width-tests (Files): Likewise.
31199         * modules/unlink-tests (Files): Likewise.
31200         * modules/unsetenv-tests (Files): Likewise.
31201         * modules/usleep-tests (Files): Likewise.
31202         * modules/utimens-tests (Files): Likewise.
31203         * modules/utimensat-tests (Files): Likewise.
31204         * modules/vasnprintf-posix-tests (Files): Likewise.
31205         * modules/vasnprintf-tests (Files): Likewise.
31206         * modules/vasprintf-posix-tests (Files): Likewise.
31207         * modules/vasprintf-tests (Files): Likewise.
31208         * modules/vdprintf-posix-tests (Files): Likewise.
31209         * modules/vfprintf-posix-tests (Files): Likewise.
31210         * modules/vprintf-posix-tests (Files): Likewise.
31211         * modules/vsnprintf-posix-tests (Files): Likewise.
31212         * modules/vsnprintf-tests (Files): Likewise.
31213         * modules/vsprintf-posix-tests (Files): Likewise.
31214         * modules/wcrtomb-tests (Files): Likewise.
31215         * modules/wcsnrtombs-tests (Files): Likewise.
31216         * modules/wcsrtombs-tests (Files): Likewise.
31217         * modules/wctype-tests (Files): Likewise.
31218         * modules/wcwidth-tests (Files): Likewise.
31219         * modules/xmemdup0-tests (Files): Likewise.
31220         * modules/xprintf-posix-tests (Files): Likewise.
31221         * modules/xvasprintf-tests (Files): Likewise.
31222
31223 2009-12-24  Eric Blake  <ebb9@byu.net>
31224
31225         test-nanosleep: fix typo
31226         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31227         patch.
31228         Reported by Bruno Haible.
31229
31230 2009-12-24  Bruno Haible  <bruno@clisp.org>
31231
31232         Reduce namespace pollution on glibc systems.
31233         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31234         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31235         systems.
31236         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31237         <getopt.h> on glibc systems.
31238         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31239         systems.
31240         * lib/fcntl.c: Include <unistd.h> here instead.
31241
31242 2009-12-24  Bruno Haible  <bruno@clisp.org>
31243
31244         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31245
31246 2009-12-24  Eric Blake  <ebb9@byu.net>
31247
31248         tests: add signature checks
31249         * tests/signature.h (SIGNATURE_CHECK): New file.
31250         * modules/atexit-tests (Files): Use it.
31251         * modules/btowc-tests (Files): Likewise.
31252         * modules/canonicalize-lgpl-tests (Files): Likewise.
31253         * modules/ceilf-tests (Files): Likewise.
31254         * modules/ceill-tests (Files): Likewise.
31255         * modules/chown-tests (Files): Likewise.
31256         * modules/dprintf-posix-tests (Files): Likewise.
31257         * modules/dup2-tests (Files): Likewise.
31258         * modules/dup3-tests (Files): Likewise.
31259         * modules/duplocale-tests (Files): Likewise.
31260         * modules/fchdir-tests (Files): Likewise.
31261         * modules/fcntl-tests (Files): Likewise.
31262         * modules/fdopendir-tests (Files): Likewise.
31263         * modules/fflush-tests (Files): Likewise.
31264         * modules/flock-tests (Files): Likewise.
31265         * modules/floorf-tests (Files): Likewise.
31266         * modules/floorl-tests (Files): Likewise.
31267         * modules/fnmatch-tests (Files): Likewise.
31268         * modules/fopen-tests (Files): Likewise.
31269         * modules/fprintf-posix-tests (Files): Likewise.
31270         * modules/freopen-tests (Files): Likewise.
31271         * modules/frexp-nolibm-tests (Files): Likewise.
31272         * modules/frexp-tests (Files): Likewise.
31273         * modules/frexpl-nolibm-tests (Files): Likewise.
31274         * modules/frexpl-tests (Files): Likewise.
31275         * modules/fseek-tests (Files): Likewise.
31276         * modules/fseeko-tests (Files): Likewise.
31277         * modules/fsync-tests (Files): Likewise.
31278         * modules/ftell-tests (Files): Likewise.
31279         * modules/ftello-tests (Files): Likewise.
31280         * modules/futimens-tests (Files): Likewise.
31281         * modules/getaddrinfo-tests (Files): Likewise.
31282         * modules/getcwd-tests (Files): Likewise.
31283         * modules/getdelim-tests (Files): Likewise.
31284         * modules/getdtablesize-tests (Files): Likewise.
31285         * modules/getgroups-tests (Files): Likewise.
31286         * modules/gethostname-tests (Files): Likewise.
31287         * modules/getline-tests (Files): Likewise.
31288         * modules/getopt-posix-tests (Files): Likewise.
31289         * modules/gettimeofday-tests (Files): Likewise.
31290         * modules/glob-tests (Files): Likewise.
31291         * modules/iconv-tests (Files): Likewise.
31292         * modules/inet_ntop-tests (Files): Likewise.
31293         * modules/inet_pton-tests (Files): Likewise.
31294         * modules/isblank-tests (Files): Likewise.
31295         * modules/lchown-tests (Files): Likewise.
31296         * modules/ldexpl-tests (Files): Likewise.
31297         * modules/link-tests (Files): Likewise.
31298         * modules/linkat-tests (Files): Likewise.
31299         * modules/lseek-tests (Files): Likewise.
31300         * modules/lstat-tests (Files): Likewise.
31301         * modules/mbrtowc-tests (Files): Likewise.
31302         * modules/mbsinit-tests (Files): Likewise.
31303         * modules/mbsnrtowcs-tests (Files): Likewise.
31304         * modules/mbsrtowcs-tests (Files): Likewise.
31305         * modules/memchr-tests (Files): Likewise.
31306         * modules/memcmp-tests (Files): Likewise.
31307         * modules/memmem-tests (Files): Likewise.
31308         * modules/memrchr-tests (Files): Likewise.
31309         * modules/mkdir-tests (Files): Likewise.
31310         * modules/mkfifo-tests (Files): Likewise.
31311         * modules/mkfifoat-tests (Files): Likewise.
31312         * modules/mknod-tests (Files): Likewise.
31313         * modules/nanosleep-tests (Files): Likewise.
31314         * modules/nl_langinfo-tests (Files): Likewise.
31315         * modules/obstack-printf-tests (Files): Likewise.
31316         * modules/open-tests (Files): Likewise.
31317         * modules/openat-tests (Files): Likewise.
31318         * modules/perror-tests (Files): Likewise.
31319         * modules/pipe2-tests (Files): Likewise.
31320         * modules/poll-tests (Files): Likewise.
31321         * modules/popen-tests (Files): Likewise.
31322         * modules/posix_spawn-tests (Files): Likewise.
31323         * modules/posix_spawnp-tests (Files): Likewise.
31324         * modules/pread-tests (Files): Likewise.
31325         * modules/printf-posix-tests (Files): Likewise.
31326         * modules/pty-tests (Files): Likewise.
31327         * modules/random_r-tests (Files): Likewise.
31328         * modules/rawmemchr-tests (Files): Likewise.
31329         * modules/readlink-tests (Files): Likewise.
31330         * modules/remove-tests (Files): Likewise.
31331         * modules/rename-tests (Files): Likewise.
31332         * modules/renameat-tests (Files): Likewise.
31333         * modules/rmdir-tests (Files): Likewise.
31334         * modules/round-tests (Files): Likewise.
31335         * modules/roundf-tests (Files): Likewise.
31336         * modules/roundl-tests (Files): Likewise.
31337         * modules/select-tests (Files): Likewise.
31338         * modules/setenv-tests (Files): Likewise.
31339         * modules/sigaction-tests (Files): Likewise.
31340         * modules/sleep-tests (Files): Likewise.
31341         * modules/snprintf-posix-tests (Files): Likewise.
31342         * modules/snprintf-tests (Files): Likewise.
31343         * modules/sprintf-posix-tests (Files): Likewise.
31344         * modules/stat-tests (Files): Likewise.
31345         * modules/strcasestr-tests (Files): Likewise.
31346         * modules/strchrnul-tests (Files): Likewise.
31347         * modules/strerror-tests (Files): Likewise.
31348         * modules/strsignal-tests (Files): Likewise.
31349         * modules/strstr-tests (Files): Likewise.
31350         * modules/strtod-tests (Files): Likewise.
31351         * modules/strverscmp-tests (Files): Likewise.
31352         * modules/symlink-tests (Files): Likewise.
31353         * modules/symlinkat-tests (Files): Likewise.
31354         * modules/times-tests (Files): Likewise.
31355         * modules/trunc-tests (Files): Likewise.
31356         * modules/truncf-tests (Files): Likewise.
31357         * modules/truncl-tests (Files): Likewise.
31358         * modules/tsearch-tests (Files): Likewise.
31359         * modules/uname-tests (Files): Likewise.
31360         * modules/unlink-tests (Files): Likewise.
31361         * modules/unsetenv-tests (Files): Likewise.
31362         * modules/usleep-tests (Files): Likewise.
31363         * modules/utimensat-tests (Files): Likewise.
31364         * modules/vasprintf-tests (Files): Likewise.
31365         * modules/vdprintf-posix-tests (Files): Likewise.
31366         * modules/vfprintf-posix-tests (Files): Likewise.
31367         * modules/vprintf-posix-tests (Files): Likewise.
31368         * modules/vsnprintf-posix-tests (Files): Likewise.
31369         * modules/vsnprintf-tests (Files): Likewise.
31370         * modules/vsprintf-posix-tests (Files): Likewise.
31371         * modules/wcrtomb-tests (Files): Likewise.
31372         * modules/wcsnrtombs-tests (Files): Likewise.
31373         * modules/wcsrtombs-tests (Files): Likewise.
31374         * modules/wcwidth-tests (Files): Likewise.
31375         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31376         * tests/test-isinf.c (isinf): Likewise.
31377         * tests/test-isnan.c (isnan): Likewise.
31378         * tests/test-signbit.c (signbit): Likewise.
31379         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31380         declaration, either as macro or with correct signature.
31381         (select): Ensure function under test is declared with correct
31382         signature in correct header.
31383         * tests/test-atexit.c (atexit): Likewise.
31384         * tests/test-btowc.c (btowc): Likewise.
31385         * tests/test-canonicalize-lgpl.c (realpath)
31386         (canonicalize_file_name): Likewise.
31387         * tests/test-ceilf1.c (ceilf): Likewise.
31388         * tests/test-ceill.c (ceill): Likewise.
31389         * tests/test-chown.c (chown): Likewise.
31390         * tests/test-dprintf-posix.c (dprintf): Likewise.
31391         * tests/test-dup2.c (dup2): Likewise.
31392         * tests/test-dup3.c (dup3): Likewise.
31393         * tests/test-duplocale.c (duplocale): Likewise.
31394         * tests/test-fchdir.c (fchdir): Likewise.
31395         * tests/test-fchownat.c (fchownat): Likewise.
31396         * tests/test-fcntl.c (fcntl): Likewise.
31397         * tests/test-fdopendir.c (fdopendir): Likewise.
31398         * tests/test-fflush.c (fflush): Likewise.
31399         * tests/test-flock.c (flock): Likewise.
31400         * tests/test-floorf1.c (floorf): Likewise.
31401         * tests/test-floorl.c (floorl): Likewise.
31402         * tests/test-fnmatch.c (fnmatch): Likewise.
31403         * tests/test-fopen.c (fopen): Likewise.
31404         * tests/test-fprintf-posix.c (fprintf): Likewise.
31405         * tests/test-freopen.c (freopen): Likewise.
31406         * tests/test-frexp.c (frexp): Likewise.
31407         * tests/test-frexpl.c (frexpl): Likewise.
31408         * tests/test-fseek.c (fseek): Likewise.
31409         * tests/test-fseeko.c (fseeko): Likewise.
31410         * tests/test-fstatat.c (fstatat): Likewise.
31411         * tests/test-fsync.c (fsync): Likewise.
31412         * tests/test-ftell.c (ftell): Likewise.
31413         * tests/test-ftello.c (ftello): Likewise.
31414         * tests/test-futimens.c (futimens): Likewise.
31415         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31416         (gai_strerror): Likewise.
31417         * tests/test-getcwd.c (getcwd): Likewise.
31418         * tests/test-getdelim.c (getdelim): Likewise.
31419         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31420         * tests/test-getgroups.c (getgroups): Likewise.
31421         * tests/test-gethostname.c (gethostname): Likewise.
31422         * tests/test-getline.c (getline): Likewise.
31423         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31424         Likewise.
31425         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31426         * tests/test-glob.c (glob, globfree): Likewise.
31427         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31428         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31429         * tests/test-inet_pton.c (inet_pton): Likewise.
31430         * tests/test-isblank.c (isblank): Likewise.
31431         * tests/test-lchown.c (lchown): Likewise.
31432         * tests/test-ldexpl.c (ldexpl): Likewise.
31433         * tests/test-link.c (link): Likewise.
31434         * tests/test-linkat.c (linkat): Likewise.
31435         * tests/test-lseek.c (lseek): Likewise.
31436         * tests/test-lstat.c (lstat): Likewise.
31437         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31438         * tests/test-mbsinit.c (mbsinit): Likewise.
31439         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31440         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31441         * tests/test-memchr.c (memchr): Likewise.
31442         * tests/test-memcmp.c (memcmp): Likewise.
31443         * tests/test-memmem.c (memmem): Likewise.
31444         * tests/test-memrchr.c (memrchr): Likewise.
31445         * tests/test-mkdir.c (mkdir): Likewise.
31446         * tests/test-mkdirat.c (mkdirat): Likewise.
31447         * tests/test-mkfifo.c (mkfifo): Likewise.
31448         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31449         * tests/test-mknod.c (mknod): Likewise.
31450         * tests/test-nanosleep.c (nanosleep): Likewise.
31451         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31452         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31453         Likewise.
31454         * tests/test-open.c (open): Likewise.
31455         * tests/test-openat.c (openat): Likewise.
31456         * tests/test-perror.c (perror): Likewise.
31457         * tests/test-pipe2.c (pipe2): Likewise.
31458         * tests/test-poll.c (poll): Likewise.
31459         * tests/test-popen.c (popen, pclose): Likewise.
31460         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31461         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31462         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31463         (posix_spawn_file_actions_destroy)
31464         (posix_spawn_file_actions_addclose)
31465         (posix_spawn_file_actions_addopen)
31466         (posix_spawn_file_actions_adddup2): Likewise.
31467         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31468         * tests/test-pread.c (pread): Likewise.
31469         * tests/test-printf-posix.c (printf): Likewise.
31470         * tests/test-pty.c (openpty, forkpty): Likewise.
31471         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31472         (random_r): Likewise.
31473         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31474         * tests/test-readlink.c (readlink): Likewise.
31475         * tests/test-remove.c (remove): Likewise.
31476         * tests/test-rename.c (rename): Likewise.
31477         * tests/test-renameat.c (renameat): Likewise.
31478         * tests/test-rmdir.c (rmdir): Likewise.
31479         * tests/test-round1.c (round): Likewise.
31480         * tests/test-roundf1.c (roundf): Likewise.
31481         * tests/test-roundl.c (roundl): Likewise.
31482         * tests/test-setenv.c (setenv): Likewise.
31483         * tests/test-sigaction.c (sigaction): Likewise.
31484         * tests/test-sleep.c (sleep): Likewise.
31485         * tests/test-snprintf.c (snprintf): Likewise.
31486         * tests/test-sprintf-posix.c (sprintf): Likewise.
31487         * tests/test-stat.c (stat): Likewise.
31488         * tests/test-stpncpy.c (stpncpy): Likewise.
31489         * tests/test-strcasestr.c (strcasestr): Likewise.
31490         * tests/test-strchrnul.c (strchrnul): Likewise.
31491         * tests/test-strerror.c (strerror): Likewise.
31492         * tests/test-strsignal.c (strsignal): Likewise.
31493         * tests/test-strstr.c (strstr): Likewise.
31494         * tests/test-strtod.c (strtod): Likewise.
31495         * tests/test-strverscmp.c (strverscmp): Likewise.
31496         * tests/test-symlink.c (symlink): Likewise.
31497         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31498         * tests/test-times.c (times): Likewise.
31499         * tests/test-trunc1.c (trunc): Likewise.
31500         * tests/test-truncf1.c (truncf): Likewise.
31501         * tests/test-truncl.c (truncl): Likewise.
31502         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31503         Likewise.
31504         * tests/test-uname.c (uname): Likewise.
31505         * tests/test-unlink.c (unlink): Likewise.
31506         * tests/test-unlinkat.c (unlinkat): Likewise.
31507         * tests/test-unsetenv.c (unsetenv): Likewise.
31508         * tests/test-usleep.c (usleep): Likewise.
31509         * tests/test-utimensat.c (utimensat): Likewise.
31510         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31511         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31512         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31513         * tests/test-vprintf-posix.c (vprintf): Likewise.
31514         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31515         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31516         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31517         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31518         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31519         * tests/test-wcwidth.c (wcwidth): Likewise.
31520
31521         build: pull in conditional headers during GNULIB_POSIXCHECK
31522         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31523         definitions from any conditionally-included headers.
31524         * lib/stdlib.in.h (includes): Likewise.
31525         * lib/unistd.in.h (includes): Likewise.
31526
31527 2009-12-24  Bruno Haible  <bruno@clisp.org>
31528
31529         * tests/test-argv-iter.c: Include header file being tested immediately
31530         after config.h.
31531         * tests/test-base64.c: Likewise.
31532         * tests/test-flock.c: Likewise.
31533         * tests/test-fsync.c: Likewise.
31534         * tests/test-getdate.c: Likewise.
31535         * tests/test-getndelim2.c: Likewise.
31536         * tests/test-isfinite.c: Likewise.
31537         * tests/test-isinf.c: Likewise.
31538         * tests/test-strerror.c: Likewise.
31539         * tests/test-strsignal.c: Likewise.
31540
31541 2009-12-23  Eric Blake  <ebb9@byu.net>
31542
31543         unistd: work around cygwin bug
31544         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31545         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31546         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31547
31548 2009-12-23  Bruno Haible  <bruno@clisp.org>
31549
31550         localename: More tests.
31551         * tests/test-localename.c (SIZEOF): New macro.
31552         (categories): New variable.
31553         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31554         test_locale_name_default): Add test w.r.t. thread locale.
31555         (test_locale_name_thread): New function.
31556         (main): Invoke it.
31557
31558         localename: Make aware of thread locale.
31559         * lib/localename.h (gl_locale_name_thread): New declaration.
31560         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31561         behaviour with respect to thread locale.
31562         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31563         <langinfo.h>, glthread/lock.h.
31564         (SIZE_BITS): New macro.
31565         (string_hash): New function.
31566         (struct hash_node): New type.
31567         (HASH_TABLE_SIZE): New macro.
31568         (struniq_hash_table, struniq_lock): New variables.
31569         (struniq): New function.
31570         (gl_locale_name_thread): New function.
31571         (gl_locale_name): Invoke it.
31572         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31573         * modules/localename (Depends-on): Add lock.
31574         Reported by Mike Gran <spk121@yahoo.com>.
31575
31576 2009-12-23  Eric Blake  <ebb9@byu.net>
31577
31578         va-args: new module
31579         * modules/va-args: New file.
31580         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31581         * MODULES.html.sh (Core language properties): Mention it.
31582
31583         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31584         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31585         named alias for __attribute__((__unused__)).
31586         * lib/chown.c: Update client.
31587         * lib/fchmodat.c: Likewise.
31588         * lib/fts.c: Likewise.
31589         * lib/getdate.y: Likewise.
31590         * lib/getgroups.c: Likewise.
31591         * lib/getopt.c: Likewise.
31592         * lib/getugroups.c: Likewise.
31593         * lib/mkdir.c: Likewise.
31594         * lib/mkfifo.c: Likewise.
31595         * lib/mkfifoat.c: Likewise.
31596         * lib/mknod.c: Likewise.
31597         * lib/mknodat.c: Likewise.
31598         * lib/readlink.c: Likewise.
31599         * lib/se-context.in.h: Likewise.
31600         * lib/se-selinux.in.h: Likewise.
31601         * lib/sockets.c: Likewise.
31602         * lib/symlink.c: Likewise.
31603         * lib/symlinkat.c: Likewise.
31604         * lib/unicodeio.c: Likewise.
31605         * lib/unistr.h: Likewise.
31606         * tests/test-areadlink.c: Likewise.
31607         * tests/test-areadlinkat.c: Likewise.
31608         * tests/test-filenamecat.c: Likewise.
31609         * tests/test-fseeko.c: Likewise.
31610         * tests/test-ftello.c: Likewise.
31611         * tests/test-getdate.c: Likewise.
31612         * tests/test-getgroups.c: Likewise.
31613         * tests/test-gethostname.c: Likewise.
31614         * tests/test-quotearg.c: Likewise.
31615         * tests/test-version-etc.c: Likewise.
31616         * tests/test-xalloc-die.c: Likewise.
31617         * tests/test-xfprintf-posix.c: Likewise.
31618         * tests/test-xprintf-posix.c: Likewise.
31619         * tests/test-xvasprintf.c: Likewise.
31620
31621         tests: avoid compiler warnings
31622         * tests/test-fcntl.c (main): Delete unused parameters.
31623         * tests/test-freopen-safer.c (main): Likewise.
31624         * tests/test-xalloc-die.c (main): Mark unused parameters.
31625         * tests/test-fseeko.c (main): Likewise.
31626         * tests/test-ftello.c (main): Likewise.
31627         * tests/test-nanosleep.c (main): Avoid declaration warning.
31628         * tests/test-sleep.c (main): Likewise.
31629         * tests/test-unsetenv.c (main): Silence warning about string
31630         literal.
31631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31632
31633 2009-12-23  Bruno Haible  <bruno@clisp.org>
31634
31635         * tests/test-localename.c (test_locale_name): New function, extracted
31636         from main. Also test mixed situations.
31637         (test_locale_name_posix, test_locale_name_environ,
31638         test_locale_name_default): New functions.
31639         (main): Invoke them all.
31640         * modules/localename-tests (configure.ac): Test for newlocale.
31641
31642 2009-12-23  Bruno Haible  <bruno@clisp.org>
31643
31644         unistd: Ensure getcwd gets declared before being overridden.
31645         * lib/unistd.in.h: Conditionally include <io.h>.
31646
31647 2009-12-22  Bruno Haible  <bruno@clisp.org>
31648
31649         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31650         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31651         (gl_WCHAR_H): Invoke it.
31652         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31653         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31654         Reported by Karl Berry <karl@freefriends.org>.
31655
31656 2009-12-22  Eric Blake  <ebb9@byu.net>
31657
31658         math, unistd: avoid redundant includes
31659         * lib/math.in.h (isnan): No need to re-include <math.h>.
31660         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31661
31662         getsubopt: work around cygwin bug
31663         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31664         avoid conflicting with system getsubopt.
31665         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31666         bug.
31667
31668         getopt: synchronize from glibc
31669         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31670         parameter order.  Adjust all callers.
31671         (_getopt_internal_r, main): Adjust quoting in error messages.
31672         Drop considerations for outdated POSIX 1003.2 error message.
31673         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31674         callers.
31675         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31676
31677         test-getopt: test stderr behavior
31678         * modules/getopt-posix-tests (Depends-on): Add dup2.
31679         * tests/test-getopt.c (ASSERT): Avoid stderr.
31680         (main): Move stderr to a temporary file.
31681         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31682         Instead, add parameter to inform caller if output occurred.
31683         (test_getopt): Adjust all existing tests to expect silence, and
31684         add new tests of leading ":".
31685         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31686         glibc shortcomings with leading "-:" or "+:" in optstring.
31687         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31688         Likewise.
31689         * doc/posix-functions/getopt.texi (getopt): Likewise.
31690
31691         test-getopt: enhance test
31692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31693         supports optind=0.
31694         * tests/test-getopt.c (OPTIND_MIN): Move...
31695         * tests/test-getopt.h (OPTIND_MIN): ...here.
31696         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31697         Require that optind=0 works, since modern BSD supports it in
31698         addition to optreset, and since coreutils expects it.
31699         (test_getopt_long_only): New test.
31700         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31701         glibc shortcomings with 'W;', and enforcement of optind=0.
31702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31703         Likewise.
31704
31705 2009-12-21  Bruno Haible  <bruno@clisp.org>
31706
31707         localename: Improvements for MacOS X and Cygwin.
31708         * lib/localename.h (gl_locale_name_environ): New declaration.
31709         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31710         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31711         (gl_locale_name_posix): Invoke it.
31712         (gl_locale_name_default): Add comments. Use Windows native API also on
31713         Cygwin.
31714
31715 2009-12-21  Bruno Haible  <bruno@clisp.org>
31716
31717         Update list of Win32 locale ids.
31718         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31719         (LANG_SAMI): Renamed from LANG_SAAMI.
31720         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31721         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31722         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31723         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31724         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31725         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31726         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31727         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31728         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31729         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31730         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31731         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31732         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31733         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31734         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31735         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31736         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31737         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31738         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31739         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31740         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31741         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31742         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31743         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31744         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31745         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31746         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31747         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31748         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31749         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31750         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31751         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31752         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31753         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31754         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31755         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31756         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31757         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31758         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31759         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31760         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31761         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31762         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31763         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31764         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31765         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31766         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31767         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31768         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31769         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31770         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31771         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31772         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31773         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31774         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31775         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31776         Add more languages and countries for Sami, Sorbian. Add more countries
31777         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31778         for Pashto. Change country for Syriac, Tswana.
31779
31780 2009-12-21  Eric Blake  <ebb9@byu.net>
31781
31782         test-utimens: avoid spurious failure
31783         * tests/test-chown.h (nap): Factor...
31784         * tests/nap.h: ...into new file.
31785         * tests/test-lchown.h (nap): Avoid duplication.
31786         * tests/test-utimens-common.h (nap): Use shared implementation,
31787         necessary on file systems with 1-second resolution.
31788         * modules/chown-tests (Files): Include new file.
31789         * modules/fdutimensat-tests (Files): Likewise.
31790         * modules/futimens-tests (Files): Likewise.
31791         * modules/lchown-tests (Files): Likewise.
31792         * modules/openat-tests (Files): Likewise.
31793         * modules/utimens-tests (Files): Likewise.
31794         * modules/utimensat-tests (Files): Likewise.
31795
31796 2009-12-19  Eric Blake  <ebb9@byu.net>
31797
31798         futimens, utimensat: work around Linux bug
31799         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31800         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31801         * lib/utimensat.c (rpl_utimensat): Work around it.
31802         * lib/futimens.c (rpl_futimens): Adjust comment.
31803
31804         utimens: work around Linux ctime bug
31805         * lib/utimens.c (detect_ctime_bug): New helper function.
31806         (update_timespec): Differentiate between workaround needed for
31807         this bug vs. what is needed for systems that lack utimensat.
31808         (fdutimens, lutimens): Work around bug.
31809
31810         utimens: check for ctime update
31811         * tests/test-utimens-common.h (check_ctime): Define.
31812         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31813         * tests/test-futimens.h (test_futimens): Likewise.
31814         * tests/test-lutimens.h (test_lutimens): Likewise.
31815         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31816         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31817
31818 2009-12-19  Bruno Haible  <bruno@clisp.org>
31819
31820         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31821         * tests/test-dprintf-posix2.sh: New file.
31822         * tests/test-dprintf-posix2.c: New file.
31823         * modules/dprintf-posix-tests (Files): Add them.
31824         (configure.ac): Check for getrlimit and setrlimit.
31825         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31826
31827 2009-12-19  Bruno Haible  <bruno@clisp.org>
31828
31829         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31830         * tests/test-fprintf-posix3.sh: New file.
31831         * tests/test-fprintf-posix3.c: New file.
31832         * modules/fprintf-posix-tests (Files): Add them.
31833         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31834
31835 2009-12-19  Eric Blake  <ebb9@byu.net>
31836
31837         dirfd: fix prototype
31838         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31839         * lib/dirfd.c (dirfd): Likewise.
31840
31841         canonicalize: reduce memory usage
31842         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31843         allocation to size.
31844         Reported by Solar Designer <solar@openwall.com>.
31845
31846 2009-12-19  Bruno Haible  <bruno@clisp.org>
31847
31848         New module attribute 'Applicability'.
31849         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31850         * gnulib-tool: New option --extract-applicability.
31851         (func_usage): Document it.
31852         (sed_extract_prog): Recognize it.
31853         (func_get_applicability): New function.
31854         (func_import): Generalize handling of 'link-warning' module.
31855         * modules/link-warning (Applicability): New section.
31856         * modules/arg-nonnull (Applicability): New section.
31857         Repoted by Simon Josefsson <simon@josefsson.org>.
31858
31859 2009-12-19  Bruno Haible  <bruno@clisp.org>
31860
31861         fflush: tweak
31862         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31863         * lib/fseeko.c (rpl_fseeko): Likewise.
31864
31865 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31866
31867         * lib/gl_list.h: Fix typo in comment.
31868
31869 2009-12-16  Eric Blake  <ebb9@byu.net>
31870
31871         fcntl: use to simplify other modules
31872         * modules/cloexec (Depends-on): Add fcntl.
31873         * modules/fchdir (Depends-on): Likewise.
31874         * modules/fd-safer-flag (Depends-on): Likewise.
31875         * modules/unistd-safer (Depends-on): Likewise.
31876         * modules/dup3 (configure.ac): Set module indicator.
31877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31878         missing.
31879         * lib/fchdir.c (_gl_register_dup): Fix comment.
31880         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31881         * lib/dup-safer.c (dup_safer): Likewise.
31882         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31883         * lib/dup3.c (dup3): Likewise.
31884         * tests/test-fchdir.c (main): Enhance test.
31885         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31886
31887         fcntl: port portions of fcntl to mingw
31888         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31889         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31890         replacement for mingw.
31891         * modules/fcntl (Description): Update.
31892         (Depends-on): Add dup2.
31893         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31894         * modules/fcntl-h (Makefile.am): Substitute it.
31895         * lib/fcntl.in.h (fcntl): Update declaration.
31896         (F_DUPFD, F_GETFD): New macros, when needed.
31897         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31898         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31899         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31900         we now guarantee.
31901
31902         fcntl: work around cygwin bug in F_DUPFD
31903         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31904         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31905         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31906         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31907         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31908
31909         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31910         * modules/fcntl (Files): List new files.
31911         (configure.ac): Run a test.
31912         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31913         * lib/fcntl.c (rpl_fcntl): Likewise.
31914         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31915         (gl_FCNTL_H): Always replace fcntl.h.
31916         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31917         * lib/fcntl.in.h (fcntl): Declare replacement.
31918         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31919         needed, plus a witness.
31920         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31921         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31922         * tests/test-fcntl.c: New file.
31923         * modules/fcntl-tests: Likewise.
31924
31925         binary-io: avoid potential compilation warning
31926         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31927         directives.
31928
31929         fflush: avoid compilation error on NetBSD
31930         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31931         between off_t and fpos_t, since the latter is sometimes a struct.
31932         * lib/fseeko.c (rpl_fseeko): Likewise.
31933         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31934
31935 2009-12-15  Eric Blake  <ebb9@byu.net>
31936
31937         fcntl-h, stdio, sys_ioctl: fix declarations
31938         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31939         function must not take arguments.
31940         * lib/sys_ioctl.in.h (ioctl): Likewise.
31941         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31942         (open): Add a link warning.
31943
31944 2009-12-15  Jim Meyering  <meyering@redhat.com>
31945
31946         areadlink, areadlink-with-size: relax license to LGPLv2+
31947         * modules/areadlink (License): Relax to LGPLv2+.
31948         * modules/areadlink-with-size (License): Likewise.
31949
31950 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31951             Bruno Haible  <bruno@clisp.org>
31952
31953         *printf: Fix memory leak.
31954         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31955         * lib/vfprintf.c (vfprintf): Likewise.
31956         * lib/dprintf.c (dprintf): Likewise.
31957         * lib/vdprintf.c (vdprintf): Likewise.
31958
31959 2009-12-14  Eric Blake  <ebb9@byu.net>
31960
31961         accept4: adjust module dependencies
31962         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31963
31964         utimens: one more try at avoiding compiler warning
31965         * lib/utimens.c (lutimens): Lower scope of result.
31966
31967 2009-12-13  Bruno Haible  <bruno@clisp.org>
31968
31969         Move the malloc checking from module 'list' to new module 'xlist'.
31970         * modules/xlist: New file.
31971         * lib/gl_xlist.h: New file.
31972         * lib/gl_xlist.c: New file.
31973         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31974         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31975         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31976         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31977         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31978         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31979         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31980         gl_sortedlist_nx_add): New declarations.
31981         (struct gl_list_implementation): Rename and change methods accordingly.
31982         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31983         (gl_list_nx_create): Renamed from gl_list_create.
31984         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31985         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31986         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31987         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31988         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31989         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31990         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31991         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31992         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31993         gl_list_create_empty.
31994         (gl_list_nx_create): Renamed from gl_list_create.
31995         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31996         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31997         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31998         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31999         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32000         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32001         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32002         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32003         * lib/gl_array_list.c: Don't include xalloc.h.
32004         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32005         NULL upon out-of-memory.
32006         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32007         out-of-memory.
32008         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32009         Change return type to 'int'.
32010         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32011         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32012         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32013         upon out-of-memory.
32014         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32015         upon out-of-memory.
32016         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32017         upon out-of-memory.
32018         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32019         upon out-of-memory.
32020         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32021         out-of-memory.
32022         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32023         Update.
32024         (gl_array_list_implementation): Update.
32025         * lib/gl_carray_list.c: Don't include xalloc.h.
32026         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32027         Return NULL upon out-of-memory.
32028         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32029         out-of-memory.
32030         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32031         Change return type to 'int'.
32032         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32033         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32034         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32035         upon out-of-memory.
32036         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32037         upon out-of-memory.
32038         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32039         out-of-memory.
32040         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32041         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32042         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32043         Update.
32044         (gl_carray_list_implementation): Update.
32045         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32046         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32047         gl_linked_create_empty. Return NULL upon out-of-memory.
32048         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32049         out-of-memory.
32050         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32051         Change return type to 'int'. Return -1 upon out-of-memory.
32052         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32053         out-of-memory.
32054         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32055         upon out-of-memory.
32056         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32057         upon out-of-memory.
32058         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32059         NULL upon out-of-memory.
32060         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32061         upon out-of-memory.
32062         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32063         out-of-memory.
32064         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32065         Update.
32066         * lib/gl_linked_list.c: Don't include xalloc.h.
32067         (gl_linked_list_implementation): Update.
32068         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32069         (add_to_bucket): Change return type to 'int'.
32070         (gl_linkedhash_list_implementation): Update.
32071         * lib/gl_anytree_list1.h (free_subtree): New function.
32072         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32073         gl_tree_create_empty. Return NULL upon out-of-memory.
32074         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32075         Change return type to 'int'. Return -1 upon out-of-memory.
32076         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32077         out-of-memory.
32078         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32079         (gl_tree_remove_node): New function, moved here from
32080         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32081         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32082         Update.
32083         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32084         malloc, not xmalloc. Return NULL upon out-of-memory.
32085         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32086         out-of-memory.
32087         (gl_tree_remove_node_from_tree): New function, extracted from
32088         gl_tree_remove_node.
32089         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32090         upon out-of-memory.
32091         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32092         out-of-memory.
32093         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32094         upon out-of-memory.
32095         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32096         upon out-of-memory.
32097         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32098         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32099         not xmalloc. Return NULL upon out-of-memory.
32100         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32101         out-of-memory.
32102         (gl_tree_remove_node_from_tree): New function, extracted from
32103         gl_tree_remove_node.
32104         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32105         upon out-of-memory.
32106         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32107         out-of-memory.
32108         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32109         upon out-of-memory.
32110         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32111         upon out-of-memory.
32112         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32113         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32114         gl_anytree_list1.h before gl_anyavltree_list2.h.
32115         (gl_avltree_list_implementation): Update.
32116         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32117         gl_anytree_list1.h before gl_anyavltree_list2.h.
32118         (gl_rbtree_list_implementation): Update.
32119         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32120         Change return type to 'int'. Return -1 upon out-of-memory. Use
32121         __builtin_expect.
32122         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32123         (gl_avltreehash_list_implementation): Update.
32124         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32125         (gl_rbtreehash_list_implementation): Update.
32126         * modules/array-list (Depends-on): Remove xalloc.
32127         * modules/carray-list (Depends-on): Likewise.
32128         * modules/linked-list (Depends-on): Likewise.
32129         * modules/linkedhash-list (Depends-on): Likewise.
32130         * modules/avltree-list (Depends-on): Likewise.
32131         * modules/rbtree-list (Depends-on): Likewise.
32132         * modules/avltreehash-list (Depends-on): Likewise.
32133         * modules/rbtreehash-list (Depends-on): Likewise.
32134
32135         * modules/xsublist: New file.
32136         * lib/gl_xsublist.h: New file.
32137         * lib/gl_xsublist.c: New file.
32138         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32139         (gl_sublist_nx_create): New declaration.
32140         * lib/gl_sublist.c: Don't include xalloc.h.
32141         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32142         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32143         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32144         Change return type to 'int'. Return -1 upon out-of-memory.
32145         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32146         upon out-of-memory.
32147         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32148         NULL upon out-of-memory.
32149         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32150         upon out-of-memory.
32151         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32152         NULL upon out-of-memory.
32153         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32154         NULL upon out-of-memory.
32155         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32156         upon out-of-memory.
32157         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32158         (gl_sublist_list_implementation): Update.
32159         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32160         upon out-of-memory.
32161         * modules/sublist (Depends-on): Remove xalloc.
32162
32163         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32164         * tests/test-carray_list.c: Likewise.
32165         * tests/test-linked_list.c: Likewise.
32166         * tests/test-linkedhash_list.c: Likewise.
32167         * tests/test-avltree_list.c: Likewise.
32168         * tests/test-rbtree_list.c: Likewise.
32169         * tests/test-avltreehash_list.c: Likewise.
32170         * tests/test-rbtreehash_list.c: Likewise.
32171         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32172         * modules/carray-list-tests (Makefile.am): Likewise.
32173         * modules/linked-list-tests (Makefile.am): Likewise.
32174         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32175         * modules/avltree-list-tests (Makefile.am): Likewise.
32176         * modules/rbtree-list-tests (Makefile.am): Likewise.
32177         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32178         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32179
32180         * NEWS: Mention the changes.
32181
32182         * lib/clean-temp.c: Include gl_xlist.h.
32183         * modules/clean-temp (Depends-on): Add xlist.
32184
32185         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32186         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32187
32188         * tests/test-array_oset.c: Include gl_xlist.h.
32189         * modules/array-oset-tests (Depends-on): Add xlist.
32190
32191         Reported by José E. Marchesi <jemarch@gnu.org>.
32192
32193 2009-12-13  Bruno Haible  <bruno@clisp.org>
32194
32195         Move the malloc checking from module 'oset' to new module 'xoset'.
32196         * modules/xoset: New file.
32197         * lib/gl_xoset.h: New file.
32198         * lib/gl_xoset.c: New file.
32199         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32200         declarations.
32201         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32202         (struct gl_oset_implementation): Rename and change methods accordingly.
32203         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32204         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32205         'int'. Mark as __warn_unused_result__.
32206         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32207         gl_oset_create_empty.
32208         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32209         'int'.
32210         * lib/gl_array_oset.c: Don't include xalloc.h.
32211         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32212         malloc, not xmalloc.
32213         (grow): Change return type to 'int'. Don't call xalloc_die.
32214         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32215         to 'int'.
32216         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32217         'int'.
32218         (gl_array_oset_implementation): Update.
32219         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32220         gl_tree_create_empty.
32221         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32222         'int'.
32223         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32224         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32225         xmalloc.
32226         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32227         not xmalloc.
32228         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32229         xmalloc.
32230         (gl_avltree_oset_implementation): Update.
32231         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32232         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32233         xmalloc.
32234         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32235         not xmalloc.
32236         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32237         xmalloc.
32238         (gl_rbtree_oset_implementation): Update.
32239         * modules/array-oset (Depends-on): Remove xalloc.
32240         * modules/avltree-oset (Depends-on): Likewise.
32241         * modules/rbtree-oset (Depends-on): Likewise.
32242         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32243         * tests/test-avltree_oset.c: Likewise.
32244         * tests/test-rbtree_oset.c: Likewise.
32245         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32246         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32247         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32248         * NEWS: Mention the change.
32249
32250 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32251
32252         maint.mk: allow a project to override release-prep commands
32253         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32254         commands into a new rule.
32255         (release-prep): New rule.
32256         (release-prep-hook): New overridable variable.
32257
32258 2009-12-13  Bruno Haible  <bruno@clisp.org>
32259
32260         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32261
32262 2009-12-13  Jim Meyering  <meyering@redhat.com>
32263
32264         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32265         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32266
32267 2009-12-12  Bruno Haible  <bruno@clisp.org>
32268
32269         duplocale: Tweak.
32270         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32271
32272 2009-12-12  Karl Berry  <karl@gnu.org>
32273
32274         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32275
32276 2009-12-12  Bruno Haible  <bruno@clisp.org>
32277
32278         * m4/po.m4: Undo incorrect untabification.
32279
32280 2009-12-12  Bruno Haible  <bruno@clisp.org>
32281
32282         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32283         * modules/c-strtod (Depends-on): Add locale.
32284         * modules/c-strtold (Depends-on): Likewise.
32285
32286 2009-12-12  Bruno Haible  <bruno@clisp.org>
32287
32288         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32289
32290 2009-12-11  Eric Blake  <ebb9@byu.net>
32291
32292         setenv: relax requirement in light of POSIX ruling
32293         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32294         not NULL.
32295         * tests/test-setenv.c (main): Relax test.
32296         * tests/test-unsetenv.c (main): Likewise.
32297         * doc/posix-functions/setenv.texi (setenv): Document this.
32298         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32299
32300 2009-12-11  Bruno Haible  <bruno@clisp.org>
32301
32302         New module 'fd-safer-flag'.
32303         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32304         * lib/dup-safer.c (dup_safer_flag): Remove function.
32305         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32306         * lib/fd-safer.c (fd_safer_flag): Remove function.
32307         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32308         * modules/cloexec (configure.ac): Drop indicator macro.
32309         * modules/fd-safer-flag: New file.
32310         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32311         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32312         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32313
32314 2009-12-11  Bruno Haible  <bruno@clisp.org>
32315
32316         Tests for module 'nl_langinfo'.
32317         * modules/nl_langinfo-tests: New file.
32318         * tests/test-nl_langinfo.sh: New file.
32319         * tests/test-nl_langinfo.c: New file.
32320
32321         New module 'nl_langinfo'.
32322         * lib/nl_langinfo.c: New file.
32323         * m4/nl_langinfo.m4: New file.
32324         * modules/nl_langinfo: New file.
32325         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32326
32327 2009-12-11  Bruno Haible  <bruno@clisp.org>
32328
32329         Tests for module 'langinfo'.
32330         * modules/langinfo-tests: New file.
32331         * tests/test-langinfo.c: New file.
32332
32333         New module 'langinfo'.
32334         * lib/langinfo.in.h: New file.
32335         * m4/langinfo_h.m4: New file.
32336         * modules/langinfo: New file.
32337         * doc/posix-headers/langinfo.texi: Mention the new module.
32338
32339 2009-12-11  Bruno Haible  <bruno@clisp.org>
32340
32341         * lib/config.charset: Untabify.
32342
32343 2009-12-11  Bruno Haible  <bruno@clisp.org>
32344
32345         * modules/unistd-safer (configure.ac): Drop indicator macro.
32346
32347 2009-12-11  Bruno Haible  <bruno@clisp.org>
32348
32349         Move pipe2-safer code to its own file.
32350         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32351         * lib/pipe-safer.c (pipe2_safer): Remove function.
32352         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32353         (Makefile.am): Add it to lib_SOURCES.
32354
32355 2009-12-10  Bruno Haible  <bruno@clisp.org>
32356
32357         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32358
32359 2009-12-10  Bruno Haible  <bruno@clisp.org>
32360
32361         Declare which arguments expect non-NULL values, for GCC and clang.
32362         * build-aux/arg-nonnull.h: New file.
32363         * modules/arg-nonnull: New file.
32364         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32365         (inet_ntop, inet_pton): Use it.
32366         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32367         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32368         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32369         (open, openat): Use it.
32370         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32371         (fnmatch): Use it.
32372         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32373         (getopt, getopt_long, getopt_long_only): Use it.
32374         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32375         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32376         Use it.
32377         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32378         (iconv_open): Use it.
32379         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32380         (strtoimax, strtoumax): Use it.
32381         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32382         (duplocale): Use it.
32383         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32384         (frexp, frexpl): Use it.
32385         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32386         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32387         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32388         (tsearch, tfind, tdelete, twalk): Use it.
32389         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32390         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32391         sigpending): Use it.
32392         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32393         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32394         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32395         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32396         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32397         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32398         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32399         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32400         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32401         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32402         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32403         Use it.
32404         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32405         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32406         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32407         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32408         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32409         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32410         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32411         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32412         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32413         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32414         strtoull, unsetenv): Use it.
32415         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32416         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32417         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32418         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32419         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32420         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32421         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32422         (strcasecmp, strncasecmp): Use it.
32423         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32424         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32425         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32426         rpl_setsockopt): Use it.
32427         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32428         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32429         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32430         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32431         (gettimeofday): Use it.
32432         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32433         (times): Use it.
32434         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32435         (uname): Use it.
32436         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32437         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32438         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32439         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32440         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32441         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32442         unlinkat, write): Use it.
32443         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32444         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32445         * lib/argv-iter.h: Include arg-nonnull.h.
32446         (_ATTRIBUTE_NONNULL_): Remove macro.
32447         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32448         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32449         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32450         optimization.
32451         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32452         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32453         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32454         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32455         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32456         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32457         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32458         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32459         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32460         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32461         * modules/dirent (Depends-on): Add arg-nonnull.
32462         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32463         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32464         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32465         * modules/fnmatch (Depends-on): Add arg-nonnull.
32466         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32467         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32468         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32469         * modules/glob (Depends-on): Add arg-nonnull.
32470         (Makefile.am): Insert arg-nonnull.h into glob.h.
32471         * modules/iconv_open (Depends-on): Add arg-nonnull.
32472         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32473         * modules/inttypes (Depends-on): Add arg-nonnull.
32474         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32475         * modules/locale (Depends-on): Add arg-nonnull.
32476         (Makefile.am): Insert arg-nonnull.h into locale.h.
32477         * modules/math (Depends-on): Add arg-nonnull.
32478         (Makefile.am): Insert arg-nonnull.h into math.h.
32479         * modules/netdb (Depends-on): Add arg-nonnull.
32480         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32481         * modules/search (Depends-on): Add arg-nonnull.
32482         (Makefile.am): Insert arg-nonnull.h into search.h.
32483         * modules/signal (Depends-on): Add arg-nonnull.
32484         (Makefile.am): Insert arg-nonnull.h into signal.h.
32485         * modules/spawn (Depends-on): Add arg-nonnull.
32486         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32487         * modules/stdio (Depends-on): Add arg-nonnull.
32488         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32489         * modules/stdlib (Depends-on): Add arg-nonnull.
32490         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32491         * modules/string (Depends-on): Add arg-nonnull.
32492         (Makefile.am): Insert arg-nonnull.h into string.h.
32493         * modules/strings (Depends-on): Add arg-nonnull.
32494         (Makefile.am): Insert arg-nonnull.h into strings.h.
32495         * modules/sys_socket (Depends-on): Add arg-nonnull.
32496         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32497         * modules/sys_stat (Depends-on): Add arg-nonnull.
32498         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32499         * modules/sys_time (Depends-on): Add arg-nonnull.
32500         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32501         * modules/sys_times (Depends-on): Add arg-nonnull.
32502         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32503         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32504         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32505         * modules/time (Depends-on): Add arg-nonnull.
32506         (Makefile.am): Insert arg-nonnull.h into time.h.
32507         * modules/unistd (Depends-on): Add arg-nonnull.
32508         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32509         * modules/wchar (Depends-on): Add arg-nonnull.
32510         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32511         * modules/argv-iter (Depends-on): Add arg-nonnull.
32512         * tests/test-canonicalize.c (null_ptr): New function.
32513         (main): Use it.
32514         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32515         (main): Use it.
32516         * tests/test-memmem.c (null_ptr): New function.
32517         (main): Use it.
32518         Reported by Jim Meyering.
32519
32520 2009-12-10  Bruno Haible  <bruno@clisp.org>
32521
32522         Use spaces for indentation, not tabs.
32523         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32524         * m4/*.m4: Untabify.
32525         * build-aux/*.h: Untabify.
32526         * tests/**/*.[hc]: Untabify.
32527         * README: New section "Indent with spaces, not TABs", based on
32528         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32529         * NEWS: Mention the change.
32530
32531 2009-12-10  Bruno Haible  <bruno@clisp.org>
32532
32533         pty test: Fix link error.
32534         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32535         test_pty_LDADD.
32536
32537 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32538
32539         * modules/pty: New file.
32540         * modules/pty-tests: New file.
32541         * m4/pty.m4: New file.
32542         * tests/test-pty.c: New file.
32543         * doc/glibc-headers/pty.texi: Modified.
32544         * doc/glibc-functions/forkpty.texi: Modified.
32545         * doc/glibc-functions/openpty.texi: Modified.
32546
32547 2009-12-10  Bruno Haible  <bruno@clisp.org>
32548
32549         Avoid syntax error in C++ mode.
32550         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32551
32552 2009-12-10  Bruno Haible  <bruno@clisp.org>
32553
32554         Use sed with option -e.
32555         * gnulib-tool (func_version, func_emit_copyright_notice,
32556         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32557         option -e to sed.
32558         * modules/link-warning (Makefile.am): Likewise.
32559
32560 2009-12-10  Jim Meyering  <meyering@redhat.com>
32561
32562         mgetgroups: do not write bytes beyond end of malloc'd buffer
32563         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32564         username, we call getgroups with a one-element-shorter buffer,
32565         but still told it the length was original, max_n_groups.
32566
32567 2009-12-09  Eric Blake  <ebb9@byu.net>
32568
32569         cloexec: relax license
32570         * modules/cloexec (Maintainer): Add myself.
32571         (License): Use LGPL, not GPL.
32572
32573         link-warning: optimize generation
32574         * modules/link-warning (Makefile.am): Reduce process usage.
32575
32576 2009-12-09  Bruno Haible  <bruno@clisp.org>
32577
32578         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32579         workaround was added on 2009-11-17.
32580
32581 2009-12-09  Jim Meyering  <meyering@redhat.com>
32582             Bruno Haible  <bruno@clisp.org>
32583
32584         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32585         * modules/link-warning (Makefile.am): Make the comment-removing sed
32586         command more robust in the face of bootstrap-prepended comment lines.
32587
32588 2009-12-09  Bruno Haible  <bruno@clisp.org>
32589
32590         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32591         most one group.
32592
32593 2009-12-09  Simon Josefsson <simon@josefsson.org>
32594             Bruno Haible  <bruno@clisp.org>
32595
32596         * build-aux/link-warning.h: Add copyright notice.
32597         * modules/link-warning (Makefile.am): Generate link-warning.h from
32598         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32599         * NEWS: Mention change in link-warning module.
32600         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32601         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32602         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32603         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32604         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32605         * modules/math (Makefile.am): Add dependency to math.h.
32606         * modules/search (Makefile.am): Add dependency to search.h.
32607         * modules/signal (Makefile.am): Add dependency to signal.h.
32608         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32609         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32610         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32611         * modules/string (Makefile.am): Add dependency to string.h.
32612         * modules/strings (Makefile.am): Add dependency to strings.h.
32613         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32614         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32615         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32616         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32617         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32618         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32619         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32620         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32621         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32622
32623 2009-12-09  Bruno Haible  <bruno@clisp.org>
32624
32625         fchdir: Optimize away rpl_fstat when possible.
32626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32627         REPLACE_OPEN_DIRECTORY.
32628         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32629
32630 2009-12-09  Bruno Haible  <bruno@clisp.org>
32631
32632         * lib/fchdir.c: Update comment.
32633
32634 2009-12-09  Bruno Haible  <bruno@clisp.org>
32635
32636         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32637
32638 2009-12-08  Eric Blake  <ebb9@byu.net>
32639
32640         fchdir: avoid memory leak on re-registration.
32641         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32642
32643 2009-12-08  Jim Meyering  <meyering@redhat.com>
32644
32645         init.sh: avoid Solaris 10 /bin/sh portability problem
32646         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32647         sourced script:
32648           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32649           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32650           bar
32651         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32652         and two tests used that idiom.
32653         * tests/init.sh: Update suggested usage comments.
32654         (path_prepend_): New function, to be used in place
32655         of the --src-path=DIR option.
32656         (setup_): Move PATH-prepending code into path_prepend_.
32657         * tests/test-pread.sh: Adapt to new usage.
32658         * tests/test-xalloc-die.sh: Likewise.
32659
32660 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32661
32662         * doc/gnulib.texi (Glibc pty.h): Add.
32663         * doc/glibc-functions/forkpty.texi: Add.
32664         * doc/glibc-functions/openpty.texi: Add.
32665         Suggested by Bruno Haible.
32666
32667 2009-12-08  Eric Blake  <ebb9@byu.net>
32668
32669         fchdir: fix logic bugs
32670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32671         * tests/test-fchdir.c (main): Enhance test.
32672         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32673         is in use.
32674
32675         dup2: fix logic bugs
32676         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32677         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32678         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32679         exists.
32680         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32681
32682 2009-12-07  Eric Blake  <ebb9@byu.net>
32683
32684         unlink: fix m4 detection
32685         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32686
32687         unistd-safer: add unit test
32688         * modules/unistd-safer-tests: New file.
32689         * tests/test-dup-safer.c: Likewise.
32690         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32691         * tests/test-dup2.c (setmode): Likewise.
32692         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32693
32694         cloexec: preserve text vs. binary across dup_cloexec
32695         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32696         mode.
32697         * modules/dup2-tests (Depends-on): Add binary-io.
32698         * modules/cloexec-tests (Depends-on): Likewise.
32699         * tests/test-dup2.c (setmode, is_mode): New helpers.
32700         (main): Add tests that translation mode is preserved.
32701         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32702         Reported by Bruno Haible.
32703
32704         mgetgroups: reduce duplicate listings
32705         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32706         resulting array.
32707         * tests/test-chown.h (test_chown): Simplify client.
32708         * tests/test-lchown.h (test_lchown): Likewise.
32709
32710 2009-12-06  Bruno Haible  <bruno@clisp.org>
32711
32712         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32713         value.
32714
32715 2009-12-06  Bruno Haible  <bruno@clisp.org>
32716
32717         * lib/progname.c: Include stdio.h, stdlib.h.
32718         (set_program_name): Reject a NULL argument.
32719
32720 2009-12-05  Eric Blake  <ebb9@byu.net>
32721
32722         pipe2-safer: new module
32723         * modules/pipe2-safer: New file.
32724         * lib/unistd-safer.h (pipe2_safer): New prototype.
32725         * lib/unistd--.h (pipe2): New wrapper.
32726         * lib/pipe-safer.c (pipe2_safer): New function.
32727         * modules/pipe (Depends-on): Add pipe2-safer.
32728         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32729
32730         stdlib-safer: preserve cloexec flag for mkostemp[s]
32731         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32732         fd_safer_flag.
32733
32734         unistd-safer: allow preservation of cloexec status via flag
32735         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32736         prototypes.
32737         * lib/dup-safer.c (dup_safer_flag): New function.
32738         * lib/fd-safer.c (fd_safer_flag): Likewise.
32739         * modules/cloexec (configure.ac): Set witness.
32740
32741         test-dup2: enhance test
32742         * modules/dup2-tests (Depends-on): Add cloexec.
32743         * tests/test-dup2.c (main): Enhance test.
32744
32745         cloexec: add dup_cloexec
32746         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32747         header and comments.
32748         * lib/cloexec.c (set_cloexec_flag): Add comments.
32749         (dup_cloexec): New function, with mingw implementation borrowed
32750         from...
32751         * lib/w32spawn.h (dup_noinherit): ...here.
32752         * modules/execute (Depends-on): Add cloexec.
32753         * modules/pipe (Depends-on): Likewise.
32754         * modules/cloexec (Depends-on): Add dup2.
32755         * modules/cloexec-tests (Files): New file.
32756         * tests/test-cloexec.c: Likewise.
32757
32758         test-xalloc-die: fix test for mingw
32759         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32760         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32761         directory and .exe suffix off argv[0] output.
32762
32763         test-fseeko: fix test for mingw
32764         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32765         than undefining fseek, so test will pass on mingw.
32766
32767 2009-12-05  Bruno Haible  <bruno@clisp.org>
32768
32769         * lib/progname.h (set_program_name): Clarify specification.
32770         * lib/progname.c (set_program_name): Likewise.
32771         Reported by Jim Meyering.
32772
32773 2009-12-05  Jim Meyering  <meyering@redhat.com>
32774
32775         maint.mk: backslash-escape parens in default regexp
32776         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32777         backslash-escape the literal parentheses.
32778
32779         maint.mk: news-date-check: use grep -E
32780         * top/maint.mk (today): Define a Make variable, not a...
32781         (news-date-check): ...shell variable.
32782         (news-date-regexp): Use the Make variable.
32783         Use grep's -E option.  Change the failing diagnostic to mention
32784         the variable, $(news-date-regexp).
32785
32786 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32787
32788         maintainer-makefile: allow customization of NEWS entry format
32789         * top/maint.mk (news-date-regexp): New overridable variable.
32790         (news-date-check): Use it.
32791
32792 2009-12-04  Eric Blake  <ebb9@byu.net>
32793
32794         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32795         * lib/mgetgroups.h (xgetgroups): New prototype.
32796         * lib/mgetgroups.c (xgetgroups): New wrapper.
32797         (mgetgroups): Handle ENOSYS.
32798         * modules/mgetgroups (Depends-on): Add realloc.
32799         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32800
32801         mgetgroups: avoid argument promotion issues with -1
32802         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32803         for invalid gid_t.
32804         * tests/test-chown.h (getegid, test_chown): Likewise.
32805         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32806
32807 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32808
32809         exclude: Fix header file problems.
32810         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32811
32812 2009-12-01  Jim Meyering  <meyering@redhat.com>
32813
32814         fts: fts_open: do not let an empty string cause immediate failure
32815         This is required in support of GNU rm, for which the command
32816         "rm A '' B" must process and remove both A and B, in spite of
32817         the empty string argument.
32818         * lib/fts.c (fts_open): Do not let the presence of an empty string
32819         cause fts_open to fail immediately.  Most fts-using tools must be
32820         able to process all arguments, in order, and can be expected to
32821         diagnose such arguments themselves.
32822
32823 2009-11-30  Eric Blake  <ebb9@byu.net>
32824
32825         utimens: fix compilation error
32826         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32827         Declare variable at right scope.
32828
32829 2009-11-29  Jim Meyering  <meyering@redhat.com>
32830
32831         bootstrap: handle perl-5.11's changed --version output
32832         * build-aux/bootstrap (get_version): Handle perl separately,
32833         since perl-5.11's --version output is different.
32834
32835 2009-11-28  Jim Meyering  <meyering@redhat.com>
32836
32837         userspec: depend on the inttostr module, too
32838         * modules/userspec (Depends-on): Add inttostr.
32839
32840         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32841         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32842         number of MAXUID when it evaluates to (uid_t) -1.
32843         Likewise for group ID.  Reported by Matt McCutchen in
32844         <http://savannah.gnu.org/bugs/?28113>
32845
32846         userspec: reformat to use spaces, not TABs
32847         * lib/userspec.c: Expand TABs to spaces.
32848         Add Emacs' "indent-tabs-mode: nil" hint.
32849
32850 2009-11-27  Eric Blake  <ebb9@byu.net>
32851
32852         getopt-gnu: flush out another BSD bug
32853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32854         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32855         flush out BSD bug.
32856         * tests/test-getopt.h (test_getopt): End lists with NULL.
32857         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32858         (test_getopt_long_posix): Enhance test.
32859         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32860         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32861         getopt-gnu.
32862         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32863         Likewise.
32864
32865 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32866
32867         * modules/idpriv-droptemp-tests (Notice): Fix text.
32868
32869 2009-11-27  Jim Meyering  <meyering@redhat.com>
32870
32871         test-xalloc-die: avoid spurious failure due to libtool argv difference
32872         In a libtool-enabled project, this test would fail due to a difference
32873         in the emitted program name, e.g.,
32874         -test-xalloc-die: memory exhausted
32875         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32876         Use program to avoid that.
32877         * modules/xalloc-die-tests (Depends-on): Add progname.
32878         * tests/test-xalloc-die.c: Include progname.h".
32879         (program_name): Remove decl.
32880         (main): Call set_program_name.
32881         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32882
32883 2009-11-26  Richard Jones  <rjones@redhat.com>
32884
32885         w32sock: leave win32 error in place.
32886         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32887
32888 2009-11-26  Eric Blake  <ebb9@byu.net>
32889
32890         init.sh: suggest to use skip_ and fail_ functions in comments
32891         * tests/init.sh: Add a sentence.
32892
32893 2009-11-25  Bruno Haible  <bruno@clisp.org>
32894
32895         init.sh: add documentation in comments
32896         * tests/init.sh: Add some developer and user documentation.
32897
32898 2009-11-26  Jim Meyering  <meyering@redhat.com>
32899
32900         init.sh: accommodate even those who specify bogus srcdir manually
32901         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32902         configure-time tests to be sanitized, so that there is no need to
32903         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32904         (with no double quotes) suffices.  However, since tests may be
32905         invoked manually, and since you may explicitly set srcdir to the
32906         name of a directory containing spaces, do quote its uses here.
32907         * tests/test-pread.sh: Likewise.
32908         Suggested by Bruno Haible.
32909
32910         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32911         * tests/test-pread.sh: Write no data into the pipe, because
32912         test-pread actually reads none.  This avoids a diagnostic,
32913         "bash: echo: write error: Broken pipe", that arises in the unusual
32914         event something is ignoring SIGPIPE, and might be interpreted
32915         as some sort of failure.  Reported by Bruno Haible.
32916
32917 2009-11-25  Jim Meyering  <meyering@redhat.com>
32918
32919         test-pread: cover failure with ESPIPE and EINVAL
32920         * tests/test-pread.c (main): Test for failure, too.
32921         * tests/test-pread.sh: Invoke with stdin on a pipe.
32922         Suggested by Eric Blake.
32923
32924         pread: improvement and fix
32925         * modules/pread (Depends-on): Depend on lseek, for portability to
32926         e.g., mingw.  Suggested by Eric Blake.
32927         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32928
32929         unistd.in.h: correct declaration of pread
32930         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32931         Reported by Richard W.M. Jones.
32932
32933         test-pread.sh: distribute the test script
32934         * modules/pread-tests (Files): Include test-pread.sh.
32935
32936         test-pread.sh: clean up
32937         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32938         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32939         That is unnecessary, since it's always ".".
32940         Suggestion from Eric Blake.
32941
32942         test-pread.sh: make executable
32943         * tests/test-pread.sh: Set executable bit.
32944         Reported by Eric Blake.
32945
32946         correct typo in test-pread.sh
32947         * tests/test-pread.sh: Add #! line.
32948
32949         test pread
32950         * tests/test-pread.c: New file.
32951         * tests/test-pread.sh: Likewise.
32952         * modules/pread-tests: Likewise.
32953
32954         pread: new module
32955         * modules/pread: New file.
32956         * lib/unistd.in.h (pread): Define/declare.
32957         * lib/pread.c (pread): New file.
32958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32959         * modules/unistd (Makefile.am): Substitute witnesses.
32960         * doc/posix-functions/pread.texi (pread): Update.
32961         * MODULES.html.sh: Add pread.
32962
32963 2009-11-25  Jim Meyering  <meyering@redhat.com>
32964
32965         tests/init.sh: new file to be used via most *.sh tests
32966         * tests/init.sh: New file.
32967
32968 2009-11-25  Eric Blake  <ebb9@byu.net>
32969
32970         utimens: work around older Linux failure with symlinks
32971         * lib/utimens.c (lutimensat_works_really): New variable.
32972         (fdutimens, lutimens): Use it to manage kernels that support
32973         nanosecond times on files, but not on symlinks.
32974         Reported by Ondřej Vašík.
32975
32976         utimes: fix configure grammar
32977         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32978
32979 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32980
32981         regex: Fix fastmap for multibyte character ranges.
32982         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32983         characters when a multibyte character range is included.
32984
32985 2009-11-22  Andy Wingo  <wingo@pobox.com>
32986
32987         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32988         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32989
32990 2009-11-24  Bruno Haible  <bruno@clisp.org>
32991
32992         doc: Most *_l functions exist in MacOS X 10.5.
32993         * doc/posix-functions/duplocale.texi: Update platforms list.
32994         * doc/posix-functions/freelocale.texi: Likewise.
32995         * doc/posix-functions/newlocale.texi: Likewise.
32996         * doc/posix-functions/uselocale.texi: Likewise.
32997         * doc/posix-functions/isalnum_l.texi: Likewise.
32998         * doc/posix-functions/isalpha_l.texi: Likewise.
32999         * doc/posix-functions/isblank_l.texi: Likewise.
33000         * doc/posix-functions/iscntrl_l.texi: Likewise.
33001         * doc/posix-functions/isdigit_l.texi: Likewise.
33002         * doc/posix-functions/isgraph_l.texi: Likewise.
33003         * doc/posix-functions/islower_l.texi: Likewise.
33004         * doc/posix-functions/isprint_l.texi: Likewise.
33005         * doc/posix-functions/ispunct_l.texi: Likewise.
33006         * doc/posix-functions/isspace_l.texi: Likewise.
33007         * doc/posix-functions/isupper_l.texi: Likewise.
33008         * doc/posix-functions/iswalnum_l.texi: Likewise.
33009         * doc/posix-functions/iswalpha_l.texi: Likewise.
33010         * doc/posix-functions/iswblank_l.texi: Likewise.
33011         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33012         * doc/posix-functions/iswctype_l.texi: Likewise.
33013         * doc/posix-functions/iswdigit_l.texi: Likewise.
33014         * doc/posix-functions/iswgraph_l.texi: Likewise.
33015         * doc/posix-functions/iswlower_l.texi: Likewise.
33016         * doc/posix-functions/iswprint_l.texi: Likewise.
33017         * doc/posix-functions/iswpunct_l.texi: Likewise.
33018         * doc/posix-functions/iswspace_l.texi: Likewise.
33019         * doc/posix-functions/iswupper_l.texi: Likewise.
33020         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33021         * doc/posix-functions/isxdigit_l.texi: Likewise.
33022         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33023         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33024         * doc/posix-functions/strcoll_l.texi: Likewise.
33025         * doc/posix-functions/strfmon_l.texi: Likewise.
33026         * doc/posix-functions/strftime_l.texi: Likewise.
33027         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33028         * doc/posix-functions/strxfrm_l.texi: Likewise.
33029         * doc/posix-functions/tolower_l.texi: Likewise.
33030         * doc/posix-functions/toupper_l.texi: Likewise.
33031         * doc/posix-functions/towctrans_l.texi: Likewise.
33032         * doc/posix-functions/towlower_l.texi: Likewise.
33033         * doc/posix-functions/towupper_l.texi: Likewise.
33034         * doc/posix-functions/wcscoll_l.texi: Likewise.
33035         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33036         * doc/posix-functions/wctrans_l.texi: Likewise.
33037         * doc/posix-functions/wctype_l.texi: Likewise.
33038         * doc/glibc-functions/strptime_l.texi: Likewise.
33039         * doc/glibc-functions/strtod_l.texi: Likewise.
33040         * doc/glibc-functions/strtof_l.texi: Likewise.
33041         * doc/glibc-functions/strtol_l.texi: Likewise.
33042         * doc/glibc-functions/strtold_l.texi: Likewise.
33043         * doc/glibc-functions/strtoll_l.texi: Likewise.
33044         * doc/glibc-functions/strtoul_l.texi: Likewise.
33045         * doc/glibc-functions/strtoull_l.texi: Likewise.
33046         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33047         * doc/glibc-functions/wcstod_l.texi: Likewise.
33048         * doc/glibc-functions/wcstof_l.texi: Likewise.
33049         * doc/glibc-functions/wcstol_l.texi: Likewise.
33050         * doc/glibc-functions/wcstold_l.texi: Likewise.
33051         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33052         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33053         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33054
33055 2009-11-24  Bruno Haible  <bruno@clisp.org>
33056
33057         duplocale: Fix logic bug.
33058         * lib/duplocale.c: Don't include <langinfo.h>.
33059         (_NL_LOCALE_NAME): Remove macro.
33060         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33061         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33062
33063 2009-11-23  Jim Meyering  <meyering@redhat.com>
33064
33065         test-update-copyright: don't hard-code /usr/bin/perl
33066         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33067         perl to print the current year.  Gilles Espinasse reported that
33068         the replaced use of perl was hard-coded as /usr/bin/perl.
33069
33070 2009-11-23  Bruno Haible  <bruno@clisp.org>
33071
33072         duplocale: Add support for glibc 2.3.x.
33073         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33074
33075 2009-11-22  Bruno Haible  <bruno@clisp.org>
33076
33077         vasnprintf: Tiny optimization.
33078         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33079         MacOS X.
33080
33081 2009-11-22  Bruno Haible  <bruno@clisp.org>
33082
33083         Tests for module 'duplocale'.
33084         * modules/duplocale-tests: New file.
33085         * tests/test-duplocale.c: New file.
33086
33087         New module 'duplocale'.
33088         * m4/duplocale.m4: New file.
33089         * lib/locale.in.h (duplocale): New declaration.
33090         * lib/duplocale.c: New file.
33091         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33092         gl_LOCALE_H_DEFAULTS): New macros.
33093         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33094         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33095         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33096         REPLACE_DUPLOCALE.
33097         * modules/duplocale: New file.
33098         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33099
33100 2009-11-22  Bruno Haible  <bruno@clisp.org>
33101
33102         * modules/locale-tests (configure.ac): Test for newlocale function.
33103         * tests/test-locale.c: When the system has extended locale functions,
33104         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33105
33106         locale: Make locale_t available when possible.
33107         * lib/locale.in.h: Include <xlocale.h> when it exists.
33108         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33109         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33110         * modules/locale (Depends-on): Add extensions.
33111         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33112         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33113
33114 2009-11-22  Bruno Haible  <bruno@clisp.org>
33115
33116         Add comments.
33117         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33118         invocation.
33119         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33120         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33121         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33122
33123 2009-11-22  Bruno Haible  <bruno@clisp.org>
33124
33125         error: account for the possibility of freopen (stdout).
33126         * lib/error.c: Include <unistd.h>.
33127         (flush_stdout): New function, extracted from error and error_at_line.
33128         Determine stdout's fd dynamically.
33129         (error, error_at_line): Invoke flush_stdout.
33130         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33131         * modules/error (Depends-on): Add unistd.
33132
33133 2009-11-22  Bruno Haible  <bruno@clisp.org>
33134
33135         diffseq: Add comment.
33136         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33137
33138 2009-11-22  Jim Meyering  <meyering@redhat.com>
33139
33140         c-stack: avoid defining an unused static function
33141         * lib/c-stack.c (find_stack_direction): Do not define this function
33142         when it will not be used.
33143
33144         diffseq: avoid spurious gcc warnings
33145         * lib/diffseq.h (IF_LINT2): Define.
33146         (compareseq): Use it to initialize two members of "part".
33147         This avoids two used-uninitialized warnings.
33148
33149 2009-11-21  Jim Meyering  <meyering@redhat.com>
33150
33151         c-stack: avoid "ignoring return value of `write'" warning
33152         * lib/c-stack.c: Include "ignore-value.h".
33153         (die): Explicitly ignore each write return value.
33154         * modules/c-stack (Depends-on): Add ignore-value.
33155
33156 2009-11-21  Bruno Haible  <bruno@clisp.org>
33157
33158         diffseq: reduce scope of variable 'best'.
33159         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33160         variable, earlier used for two different purposes.
33161
33162 2009-11-21  Jim Meyering  <meyering@redhat.com>
33163
33164         diffseq: remove useless assignment to "best"
33165         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33166         assignment.  At that point "best" is already guaranteed to be zero.
33167
33168 2009-11-20  Eric Blake  <ebb9@byu.net>
33169
33170         build: mention ftp redirector in release announcements
33171         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33172         values that used to come from cfg.mk; mention FTP redirect URL.
33173         * build-aux/announce-gen: Mention the mirror list.
33174         Suggested by Karl Berry.
33175
33176         nanosleep: improve port to mingw
33177         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33179         LIB_NANOSLEEP, but only when needed.
33180         * modules/select (Link): Document LIBSOCKET.
33181         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33182         enough.
33183
33184         nanosleep: work around cygwin bug
33185         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33186         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33187         bug.
33188         (getnow): Delete, not needed.
33189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33190         LIB_CLOCK_GETTIME.
33191         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33192         clock-time, gettime.
33193         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33194         bug.
33195         * modules/nanosleep-tests: New test.
33196         * tests/test-nanosleep.c: New file.
33197
33198         sleep: work around cygwin bug
33199         * lib/sleep.c (rpl_sleep): Work around the bug.
33200         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33201         (gl_PREREQ_SLEEP): Delete unused macro.
33202         * modules/sleep (Depends-on): Add verify.
33203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33204         * modules/unistd (Makefile.am): Substitute witness.
33205         * lib/unistd.in.h (sleep): Update prototype.
33206         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33207         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33208         * modules/sleep-tests (Depends-on): Check for alarm.
33209
33210 2009-11-20  Jim Meyering  <meyering@redhat.com>
33211
33212         maint.mk: improve sc_prohibit_magic_number_exit
33213         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33214         so it does not match uses like System.exit(1).
33215         Add comments showing how to correct all offenders.
33216
33217 2009-11-19  Eric Blake  <ebb9@byu.net>
33218
33219         xalloc-die-tests: add missing library
33220         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33221
33222         test-xvasprintf: silence compiler warnings
33223         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33224         empty string from gcc.
33225
33226 2009-11-19  Jim Meyering  <meyering@redhat.com>
33227
33228         xfreopen: new module, from coreutils
33229         * modules/xfreopen: New module.
33230         * lib/xfreopen.c: New file.
33231         * lib/xfreopen.h: New file.
33232         * MODULES.html.sh (File stream based Input/Output"): Add it.
33233
33234 2009-11-19  Eric Blake  <ebb9@byu.net>
33235
33236         manywarnings: depend on warnings
33237         * modules/manywarnings (Depends-on): Add warnings.
33238
33239         build: avoid compiler warnings
33240         * lib/select.c (rpl_select): Delete unused variable.
33241         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33242
33243 2009-11-18  Eric Blake  <ebb9@byu.net>
33244
33245         tests: avoid false negative with --with-packager
33246         * tests/test-version-etc.sh: Discard packager information.
33247         * tests/test-argp-version-etc-1.sh: Likewise.
33248         Reported by Mike Frysinger.
33249
33250         utimens: fix regression on Solaris
33251         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33252         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33253         can only change fd timestamps via futimesat.  Instead, use an
33254         additional witness macro to avoid BSD bug.
33255         Reported by Jim Meyering.
33256
33257 2009-11-17  Eric Blake  <ebb9@byu.net>
33258
33259         usleep: use it to simplify tests
33260         * modules/stat-time-tests (Depends-on): Add usleep.
33261         (configure.ac): Drop usleep check.
33262         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33263         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33264         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33265         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33266         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33267         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33268         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33269         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33270         Likewise.
33271         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33272         * tests/test-lchown.h (nap): Likewise.
33273         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33274         * tests/test-stat-time.c (nap): Likewise.
33275         * tests/test-utimens-common.h (nap): Update comments.
33276
33277         usleep: new module
33278         * modules/usleep: New file.
33279         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33280         * lib/usleep.c (usleep): Likewise.
33281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33282         * modules/unistd (Makefile.am): Substitute witnesses.
33283         * lib/unistd.in.h (usleep): Add declaration.
33284         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33285         * MODULES.html.sh (Date and time): Likewise.
33286         * modules/usleep-tests (Depends-on): New test.
33287         * tests/test-usleep.c: New file.
33288
33289         chown: work around OpenBSD bug
33290         * lib/chown.c (rpl_chown): Work around the bug.
33291         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33292         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33294         * modules/chown (Depends-on): Add stdbool.
33295         * modules/lchown (Depends-on): Likewise.
33296         * doc/posix-functions/chown.texi (chown): Document the bug.
33297         * doc/posix-functions/lchown.texi (lchown): Likewise.
33298         * tests/test-lchown.h (test_chown): Relax test.
33299
33300         mkstemp: avoid conflict with C++ keyword template
33301         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33302         * lib/mkostemp.c (mkostemp): Likewise.
33303         * lib/mkostemps.c (mkostemps): Likewise.
33304         * lib/mkstemp.c (mkstemp): Likewise.
33305         * lib/mkstemps.c (mkstemps): Likewise.
33306
33307         xalloc-die-tests: optimize
33308         * tests/test-xalloc-die.sh: Reduce number of processes.
33309
33310 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33311
33312         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33313         patch from ludo@gnu.org (Ludovic Courtès).
33314
33315 2009-11-17  Jim Meyering  <meyering@redhat.com>
33316
33317         version-etc: use proper license string
33318         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33319         * modules/version-etc-fsf: Likewise.
33320
33321 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33322
33323         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33324         printed to stdout.  Deal with EOL differences.
33325
33326 2009-11-17  Eric Blake  <ebb9@byu.net>
33327
33328         unsetenv: work around Solaris bug
33329         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33330         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33331         Reported by Jim Meyering.
33332
33333         vasnprintf: avoid compiler warnings
33334         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33335         variables.
33336         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33337
33338 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33339
33340         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33341         settings since xalloc-die is no longer the self test,
33342         xalloc-die.sh is.
33343
33344 2009-11-17  Jim Meyering  <meyering@redhat.com>
33345
33346         test-xalloc-die.sh: make the code agree with the commit log
33347         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33348         at the end, just in case you happen to have a test-xalloc-die
33349         program in some other PATH directory.
33350
33351         test-xalloc-die.sh: fix a portability bug
33352         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33353         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33354         Otherwise, argv[0] (as often seen in diagnostics) would be too
33355         system-dependent, sometimes with, and sometimes without the leading "./".
33356
33357         version-etc-fsf: relax license to LGPLv3+
33358         * modules/version-etc-fsf (License): Relax license.
33359
33360 2009-11-16  Eric Blake  <ebb9@byu.net>
33361
33362         xalloc-die-tests: avoid printing null pointer
33363         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33364         shell script.
33365         * tests/test-xalloc-die.c (program_name): Declare.
33366         * tests/test-xalloc-die.sh (tmpfiles): New file.
33367
33368         setenv, unsetenv: work around various bugs
33369         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33370         (setenv) [HAVE_SETENV]: Work around bugs.
33371         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33372         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33373         for bugs.
33374         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33375         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33377         * modules/stdlib (Makefile.am): Update substitutions.
33378         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33379         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33380         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33381         * modules/setenv-tests: New test.
33382         * modules/unsetenv-tests: Likewise.
33383         * tests/test-setenv.c: New file.
33384         * tests/test-unsetenv.c: Likewise.
33385
33386 2009-11-16  Jim Meyering  <meyering@redhat.com>
33387
33388         version-etc: relax license to LGPLv3+
33389         * modules/version-etc (License): Relax license.
33390
33391         better AC_REQUIRE expanded-before-required-warning avoidance
33392         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33393         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33394         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33395         which is no longer needed.
33396
33397 2009-11-16  Eric Blake  <ebb9@byu.net>
33398
33399         test-freading: clean up temporary file
33400         * tests/test-freading.c (main): Remove file on success, and use
33401         ASSERT more liberally.
33402         Reported by Jim Meyering.
33403
33404 2009-11-16  Jim Meyering  <meyering@redhat.com>
33405
33406         avoid new AC_REQUIRE expanded-before-required warnings
33407         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33408         merely using it.
33409         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33410         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33411
33412 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33413
33414         * tests/test-xalloc-die.c: New file.
33415         * modules/xalloc-die-tests: New file.
33416         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33417         XFAIL_TESTS so it can be appended by modules.
33418
33419 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33420
33421         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33422         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33423
33424 2009-11-14  Eric Blake  <ebb9@byu.net>
33425
33426         fnmatch: avoid compiler warning
33427         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33428         to silence compiler warning about mismatch signedness in ?:.
33429         Reported by Robert Millan.
33430
33431         intprops: add double-inclusion guard
33432         * lib/intprops.h: Allow idempotent includes.
33433         Suggested by Bruce Korb.
33434
33435         openat: detect Solaris fchownat bug
33436         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33437         penalizing glibc chownat when only lchownat is broken.
33438         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33439         trailing slash bugs.
33440         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33441         * modules/openat-tests (Files): Include more files.
33442         (Depends-on): Add mgetgroups, sleep, stat-time.
33443         (configure.ac): Add additional checks.
33444         (Makefile.am): Build new test.
33445         * tests/test-fchownat.c: New file.
33446
33447         lchown: detect Solaris and FreeBSD bug
33448         * lib/lchown.c (rpl_lchown): Work around bug.
33449         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33451         * modules/unistd (Makefile.am): Populate it.
33452         * lib/unistd.in.h (lchown): Update declaration.
33453         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33454         * modules/lchown-tests: New file.
33455         * tests/test-lchown.h (test_lchown): Likewise.
33456         * tests/test-lchown.c (main): Likewise.
33457
33458         chown: detect Solaris and FreeBSD bug
33459         * lib/chown.c (rpl_chown): Work around bug.
33460         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33461         (gl_PREREQ_CHOWN): Delete.
33462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33463         * modules/unistd (Makefile.am): Populate it.
33464         * lib/unistd.in.h (chown): Update declaration.
33465         * lib/lchown.c (chown): Update client.
33466         * modules/lchown (Depends-on): Add lstat.
33467         * doc/posix-functions/chown.texi (chown): Document the bug.
33468         * doc/posix-functions/getgroups.texi (getgroups): Document
33469         getgroups pitfall.
33470         * modules/chown-tests: New file.
33471         * tests/test-chown.h (test_chown): Likewise.
33472         * tests/test-chown.c (main): Likewise.
33473
33474 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33475
33476         gnulib-tool: correctly detect absence of m4 directories
33477         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33478
33479 2009-11-14  Jim Meyering  <meyering@redhat.com>
33480
33481         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33482         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33483
33484 2009-11-14  John W. Eaton  <jwe@gnu.org>
33485
33486         strftime.h: wrap funtion declaration in extern "C" block
33487         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33488
33489 2009-11-13  Eric Blake  <ebb9@byu.net>
33490
33491         getgroups: avoid compiler warning
33492         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33493
33494         getgroups: work around FreeBSD bug
33495         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33496         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33497         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33498         * tests/test-getgroups.c (main): Fix buffer overrun.
33499
33500         getgroups: avoid compilation failure
33501         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33502         * modules/getgroups (Depends-on): Add stdint.
33503
33504 2009-11-13  Jim Meyering  <meyering@redhat.com>
33505
33506         test-getgroups: avoid compilation failure
33507         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33508
33509 2009-11-13  Eric Blake  <ebb9@byu.net>
33510
33511         mgetgroups: new module, taken from coreutils
33512         * modules/mgetgroups: New file.
33513         * lib/mgetgroups.h: Likewise.
33514         * lib/mgetgroups.c (mgetgroups): Likewise.
33515         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33516         * MODULES.html.sh (Users and groups): Mention it.
33517
33518         getgroups: don't expose GETGROUPS_T to user
33519         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33520         an element at a time if GETGROUPS_T is wrong size.
33521         * lib/getugroups.h (getugroups): Change signature.
33522         * lib/unistd.in.h (getgroups): Likewise.
33523         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33524         signature needs fixing.
33525         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33526         AC_TYPE_GETGROUPS.
33527         * modules/group-member (Depends-on): Add getgroups.
33528         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33529         (group_member): Rely on getgroups replacement.
33530         * lib/getugroups.c (getugroups): Use gid_t.
33531         * tests/test-getgroups.c (main): Likewise.
33532         * NEWS: Mention the signature change.
33533         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33534         problem with signature.
33535         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33536         GETGROUPS_T is still useful for setgroups.
33537
33538         getgroups, getugroups: provide stubs for mingw
33539         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33540         * lib/getugroups.c (getugroups): Likewise.
33541         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33542         function.  Modernize replacement scheme.
33543         (gl_PREREQ_GETGROUPS): Delete.
33544         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33545         * modules/getgroups (configure.ac): Declare witness.
33546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33547         * modules/unistd (Depends-on): Substitute witness.
33548         * lib/unistd.in.h (getgroups): Declare replacement.
33549
33550         getgroups: avoid calling exit
33551         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33552         drop xalloc.
33553         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33554         dependencies.
33555         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33556         exiting, in the rare case of malloc failure.
33557
33558         getgroups: fix logic error
33559         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33560         has more than 20 groups.
33561         * modules/getgroups-tests: New test.
33562         * tests/test-getgroups.c: New file.
33563
33564 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33565
33566         * tests/test-base64.c: Improve.
33567
33568 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33569
33570         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33571         Blake <ebb9@byu.net>.
33572
33573 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33574
33575         * tests/test-xvasprintf.c: Add %s%s related checks.
33576
33577 2009-11-12  Eric Blake  <ebb9@byu.net>
33578
33579         version-etc: match standards.texi style
33580         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33581         and use <> only for URLs.
33582
33583 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33584
33585         fts: do not fail on a submount during traversal
33586         * lib/fts.c (fts_build): Read the stat info again after opening
33587         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33588         Original report at http://bugzilla.redhat.com/501848.
33589
33590 2009-11-12  Jim Meyering  <meyering@redhat.com>
33591
33592         bootstrap: sync from coreutils
33593         * build-aux/bootstrap (bootstrap_epilogue): New function.
33594         Use git_modules_config in one more place.  This make bootstrap's
33595         --gnulib-srcdir option more useful for testing.
33596
33597         bootstrap: generalize autoheader check
33598         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33599         AC_CONFIG_HEADERS.
33600
33601 2009-11-11  Eric Blake  <ebb9@byu.net>
33602
33603         mkfifoat: use new modules for Solaris and BSD bugs
33604         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33605         * lib/mkfifoat.c (mknodat): Split...
33606         * lib/mknodat.c (mknodat): ...into new file.
33607         * modules/mkfifoat (Files): Ship new file.
33608         (Depends-on): Add mkfifo, mknod.
33609         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33610         (Depends-on): Add symlink.
33611         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33612         redundant with test_mkfifo.h.
33613         (do_mkfifoat, do_mknodat): New helpers.
33614
33615         mknod: new module
33616         * modules/mknod: New file.
33617         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33618         * lib/mknod.c (mknod): Likewise.
33619         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33620         defaults.
33621         * modules/sys_stat (Makefile.am): Substitute them.
33622         * lib/sys_stat.in.h (mknod): Declare replacement.
33623         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33624         Document it.
33625         * doc/posix-functions/mknod.texi (mknod): Likewise.
33626         * modules/mknod-tests: New test.
33627         * tests/test-mknod.c: Likewise.
33628
33629         mkfifo: new module
33630         * modules/mkfifo: New file.
33631         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33632         * lib/mkfifo.c (mkfifo): Likewise.
33633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33634         defaults.
33635         * modules/sys_stat (Makefile.am): Substitute them.
33636         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33637         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33638         Document it.
33639         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33640         * modules/mkfifo-tests: New test.
33641         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33642         from test-mkfifoat.c.
33643         * tests/test-mkfifo.c: New file.
33644
33645         readlink: detect FreeBSD bug
33646         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33647         slash on symlink.
33648         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33649         * tests/test-readlink.h (test_readlink): Enhance test.
33650
33651         symlink: detect FreeBSD bug
33652         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33653         slash on symlink.
33654         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33655         * tests/test-symlink.h (test_symlink): Enhance test.
33656
33657 2009-11-10  Eric Blake  <ebb9@byu.net>
33658
33659         link: detect FreeBSD bug
33660         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33661         symlink.
33662         * doc/posix-functions/link.texi (link): Document the bug.
33663         * tests/test-link.h (test_link): Enhance test.
33664         * tests/test-linkat.c (main): Update caller.
33665
33666         unlink, remove: detect FreeBSD bug
33667         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33668         slash on symlink.
33669         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33670         * doc/posix-functions/remove.texi (remove): Likewise.
33671         * tests/test-unlink.h (test_unlink): Enhance test.
33672         * tests/test-remove.c (main): Likewise.
33673
33674 2009-11-09  Eric Blake  <ebb9@byu.net>
33675
33676         rename: detect FreeBSD bug
33677         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33678         slash on symlink.
33679         * modules/renameat-tests (Depends-on): Add filenamecat.
33680         * tests/test-rename.h (test_rename): Allow one more errno.
33681         * tests/test-renameat.c (main): Likewise.
33682         * doc/posix-functions/rename.texi (rename): Document the bug.
33683
33684         open: detect FreeBSD bug
33685         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33686         symlink.
33687         * doc/posix-functions/open.texi (open): Document the bug.
33688         * doc/posix-functions/utimes.texi (utimes): Likewise.
33689         * tests/test-open.h (test_open): Add parameters, and test symlink
33690         handling.
33691         * tests/test-open.c (main): Adjust caller.
33692         * tests/test-fcntl-safer.c (main): Likewise.
33693         * modules/open-tests (Depends-on): Add stdbool, symlink.
33694         * modules/fcntl-safer-tests (Depends-on): Likewise.
33695         * tests/test-openat.c (main): Add test-open tests.
33696
33697         stat: detect FreeBSD bug
33698         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33699         symlink.
33700         * doc/posix-functions/stat.texi (stat): Document the bug.
33701         * tests/test-stat.h (test_stat_func): Add argument.
33702         * tests/test-stat.c (main): Adjust caller.
33703         * tests/test-fstatat.c (main): Likewise.
33704         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33705         Reported by Jim Meyering.
33706
33707 2009-11-09  James Youngman  <jay@gnu.org>
33708
33709         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33710         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33711
33712 2009-11-08  Jim Meyering  <meyering@redhat.com>
33713
33714         utimens: remove invalid futimesat call
33715         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33716         It used the file descriptor of the target file as the DIR_FD
33717         parameter and NULL as the file name.  That caused failure with
33718         errno == EFAULT on FreeBSD-8.0-rc2
33719
33720 2009-11-07  Eric Blake  <ebb9@byu.net>
33721
33722         fflush, freadseek: use fseeko, not fseek
33723         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33724         (clear_ungetc_buffer): Avoid potential problems on large files.
33725         * lib/freadseek.c (freadseek): Likewise.
33726         * modules/freadseek (Depends-on): Add fseeko.
33727         * modules/fseek (configure.ac): Set a witness.
33728         * tests/test-fflush.c (main): Use fseeko.
33729         * tests/test-fpurge.c (fseek): Disable link warning.
33730         * tests/test-freadable.c (fseek): Likewise.
33731         * tests/test-freading.c (fseek): Likewise.
33732         * tests/test-fseeko.c (fseek): Likewise.
33733         * tests/test-ftell.c (fseek): Likewise.
33734         * tests/test-ftello.c (fseek): Likewise.
33735         * tests/test-fwritable.c (fseek): Likewise.
33736         * tests/test-fwriting.c (fseek): Likewise.
33737
33738 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33739
33740         * modules/memchr (Depends-on): Drop getpagesize dependency.
33741
33742 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33743
33744         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33745         Reported by Ludovic Courtès.
33746         * build-aux/pmccabe2html: Improve example usage.
33747         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33748
33749 2009-11-06  Jim Meyering  <meyering@redhat.com>
33750
33751         do-release-commit-and-tag: New module.
33752         Automate the release-commit and tag process.
33753         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33754         * modules/do-release-commit-and-tag: New file.
33755         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33756
33757 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33758
33759         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33760         because test-select.c uses inet_pton.
33761
33762 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33763
33764         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33765         GETADDRINFO_LIB.  Bump serial number.
33766         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33767         Suggested by Eric Blake <ebb9@byu.net>.
33768
33769 2009-11-05  Eric Blake  <ebb9@byu.net>
33770
33771         strtod: detect darwin bug
33772         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33773         Reported by Leo Davis.
33774
33775         freopen-safer: new module
33776         * modules/freopen-safer: New module.
33777         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33778         * lib/freopen-safer.c (freopen_safer): New file.
33779         * lib/stdio-safer.h (freopen_safer): New declaration.
33780         * lib/stdio--.h (freopen): New override.
33781         * MODULES.html.sh (File stream based Input/Output): Mention it.
33782         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33783         freopen-safer module.
33784         * doc/posix-functions/stderr.texi (stderr): Likewise.
33785         * doc/posix-functions/stdin.texi (stdin): Likewise.
33786         * doc/posix-functions/stdout.texi (stdout): Likewise.
33787         * modules/freopen-safer-tests: New test.
33788         * tests/test-reopen-safer.c: New file.
33789
33790 2009-11-05  Jim Meyering  <meyering@redhat.com>
33791
33792         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33793         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33794
33795 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33796
33797         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33798
33799 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33800
33801         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33802
33803 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33804
33805         Fix link error.
33806         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33807         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33808
33809 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33810
33811         * tests/test-func.c: Also test value of __func__.
33812
33813 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33814
33815         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33816         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33817
33818 2009-11-05  Bruno Haible  <bruno@clisp.org>
33819
33820         Fix link error.
33821         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33822         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33823         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33824
33825 2009-11-05  Bruno Haible  <bruno@clisp.org>
33826
33827         Tests for module 'inet_pton'.
33828         * modules/inet_pton-tests: New file.
33829         * tests/test-inet_pton.c: New file.
33830
33831 2009-11-05  Bruno Haible  <bruno@clisp.org>
33832
33833         Tests for module 'inet_ntop'.
33834         * modules/inet_ntop-tests: New file.
33835         * tests/test-inet_ntop.c: New file.
33836
33837 2009-11-04  Eric Blake  <ebb9@byu.net>
33838
33839         stdlib-safer: wrap all mkstemp variants
33840         * modules/mkostemp (configure.ac): Set witness.
33841         * modules/mkostemps (configure.ac): Likewise.
33842         * modules/mkstemps (configure.ac): Likewise.
33843         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33844         (mkstemps_safer): Wrap more functions.
33845         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33846         wrapping.
33847         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33848         (mkstemps_safer): Implement the wrappers.
33849
33850         mkstemps, mkostemps: new modules
33851         * modules/mkostemps: New module.
33852         * modules/mkstemps: Likewise.
33853         * lib/mkostemps.c (mkostemps): New file.
33854         * lib/mkstemps.c (mkstemps): Likewise.
33855         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33856         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33858         * modules/stdlib (Makefile.am): Substitute them.
33859         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33860         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33861         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33862         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33863         * MODULES.html.sh (File system functions): Mention them.
33864
33865         tempname: resync from glibc
33866         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33867         same values for __GT_FILE as glibc.  Abort even when assertions
33868         are disabled.
33869         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33870         match its value otherwise.  Allow idempotent inclusion.
33871         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33872         * lib/mkostemp.c (mkostemp): Likewise.
33873         * lib/mkstemp.c (mkstemp): Likewise.
33874         * lib/tmpfile.c (tmpfile): Likewise.
33875         * NEWS: Document this.
33876
33877         utimens: fix use of futimens on older Linux
33878         * lib/utimens.c (fdutimens): Use updated, rather than original,
33879         timespec to avoid bug in older Linux kernel.
33880         Reported by Simon Josefsson.
33881
33882 2009-11-04  Bruno Haible  <bruno@clisp.org>
33883
33884         Make num_processors more flexible and consistent.
33885         * lib/nproc.h (enum nproc_query): New type.
33886         (num_processors): Add a 'query' argument.
33887         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33888         (num_processors): Add a 'query' argument. Test the value of the
33889         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33890         mingw, count the number of CPUs available for the current process.
33891         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33892         Check for sched_getaffinity and sched_getaffinity_np.
33893         * modules/nproc (Depends-on): Add c-ctype, extensions.
33894         * NEWS: Mention the change.
33895
33896 2009-11-03  Bruno Haible  <bruno@clisp.org>
33897
33898         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33899
33900 2009-11-03  Jim Meyering  <meyering@redhat.com>
33901
33902         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33903         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33904         if it is defined.
33905
33906 2009-11-02  Eric Blake  <ebb9@byu.net>
33907
33908         mktime, timegm: share common declaration
33909         * lib/mktime-internal.h: New file.
33910         * lib/mktime.c: Use it rather than open-coding a declaration.
33911         * lib/timegm.c: Likewise.
33912         * modules/mktime (Files): Ship it.
33913         * modules/timegm (Files): Likewise.
33914         Suggested by Bruno Haible.
33915
33916         test-update-copyright: update test to match script changes
33917         * tests/test-update-copyright.sh: Avoid hard-coding perl
33918         location.  Don't update *.bak created by earlier runs.
33919
33920 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33921             Simon Josefsson  <simon@josefsson.org>
33922             Bruno Haible  <bruno@clisp.org>
33923
33924         Fix link error on Solaris 8.
33925         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33926         also in libnsl. Define also INET_PTON_LIB.
33927         * modules/inet_pton (Link): New section.
33928
33929 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33930             Bruno Haible  <bruno@clisp.org>
33931
33932         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33933         * modules/inet_ntop (Link): New section.
33934         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33935
33936 2009-11-02  Eric Blake  <ebb9@byu.net>
33937
33938         maint: avoid compiler warnings in m4 macros
33939         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33940         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33941
33942 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33943
33944         * m4/pmccabe2html.m4: Remove file.
33945         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33946         function.  Change maintainer.
33947         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33948         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33949         Courtès).
33950
33951 2009-10-31  Eric Blake  <ebb9@byu.net>
33952
33953         fseeko: fix m4 regression
33954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33955         regression from 2009-10-27.
33956         Reported by Ralf Wildenhues.
33957
33958 2009-10-31  Jim Meyering  <meyering@redhat.com>
33959
33960         inttostr: aesthetics and improved (compile-time) safety
33961         Define inttype_is_signed rather than inttype_is_unsigned,
33962         since the sole use is via "#if inttype_is_signed".
33963         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33964         inttype_is_unsigned.
33965         * lib/offtostr.c (inttype_is_signed): Likewise.
33966         * lib/uinttostr.c (inttype_is_signed): Likewise.
33967         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33968         * lib/inttostr.c (inttostr): Use verify to cross-check the
33969         inttype_is_signed value and the signedness of the actual type.
33970         * modules/inttostr (Depends-on): Add verify.
33971
33972 2009-10-30  Eric Blake  <ebb9@byu.net>
33973
33974         build: avoid compiler warnings
33975         * lib/fchmodat.c (lchmod): Mark unused variables.
33976         * lib/getopt.c (_getopt_initialize): Likewise.
33977         * lib/mktime.c (__mktime_internal): Provide prototype.
33978         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33979         older gcc that do not understand #pragma GCC diagnostic.
33980         * lib/uinttostr.c (inttype_is_unsigned): Define.
33981         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33982
33983 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33984
33985         stat: fix compilation on AIX
33986         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33987         only see struct stat64.
33988
33989 2009-10-30  Eric Blake  <ebb9@byu.net>
33990
33991         exclude: make more robust
33992         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33993         rather than masking a coding bug.
33994         Suggested by Bruno Haible.
33995
33996 2009-10-30  Jim Meyering  <meyering@redhat.com>
33997
33998         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33999         Rather than putting #!/usr/bin/perl on the first line,
34000         start with a variant of what's recommended by "man perlrun" that
34001         invokes the first "perl" program from your shell's search path.
34002         * build-aux/gitlog-to-changelog: Replace #!... as above.
34003         Add a "Local Variables" perl mode setting.
34004         Prompted by a patch from Ludovic Courtès.
34005         Improved by Eric Blake.
34006         * build-aux/useless-if-before-free: Likewise.
34007         * build-aux/announce-gen: Likewise.
34008         * build-aux/update-copyright: Likewise.
34009
34010 2009-10-29  Eric Blake  <ebb9@byu.net>
34011
34012         filenamecat-lgpl: adjust clients
34013         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34014         filenamecat.
34015         * modules/renameat (Depends-on): Likewise.
34016
34017         filenamecat: split into filenamecat-lgpl
34018         * modules/filenamecat-lgpl: New module.
34019         * modules/filenamecat (Files): Move library-safe files into
34020         filenamecat-lgpl.
34021         (Depends-on): Add filenamecat-lgpl.
34022         (configure.ac): Declare witness.
34023         * lib/filenamecat.h (file_name_concat): Only declare when using
34024         GPL module.
34025         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34026         Move...
34027         * lib/filenamecat-lgpl.c: ...into new file.
34028         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34029         (gl_FILE_NAME_CONCAT): Use it.
34030         * MODULES.html.sh (File system functions): Mention new module.
34031
34032         argp: avoid memory leak
34033         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34034         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34035         base_name, since the latter malloc()s and can call exit().
34036         Leak introduced 2006-07-03.
34037
34038         dirname-lgpl: adjust clients that don't need full dirname
34039         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34040         * modules/filenamecat (Depends-on): Likewise.
34041         * modules/linkat (Depends-on): Likewise.
34042         * modules/mkancesdirs (Depends-on): Likewise.
34043         * modules/mkdir (Depends-on): Likewise.
34044         * modules/openat (Depends-on): Likewise.
34045         * modules/savewd (Depends-on): Likewise.
34046         * modules/rename (Depends-on): Likewise.
34047         (License): Relax license.
34048         * modules/mkdir-tests (Depends-on): Drop progname.
34049         (Makefile.am): Delete unneeded LDADD.
34050         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34051
34052         dirname: split into dirname-lgpl
34053         * modules/dirname-lgpl: New module.
34054         * modules/dirname (Files): Move library-safe files into
34055         dirname-lgpl.
34056         (Depends-on): Add dirname-lgpl.
34057         (configure.ac): Declare witness.
34058         * modules/double-slash-root (License): Relax license.
34059         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34060         module.
34061         * lib/dirname.c (dir_len, mdir_name): Move...
34062         * lib/dirname-lgpl.c: ...into new file.
34063         * lib/basename.c (last_component, base_len): Move...
34064         * lib/basename-lgpl.c: ...into new file.
34065         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34066         (gl_DIRNAME): Use it.
34067         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34068         Mention new module.
34069         * modules/dirname-tests (Depends-on): Add progname.
34070         * tests/test-dirname.c (program_name): Delete.
34071
34072         mkdir: make safe for libraries
34073         * modules/mkdir (Depends-on): Drop xalloc.
34074         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34075         exit.
34076
34077         tests: avoid some compiler warnings
34078         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34079         literals.
34080         * tests/test-memchr.c (main): Avoid type mismatch.
34081         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34082         * tests/test-base64.c (main): Likewise.
34083         * tests/test-getdelim.c (main): Likewise.
34084         * tests/test-gethostname.c (main): Likewise.
34085         * tests/test-getline.c (main): Likewise.
34086         * tests/test-netinet_in.c (main): Likewise.
34087         * tests/test-select.c (open_server_socket, main): Likewise.
34088         * tests/test-select-stdin.c (main): Likewise.
34089         * tests/test-sockets.c (main): Likewise.
34090         * tests/test-strsignal.c (main): Likewise.
34091         * tests/test-sys_select.c (main): Likewise.
34092         * tests/test-sys_socket.c (main): Likewise.
34093         * tests/test-u64.c (main): Likewise.
34094         * tests/test-xfprintf-posix.c (main): Likewise.
34095         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34096
34097         sockets: avoid compiler warning
34098         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34099
34100         maint: detect usage(1) and other suspicious exits
34101         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34102
34103 2009-10-29  Jim Meyering  <meyering@redhat.com>
34104
34105         timespec: long-to-int truncation could make timespec_cmp malfunction
34106         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34107         a multiple of 2^32 nanoseconds as no difference.
34108
34109 2009-10-28  Jim Meyering  <meyering@redhat.com>
34110
34111         fprintftime: wrap macro code argument in "do {...} while(0)"
34112         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34113         cpy macro must be a statement that can be followed by a semicolon.
34114         Now that the else clause contains a comment and is hence longer
34115         than one line, I require curly braces.  That in turn requires
34116         that we wrap this code block in the standard do...while(0).
34117
34118         fprintftime: remove stray semicolon from previous change
34119         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34120
34121         fprintftime: avoid a warning about ignored fwrite return value
34122         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34123         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34124         that is unsafe.
34125         * modules/fprintftime (Depends-on): Add ignore-value.
34126
34127         exclude: avoid an unwarranted warning
34128         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34129
34130 2009-10-27  Eric Blake  <ebb9@byu.net>
34131
34132         fseek: avoid compilation failure when fflush is replaced
34133         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34134         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34135         module is in use.
34136         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34137         module is not in use; since REPLACE_FSEEK worked otherwise.
34138         (GNULIB_FTELLO): Likewise for ftell.
34139         Reported by Ian Beckwith and others.
34140
34141 2009-10-27  Bruno Haible  <bruno@clisp.org>
34142
34143         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34144         Reported by Jim Meyering.
34145
34146 2009-10-27  Jim Meyering  <jim@meyering.net>
34147             Bruno Haible  <bruno@clisp.org>
34148
34149         Avoid warning despite dropping the return value of fwrite.
34150         * lib/unicodeio.c: Include ignore-value.h.
34151         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34152         * modules/unicodeio (Depends-on): Add ignore-value.
34153
34154 2009-10-26  Eric Blake  <ebb9@byu.net>
34155
34156         areadlinkat: fix fallback path
34157         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34158         pointer and zero.
34159
34160 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34161
34162         Use a better IO block size for modern systems
34163         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34164         * lib/md2.c: Likewise.
34165         * lib/md4.c: Likewise.
34166         * lib/md5.c: Likewise.
34167         * lib/sha1.c: Likewise.
34168         * lib/sha256.c: Likewise.
34169         * lib/sha512.c: Likewise.
34170
34171 2009-10-22  Eric Blake  <ebb9@byu.net>
34172
34173         tests: avoid several compiler warnings
34174         * tests/test-getcwd.c (main): Avoid buffer underflow.
34175         * tests/test-getdate.c (main): String literals are not safe with
34176         putenv, so use setenv.  Declare unused argument.
34177         * modules/getdate-tests (Depends-on): Add setenv.
34178         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34179         problems with string literals in char *.
34180         * tests/test-hash.c (main): Avoid shadowing declaration.
34181         (insert_new): Treat string literals as char const *.
34182         * tests/test-getopt.h (test_getopt): Likewise.
34183         (getopt_loop): Alter types to minimize casting elsewhere.
34184         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34185         (test_getopt_long_posix): Likewise.
34186         (do_getopt_long): Add wrapper to minimize casting.
34187         * tests/test-atexit.c (clear_temp_file): Use void.
34188         * tests/test-areadlink-with-size.c (main): Declare unused
34189         arguments.
34190         * tests/test-areadlink.c (main): Likewise.
34191         * tests/test-areadlinkat-with-size.c (main): Likewise.
34192         * tests/test-areadlinkat.c (main): Likewise.
34193         * tests/test-canonicalize-lgpl.c (main): Likewise.
34194         * tests/test-canonicalize.c (main): Likewise.
34195         * tests/test-dirent-safer.c (main): Likewise.
34196         * tests/test-dirname.c (main): Likewise.
34197         * tests/test-dup2.c (main): Likewise.
34198         * tests/test-fchdir.c (main): Likewise.
34199         * tests/test-fcntl-h.c (main): Likewise.
34200         * tests/test-fcntl-safer.c (main): Likewise.
34201         * tests/test-fdopendir.c (main): Likewise.
34202         * tests/test-fdutimensat.c (main): Likewise.
34203         * tests/test-fflush.c (main): Likewise.
34204         * tests/test-filenamecat.c (main): Likewise.
34205         * tests/test-filevercmp.c (main): Likewise.
34206         * tests/test-fopen-safer.c (main): Likewise.
34207         * tests/test-fopen.c (main): Likewise.
34208         * tests/test-fpending.c (main): Likewise.
34209         * tests/test-fpurge.c (main): Likewise.
34210         * tests/test-freading.c (main): Likewise.
34211         * tests/test-fstatat.c (main): Likewise.
34212         * tests/test-fsync.c (main): Likewise.
34213         * tests/test-futimens.c (main): Likewise.
34214         * tests/test-getndelim2.c (main): Likewise.
34215         * tests/test-gettimeofday.c (main): Likewise.
34216         * tests/test-getopt.c (main): Likewise.
34217         * tests/test-i-ring.c (main): Likewise.
34218         * tests/test-inttypes.c (main): Likewise.
34219         * tests/test-link.c (main): Likewise.
34220         * tests/test-lstat.c (main): Likewise.
34221         * tests/test-math.c (main): Likewise.
34222         * tests/test-md5.c (main): Likewise.
34223         * tests/test-memchr2.c (main): Likewise.
34224         * tests/test-memrchr.c (main): Likewise.
34225         * tests/test-mkdir.c (main): Likewise.
34226         * tests/test-mkdirat.c (main): Likewise.
34227         * tests/test-mkfifoat.c (main): Likewise.
34228         * tests/test-open.c (main): Likewise.
34229         * tests/test-openat-safer.c (main): Likewise.
34230         * tests/test-openat.c (main): Likewise.
34231         * tests/test-quotearg.c (main): Likewise.
34232         * tests/test-rawmemchr.c (main): Likewise.
34233         * tests/test-readlink.c (main): Likewise.
34234         * tests/test-remove.c (main): Likewise.
34235         * tests/test-rename.c (main): Likewise.
34236         * tests/test-renameat.c (main): Likewise.
34237         * tests/test-rmdir.c (main): Likewise.
34238         * tests/test-sha1.c (main): Likewise.
34239         * tests/test-signal.c (main): Likewise.
34240         * tests/test-sigaction.c (main): Likewise.
34241         * tests/test-stat.c (main): Likewise.
34242         * tests/test-stat-time.c (main): Likewise.
34243         * tests/test-stddef.c (main): Likewise.
34244         * tests/test-stdint.c (main): Likewise.
34245         * tests/test-stdio.c (main): Likewise.
34246         * tests/test-stdlib.c (main): Likewise.
34247         * tests/test-strchrnul.c (main): Likewise.
34248         * tests/test-strerror.c (main): Likewise.
34249         * tests/test-string.c (main): Likewise.
34250         * tests/test-strtod.c (main): Likewise.
34251         * tests/test-strverscmp.c (main): Likewise.
34252         * tests/test-symlink.c (main): Likewise.
34253         * tests/test-symlinkat.c (main): Likewise.
34254         * tests/test-sys_stat.c (main): Likewise.
34255         * tests/test-sys_time.c (main): Likewise.
34256         * tests/test-time.c (main): Likewise.
34257         * tests/test-unistd.c (main): Likewise.
34258         * tests/test-unlink.c (main): Likewise.
34259         * tests/test-unlinkat.c (main): Likewise.
34260         * tests/test-utimens.c (main): Likewise.
34261         * tests/test-utimensat.c (main): Likewise.
34262         * tests/test-version-etc.c (main): Likewise.
34263         * tests/test-wchar.c (main): Likewise.
34264         * tests/test-wctype.c (main): Likewise.
34265         * tests/test-xprintf-posix.c (main): Likewise.
34266         * tests/test-posixtm.c (main): Likewise.
34267         (STREQ): Delete unused macro.
34268         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34269         shadowed variables.
34270         * tests/test-memchr.c (main): Likewise.
34271
34272 2009-10-21  Eric Blake  <ebb9@byu.net>
34273
34274         areadlinkat: avoid failure on older glibc
34275         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34276         rather than mis-comparing 0 against FUNC_RESULT of char*.
34277
34278 2009-10-21  Bruno Haible  <bruno@clisp.org>
34279
34280         * modules/stpncpy (License): Relicense under LGPLv2+.
34281         Reported by David Lutterkort <lutter@redhat.com>.
34282
34283 2009-10-20  Eric Blake  <ebb9@byu.net>
34284
34285         utimensat: work around Solaris 9 bug
34286         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34287         has trailing slash bugs.
34288         * tests/test-lutimens.h (test_lutimens): Enhance test.
34289         * tests/test-utimens.h (test_utimens): Likewise.
34290         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34291         * doc/posix-functions/utimes.texi (utimes): Likewise.
34292         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34293         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34294         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34295         * doc/posix-functions/futimens.texi (futimens): Likewise.
34296
34297         fdutimensat: new module
34298         * modules/fdutimensat: New file.
34299         * lib/fdutimensat.c (fdutimensat): Likewise.
34300         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34301         * MODULES.html.sh (File system functions): Mention module.
34302         * modules/fdutimensat-tests: New test.
34303         * tests/test-fdutimensat.c: Likewise.
34304
34305         doc: regenerate INSTALL
34306         * doc/INSTALL: Reflect recent autoconf update.
34307         * doc/INSTALL.ISO: Likewise.
34308         * doc/INSTALL.UTF-8: Likewise.
34309
34310 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34311
34312         acl: warn if ACL support is not detected
34313         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34314
34315 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34316
34317         * lib/nproc.h: Add extern "C" block for C++.
34318
34319 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34320             Bruno Haible  <bruno@clisp.org>
34321
34322         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34323         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34324         * doc/posix-functions/isalpha.texi: Likewise.
34325         * doc/posix-functions/isblank.texi: Likewise.
34326         * doc/posix-functions/iscntrl.texi: Likewise.
34327         * doc/posix-functions/isdigit.texi: Likewise.
34328         * doc/posix-functions/isgraph.texi: Likewise.
34329         * doc/posix-functions/islower.texi: Likewise.
34330         * doc/posix-functions/isprint.texi: Likewise.
34331         * doc/posix-functions/ispunct.texi: Likewise.
34332         * doc/posix-functions/isspace.texi: Likewise.
34333         * doc/posix-functions/isupper.texi: Likewise.
34334         * doc/posix-functions/isxdigit.texi: Likewise.
34335
34336 2009-10-18  Bruno Haible  <bruno@clisp.org>
34337
34338         Tests for module 'isblank'.
34339         * modules/isblank-tests: New file.
34340         * tests/test-isblank.c: New file.
34341
34342         New module 'isblank'.
34343         * lib/isblank.c: New file.
34344         * m4/isblank.m4: New file.
34345         * modules/isblank: New file.
34346         * doc/posix-functions/isblank.texi: Mention the new module.
34347
34348 2009-10-18  Bruno Haible  <bruno@clisp.org>
34349
34350         New module 'ctype'.
34351         * lib/ctype.in.h: New file.
34352         * m4/ctype.m4: New file.
34353         * modules/ctype: New file.
34354         * doc/posix-headers/ctype.texi: Mention the new module.
34355
34356 2009-10-18  Jim Meyering  <meyering@redhat.com>
34357
34358         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34359         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34360         right after its initialization, rather than farther down.
34361         Keeping these in close proximity makes it easier to ensure
34362         that each such variable is initialized.  E.g.,
34363
34364             LIB_CLOCK_GETTIME=
34365             AC_SUBST([LIB_CLOCK_GETTIME])
34366
34367         This change also increments these serial numbers.
34368         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34371
34372 2009-10-18  Bruno Haible  <bruno@clisp.org>
34373
34374         Don't let environment variables perturb build.
34375         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34376         (gl_PREREQ_GETHRXTIME): ... not here.
34377
34378 2009-10-18  Bruno Haible  <bruno@clisp.org>
34379
34380         Avoid symlink attack in localcharset module.
34381         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34382         (O_NOFOLLOW): Define fallback.
34383         (get_charset_aliases): Don't open the file if it is a symbolic link.
34384         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34385         gl_FCNTL_H.
34386         (gl_FCNTL_H): Require it.
34387         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34388         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34389         Reported by Fergal Glynn <fglynn@veracode.com>.
34390
34391 2009-10-18  Bruno Haible  <bruno@clisp.org>
34392
34393         Implement nproc for mingw.
34394         * lib/nproc.c: Include <windows.h>
34395         (num_processors): On native Windows platforms, try GetSystemInfo.
34396
34397 2009-10-18  Bruno Haible  <bruno@clisp.org>
34398
34399         Implement nproc for IRIX.
34400         * lib/nproc.c: Include <sys/sysmp.h>.
34401         (num_processors): On IRIX systems, try sysmp.
34402         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34403
34404 2009-10-18  Bruno Haible  <bruno@clisp.org>
34405
34406         Implement nproc for HP-UX.
34407         * lib/nproc.c: Include <sys/pstat.h>
34408         (num_processors): On HP-UX systems, try pstat_getdynamic.
34409         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34410         pstat_getdynamic.
34411
34412 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34413             Bruno Haible  <bruno@clisp.org>
34414
34415         Implement nproc for NetBSD, OpenBSD.
34416         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34417         (ARRAY_SIZE): New macro.
34418         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34419         * m4/nproc.m4: New file.
34420         * modules/nproc (Files): Add m4/nproc.m4.
34421         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34422         (Makefile.am): Instead, augment lib_SOURCES.
34423
34424 2009-10-18  Bruno Haible  <bruno@clisp.org>
34425
34426         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34427         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34428         sys/param.h.
34429
34430 2009-10-16  Eric Blake  <ebb9@byu.net>
34431
34432         utimensat: new module
34433         * modules/utimensat: New file.
34434         * lib/utimensat.c (utimensat): Likewise.
34435         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34436         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34437         so we can work around Linux bugs.
34438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34439         * modules/sys_stat (Makefile.am): Substitute them.
34440         * lib/sys_stat.in.h (utimensat): Declare it.
34441         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34442         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34443         * modules/utimensat-tests: New test.
34444         * tests/test-utimensat.c: Likewise.
34445
34446         utimens: let lutimens work on non-symlinks
34447         * lib/utimens.c (lutimens): Fall back to utimens rather than
34448         failing with ENOSYS, when file is not a symlink.
34449         (utimens): Reduce redirection.
34450         * tests/test-lutimens.h (test_lutimens): Update test to cover
34451         non-symlinks.
34452         * tests/test-utimens.h (test_utimens): Update test to cover
34453         symlinks.
34454         * tests/test-utimens.c (main): Update caller.
34455
34456         utimens: cache whether utimensat syscall works
34457         * lib/utimens.c (utimensat_works_really): New cache variable.
34458         (fdutimens, lutimens): Use it to avoid failing syscall.
34459
34460         test-stat-time, test-utimens: improve portability
34461         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34462         ext4 on alpha, and for cygwin.
34463         * tests/test-utimens-common.h: New file.
34464         (nap): Factor delays into single function.
34465         * tests/test-lutimens.h (test_lutimens): Use new header.
34466         * tests/test-futimens.h (test_futimens): Likewise.
34467         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34468         timestamps to occur from same machine, as was done previously for
34469         test_utimens.
34470         * modules/utimens-tests (Files): Ship new file.
34471         * modules/futimens-tests (Files): Likewise.
34472         Reported in part by Jim Meyering.
34473
34474         sys_stat: sort replacement declarations
34475         * lib/sys_stat.in.h: Sort declarations.
34476         * lib/futimens.c (futimens): Fix typo.
34477
34478 2009-10-15  Jim Meyering  <meyering@redhat.com>
34479
34480         don't let environment settings perturb build
34481         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34482         could cause a configure-time and/or build-time malfunction.
34483         Typically, a configure-time function-in-library test is performed
34484         via code like this:
34485
34486           LIB_VAR=
34487           AC_SUBST([LIB_VAR])
34488           prefix_saved_LIBS=$LIBS
34489             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34490                        [test "$ac_cv_search_FUNC" = "none required" ||
34491                         LIB_VAR=$ac_cv_search_FUNC])
34492           LIBS=$prefix_saved_LIBS
34493
34494         However, in each of the files affected by this change, the LIB_VAR=
34495         initialization was omitted.  Thus, when set in the environment, its
34496         value would propagate into generated Makefiles when FUNC is not found
34497         in LIB_NAME.
34498         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34499         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34501
34502 2009-10-14  Eric Blake  <ebb9@byu.net>
34503
34504         fchdir: avoid infinite recursion in mingw
34505         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34506         recursing.
34507
34508         test-stat-time: port to mingw
34509         * tests/test-stat-time.c (force_unlink): Return a value.
34510         (test_ctime) [W32]: Fix compilation error.
34511         (nap): Don't call usleep with too large an argument.  Use
34512         force_unlink.
34513         * doc/pastposix-functions/usleep.texi (usleep): Document the
34514         portability issue.
34515
34516 2009-10-13  Jim Meyering  <meyering@redhat.com>
34517
34518         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34519         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34520         * modules/pipe-filter-ii: Likewise.
34521         * modules/sys_socket-tests: Likewise.
34522         * modules/tsearch-tests: Likewise.
34523         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34524         (check): Depend on it.
34525
34526 2009-10-12  Eric Blake  <ebb9@byu.net>
34527
34528         utimens-tests: port to NFS file systems
34529         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34530         comparisons to avoid spurious failures from timestamp drift
34531         between NFS machines.
34532
34533 2009-10-12  Eric Blake  <ebb9@byu.net>
34534
34535         stat-time-tests: minor cleanups
34536         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34537         * tests/test-stat-time.c (nap): Separate assignment from call.
34538         Suggested by Paolo Bonzini and Bruno Haible.
34539
34540         sys_stat: guarantee struct timespec
34541         * lib/sys_stat.in.h (includes): Always include <time.h>
34542         * modules/sys_stat (Depends-on): Add time.
34543         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34544         mode_t permission values.
34545         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34546         get at subsecond timestamps.
34547
34548 2009-10-10  Eric Blake  <ebb9@byu.net>
34549
34550         futimens: new module
34551         * modules/futimens: New file.
34552         * lib/futimens.c (futimens): Likewise.
34553         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34554         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34555         we can work around Linux bugs.
34556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34557         * modules/sys_stat (Makefile.am): Substitute them.
34558         * lib/sys_stat.in.h (futimens): Declare it.
34559         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34560         * doc/posix-functions/futimens.texi (futimens): Likewise.
34561         * modules/futimens-tests: New test.
34562         * tests/test-futimens.c: Likewise.
34563
34564         utimens: introduce fdutimens
34565         * lib/utimens.h (fdutimens): New prototype.
34566         * lib/utimens.c (gl_futimens): Move guts...
34567         (fdutimens): ...to new interface.
34568         * tests/test-utimens.c (do_fdutimens): Use it.
34569
34570         utimens: add UTIME_NOW and UTIME_OMIT support
34571         * lib/utimens.c (validate_timespec, update_timespec): New helper
34572         functions.
34573         (gl_futimens, lutimens): Use them.
34574         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34575         stdbool, sys_stat.
34576         (Link): Mention resulting library dependency.
34577         * modules/utimecmp (Link): Likewise.
34578         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34579         (Makefile.am): Pick up library dependency.
34580         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34581         definition.
34582         * tests/test-sys_stat.c: Test the definitions.
34583         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34584         * NEWS: Document library dependency.
34585
34586         utimecmp: support symlink timestamps
34587         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34588         hashing when possible.  Use pathconf when available.
34589         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34590         * modules/utimecmp (Depends-on): Add lstat.
34591
34592         utimens: add lutimens interface
34593         * lib/utimens.c (lutimens): New function.
34594         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34595         * lib/utimens.h (lutimens): Declare new interface.
34596         * tests/test-utimens.c (main): Enhance test.
34597         * tests/test-lutimens.h (test_lutimens): New file.
34598         * modules/utimens-tests (Files): Distribute it.
34599         (Depends-on): Add symlink.
34600         (configure.ac): Check for usleep.
34601
34602         utimens: validate futimens usage
34603         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34604         fewer syscalls on failure later on.  Avoid compiler warning on
34605         mingw.
34606         * modules/utimens (Depends-on): Add dup2.
34607
34608         utimens: add test
34609         * modules/utimens-tests: New test.
34610         * tests/test-utimens.h: New file.
34611         * tests/test-futimens.h: Likewise.
34612         * tests/test-utimens.c: Likewise.
34613
34614         doc: mention timestamp portability issues
34615         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34616         instead.
34617         * doc/posix-functions/utime.texi (utime): Likewise.
34618         * doc/posix-functions/utimes.texi (utimes): Likewise.
34619         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34620         instead.
34621         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34622         module.
34623         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34624         Mention weakness with symlink timestamps.
34625         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34626         to utimensat/futimens instead.
34627         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34628
34629         test-dup2: enhance test
34630         * tests/test-dup2.c (main): Also check AT_FDCWD.
34631
34632         test-stat-time: avoid more spurious failures
34633         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34634         xfs; and avoid race if the two timestamps cross quantization edge.
34635
34636         relocatable: prefer 'file system' over 'filesystem'
34637         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34638         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34639         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34640         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34641         * lib/relocatable.c (compute_curr_prefix): Likewise.
34642
34643 2009-10-10  Jim Meyering  <meyering@redhat.com>
34644
34645         stat-time-tests: check for the usleep function
34646         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34647
34648 2009-10-10  Bruno Haible  <bruno@clisp.org>
34649
34650         * modules/xnanosleep: Put the Link section after the Include section.
34651
34652 2009-10-09  Eric Blake  <ebb9@byu.net>
34653
34654         dup2: work around FreeBSD 6.1 bug
34655         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34656         * doc/posix-functions/dup2.texi (dup2): Document it.
34657         Reported by Nelson H. F. Beebe and Jim Meyering.
34658
34659         test-stat-time: port to buggy NFS clients
34660         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34661         (test_ctime): Also skip test if mtime and ctime are skewed.
34662
34663         maint: prefer 'file system' over 'filesystem'
34664         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34665         * doc/posix-functions/lstat.texi (lstat): Likewise.
34666         * lib/file-has-acl.c (file_has_acl): Likewise.
34667         * lib/fwriteerror.c [TEST]: Likewise.
34668         * tests/test-areadlink.h (test_areadlink): Likewise.
34669         * tests/test-areadlinkat-with-size.c (main): Likewise.
34670         * tests/test-areadlinkat.c (main): Likewise.
34671         * tests/test-canonicalize-lgpl.c (main): Likewise.
34672         * tests/test-canonicalize.c (main): Likewise.
34673         * tests/test-fstatat.c (main): Likewise.
34674         * tests/test-linkat.c (main): Likewise.
34675         * tests/test-lstat.h (test_lstat_func): Likewise.
34676         * tests/test-mkdir.h (test_mkdir): Likewise.
34677         * tests/test-readlink.h (test_readlink): Likewise.
34678         * tests/test-remove.c (main): Likewise.
34679         * tests/test-rename.h (test_rename): Likewise.
34680         * tests/test-renameat.c (main): Likewise.
34681         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34682         * tests/test-symlink.h (test_symlink): Likewise.
34683         * tests/test-symlinkat.c (main): Likewise.
34684         * tests/test-unlink.h (test_unlink_func): Likewise.
34685         * tests/test-unlinkat.c (main): Likewise.
34686
34687         maint: make realtime library usage explicit
34688         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34689         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34690         * modules/settime (Link): Likewise.
34691         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34692
34693         test-stat-time: speed up execution
34694         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34695         warning on mingw.
34696         (nap): New helper function.
34697         (prepare_test): Use it to reduce sleep time.
34698         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34699         execution.
34700         * modules/stat-time-tests (configure.ac): Check for usleep.
34701
34702 2009-10-09  Jim Meyering  <meyering@redhat.com>
34703
34704         selinux-h: always use getfilecon wrappers
34705         * lib/getfilecon.c: New file.
34706         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34707         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34708         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34709         (fgetfilecon): Provide a stub.
34710         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34711         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34712         file unconditionally.
34713         When <selinux/selinux.h> is found, arrange to use wrappers.
34714         * modules/selinux-h (Files): Add getfilecon.c.
34715         (Makefile.am): Substitute include-next-related bits
34716         into the now-always-generated selinux/selinux.h file.
34717         * doc/glibc-functions/lgetfilecon.texi: New file.
34718         * doc/glibc-functions/fgetfilecon.texi: New file.
34719         * doc/glibc-functions/getfilecon.texi: New file.
34720         * doc/glibc-functions/getfilecon-desc.texi: New file.
34721         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34722         which to pull in the new files.
34723         * MODULES.html.sh (Misc): Add selinux-h.
34724
34725 2009-10-08  Jim Meyering  <meyering@redhat.com>
34726
34727         unistd: fix comment typo
34728         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34729
34730 2009-10-08  Eric Blake  <ebb9@byu.net>
34731
34732         areadlink: use SIZE_MAX consistently
34733         * modules/areadlink (Depends-on): Add stdint.
34734         * modules/areadlink-with-size (Depends-on): Likewise.
34735         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34736         gives NULL; drop sys/types, since unistd gives size_t; and add
34737         stdint for SIZE_MAX.
34738         (SIZE_MAX): Rely on headers.
34739         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34740         and add stdint.
34741         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34742         (SIZE_MAX): Likewise.
34743         (INITIAL_BUF_SIZE): Turn into enum.
34744         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34745
34746 2009-10-08  Jim Meyering  <meyering@redhat.com>
34747
34748         areadlinkat: avoid compilation failure
34749         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34750         Fix typo in comment.
34751
34752 2009-10-07  Eric Blake  <ebb9@byu.net>
34753
34754         areadlinkat-with-size: new module
34755         * modules/areadlinkat-with-size: New module.
34756         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34757         * lib/areadlink.h (areadlinkat): Declare it.
34758         * MODULES.html.sh (File system functions): Mention it.
34759         * modules/areadlinkat-with-size-tests: New test.
34760         * tests/test-areadlinkat-with-size.c: New file.
34761
34762         xreadlinkat: new module
34763         * modules/xreadlinkat: New module.
34764         * lib/xreadlinkat.c (xreadlinkat): New file.
34765         * lib/xreadlink.h (xreadlinkat): Declare it.
34766         * MODULES.html.sh (File system functions): Mention it.
34767
34768         areadlinkat: new module
34769         * lib/at-func.c (FUNC_FAIL): New define.
34770         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34771         * modules/areadlinkat: New module.
34772         * lib/linkat.c (areadlinkat): Move...
34773         * lib/areadlinkat.c (areadlinkat): ...to new file.
34774         * lib/areadlink.h (areadlinkat): Declare it.
34775         * modules/linkat (Depends-on): Add areadlinkat.
34776         * MODULES.html.sh (File system functions): Mention it.
34777         * modules/areadlinkat-tests: New test.
34778         * tests/test-areadlinkat.c: New file.
34779
34780         areadlink, areadlink-with-size: add tests
34781         * modules/areadlink-tests: New test.
34782         * modules/areadlink-with-size-tests: Likewise.
34783         * tests/test-areadlink.h: New file.
34784         * tests/test-areadlink.c: Likewise.
34785         * tests/test-areadlink-with-size.c: Likewise.
34786
34787         maint: minor cleanups
34788         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34789         _UNUSED_PARAMETER_ instead.
34790         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34791         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34792         * modules/linkat-tests (Files): Distribute test-link.h.
34793
34794         openat, utimens: whitespace cleanup
34795         * lib/openat.c: Prefer space throughout, rather than mix of 8
34796         spaces vs. tabs.
34797         * lib/at-func.c: Likewise.
34798         * lib/utimens.c: Likewise.
34799
34800         openat: avoid using wrong fd
34801         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34802         working directory chooses same fd.
34803         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34804
34805         mkdir, mkdirat: fix cygwin 1.5.x bug
34806         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34807         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34808         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34809         bug.
34810         (gl_PREREQ_MKDIR): Delete unused macro.
34811         * modules/mkdir (Files): Track file rename.
34812         (configure.ac): Update macro name.
34813         * modules/openat (Depends-on): Add mkdir.
34814         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34815
34816         mkdir, mkdirat: add tests
34817         * modules/mkdir-tests: New test.
34818         * tests/test-mkdir.h: New file.
34819         * tests/test-mkdir.c: Likewise.
34820         * tests/test-mkdirat.c: Likewise.
34821         * modules/openat-tests (Files): Add new files.
34822         (Makefile.am): Run new test.
34823
34824 2009-10-06  Eric Blake  <ebb9@byu.net>
34825
34826         doc: tweak *at function documentation
34827         * doc/posix-functions/faccessat.texi (faccessat): Mention
34828         known issue with replacement.
34829         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34830         * doc/posix-functions/linkat.texi (linkat): Likewise.
34831         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34832         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34833         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34834         * doc/posix-functions/renameat.texi (renameat): Likewise.
34835         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34836
34837         openat: fix GNU/Hurd bug in unlinkat
34838         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34839         broken.
34840         * doc/posix-functions/unlink.texi (unlink): Document this.
34841         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34842
34843         fdopendir: fix GNU/Hurd bug
34844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34845         allowing non-directory fds.
34846         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34847         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34848         * modules/dirent (Makefile.am): Substitute it.
34849         * lib/dirent.in.h (fdopendir): Declare replacement.
34850         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34851         * tests/test-fdopendir.c (main): Test something other than
34852         /dev/null, since on Hurd that behaves like a directory.
34853
34854         test-symlink: port to GNU/Hurd
34855         * tests/test-symlink.h (test_symlink): Relax expected errno.
34856
34857         doc: tweak more cygwin information
34858         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34859         now compatible with glibc.
34860         * doc/posix-functions/getopt.texi (getopt): Likewise.
34861
34862         getopt-gnu: add another test
34863         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34864         guarantee behavior relied on by m4.
34865         * tests/test-getopt.c (main): Use it.
34866         * modules/getopt-posix-tests (Depends-on): Add setenv.
34867         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34868
34869         getopt: fix compilation on darwin
34870         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34871         include.
34872         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34873         Reported by Ludovic Courtès.
34874
34875 2009-10-06  Bruno Haible  <bruno@clisp.org>
34876
34877         * modules/size_max (Description): Discourage its use.
34878         Reported by Simon Josefsson.
34879
34880 2009-10-06  Jim Meyering  <meyering@redhat.com>
34881
34882         linkat: avoid compilation failure
34883         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34884
34885 2009-10-05  Eric Blake  <ebb9@byu.net>
34886
34887         linkat: support Linux 2.6.17
34888         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34889         linkat on Linux, but allow cache variable override.
34890         * lib/linkat.c (rpl_linkat): Define override.
34891         * modules/linkat (Depends-on): Add symlinkat.
34892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34893         * modules/unistd (Makefile.am): Substitute it.
34894         * lib/unistd.in.h (linkat): Declare replacement.
34895         Reported by Pádraig Brady.
34896
34897         quotearg: port test to systems with C.UTF-8 locale
34898         * tests/test-quotearg.c (struct result_strings): Add another
34899         member, differentiating between C.ASCII and C.UTF-8 handling.
34900         (compare_strings): Add parameter.
34901         (main): Adjust all callers.
34902
34903         getopt: avoid clash with FreeBSD _getopt_internal
34904         * lib/getopt.in.h (_getopt_internal): Override the name.
34905         * lib/getopt_int.h (includes): Pick up any overrides.
34906         Reported by Reuben Thomas.
34907
34908         hash: allow C89 compilation
34909         * lib/hash.c (check_tuning): Move declaration before statement.
34910         Reported by Reuben Thomas.
34911
34912 2009-10-05  Karl Berry  <karl@gnu.org>
34913
34914         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34915
34916 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34917             Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/uname.c (uname): Use a table-driven algorithm to compute
34920         Windows NT versions.
34921
34922 2009-10-04  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34925         program_invocation_short_name.
34926         * modules/progname (configure.ac): Test for presence of
34927         program_invocation_short_name.
34928         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34929
34930 2009-10-04  Bruno Haible  <bruno@clisp.org>
34931
34932         * lib/progname.c (set_program_name): Fix comment.
34933         Reported by Jim Meyering.
34934
34935 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34936             Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/uname.c: Include <string.h>.
34939         (uname): Do only one call to GetVersionEx in the common case.
34940
34941 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34942             Bruno Haible  <bruno@clisp.org>
34943
34944         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34945         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34946         (uname): Add support for Windows CE and various non-x86 CPU types.
34947
34948 2009-10-03  Bruno Haible  <bruno@clisp.org>
34949
34950         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34951         invocation to tests/configure.ac.
34952         Reported by Ian Beckwith <ianb@erislabs.net>.
34953
34954 2009-10-02  Eric Blake  <ebb9@byu.net>
34955
34956         fchdir: avoid compiler warning
34957         * lib/fchdir.c (canonicalize_file_name)
34958         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34959
34960         test-open: support mingw errno values
34961         * tests/test-open.h (test_open): Relax test.
34962         * tests/test-fopen.h (test_fopen): Likewise.
34963         * tests/test-openat-safer.c (main): Likewise.
34964
34965         open: fix opening directory on mingw
34966         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34967
34968         test-open: on GNU/Hurd, /dev/null is a directory
34969         * tests/test-fopen.h (main): Rename...
34970         (test_fopen): ...to this.  Use a guaranteed non-directory when
34971         confirming open behavior on trailing slash.
34972         * tests/test-openat-safer.c (main): Likewise.
34973         * tests/test-open.h (main): Likewise....
34974         (test_open): ...to this.
34975         * tests/test-fopen.c (main): Adjust caller.
34976         * tests/test-fopen-safer.c (main): Likewise.
34977         * tests/test-open.c (main): Likewise.
34978         * tests/test-fcntl-safer.c (main): Likewise.
34979         Reported by Samuel Thibault.
34980
34981         rename, fchdir: don't ignore chdir failure
34982         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34983         * lib/rename.c (rpl_rename) [W32]: Likewise.
34984         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34985         an empty destination directory if source cannot be renamed,
34986         although there is still possibility for failure.
34987         * doc/posix-functions/rename.texi (rename): Document the race.
34988         Reported by Jim Meyering.
34989
34990         maint: cleanup whitespace in recent commits
34991         * lib/rename.c (rpl_rename): Remove tabs.
34992         * tests/test-link.h (test_link): Likewise.
34993         * lib/fchdir.c (get_name): Likewise.
34994         Reported by Jim Meyering.
34995
34996 2009-10-02  Ben Pfaff  <blp@gnu.org>
34997
34998         relocatable-prog-wrapper: Add missing dependency on
34999         double-slash-root.
35000         * modules/relocatable-prog-wrapper: Add dependency.
35001         Reported by Ian Beckwith <ianb@erislabs.net>.
35002
35003 2009-10-02  Eric Blake  <ebb9@byu.net>
35004
35005         renameat: fix Solaris bugs
35006         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35007         needed fixing.
35008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35009         * modules/stdio (Makefile.am): Substitute it.
35010         * lib/stdio.in.h (renameat): Declare replacement.
35011         * lib/renameat.c (rpl_renameat): Implement fix.
35012
35013         renameat: new module
35014         * modules/renameat: New file.
35015         * lib/renameat.c (renameat): Likewise.
35016         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35018         * modules/stdio (Makefile.am): Substitute them.
35019         * lib/stdio.in.h (renameat): Declare it.
35020         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35021         * doc/posix-functions/renameat.texi (renameat): Likewise.
35022         * modules/renameat-tests: New test.
35023         * tests/test-renameat.c: Likewise.
35024
35025         rename: fix mingw bugs
35026         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35027         directory overwrite bugs.
35028
35029         rename: fix another cygwin 1.5 bug
35030         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35031         checks.
35032         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35033         unnecessary cygwin workarounds.  Also work around bug with moving
35034         full directory onto an empty one.
35035         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35036
35037         rename-dest-slash: merge into rename module
35038         * modules/rename-dest-slash (Status): Mark obsolete.
35039         (Depends-on): Add rename.
35040         (Files): Let rename do it all.
35041         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35042         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35043         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35044         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35045         * lib/rename.c (rpl_rename): Update comments.
35046
35047         rename: fix cygwin 1.5.x bugs
35048         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35049         * lib/rename.c (rpl_rename): Work around them.
35050         * modules/rename (Depends-on): Add same-inode.
35051
35052         rename: fix Solaris 10 bug
35053         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35054         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35055         was the only bug.
35056
35057         rename: fix Solaris 9 bug
35058         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35059         on non-directory.  Avoid calling exit.
35060         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35061         strdup.
35062         * modules/rename-tests (Depends-on): Drop lstat.
35063         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35064         (gl_PREREQ_RENAME): Delete unused macro.
35065
35066         rename-dest-slash: fix NetBSD bug
35067         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35068         links.
35069         * modules/rename-dest-slash (Depends-on): Add same-inode.
35070
35071         rename-tests: new test, exposes several platform bugs
35072         * modules/rename-tests: New file.
35073         * tests/test-rename.h: Likewise.
35074         * tests/test-rename.c: Likewise.
35075         * doc/posix-functions/rename.texi (rename): Improve documentation,
35076         including bugs that will eventually be fixed in gnulib.
35077
35078 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35079
35080         * lib/uname.c: Include <stdlib.h>
35081         (uname): Assume version info is available.
35082
35083 2009-10-02  Jim Meyering  <meyering@redhat.com>
35084
35085         gnu-web-doc-update: correct --help output
35086         * build-aux/gnu-web-doc-update: Make --help output relevant.
35087
35088         gnu-web-doc-update: add standard options
35089         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35090
35091         gnu-web-doc-update: New module.
35092         Use this script to automatically update the on-line web documentation
35093         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35094         * modules/gnu-web-doc-update: New file, from coreutils.
35095         * build-aux/gnu-web-doc-update: New script.
35096
35097 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35098
35099         link: LoadLibrary is not needed.
35100         * lib/link.c: Use GetModuleHandle.
35101
35102 2009-10-01  Eric Blake  <ebb9@byu.net>
35103
35104         getopt: bump serial number
35105         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35106         change.
35107
35108         tests: tighten link, rmdir, and remove tests
35109         * tests/test-link.h (includes): No need to use <config.h> here.
35110         Clean up if directory hard link was created, otherwise test for
35111         trailing '.'.
35112         * tests/test-linkat.c (main): Simplify.
35113         * tests/test-remove.c (main): Enhance test for trailing '.'.
35114         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35115
35116 2009-10-01  Jim Meyering  <meyering@redhat.com>
35117
35118         maint.mk: requiring "make major" was annoying, for a "minor" release.
35119         What is intended is "stable", to contrast with alpha and beta,
35120         so require "make stable", not "make major".
35121         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35122         (get_tool_versions): Likewise.
35123         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35124
35125 2009-09-30  Ben Pfaff  <blp@gnu.org>
35126
35127         Fix broken build of replacement for Windows tmpfile().
35128         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35129         flags argument added along with the 'mkostemp' module.
35130
35131 2009-09-28  Bruno Haible  <bruno@clisp.org>
35132
35133         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35134         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35135         to 'remove_elt'.
35136         (gl_list_remove): Update.
35137         * lib/gl_list.c (gl_list_remove): Update.
35138         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35139         to 'remove_elt'.
35140         (gl_oset_remove): Update.
35141         * lib/gl_list.c (gl_oset_remove): Update.
35142         Reported by Eric Blake.
35143
35144 2009-09-28  Eric Blake  <ebb9@byu.net>
35145
35146         doc: mention yet more cygwin 1.7 status
35147         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35148         cygwin.
35149         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35150         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35151
35152         argp: fix test failure
35153         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35154         that are not upper-case.  Pass correct range to tolower.
35155
35156 2009-09-27  Jim Meyering  <meyering@redhat.com>
35157
35158         test-yesno: work around sparc-dash here-document infelicity
35159         Without this change, the literal \177 byte in a here document
35160         would make dash 0.5.5.1-3 access uninitialized memory.
35161         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35162         Instead, use a marker, "@", and filter through tr to create the desired
35163         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35164
35165 2009-09-27  Bruno Haible  <bruno@clisp.org>
35166
35167         Disable untested support for new flavours of ACLs on AIX.
35168         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35169         progress.
35170         * lib/set-mode-acl.c (qset_acl): Likewise.
35171
35172 2008-12-07  Bruno Haible  <bruno@clisp.org>
35173
35174         Add support for new flavours of ACLs on AIX. (Untested.)
35175         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35176         (file_has_acl): Add support for newer AIX.
35177         * lib/set-mode-acl.c (qset_acl): Likewise.
35178         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35179         Rainer Tammer <tammer@tammer.net>.
35180
35181 2009-09-26  Eric Blake  <ebb9@byu.net>
35182
35183         argp: fix compilation of getopt
35184         * lib/getopt.in.h (includes): Use different guard than glibc.
35185         Reported by Sergey Poznyakoff.
35186
35187         doc: mention more cygwin 1.7 status
35188         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35189         bug.
35190         * doc/posix-functions/execl.texi (execl): Likewise.
35191         * doc/posix-functions/execle.texi (execle): Likewise.
35192         * doc/posix-functions/execlp.texi (execlp): Likewise.
35193         * doc/posix-functions/execv.texi (execv): Likewise.
35194         * doc/posix-functions/execve.texi (execve): Likewise.
35195         * doc/posix-functions/execvp.texi (execvp): Likewise.
35196         * doc/glibc-functions/canonicalize_file_name.texi
35197         (canonicalize_file_name): Cygwin 1.7 now provides this.
35198         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35199         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35200         on AT_SYMLINK_NOFOLLOW.
35201
35202 2009-09-24  Eric Blake  <ebb9@byu.net>
35203
35204         test-linkat: make test more robust
35205         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35206
35207         getopt: fix inclusion guards for cygwin
35208         * modules/getopt-posix (Depends-on): Add include-next.
35209         (Makefile.am): Substitute more items in replacement header.
35210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35211         <getopt.h>.
35212         * lib/getopt.in.h (includes): Use split inclusion guard, and
35213         prefer <getopt.h> over include <unistd.h> when one is present.
35214         (option): Also override name of 'struct option'.
35215
35216         same-inode: revert prior change; it is not yet ready
35217         * NEWS: Undo mention of this change.
35218         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35219         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35220         * lib/cycle-check.c (cycle_check): Likewise.
35221         * lib/same.c (same_name): Likewise.
35222         * lib/at-func2.c (at_func2): Likewise.
35223
35224 2009-09-23  Eric Blake  <ebb9@byu.net>
35225
35226         linkat: new module
35227         * modules/linkat: New file.
35228         * lib/at-func2.c (at_func2): Likewise.
35229         * lib/linkat.c (linkat): Likewise.
35230         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35231         * lib/openat-priv.h (at_func2): Add declaration.
35232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35233         * modules/unistd (Makefile.am): Substitute them.
35234         * lib/unistd.in.h (linkat): Declare it.
35235         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35236         * doc/posix-functions/linkat.texi (linkat): Likewise.
35237         * doc/posix-functions/link.texi (link): Tweak wording.
35238         * tests/test-link.c (main): Move guts...
35239         * tests/test-link.h (test_link): ...into new file.
35240         * modules/linkat-tests: New test.
35241         * tests/test-linkat.c: Likewise.
35242         * modules/link-tests (Files): Ship new file.
35243         (Depends-on): Add stdbool.
35244
35245         dirname: add library-safe mdir_name
35246         * lib/dirname.h (mdir_name): New prototype.
35247         * lib/dirname.c (dir_name): Move guts...
35248         (mdir_name): ...to new function that avoids xalloc_die.
35249
35250         fchdir: another mingw fix
35251         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35252         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35253         on mingw (where it has not yet been ported), and make it optional
35254         elsewhere.
35255         (_gl_register_fd): Use it.
35256
35257         same-inode: make SAME_INODE tri-state, to port to mingw
35258         * NEWS: Mention this change.
35259         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35260         st_ino always being 0.
35261         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35262         * lib/cycle-check.c (cycle_check): Likewise.
35263         * lib/same.c (same_name): Likewise.
35264
35265         lstat: avoid mingw compilation error
35266         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35267         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35268         lstat ourselves.
35269         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35270         was adequate.
35271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35272         the checks for lstat.
35273         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35274
35275         link: fix test failure on Solaris 9
35276         * lib/link.c (rpl_link): Don't assume link will catch bogus
35277         trailing slash on source.
35278
35279         test-symlinkat: enhance test
35280         * tests/test-readlink.c (main): Move guts...
35281         * tests/test-readlink.h (test_readlink): ...into new file.
35282         * tests/test-symlink.c (main): Move guts...
35283         * tests/test-symlink.h (test_symlink): ...into new file.
35284         * tests/test-symlinkat.c (main): Use new files for further
35285         coverage.
35286         (do_symlink, do_readlink): New helper functions.
35287         * modules/symlink-tests (Files): Ship new file.
35288         (Depends-on): Add stdbool.
35289         * modules/readlink-tests (Files): Ship new file.
35290         (Depends-on): Add stdbool.
35291         * modules/symlinkat-tests (Files): Use new files.
35292
35293 2009-09-23  Eric Blake  <ebb9@byu.net>
35294
35295         readlink: document portability issue with symlink length
35296         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35297         systems have bogus st_size on symlinks, and mention the
35298         areadlink-with-size module.
35299         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35300         * doc/posix-functions/readlink.texi (readlink): Mention the
35301         areadlink module, and ERANGE failure.
35302         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35303         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35304
35305         readlink: fix Solaris 9 bug with trailing slash
35306         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35307         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35308         * doc/posix-functions/readlink.texi (readlink): Document this.
35309         * modules/readlink-tests: New test.
35310         * tests/test-readlink.c: Likewise.
35311
35312         readlink: fix cygwin 1.5.x bug with return type
35313         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35314         * lib/unistd.in.h (readlink): Use ssize_t.
35315         * lib/readlink.c (readlink): Likewise.
35316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35317         * modules/unistd (Makefile.am): Substitute it.
35318         * lib/unistd.in.h (readlink): Declare replacement.
35319         * doc/posix-functions/readlink.texi (readlink): Document this.
35320
35321         symlink: use throughout gnulib
35322         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35323         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35324         symlink is not used.
35325         * modules/symlinkat (Depends-on): Add symlink.
35326         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35327         * modules/canonicalize-tests (Depends-on): Likewise.
35328         * modules/lstat-tests (Depends-on): Likewise.
35329         * modules/openat-tests (Depends-on): Likewise.
35330         * modules/remove-tests (Depends-on): Likewise.
35331         * modules/rmdir-tests (Depends-on): Likewise.
35332         * modules/unlink-tests (Depends-on): Likewise.
35333         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35334         * tests/test-canonicalize.c (symlink): Likewise.
35335         * tests/test-fstatat.c (symlink): Likewise.
35336         * tests/test-lstat.c (symlink): Likewise.
35337         * tests/test-remove.c (symlink): Likewise.
35338         * tests/test-rmdir.c (symlink): Likewise.
35339         * tests/test-unlink.c (symlink): Likewise.
35340         * tests/test-unlinkat.c (symlink): Likewise.
35341
35342         symlink: new module, for Solaris 9 bug
35343         * modules/symlink: New file.
35344         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35345         * lib/symlink.c: Likewise.
35346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35347         * modules/unistd (Makefile.am): Substitute them.
35348         * lib/unistd.in.h (symlink): Declare replacement.
35349         * MODULES.html.sh (File system functions): Mention it.
35350         * doc/posix-functions/symlink.texi (symlink): Likewise.
35351         * modules/symlink-tests: New test.
35352         * tests/test-symlink.c: Likewise.
35353
35354 2009-09-23  Bruno Haible  <bruno@clisp.org>
35355
35356         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35357         when needed.
35358         Test case: gnulib-tool --import --with-tests atexit inttypes.
35359         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35360
35361 2009-09-23  Bruno Haible  <bruno@clisp.org>
35362
35363         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35364         subcommand, not in a subshell.
35365
35366 2009-09-22  Eric Blake  <ebb9@byu.net>
35367
35368         unistd: sort replacement declarations
35369         * lib/unistd.in.h: Sort declarations.
35370
35371         open, openat: minor optimization
35372         * lib/open.c (open): If open succeeded, len is non-zero.
35373         * lib/openat.c (rpl_openat): Likewise.
35374
35375         link-follow: ensure correct result
35376         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35377         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35378         distinguish between possible failures.
35379
35380 2009-09-21  Eric Blake  <ebb9@byu.net>
35381
35382         fts: avoid compiler warning
35383         * lib/fts.c (dirent_inode_sort_may_be_useful)
35384         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35385
35386 2009-09-19  Bruno Haible  <bruno@clisp.org>
35387
35388         * lib/progreloc.c (canonicalize_file_name): New declaration.
35389
35390 2009-09-19  Eric Blake  <ebb9@byu.net>
35391
35392         link: fix quoting
35393         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35394
35395         openat: fix openat bugs on Solaris 9
35396         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35397         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35398         * modules/openat (Depends-on): Add open.
35399         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35400         * modules/fcntl-h (Makefile.am): Substitute it.
35401         * lib/fcntl.in.h (openat): Declare replacement.
35402         * doc/posix-functions/openat.texi (openat): Document this.
35403
35404         openat: move fstatat and unlinkat into correct files
35405         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35406         compiled.
35407         * lib/openat.c (fstatat, unlinkat): Move...
35408         * lib/fstatat.c (fstatat): ...into correct files.
35409         * lib/unlinkat.c (unlinkat): Likewise.
35410
35411         openat: fix unlinkat bugs on Solaris 9
35412         * lib/unlinkat.c (unlinkat): New file.
35413         * modules/openat (Depends-on): Add unlink.
35414         (Files): Distribute it.
35415         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35416         trailing slash behavior is broken.
35417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35418         * modules/unistd (Makefile.am): Substitute it.
35419         * lib/unistd.in.h (unlinkat): Declare replacement.
35420         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35421
35422         openat: fix fstatat bugs on Solaris 9
35423         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35424         stat.
35425         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35426
35427         test-unlinkat: enhance test, to expose Solaris 9 bug
35428         * tests/test-unlink.c (main): Factor guts...
35429         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35430         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35431         * tests/test-rmdir.c (main): Adjust caller.
35432         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35433         (unlinker): New helper function.
35434         (rmdirat): Enhance check.
35435         * modules/rmdir-tests (Depends-on): Add stdbool.
35436         * modules/unlink-tests (Depends-on): Likewise.
35437         (Files): Add test-unlink.h.
35438         * modules/openat-tests (Files): Likewise.
35439         (Depends-on): Add unlinkdir.
35440
35441         test-fstatat: new test, to expose Solaris 9 bugs
35442         * tests/test-stat.c (main): Factor guts...
35443         * tests/test-stat.h (test_stat_func): ...into new file.
35444         * tests/test-lstat.c (main): Factor guts...
35445         * tests/test-lstat.h (test_lstat_func): ...into new file.
35446         * tests/test-fstatat.c: New file.
35447         * modules/stat-tests (Files): Add test-stat.h.
35448         * modules/lstat-tests (Files): Add test-lstat.h.
35449         (Depends-on): Add stdbool.
35450         * modules/openat-tests (Depends-on): Add pathmax.
35451         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35452         (Makefile.am): Run new test.
35453
35454         remove: new module, for mingw and Solaris 9 bugs
35455         * modules/remove: New file.
35456         * lib/remove.c: Likewise.
35457         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35459         * modules/stdio (Makefile.am): Use them.
35460         * lib/stdio.in.h (remove): Declare replacement.
35461         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35462         * doc/posix-functions/remove.texi (remove): Likewise.
35463         * modules/remove-tests: New test.
35464         * tests/test-remove.c: Likewise.
35465
35466         unlink: new module, for Solaris 9 bug
35467         * modules/unlink: New file.
35468         * lib/unlink.c: Likewise.
35469         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35471         * modules/unistd (Makefile.am): Use them.
35472         * lib/unistd.in.h (stat): Declare replacement.
35473         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35474         * doc/posix-functions/unlink.texi (unlink): Likewise.
35475         * modules/unlink-tests: New test.
35476         * tests/test-unlink.c: Likewise.
35477
35478         lstat: fix Solaris 9 bug
35479         * lib/lstat.c (lstat): Also check for trailing slash on
35480         non-symlink, non-directories.  Use stat module to simplify logic.
35481         * doc/posix-functions/lstat.texi (lstat): Document it.
35482         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35483         (configure.ac): Check for symlink.
35484         * tests/test-lstat.c (main): Add more tests.
35485
35486         stat: add as dependency to other modules
35487         * modules/chown (Depends-on): Add stat.
35488         * modules/euidaccess (Depends-on): Likewise.
35489         * modules/fchdir (Depends-on): Likewise.
35490         * modules/isdir (Depends-on): Likewise.
35491         * modules/link (Depends-on): Likewise.
35492         * modules/lstat (Depends-on): Likewise.
35493         * modules/mkdir-p (Depends-on): Likewise.
35494         * modules/modechange (Depends-on): Likewise.
35495         * modules/open (Depends-on): Likewise.
35496         * modules/readlink (Depends-on): Likewise.
35497         * modules/same (Depends-on): Likewise.
35498
35499         stat: fix Solaris 9 bug
35500         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35501         slash.
35502         * lib/stat.c (rpl_stat): Work around it.
35503         * doc/posix-functions/stat.texi (stat): Update documentation.
35504
35505         stat: new module, for mingw bug
35506         * modules/stat: New file.
35507         * lib/stat.c: Likewise.
35508         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35510         * modules/sys_stat (Makefile.am): Use them.
35511         * lib/sys_stat.in.h (stat): Declare replacement.
35512         * lib/openat.c (fstatat): Deal with lstat and stat being function
35513         macros.
35514         * modules/openat (Depends-on): Add inline.
35515         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35516         * doc/posix-functions/stat.texi (stat): Likewise.
35517         * modules/stat-tests: New test.
35518         * tests/test-stat.c: Likewise.
35519
35520 2009-09-19  Jim Meyering  <meyering@redhat.com>
35521
35522         syntax-check: detect unnecessary inclusion of canonicalize.h
35523         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35524
35525 2009-09-19  Eric Blake  <ebb9@byu.net>
35526
35527         canonicalize-lgpl: adjust clients to use correct header
35528         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35529         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35530         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35531         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35532         * lib/progreloc.c (includes): Likewise.
35533
35534 2009-09-19  Jim Meyering  <meyering@redhat.com>
35535
35536         test-posixtm.c: correct a comment
35537         * tests/test-posixtm.c: Correct first-line comment.
35538         Spotted by Eric Blake.
35539
35540 2009-09-16  Jim Meyering  <meyering@redhat.com>
35541
35542         posixtm-tests: make T const-correct; add a test case
35543         * tests/test-posixtm.c (T): Declare const.
35544         Add a test for -(2^31+1).
35545         Remove useless can-succeed-only-in-2002 test.
35546
35547         posixtm-tests: adjust the sole failing test
35548         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35549         expected output matches what mktime now produces.  Cross-checked via
35550         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35551
35552         posixtm: move #ifdef'd tests into a new module
35553         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35554         * tests/test-posixtm.c: ... this new file.
35555         * modules/posixtm-tests: New module.
35556
35557 2009-09-19  Eric Blake  <ebb9@byu.net>
35558
35559         openat: simplify use of at-func.c
35560         * lib/at-func.c (includes): Include prerequisites here, to
35561         simplify requirements on client files.
35562         * lib/openat-priv.h: Add double-inclusion guard.
35563         * lib/faccessat.c (includes): Simplify.
35564         * lib/fchmodat.c (includes): Likewise.
35565         * lib/fchownat.c (includes): Likewise.
35566         * lib/mkdirat.c (includes): Likewise.
35567         * lib/mkfifoat.c (includes): Likewise.
35568         * lib/symlinkat.c (includes): Likewise.
35569
35570         openat: allow return of fd 0
35571         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35572         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35573         unistd-safer.
35574         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35575         <fcntl.h>; this module does not leak fds.
35576         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35577         must be allowed to return 0, leaving openat_safer to add the
35578         safety.
35579         (openat_permissive): Avoid writing to just-opened fd 2 if
35580         restoring the current directory fails.
35581         * lib/openat-die.c (openat_restore_fail): Add comment.
35582         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35583         (save_cwd): Guarantee safe fd, but without use of open_safer.
35584         * tests/test-openat.c: New test.
35585         * modules/openat-tests (Files, Makefile.am): Distribute and build
35586         new file.
35587
35588         relocatable-prog-wrapper: fix build
35589         * modules/relocatable-prog-wrapper (Files): Update name of
35590         canonicalize m4 file, broken on 2009-09-17.
35591         Reported by emad hajjar <aleppos@hotmail.com>.
35592
35593 2009-09-19  Bruno Haible  <bruno@clisp.org>
35594
35595         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35596         * lib/safe-alloc.c: Likewise.
35597         Reported by Ian Beckwith <ianb@erislabs.net>.
35598
35599 2009-09-18  Bruno Haible  <bruno@clisp.org>
35600
35601         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35602         Reported by <erobles@sensacd.com.mx>.
35603
35604 2009-09-17  Eric Blake  <ebb9@byu.net>
35605
35606         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35607         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35608         slashes when checking if last component is missing.
35609         * tests/test-canonicalize.c (main): Test this.
35610
35611         canonicalize, canonicalize-lgpl: honor // if distinct from /
35612         * modules/canonicalize (Files): Add double-slash-root.m4.
35613         * modules/canonicalize-lgpl (Files): Likewise.
35614         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35615         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35616         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35617         fallback definition.
35618         (canonicalize_filename_mode): Use it to protect //.
35619         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35620         (__realpath): Likewise.
35621         * tests/test-canonicalize.c (main): Test this.
35622         * tests/test-canonicalize-lgpl.c (main): Likewise.
35623         * modules/canonicalize-tests (Depends-on): Add same-inode.
35624         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35625
35626         canonicalize-lgpl: fix glibc bug with trailing slash
35627         * m4/canonicalize-lgpl.m4: Move contents...
35628         * m4/canonicalize.m4: ...here.
35629         (gl_CANONICALIZE_LGPL): Factor realpath check...
35630         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35631         glibc 2.3.5 bug, fixed 2005-04-27.
35632         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35633         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35634         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35635         * modules/canonicalize-lgpl (Files): Manage file rename.
35636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35637         * modules/stdlib (Makefile.am): Substitute witness.
35638         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35639         is needed.
35640         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35641         replacement is required.
35642         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35643         * doc/glibc-functions/canonicalize_file_name.texi
35644         (canonicalize_file_name): Document this.
35645         * doc/posix-functions/realpath.texi (realpath): Likewise.
35646
35647         canonicalize-lgpl: reject non-directory with trailing slash
35648         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35649         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35650         catches failures in glibc 2.3.5.
35651         * tests/test-canonicalize.c (main): Likewise.
35652
35653         canonicalize-lgpl: use native realpath if it works
35654         * lib/canonicalize-lgpl.c (realpath): Guard with
35655         FUNC_REALPATH_WORKS.
35656         * lib/stdlib.in.h (realpath): Make declaration optional based on
35657         HAVE_REALPATH.
35658         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35659         native realpath works.
35660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35661         * modules/stdlib (Makefile.am): Substitute witness.
35662
35663         canonicalize, canonicalize-lgpl: use <stdlib.h>
35664         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35665         (Include): Mention <stdlib.h>.
35666         (configure.ac): Mention functions we provide.
35667         * modules/canonicalize (configure.ac): Likewise.
35668         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35669         realpath if canonicalize_file_name is missing.
35670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35671         * modules/stdlib (Makefile.am): Substitute witnesses.
35672         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35673         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35674         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35675         * NEWS: Document this.
35676         * doc/glibc-functions/canonicalize_file_name.texi
35677         (canonicalize_file_name): Likewise.
35678         * doc/posix-functions/realpath.texi (realpath): Likewise.
35679         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35680
35681         test-canonicalize: consolidate into single C program
35682         * tests/test-canonicalize.sh: Delete; move setup into...
35683         * tests/test-canonicalize.c (main): ...the program, making it
35684         easier to run in debugger.  Add some tests.
35685         * modules/canonicalize-tests (Files): Remove unused file.
35686         (Depends-on): Add progname.
35687         (configure.ac, Makefile.am): Simplify.
35688
35689         test-canonicalize-lgpl: consolidate into single C program
35690         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35691         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35692         easier to run in debugger.  Add some tests.
35693         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35694         (configure.ac, Makefile.am): Simplify.
35695
35696         canonicalize: avoid resolvepath
35697         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35698         unnecessary checks.
35699         * lib/canonicalize.c (includes): Simplify.
35700         (canonicalize_file_name): Drop resolvepath implementation.
35701         * modules/canonicalize (Depends-on): Drop filenamecat.
35702
35703         canonicalize: don't lose errno
35704         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35705         over calls to free.
35706
35707         canonicalize: simplify errno handling
35708         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35709         assignment.
35710
35711         canonicalize, canonicalize-lgpl: update module dependencies
35712         * modules/canonicalize (Depends-on): Add extensions, lstat,
35713         pathmax, stdlib.
35714         (Files): Drop pathmax.h.
35715         (configure.ac): Adjust macro name.
35716         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35717         lstat, stdlib, sys_stat.
35718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35719         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35720         extensions.
35721         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35722         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35723         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35724         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35725         declaration, if available.
35726         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35727         we can rely on the readlink module.
35728         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35729         (includes): Use <unistd.h> unconditionally.
35730
35731 2009-09-17  Eric Blake  <ebb9@byu.net>
35732
35733         maint: make Include sections of modules consistent
35734         * modules/alloca: Use only header name; no need to list #include.
35735         * modules/alloca-opt: Likewise.
35736         * modules/arpa_inet: Likewise.
35737         * modules/canon-host: Likewise.
35738         * modules/configmake: Likewise.
35739         * modules/dirent: Likewise.
35740         * modules/eealloc: Likewise.
35741         * modules/environ: Likewise.
35742         * modules/fchdir: Likewise.
35743         * modules/fcntl: Likewise.
35744         * modules/fcntl-h: Likewise.
35745         * modules/gethrxtime: Likewise.
35746         * modules/gettime: Likewise.
35747         * modules/ignore-value: Likewise.
35748         * modules/inet_ntop: Likewise.
35749         * modules/inet_pton: Likewise.
35750         * modules/inttypes: Likewise.
35751         * modules/isnand-nolibm: Likewise.
35752         * modules/isnanf-nolibm: Likewise.
35753         * modules/mbchar: Likewise.
35754         * modules/mbfile: Likewise.
35755         * modules/mbiter: Likewise.
35756         * modules/mbuiter: Likewise.
35757         * modules/netdb: Likewise.
35758         * modules/netinet_in: Likewise.
35759         * modules/nproc: Likewise.
35760         * modules/pagealign_alloc: Likewise.
35761         * modules/poll: Likewise.
35762         * modules/printf-frexp: Likewise.
35763         * modules/pthread: Likewise.
35764         * modules/putenv: Likewise.
35765         * modules/random_r: Likewise.
35766         * modules/relocatable-prog: Likewise.
35767         * modules/search: Likewise.
35768         * modules/select: Likewise.
35769         * modules/selinux-h: Likewise.
35770         * modules/settime: Likewise.
35771         * modules/signal: Likewise.
35772         * modules/size_max: Likewise.
35773         * modules/socklen: Likewise.
35774         * modules/ssize_t: Likewise.
35775         * modules/stdarg: Likewise.
35776         * modules/stdbool: Likewise.
35777         * modules/stddef: Likewise.
35778         * modules/stdint: Likewise.
35779         * modules/stdio: Likewise.
35780         * modules/stdlib: Likewise.
35781         * modules/string: Likewise.
35782         * modules/strings: Likewise.
35783         * modules/sys_file: Likewise.
35784         * modules/sys_ioctl: Likewise.
35785         * modules/sys_select: Likewise.
35786         * modules/sys_socket: Likewise.
35787         * modules/sys_stat: Likewise.
35788         * modules/sys_time: Likewise.
35789         * modules/sys_times: Likewise.
35790         * modules/sys_utsname: Likewise.
35791         * modules/sys_wait: Likewise.
35792         * modules/sysexits: Likewise.
35793         * modules/time: Likewise.
35794         * modules/times: Likewise.
35795         * modules/tmpfile: Likewise.
35796         * modules/trim: Likewise.
35797         * modules/unistd: Likewise.
35798         * modules/wchar: Likewise.
35799         * modules/wctype: Likewise.
35800
35801 2009-09-17  Bruno Haible  <bruno@clisp.org>
35802
35803         Make getdate.y compile on QNX and NetBSD 5 / i386.
35804         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35805         TIME_T_FITS_IN_LONG_INT.
35806         * lib/getdate.y (long_time_t): New type.
35807         (relative_time): Change type of 'seconds' field to long_time_t.
35808         (get_date): Update types of local variables. Check against overflow
35809         during conversion from long_time_t to time_t.
35810         Reported by Matt Kraai <kraai@ftbfs.org>
35811         and Hasso Tepper <hasso@netbsd.org>.
35812
35813 2009-09-17  Bruno Haible  <bruno@clisp.org>
35814
35815         * modules/COPYING: Update copyright years.
35816         * modules/README: Likeiwse.
35817         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35818         Reported by Ian Beckwith <ianb@erislabs.net>.
35819
35820 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35821
35822         * users.txt: Update references for gnuit package.
35823
35824 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35825
35826         * m4/getdelim.m4: Fix typo in copyright line.
35827
35828 2009-09-17  Bruno Haible  <bruno@clisp.org>
35829
35830         * lib/atoll.c: Use the standard header with GPL copyright.
35831         * lib/argz.in.h: Likewise.
35832         * lib/glob.c: Likewise.
35833         * lib/glob-libc.h: Likewise.
35834         * lib/random_r.c: Likewise.
35835         * lib/siglist.h: Likewise.
35836         * lib/strsignal.c: Likewise.
35837         Reported by Ian Beckwith <ianb@erislabs.net>.
35838
35839 2009-09-17  Eric Blake  <ebb9@byu.net>
35840
35841         rmdir: ensure correct dependency order
35842         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35843
35844 2009-09-17  Bruno Haible  <bruno@clisp.org>
35845
35846         Disable assertion that fails on NetBSD 5 / i386.
35847         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35848         Reported by Sam Steingold <sds@gnu.org>
35849         and Hasso Tepper <hasso@netbsd.org>.
35850
35851 2009-09-16  Eric Blake  <ebb9@byu.net>
35852
35853         unlinkdir: port to mingw
35854         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35855         on which no one can unlink a directory.
35856
35857         stdlib: sort witness names
35858         * modules/stdlib (Makefile.am): Sort replacements.
35859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35860         * lib/stdlib.in.h: Likewise.
35861
35862         parse-duration-tests: avoid link failure
35863         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35864         LIBINTL.
35865         Reported by Tom G. Christensen.
35866
35867         openat-tests: ensure unlinkat behaves like rmdir
35868         * tests/test-rmdir.c (main): Factor guts...
35869         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35870         * modules/rmdir-tests (Files): Ship new file.
35871         * modules/openat-tests: New test.
35872         * tests/test-unlinkat.c: Likewise.
35873
35874         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35875         * modules/rmdir-errno (Status, Notice): Now obsolete.
35876
35877         rmdir: work around cygwin 1.5.x and mingw bugs
35878         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35879         * lib/rmdir.c (rmdir): Work around it.
35880         * modules/rmdir (Status, Notice): No longer obsolete.
35881         (Files): Add dos.m4.
35882         (Depends-on): Add unistd.
35883         (configure.ac): Set witnesses.
35884         (License): Relax to LGPLv2+.
35885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35886         * modules/unistd (Makefile.am): Substitute witnesses.
35887         * lib/unistd.in.h (rmdir): Declare replacement.
35888         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35889         * modules/rmdir-tests: New tests.
35890         * tests/test-rmdir.c: Likewise.
35891
35892 2009-09-15  Eric Blake  <ebb9@byu.net>
35893
35894         fchdir: improve use of replacement functions
35895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35897         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35898         REPLACE_CLOSEDIR.
35899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35900         * modules/sys_stat (Makefile.am): Substitute correct witness.
35901         * modules/dirent (Makefile.am): Likewise.
35902         * modules/unistd (Makefile.am): Likewise.
35903         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35904         * lib/unistd.in.h (dup): Likewise.
35905         * lib/sys_stat.in.h (fstat): Likewise.
35906
35907         maint: ignore gnulib-tool temp files
35908         * .gitignore: Ignore files created during gnulib-tool --test.
35909
35910 2009-09-13  Jim Meyering  <meyering@redhat.com>
35911
35912         posixtm: don't reject a time that specify "60" as the number of seconds
35913         * lib/posixtm.c (posixtime): The code to reject invalid dates
35914         would also reject a time specified with the .60 suffix.
35915         But POSIX allows that, in order to accommodate leap seconds.
35916         So don't reject it.
35917         (main): Adjust tests accordingly.
35918         * modules/posixtm (Depends-on): Add stpcpy.
35919
35920 2009-09-11  Jim Meyering  <meyering@redhat.com>
35921
35922         announce-gen: include [$release_type] in emitted Subject:
35923         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35924         e.g., [stable] in the emitted Subject: line.
35925
35926 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35927
35928         Remove obsolete macros from several modules.
35929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35930         obsolete Autoconf macros with their modern counterparts.
35931         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35932         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35933         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35934         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35935         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35936         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35938         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35939         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35940         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35941         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35942         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35943         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35944         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35945         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35946         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35947         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35948         * m4/time_r.m4 (gl_TIME_R): Likewise.
35949         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35950         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35951         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35952
35953         Fix copyright header in build-aux scripts.
35954         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35955         recommendation.
35956         * build-aux/ncftpput-ftp: Likewise.
35957         * build-aux/update-copyright: Likewise.
35958
35959 2009-09-09  Eric Blake  <ebb9@byu.net>
35960
35961         test-link: allow Linux choice of errno
35962         * tests/test-link.c (main): Relax test for alternate error.
35963
35964         strndup: fix improper m4 caching
35965         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35966         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35967         (gl_PREREQ_STRNDUP): Delete.
35968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35969         * modules/string (Makefile.am): Substitute it.
35970         * lib/string.in.h (strndup): Modernize prototype.
35971
35972         getcwd: port to mingw
35973         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35974         different from the POSIX assumptions made throughout the getcwd
35975         module; fortunately, the mingw getcwd does not need replacement.
35976         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35977         * modules/getcwd-tests: New test.
35978         * tests/test-getcwd.c: Likewise.
35979
35980         link: fix platform bugs
35981         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35982         * lib/link.c (link): Work around them.  Fix related mingw bug.
35983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35984         * modules/unistd (Makefile.am): Substitute it.
35985         * lib/unistd.in.h (link): Declare replacement.
35986         * doc/posix-functions/link.texi (link): Document this.
35987         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35988
35989         test-link: consolidate into single C program, test more cases
35990         * tests/test-link.sh: Delete.
35991         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35992         at least Cygwin and Solaris.
35993         * modules/link-tests (Files): Remove unused file.
35994         (Depends-on): Add errno, sys_stat.
35995         (Makefile.am): Simplify.
35996
35997 2009-09-08  Bruno Haible  <bruno@clisp.org>
35998
35999         Work around towlower, towupper bug on mingw.
36000         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36001         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36002         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36003         * doc/posix-functions/towupper.texi: Likewise.
36004         Reported by Eric Blake.
36005
36006 2009-09-08  Jim Meyering  <meyering@redhat.com>
36007
36008         build: don't try to run autoheader if we don't use it
36009         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36010         is not used in configure.ac.
36011
36012 2009-09-08  Eric Blake  <ebb9@byu.net>
36013
36014         euidaccess: fix compilation error
36015         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36016
36017         rawmemchr: relax license
36018         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36019         okay.
36020         Reported by Jim Meyering.
36021
36022         mkfifoat: new module
36023         * modules/mkfifoat: New file.
36024         * lib/mkfifoat.c: Likewise.
36025         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36027         * modules/sys_stat (Makefile.am): Use them.
36028         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36029         * MODULES.html.sh (File system functions): Mention module.
36030         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36031         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36032         * modules/mkfifoat-tests: New test.
36033         * tests/test-mkfifoat.c: Likewise.
36034
36035         strchrnul: relax license
36036         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36037         okay.
36038         Reported by Jim Meyering.
36039
36040 2009-09-08  Eric Blake  <ebb9@byu.net>
36041
36042         fstatat: fix compilation on Solaris
36043         * lib/fstatat.c (includes): Add fcntl.h.
36044         Reported by Pádraig Brady.
36045
36046 2009-09-07  Eric Blake  <ebb9@byu.net>
36047
36048         rename: modernize replacement
36049         * modules/rename (Depends-on): Add stdio.
36050         (configure.ac): Declare witness.
36051         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36052         stdio take care of replacement.
36053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36054         * modules/stdio (Makefile.am): Substitute them.
36055         * lib/stdio.in.h (rename): Declare replacement.
36056         * lib/rename.c (includes): Allow cross-compilation to non-windows
36057         machines.
36058         * doc/posix-functions/rename.texi (rename): Improve
36059         documentation.
36060
36061         stdio: sort witness names
36062         * modules/stdio (Makefile.am): Sort replacements.
36063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36064         * lib/stdio.in.h: Likewise.
36065
36066         getcwd: minor cleanups
36067         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36068         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36069
36070         openat: provide more convenience names
36071         * modules/faccessat (configure.ac): Add C witness.
36072         * lib/unistd.in.h (readlinkat): Fix typo.
36073         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36074         convenience wrappers.
36075         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36076         wrappers in syntax checks.
36077
36078 2009-09-06  Eric Blake  <ebb9@byu.net>
36079
36080         doc: fix comments in recent patches
36081         * lib/faccessat.c: Mention correct function.
36082         * lib/fchmodat.c: Likewise.
36083         * lib/fchownat.c: Likewise.
36084         * lib/symlinkat.c: Likewise.
36085         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36086         constants.
36087
36088         faccessat, symlinkat: continue cleanup of previous patch
36089         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36090         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36091         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36093         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36094         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36095         set.
36096
36097 2009-09-06  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36100         (fstatat): Declare if GNULIB_FSTATAT is set.
36101         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36102         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36103         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36104         * modules/fcntl-h (Files): Remove m4/openat.m4.
36105         * modules/sys_stat (Files): Remove m4/openat.m4.
36106         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36107         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36108         * modules/unistd (Files): Remove m4/openat.m4.
36109         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36110         GNULIB_OPENAT.
36111         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36112         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36113         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36114         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36115         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36116         gl_OPENAT_DEFAULTS.
36117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36118         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36119         Don't require gl_OPENAT_DEFAULTS.
36120         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36121         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36122         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36123         (gl_OPENAT_DEFAULTS): Remove macro.
36124
36125 2009-09-06  Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/openat (configure.ac): Remove unneeded witness.
36128
36129 2009-09-06  Bruno Haible  <bruno@clisp.org>
36130
36131         Set errno to ENOSYS when a function is entirely unsupported.
36132         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36133         EOPNOTSUPP.
36134         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36135         * modules/chown (Depends-on): Remove errno.
36136
36137 2009-09-06  Bruno Haible  <bruno@clisp.org>
36138
36139         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36140
36141 2009-09-06  Bruno Haible  <bruno@clisp.org>
36142
36143         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36144
36145 2009-09-06  Ben Pfaff  <blp@gnu.org>
36146             Bruno Haible  <bruno@clisp.org>
36147
36148         Work around a glibc bug in strtok_r.
36149         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36150         Undefine if UNDEFINE_STRTOK_R is set.
36151         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36153         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36154         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36155         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36156         UNDEFINE_STRTOK_R.
36157         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36158
36159 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36160
36161         exclude: minor fix
36162         * lib/exclude.c: Include wctype.h
36163
36164 2009-09-06  Akim Demaille  <demaille@gostai.com>
36165
36166         bootstrap: improve error message
36167         * build-aux/bootstrap (find_tool): Upon failure, report the list
36168         of candidates.
36169         Honor the initial value of the envvar.
36170
36171 2009-09-05  Eric Blake  <ebb9@byu.net>
36172
36173         symlinkat: new module
36174         * modules/symlinkat: New file.
36175         * lib/symlinkat.c: Likewise.
36176         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36178         * modules/unistd (Makefile.am): Use them.
36179         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36180         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36181         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36182         * MODULES.html.sh (File system functions): Mention module.
36183         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36184         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36185         * modules/symlinkat-tests: New test.
36186         * tests/test-symlinkat.c: Likewise.
36187
36188         test-openat-safer: add more checks
36189         * tests/test-openat-safer.c (main): Check more code paths.
36190
36191 2009-09-05  Jim Meyering  <meyering@redhat.com>
36192
36193         syntax-check: detect unnecessary inclusion of openat.h
36194         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36195
36196 2009-09-05  Bruno Haible  <bruno@clisp.org>
36197
36198         Support towlower, towupper.
36199         * doc/posix-functions/towlower.texi: Mention module wctype.
36200         * doc/posix-functions/towupper.texi: Likewise.
36201         * lib/wctype.in.h (towlower, towupper): New functions.
36202         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36203         (ASSERT): New macro.
36204         (e): New variable.
36205         (main): Test also towlower, towupper. Test WEOF argument.
36206         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36207
36208 2009-09-05  Bruno Haible  <bruno@clisp.org>
36209
36210         Fix conversion behaviour when the input is invalid.
36211         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36212         mark occurring in first pass of indirect conversion.
36213         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36214         input.
36215         Found by clang's static analyzer.
36216
36217 2009-09-05  Bruno Haible  <bruno@clisp.org>
36218
36219         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36220         where direct conversion is possible.
36221
36222 2009-09-04  Eric Blake  <ebb9@byu.net>
36223
36224         openat: fail with ENOENT on empty name
36225         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36226         buffer.
36227
36228         link-follow: fix logic bug in prior patch
36229         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36230         reversed sense of yes and no in prior patch.  Avoid confusing
36231         compilation failure with desired semantics.
36232
36233         link-follow: accomodate mingw and cross-compilation
36234         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36235         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36236         cross-compilation results to -1, to make linkat easier to
36237         implement when cross-compiling.  Trivially support mingw.
36238         * modules/link-follow (configure.ac): Call new name.
36239         * NEWS: Mention this.
36240
36241 2009-09-03  Eric Blake  <ebb9@byu.net>
36242
36243         faccessat: compile replacement
36244         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36245         needed.
36246
36247         fts: fix compilation error
36248         * lib/fts.c (includes): Re-add "openat.h", for
36249         openat_needs_fchdir.
36250
36251         faccessat: new module
36252         * modules/faccessat: New file.
36253         * lib/faccessat.c: Likewise.
36254         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36256         * modules/unistd (Makefile.am): Use it.
36257         * lib/unistd.in.h (faccessat): Declare it.
36258         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36259         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36260         * MODULES.html.sh (File system functions): Mention it.
36261         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36262         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36263
36264         euidaccess: prefer POSIX over non-standard implementation
36265         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36266         * lib/euidaccess.c (euidaccess): Use it if available.
36267
36268         openat: make template easier to use
36269         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36270         AT_FUNC_F2 to be undefined.
36271         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36272         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36273         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36274         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36275         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36276         Likewise.
36277         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36278         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36279         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36280         Likewise.
36281
36282         openat: declare in POSIX headers
36283         * NEWS: Mention this.
36284         * modules/openat (configure.ac): Declare witnesses.
36285         (Depends-on): Add fcntl-h, sys_stat, unistd.
36286         (Include): Mention correct headers.
36287         * modules/fcntl-h (Depends-on): Add link-warning.
36288         (Files): Add openat.m4.
36289         (Makefile.am): Substitute witnesses.
36290         * modules/sys_stat (Files, Makefile.am): Likewise.
36291         * modules/unistd (Files, Makefile.am): Likewise.
36292         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36293         (gl_OPENAT_DEFAULTS): New macro.
36294         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36297         (SYS_STAT_H): Remove unused variable.
36298         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36299         * lib/fcntl--.h (includes): Remove unneeded header.
36300         * lib/openat-safer.c (includes): Likewise.
36301         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36302         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36303         appropriate headers.
36304         (__OPENAT_PREFIX): Delete.
36305         * lib/fcntl.in.h (openat): Provide declaration.
36306         (AT_FDCWD): Fix Solaris bug.
36307         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36308         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36309         * lib/fchmodat.c (includes):  Adjust to find declaration.
36310         * lib/fchownat.c (includes): Likewise.
36311         * lib/mkdirat.c (includes): Likewise.
36312         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36313         still visible.
36314
36315 2009-09-02  Eric Blake  <ebb9@byu.net>
36316
36317         errno: use consistently
36318         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36319         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36320         * lib/canonicalize.c (ELOOP): Likewise.
36321         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36322         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36323         * lib/lchown.c (EOPNOTSUPP): Likewise.
36324         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36325         * lib/savewd.c (ESTALE): Likewise.
36326         * lib/settime.c (ENOSYS): Likewise.
36327         * lib/utimens.c (ENOSYS): Likewise.
36328         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36329         * lib/chdir-safer.c (ELOOP): Likewise.
36330         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36331         * modules/c-stack (Depends-on): Add errno.
36332         * modules/canonicalize (Depends-on): Likewise.
36333         * modules/chdir-safer (Depends-on): Likewise.
36334         * modules/fdopendir (Depends-on): Likewise.
36335         * modules/inet_ntop (Depends-on): Likewise.
36336         * modules/inet_pton (Depends-on): Likewise.
36337         * modules/lchown (Depends-on): Likewise.
36338         * modules/openat (Depends-on): Likewise.
36339         * modules/savewd (Depends-on): Likewise.
36340         * modules/settime (Depends-on): Likewise.
36341         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36342
36343         fts: avoid leaking fds
36344         * modules/fts (Depends-on): Add cloexec.
36345         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36346         flag.
36347
36348         fts: make directory fds more robust
36349         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36350         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36351
36352         backupfile, chdir-long, fts, savedir: make safer
36353         * lib/backupfile.c (includes): Use "dirent--.h", since
36354         numbered_backup can write to stderr during readdir.
36355         * lib/savedir.c (includes): Likewise.
36356         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36357         emulation can write to stderr on failure.
36358         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36359         * lib/getcwd.c: Document why opendir_safer is unused.
36360         * lib/glob.c: Likewise.
36361         * lib/scandir.c: Likewise.
36362         * lib/openat-proc.c: Likewise, for open_safer.
36363         * modules/backupfile (Depends-on): Add dirent-safer.
36364         * modules/savedir (Depends-on): Likewise.
36365         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36366         * modules/chdir-long (Depends-on): Add openat-safer.
36367
36368         openat-safer: new module
36369         * modules/openat-safer: New file.
36370         * lib/openat-safer.c: Likewise.
36371         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36372         * lib/fcntl-safer.h (openat_safer): Declare.
36373         * lib/fcntl--.h (openat): Override.
36374         * MODULES.html.sh (File descriptor based I/O): Mention it.
36375         * lib/openat.h: Add double-inclusion guards.
36376         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36377         "fcntl--.h", so we can implement openat.
36378         * modules/openat-safer-tests: New test.
36379         * tests/test-openat-safer.c: New file.
36380
36381         dirent-safer: new module
36382         * modules/dirent-safer: New file.
36383         * lib/dirent--.h: Likewise.
36384         * lib/dirent-safer.h: Likewise.
36385         * lib/opendir-safer.c: Likewise.
36386         * m4/dirent-safer.m4: Likewise.
36387         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36388         * modules/dirent-safer-tests: New test.
36389         * tests/test-dirent-safer.c: New file.
36390         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36391
36392         fdopendir: optimize on mingw
36393         * lib/unistd.in.h (_gl_directory_name): New prototype.
36394         * lib/fchdir.c (_gl_directory_name): Implement it.
36395         (fchdir): Use it to simplify implementation.
36396         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36397         fchdir, when available, to avoid calling [f]chdir().
36398
36399         fdopendir: split into its own module
36400         * lib/openat.c (fdopendir): Move...
36401         * lib/fdopendir.c: ...into new file.
36402         * modules/fdopendir: New module.
36403         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36404         * modules/openat (Depends-on): Add fdopendir.
36405         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36406         fdopendir here.
36407         * modules/savedir (Depends-on): Only need fdopendir, not full
36408         openat.
36409         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36410         * lib/openat.h (fdopendir): Drop prototype.
36411         * lib/dirent.in.h (fdopendir): Provide prototype.
36412         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36413         * modules/dirent (Makefile.am): Substitute them.
36414         * MODULES.html.sh (File system functions): Mention it.
36415         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36416         * modules/fdopendir-tests: New file.
36417         * tests/test-fdopendir.c: Likewise.
36418
36419         fchdir: use more consistent macro convention
36420         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36421         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36422         REPLACE_FCHDIR, rather than relying on config.h macros.
36423         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36424         inside a single make-time REPLACE_FCHDIR block, rather than using
36425         the config.h FCHDIR_REPLACEMENT.
36426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36427         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36428         Manage fstat replacement.
36429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36430         REPLACE_FCHDIR.
36431         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36432         (Makefile.am): Substitute REPLACE_FCHDIR.
36433         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36434         FCHDIR_REPLACEMENT.
36435         * lib/dup-safer.c (dup_safer): Likewise.
36436         * lib/dup2.c (rpl_dup2): Likewise.
36437         * lib/dup3.c (rpl_dup3): Likewise.
36438         * lib/open.c (rpl_open): Likewise.
36439
36440         fchdir: simplify error handling, and support dup3
36441         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36442         stdbool, malloc-posix, realloc-posix.
36443         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36444         (ensure_dirs_slot): Return false on allocation failure.
36445         (rpl_dup2): Delete.
36446         (_gl_register_dup): New function.
36447         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36448         (_gl_register_fd): Close fd on allocation failure.
36449         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36450         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36451         prototype.
36452         (rpl_dup2_fchdir): Delete prototype.
36453         * lib/open.c (open): Update caller.
36454         * lib/dup2.c (dup2): Track fchdir metadata.
36455         * lib/dup3.c (dup3): Likewise.
36456         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36458
36459 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36460
36461         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36462         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36463         don't pass arguments to AC_OUTPUT.
36464
36465 2009-09-02  Bruno Haible  <bruno@clisp.org>
36466
36467         * modules/mkdtemp (License): Relicense under LGPLv2+.
36468         Reported by Paolo Bonzini.
36469
36470 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36471
36472         Replace uses of obsolete autoconf macros in Jim's modules.
36473         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36474         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36475         can evoke a warning from autoconf when run with -Wobsolete
36476         enabled.  They were declared obsolete for good reasons (see
36477         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36478         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36479         should not continue using the deprecated macros.
36480         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36481         obsolete Autoconf macros with modern counterparts.
36482         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36483         * m4/dos.m4 (gl_AC_DOS): Likewise.
36484         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36486         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36487         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36488         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36489         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36491         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36492         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36493         Likewise.
36494         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36495         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36496         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36497         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36498         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36499         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36500
36501 2009-09-01  Eric Blake  <ebb9@byu.net>
36502
36503         fchdir: fix off-by-one bug in previous patch
36504         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36505         (_gl_unregister_fd): Delete useless if.
36506
36507 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36508
36509         maint.mk: sort the list of syntax-check rules
36510         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36511         easier to get a sense of progress when the rules are run sequentially
36512         and take a long time.
36513
36514 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36515
36516         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36517         * modules/netinet_in: Likewise.
36518         * modules/sys_file: Likewise.
36519         * modules/sys_ioctl: Likewise.
36520         * modules/sys_select: Likewise.
36521         * modules/sys_socket: Likewise.
36522         * modules/sys_stat: Likewise.
36523         * modules/sys_time: Likewise.
36524         * modules/sys_times: Likewise.
36525         * modules/sys_utsname: Likewise.
36526         * modules/sys_wait: Likewise.
36527
36528 2009-09-01  Jim Meyering  <meyering@redhat.com>
36529
36530         fts: help ensure that return values are not ignored
36531         * lib/fts_.h (__GNUC_PREREQ): Define.
36532         (__attribute_warn_unused_result__): Define.
36533         (fts_children, fts_close, fts_open, fts_read): Declare with
36534         __attribute_warn_unused_result__.
36535
36536         fts: fts_close now fails also when closing a dir file descriptor fails
36537         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36538         and propagate to caller, along with errno.
36539
36540         announce-gen: correct formatting in --help output
36541         * build-aux/announce-gen (usage): Move the one-line description in
36542         --help output "up", to where it belongs, just after Usage:.
36543
36544 2009-08-31  Eric Blake  <ebb9@byu.net>
36545
36546         fchdir: port to mingw
36547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36548         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36549         opened, then use a substitute.
36550         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36551         replacement.
36552         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36553         (_gl_register_fd): No need to check stat if open already filters
36554         all directories.
36555         (fchdir): Fix error condition to match POSIX.
36556         * modules/fchdir (Depends-on): Add sys_stat.
36557         * doc/posix-functions/open.texi (open): Document the limitation.
36558         * modules/fchdir-tests: New file.
36559         * tests/test-fchdir.c: Likewise.
36560
36561         canonicalize: allow cross-testing from cygwin to mingw
36562         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36563         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36564         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36565         Likewise.
36566         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36567         target does not support symlinks.
36568         * tests/test-canonicalize-lgpl.sh: Likewise.
36569
36570         chown: avoid compilation warning on mingw
36571         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36572         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36573         mingw.
36574         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36575         * modules/chown (Depends-on): Add errno.
36576
36577 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36578
36579         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36580         command.
36581
36582 2009-08-31  Jim Meyering  <meyering@redhat.com>
36583
36584         canonicalize: remove useless initialization
36585         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36586         initialization of local, "end".
36587
36588 2009-08-30  Bruno Haible  <bruno@clisp.org>
36589
36590         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36591         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36592         ENOSYS.
36593
36594 2009-08-30  Bruno Haible  <bruno@clisp.org>
36595
36596         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36597         /usr/xpg4/bin/tr when it exists.
36598         * tests/test-pipe-filter-gi1.sh: Likewise.
36599
36600 2009-08-30  Bruno Haible  <bruno@clisp.org>
36601
36602         Work around deficient /usr/bin/id program on Solaris.
36603         * tests/test-file-has-acl.sh (ID): New variable.
36604         * tests/test-set-mode-acl.sh (ID): Likewise.
36605         * tests/test-copy-acl.sh (ID): Likewise.
36606         * tests/test-copy-file.sh (ID): Likewise.
36607
36608 2009-08-30  Bruno Haible  <bruno@clisp.org>
36609
36610         New module 'xstriconveh'.
36611         * lib/xstriconveh.h: New file.
36612         * lib/xstriconveh.c: New file.
36613         * modules/xstriconveh: New file.
36614
36615 2009-08-30  Bruno Haible  <bruno@clisp.org>
36616
36617         Make it easier to use mem_cd_iconveh.
36618         * lib/striconveh.h (iconveh_t): New type.
36619         (iconveh_open, iconveh_close): New declarations.
36620         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36621         with a single 'const iconveh_t *' argument.
36622         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36623         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36624         with a single 'const iconveh_t *' argument.
36625         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36626         * tests/test-striconveh.c (main): Update.
36627         * NEWS: Mention the change.
36628
36629 2009-08-30  Bruno Haible  <bruno@clisp.org>
36630
36631         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36632         problem.
36633
36634 2009-08-30  Bruno Haible  <bruno@clisp.org>
36635
36636         Work around iconv_open problem on Solaris.
36637         * lib/iconv_open-solaris.gperf: New file.
36638         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36639         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36640         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36641         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36642         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36643         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36644
36645 2009-08-29  Jim Meyering  <meyering@redhat.com>
36646
36647         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36648         * top/maint.mk (cvs-check): Remove target; it was just an alias
36649         to the better-named vc-diff-check.
36650         (maintainer-distcheck): Remove rule.  It was used only from
36651         the (alpha/beta/major) target, and all of its commands but one
36652         were coreutils-specific.
36653         (vc-dist): Remove rule.
36654         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36655         Run vc-diff-check, not vc-dist.
36656         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36657
36658 2009-08-27  Bruno Haible  <bruno@clisp.org>
36659
36660         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36661         of 0.
36662
36663 2009-08-27  Bruno Haible  <bruno@clisp.org>
36664
36665         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36666         compilers.
36667         * doc/func.texi: Document the SunPRO C bug.
36668
36669 2009-08-27  Bruno Haible  <bruno@clisp.org>
36670
36671         Fix link error on Solaris.
36672         * tests/test-parse-duration.c (xstrdup): Remove function.
36673
36674 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36675
36676         ignore-value: handle pointer types, too
36677         * lib/ignore-value.h (__attribute__): Remove definition.
36678         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36679         of a more concise and more-often effective "(void) i" statement.
36680         (ignore_ptr): New function to suppress warnings from functions that
36681         return pointers, and to make it explicit that one function doesn't
36682         handle all cases.
36683
36684 2009-08-25  Bruno Haible  <bruno@clisp.org>
36685
36686         dup2: work around a Linux bug.
36687         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36688         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36689         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36690         Reported by Simon Josefsson.
36691
36692 2009-08-25  Jim Meyering  <meyering@redhat.com>
36693
36694         libguestfs uses gnulib
36695         * users.txt: Add libguestfs.
36696
36697 2009-08-24  Eric Blake  <ebb9@byu.net>
36698
36699         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36700         * lib/pipe2.c (includes): Add binary-io.h.
36701         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36702
36703 2009-08-24  Bruno Haible  <bruno@clisp.org>
36704
36705         Tolerate declared but missing accept4 syscall.
36706         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36707         available.
36708         * lib/sys_socket.in.h (accept4): If the function is already present,
36709         override it.
36710         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36711         * modules/accept4 (Makefile.am): Compile accept4.c always.
36712         Reported by Paolo Bonzini and Eric Blake.
36713
36714 2009-08-23  Bruno Haible  <bruno@clisp.org>
36715
36716         New module 'accept4'.
36717         * lib/sys_socket.in.h (accept4): New declaration.
36718         * lib/accept4.c: New file.
36719         * m4/accept4.m4: New file.
36720         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36721         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36722         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36723         HAVE_ACCEPT4.
36724         * modules/accept4: New file.
36725         * doc/glibc-functions/accept4.texi: Mention the new module.
36726
36727 2009-08-24  Jim Meyering  <meyering@redhat.com>
36728
36729         progname: also set global program_invocation_name, when possible
36730         Before this change, a libtool-enabled program that calls glibc's
36731         error function would report the program name as
36732         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36733         * modules/progname (configure.ac): Check for a declaration of
36734         program_invocation_name.
36735         * lib/progname.c:  Include <errno.h>.
36736         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36737         Set program_invocation_name.
36738
36739 2009-08-23  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/dup3.c: Include <string.h>.
36742
36743 2009-08-23  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36746         * lib/pipe2.c (pipe2): Likewise.
36747         Suggested by Eric Blake.
36748
36749 2009-08-23  Bruno Haible  <bruno@clisp.org>
36750
36751         Tolerate declared but missing dup3 syscall.
36752         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36753         * lib/unistd.in.h (dup3): If the function is already present,
36754         override it.
36755         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36756         * modules/dup3 (Makefile.am): Compile dup3.c always.
36757         Reported by Paolo Bonzini.
36758
36759 2009-08-23  Bruno Haible  <bruno@clisp.org>
36760
36761         Tolerate declared but missing pipe2 syscall.
36762         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36763         available.
36764         * lib/unistd.in.h (pipe2): If the function is already present,
36765         override it.
36766         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36767         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36768         Reported by Paolo Bonzini.
36769
36770 2009-08-23  Bruno Haible  <bruno@clisp.org>
36771
36772         * lib/pipe2.c (pipe2): Move #ifs inside function.
36773
36774 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36775
36776         quotearg: document limitations of quote_these_too
36777         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36778         those limitations are created.
36779         * lib/quotearg.h (set_char_quoting): Document that digits and
36780         letters that are special after backslash are not permitted.
36781         (quotearg_char): Cross-reference set_char_quoting documentation.
36782
36783 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36784
36785         quotearg: implement custom_quoting_style
36786         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36787         right_quote fields.
36788         (set_custom_quoting): New public function.
36789         (quotearg_buffer_restyled): Add left_quote and right_quote
36790         arguments, handle them very much like locale quoting, and update
36791         all uses.
36792         (quotearg_n_custom): New public function.
36793         (quotearg_n_custom_mem): New public function.
36794         (quotearg_custom): New public function.
36795         (quotearg_custom_mem): New public function.
36796         * lib/quotearg.h: Prototype and document new public functions.
36797         (enum quoting_style): For escape_quoting_style and
36798         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36799         ignored even though they're otherwise like c_quoting_style.
36800         Add custom_quoting_style member and document with comparison to
36801         clocale_quoting_style.
36802         * tests/test-quotearg.c (custom_quotes): New array.
36803         (custom_results): New array.
36804         (main): Extend to test custom quoting.
36805
36806 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36807
36808         quotearg: fix right quote escaping when it's in quote_these_too
36809         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36810         quote, be sure to prepend only one backslash.
36811         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36812         (main): Test it.
36813
36814 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36815
36816         quotearg-tests: test escaping of embedded locale quotes
36817         * tests/test-quotearg.c (struct result_strings): Add member for
36818         new input.
36819         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36820         (inputs): Add new input.
36821         (results_g): Add expected results.
36822         (flag_results): Likewise.
36823         (locale_results): Likewise.
36824         (compare_strings): Check those.
36825
36826 2009-08-23  Bruno Haible  <bruno@clisp.org>
36827
36828         Tests for module 'dup3'.
36829         * modules/dup3-tests: New file.
36830         * tests/test-dup3.c: New file.
36831
36832         New module 'dup3'.
36833         * lib/unistd.in.h (dup3): New declaration.
36834         * lib/dup3.c: New file.
36835         * m4/dup3.m4: New file.
36836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36837         HAVE_DUP3.
36838         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36839         * modules/dup3: New file.
36840         * doc/glibc-functions/dup3.texi: Mention the new module.
36841
36842 2009-08-23  Bruno Haible  <bruno@clisp.org>
36843
36844         Tweak the dup2 test.
36845         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36846         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36847         the test file is still empty. Fix argument order of lseek.
36848
36849 2009-08-23  Bruno Haible  <bruno@clisp.org>
36850
36851         Avoid test link errors when the modules getopt-gnu, gettext are used.
36852         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36854
36855 2009-08-23  Bruno Haible  <bruno@clisp.org>
36856
36857         Fix getdtablesize() on mingw.
36858         * lib/getdtablesize.c (getdtablesize): Implement differently.
36859         * lib/unistd.in.h (getdtablesize): Improve comment.
36860
36861 2009-08-23  Bruno Haible  <bruno@clisp.org>
36862
36863         New module 'mkostemp'.
36864         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36865         * lib/stdlib.in.h (mksotemp): New declaration.
36866         * lib/mkostemp.c: New file, from glibc with modifications.
36867         * lib/tempname.h (GT_FILE): Remove outdated comment.
36868         (gen_tempname): Add flags argument.
36869         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36870         (__GT_FILE): Map to 1.
36871         (small_open, large_open): Remove macros.
36872         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36873         * lib/mkstemp.c (mkstemp): Update.
36874         * lib/mkdtemp.c (mkdtemp): Likewise.
36875         * m4/mkostemp.m4: New file.
36876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36877         HAVE_MKOSTEMP.
36878         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36879         HAVE_MKOSTEMP.
36880         * modules/mkostemp: New file, based on modules/mkstemp.
36881         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36882         * NEWS: Mention the change.
36883
36884 2009-08-23  Bruno Haible  <bruno@clisp.org>
36885
36886         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36887         Reported by Eric Blake.
36888
36889 2009-08-23  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36892         Reported by Eric Blake.
36893
36894 2009-08-23  Bruno Haible  <bruno@clisp.org>
36895
36896         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36897         * modules/pipe2 (Depends-on): Likewise.
36898
36899 2009-08-23  Eric Blake  <ebb9@byu.net>
36900
36901         fcntl-h: add O_TTY_INIT support
36902         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36903         * tests/test-fcntl-h.c (o): Test it.
36904         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36905
36906         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36907         * modules/fcntl: Move <fcntl.h> header replacement...
36908         * modules/fcntl-h: ...to new name, so as not to collide with
36909         like-named function.
36910         * tests/test-fcntl.c: Rename...
36911         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36912         * modules/fcntl-tests: Rename...
36913         * modules/fcntl-h-tests: ...to this.  Update test file name.
36914         * modules/chdir-long (Depends-on): Update clients.
36915         * modules/chdir-safer (Depends-on): Likewise.
36916         * modules/fcntl-safer (Depends-on): Likewise.
36917         * modules/fts (Depends-on): Likewise.
36918         * modules/mkancesdirs (Depends-on): Likewise.
36919         * modules/mkdir-p (Depends-on): Likewise.
36920         * modules/open (Depends-on): Likewise.
36921         * modules/savewd (Depends-on): Likewise.
36922         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36923         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36924
36925 2009-08-22  Bruno Haible  <bruno@clisp.org>
36926
36927         * modules/binary-io (License): Relicense under LGPL.
36928         * modules/pipe2 (License): Likewise.
36929
36930 2009-08-22  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36933         return value.
36934         * lib/pipe-filter-gi.c (filter_init): Likewise.
36935         Reported by Eric Blake.
36936
36937 2009-08-22  Bruno Haible  <bruno@clisp.org>
36938
36939         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36940         * modules/pipe (Depends-on): Add pipe2.
36941
36942 2009-08-22  Bruno Haible  <bruno@clisp.org>
36943
36944         Tests for module 'pipe2'.
36945         * modules/pipe2-tests: New file.
36946         * tests/test-pipe2.c: New file.
36947
36948         New module 'pipe2'.
36949         * lib/unistd.in.h (pipe2): New declaration.
36950         * lib/pipe2.c: New file.
36951         * m4/pipe2.m4: New file.
36952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36953         HAVE_PIPE2.
36954         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36955         * modules/pipe2: New file.
36956         * doc/glibc-functions/pipe2.texi: Mention the new module.
36957
36958 2009-08-22  Bruno Haible  <bruno@clisp.org>
36959
36960         Reference some new glibc functions.
36961         * doc/glibc-functions/accept4.texi: New file.
36962         * doc/glibc-functions/dup3.texi: New file.
36963         * doc/glibc-functions/mkostemp.texi: New file.
36964         * doc/glibc-functions/pipe2.texi: New file.
36965         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36966         (Glibc sys/socket.h): Refer to accept4.
36967         (Glibc unistd.h): Refer to dup3, pipe2.
36968         Reported by Eric Blake.
36969
36970 2009-08-22  Jim Meyering  <meyering@redhat.com>
36971             Bruno Haible  <bruno@clisp.org>
36972
36973         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36974         This makes it so packages using automake-1.11's silent-rules option
36975         can print e.g., a single "GEN    configmake.h" line, rather than
36976         the 30+ statements that perform the job.  If you want to see the
36977         actual commands, you can still run "make V=1".
36978         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36979         so that make output is abbreviated when those variables are defined
36980         appropriately.
36981         * modules/argz: Likewise.
36982         * modules/arpa_inet: Likewise.
36983         * modules/byteswap: Likewise.
36984         * modules/configmake: Likewise.
36985         * modules/dirent: Likewise.
36986         * modules/errno: Likewise.
36987         * modules/fcntl: Likewise.
36988         * modules/float: Likewise.
36989         * modules/fnmatch: Likewise.
36990         * modules/getopt-posix: Likewise.
36991         * modules/glob: Likewise.
36992         * modules/iconv_open: Likewise.
36993         * modules/inttypes: Likewise.
36994         * modules/localcharset: Likewise.
36995         * modules/locale: Likewise.
36996         * modules/math: Likewise.
36997         * modules/netdb: Likewise.
36998         * modules/netinet_in: Likewise.
36999         * modules/poll: Likewise.
37000         * modules/posix_spawnp-tests: Likewise.
37001         * modules/sched: Likewise.
37002         * modules/search: Likewise.
37003         * modules/selinux-h: Likewise.
37004         * modules/signal: Likewise.
37005         * modules/spawn: Likewise.
37006         * modules/stdarg: Likewise.
37007         * modules/stdbool: Likewise.
37008         * modules/stddef: Likewise.
37009         * modules/stdint: Likewise.
37010         * modules/stdio: Likewise.
37011         * modules/stdlib: Likewise.
37012         * modules/string: Likewise.
37013         * modules/strings: Likewise.
37014         * modules/sys_file: Likewise.
37015         * modules/sys_ioctl: Likewise.
37016         * modules/sys_select: Likewise.
37017         * modules/sys_socket: Likewise.
37018         * modules/sys_stat: Likewise.
37019         * modules/sys_time: Likewise.
37020         * modules/sys_times: Likewise.
37021         * modules/sys_utsname: Likewise.
37022         * modules/sys_wait: Likewise.
37023         * modules/sysexits: Likewise.
37024         * modules/time: Likewise.
37025         * modules/unistd: Likewise.
37026         * modules/wchar: Likewise.
37027         * modules/wctype: Likewise.
37028
37029 2009-08-22  Jim Meyering  <meyering@redhat.com>
37030
37031         announce-gen: detect write failure
37032         * build-aux/announce-gen: Add Coda at end.
37033         Remove equivalent-but-more-verbose block at top.
37034
37035 2009-08-19  Akim Demaille  <demaille@gostai.com>
37036
37037         bootstrap: --help to stdout.
37038         * bootstrap (usage): Don't send --help to stderr.
37039         Use a here doc instead of a long string.
37040
37041 2009-08-21  Eric Blake  <ebb9@byu.net>
37042
37043         test-popen-safer: split from test-popen
37044         * tests/test-popen.c (main): Move...
37045         * tests/test-popen.h: ...into new file.
37046         * tests/test-popen-safer2.c: New file.
37047         * modules/popen-tests (Files): Add test-popen.h.
37048         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37049         Suggested by Bruno Haible.
37050
37051         test-fcntl-safer: split from test-open
37052         * tests/test-open.c (main): Move...
37053         * tests/test-open.h: ...into new file.
37054         * tests/test-fcntl-safer.c: New file.
37055         * modules/open-tests (Files): Add test-open.h.
37056         * modules/fcntl-safer-tests: New file.
37057         Suggested by Bruno Haible.
37058
37059         test-fopen-safer: split from test-fopen
37060         * tests/test-fopen.c (main): Move...
37061         * tests/test-fopen.h: ...into new file.
37062         * tests/test-fopen-safer.c: New file.
37063         * modules/fopen-tests (Files): Add test-fopen.h.
37064         * modules/fopen-safer-tests: New file.
37065         Suggested by Bruno Haible.
37066
37067 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37068
37069         popen-safer: test O_CLOEXEC at run-time.
37070         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37071
37072 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37073
37074         fcntl: move more flags to the header
37075         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37076         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37077         * lib/fcntl.in.h: Do both things here.
37078
37079 2009-08-21  Jim Meyering  <meyering@redhat.com>
37080
37081         consistently remove $@-t before redirecting to it
37082         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37083         * modules/alloca-opt: Likewise.
37084         * modules/byteswap: Likewise.
37085         * modules/fnmatch: Likewise.
37086         * modules/getopt-posix: Likewise.
37087         * modules/glob: Likewise.
37088         * modules/poll: Likewise.
37089         * modules/posix_spawnp-tests: Likewise.
37090         * modules/sys_socket: Likewise.
37091         * modules/sysexits: Likewise.
37092
37093 2009-08-21  Eric Blake  <ebb9@byu.net>
37094
37095         popen: simplify access to original popen
37096         * lib/popen.c (rpl_popen): No need to worry about popen being a
37097         macro.
37098         Reported by Bruno Haible.
37099
37100 2009-08-20  Eric Blake  <ebb9@byu.net>
37101
37102         build: avoid some compiler warnings
37103         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37104         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37105         type.
37106         (new_exclude_segment, excluded_file_pattern_p)
37107         (excluded_file_name_p): Reduce scope.
37108         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37109         old-style declaration.
37110
37111 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37112
37113         * tests/test-exclude1.sh: Handle Windows EOL.
37114         * tests/test-exclude2.sh: Likewise.
37115         * tests/test-exclude3.sh: Likewise.
37116         * tests/test-exclude4.sh: Likewise.
37117         * tests/test-exclude5.sh: Likewise.
37118         * tests/test-exclude6.sh: Likewise.
37119         * tests/test-exclude7.sh: Likewise.
37120
37121 2009-08-19  Akim Demaille  <demaille@gostai.com>
37122
37123         bootstrap: find sha1sum when named gsha1sum.
37124         * bootstrap (find_tool): New.
37125         ($SHA1SUM): New.
37126         Use it.
37127
37128 2009-08-20  Jim Meyering  <meyering@redhat.com>
37129
37130         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37131         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37132         expression that converts "." in a file name to "\." in the resulting
37133         regexp.  Start with a dummy statement, so that prior shell variable
37134         definitions are expanded portably.  Reported by Simon Josefsson.
37135
37136 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37137
37138         Fix polling for writeability of a screen buffer.
37139         * lib/poll.c: Distinguish input and screen buffers for the
37140         Win32 implementation.
37141         * lib/select.c: Likewise.
37142
37143 2009-08-19  Eric Blake  <ebb9@byu.net>
37144
37145         popen-safer: prevent popen from clobbering std descriptors
37146         * modules/popen-safer: New file.
37147         * lib/popen-safer.c: Likewise.
37148         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37149         * lib/stdio--.h (popen): Provide override.
37150         * lib/stdio-safer.h (popen_safer): Provide declaration.
37151         * tests/test-popen.c (includes): Partially test this.
37152         * modules/popen-safer-tests: New file, for more tests.
37153         * tests/test-popen-safer.c: Likewise.
37154         * MODULES.html.sh (file stream based Input/Output): Mention it.
37155
37156         tests: test some of the *-safer modules
37157         * modules/fopen-safer (Depends-on): Add fopen.
37158         * modules/fcntl-safer (Depends-on): Add fcntl.
37159         * modules/stdlib-safer (Depends-on): Add stdlib.
37160         (configure.ac): Set indicator.
37161         * modules/unistd-safer (configure.ac): Likewise.
37162         * modules/tmpfile-safer (configure.ac): Likewise.
37163         (Depends-on): Add tmpfile.
37164         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37165         active.
37166         * tests/test-fopen.c (includes): Test safer versions when they are
37167         in use.
37168         * tests/test-open.c (includes): Likewise.
37169
37170         popen: fix cygwin 1.5 bug when stdin closed
37171         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37172         * modules/popen: New file.
37173         * modules/popen-tests: Likewise.
37174         * tests/test-popen.c: Likewise.
37175         * m4/popen.m4: Likewise.
37176         * lib/popen.c: Likewise.
37177         * lib/stdio.in.h (popen): New declaration.
37178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37179         * modules/stdio (Makefile.am): Likewise.
37180         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37181
37182 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37183
37184         maint.mk: give full control over update-copyright exclusions
37185         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37186         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37187         (update-copyright): Don't force inclusion of top-level
37188         ChangeLog.  Don't force exclusion of all COPYING files, but make
37189         them the default exclusion instead.
37190
37191 2009-08-16  Bruno Haible  <bruno@clisp.org>
37192
37193         Fix test failures on Solaris 10.
37194         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37195         tests when Solaris iconv() is used.
37196         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37197         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37198         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37199         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37200         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37201
37202 2009-08-16  Bruno Haible  <bruno@clisp.org>
37203
37204         Fix test failures on Solaris 10.
37205         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37206         'tr' program and pass it as first argument.
37207         * tests/test-pipe-filter-gi1.sh: Likewise.
37208         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37209         program as first argument.
37210         * tests/test-pipe-filter-gi1.c (main): Likewise.
37211
37212 2009-08-16  Eric Blake  <ebb9@byu.net>
37213
37214         fpurge: fix previous commits
37215         * modules/fpurge (Makefile.am): Make replacement conditional,
37216         partially reverting 2007-04-29 change; missed in previous
37217         attempt.
37218         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37219         is missing.
37220
37221 2009-08-16  Bruno Haible  <bruno@clisp.org>
37222
37223         Clarify fpurge's effect on the file position.
37224         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37225         * tests/test-fpurge.c (main): Make a second pass for checking the file
37226         position.
37227
37228 2009-08-16  Bruno Haible  <bruno@clisp.org>
37229
37230         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37231         declaration of fpurge is missing.
37232         * tests/test-fpurge.c (main): Check that the file has not more contents
37233         than expected. Close the file before removing it.
37234
37235 2009-08-15  Eric Blake  <ebb9@byu.net>
37236
37237         fpurge: don't wrap working cygwin implementation
37238         * lib/fpurge.c (fpurge): Fix comment typo.
37239         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37240         1.7 to avoid replacement.
37241         * tests/test-fpurge.c (main): Enhance test.
37242
37243 2009-08-15  Eric Blake  <ebb9@byu.net>
37244         and Jim Meyering  <meyering@redhat.com>
37245
37246         test-update-copyright: skip if perl is insufficient
37247         * tests/test-update-copyright.sh: Failure to run maintainer tool
37248         should not cause testsuite failure on cygwin 1.5.
37249
37250 2009-08-14  Eric Blake  <ebb9@byu.net>
37251
37252         doc: mention more functions added in cygwin 1.7.0
37253         * doc/posix-headers/limits.texi (limits.h): Update for recent
37254         cygwin additions.
37255         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37256         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37257         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37258         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37259         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37260
37261 2009-08-14  Eric Blake  <ebb9@byu.net>
37262
37263         maint.mk: simplify update-copyright rule
37264         * top/maint.mk (update-copyright-local): Delete, and document how
37265         to do it in cfg.mk instead.
37266         (update-copyright-exclude-regexp): Delete, and document how to do
37267         it in .x-update-copyright instead.
37268         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37269         exclude ChangeLog.
37270
37271 2009-08-14  Bruno Haible  <bruno@clisp.org>
37272
37273         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37274
37275 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37276
37277         maint.mk: support update-copyright-env
37278         * top/maint.mk (update-copyright-env): Define place-holder.
37279         (update-copyright): Expand $(update-copyright-env) before
37280         invoking update-copyright.
37281
37282 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37283
37284         update-copyright: implement forced reformatting
37285         * build-aux/update-copyright: Implement and document
37286         UPDATE_COPYRIGHT_FORCE.
37287         * tests/test-update-copyright.sh: Test it.
37288
37289 2009-08-14  Eric Blake  <ebb9@byu.net>
37290         and Bruno Haible  <bruno@clisp.org>
37291
37292         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37293         * tests/test-locale.c: Revert previous patch related to NULL.
37294         * tests/test-stdio.c: Likewise.
37295         * tests/test-stdlib.c: Likewise.
37296         * tests/test-string.c: Likewise.
37297         * tests/test-unistd.c: Likewise.
37298         * modules/time-tests (Depends-on): Add verify.
37299         * modules/wchar-tests (Depends-on): Likewise.
37300         * tests/test-time.c: Test for NULL compliance.
37301         * tests/test-wchar.c: Likewise.
37302         * modules/locale (Depends-on): Add stddef.
37303         * modules/stdio (Depends-on): Likewise.
37304         * modules/stdlib (Depends-on): Likewise.
37305         * modules/string (Depends-on): Likewise.
37306         * modules/time (Depends-on): Likewise.
37307         * modules/unistd (Depends-on): Likewise.
37308         * modules/wchar (Depends-on): Likewise.
37309         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37310         * lib/stdlib.in.h (includes): Likewise.
37311         * lib/string.in.h (includes): Likewise.
37312         * lib/time.in.h (includes): Likewise.
37313         * lib/unistd.in.h (includes): Likewise.
37314         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37315         replaced.
37316         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37317         * m4/stddef_h.m4: New file.
37318         * modules/stddef: Likewise.
37319         * lib/stddef.in.h: Likewise.
37320         * modules/stddef-tests: Likewise.
37321         * tests/test-stddef.c: Likewise.
37322         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37323         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37324         * doc/posix-headers/locale.texi (locale.h): Likewise.
37325         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37326         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37327         * doc/posix-headers/string.texi (string.h): Likewise.
37328         * doc/posix-headers/time.texi (time.h): Likewise.
37329         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37330         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37331
37332 2009-08-14  Eric Blake  <ebb9@byu.net>
37333
37334         doc: improve git diff of texinfo files
37335         * .gitattributes: Add rule for *.texi files, with hint on how to
37336         use it.
37337         Copied from m4, and based on a report by Bruno Haible.
37338
37339 2009-08-14  Bruno Haible  <bruno@clisp.org>
37340
37341         Disable multithread support by default on Cygwin 1.5.x for real.
37342         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37343
37344 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37345
37346         update-copyright: much ado about intervals
37347         * build-aux/update-copyright: Implement and document
37348         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37349         of copyright year intervals.
37350         Also, document UPDATE_COPYRIGHT_YEAR.
37351         * tests/test-update-copyright.sh: Test it.
37352
37353         update-copyright: convert 2-digit to 4-digit years
37354         * build-aux/update-copyright: Implement and document.
37355         * tests/test-update-copyright.sh: Update.
37356
37357 2009-08-14  Jim Meyering  <meyering@redhat.com>
37358
37359         test-exclude: avoid coreutils "make check" failure
37360         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37361         just as in test-argmatch.c.
37362
37363 2009-08-13  Eric Blake  <ebb9@byu.net>
37364
37365         test-dup2: fix bad assumption
37366         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37367         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37368
37369         test-version-etc: fix CRLF portability issue
37370         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37371         recognize \r.
37372         * tests/test-argp-version-etc-1.sh: Likewise.
37373
37374         getopt: update client modules
37375         * modules/argp (Depends-on): Use getopt-gnu.
37376         * modules/git-merge-changelog (Depends-on): Likewise.
37377         * modules/long-options (Depends-on): Likewise.
37378         * modules/xstrtol (Depends-on): Likewise.
37379
37380 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37381
37382         * tests/test-version-etc.sh: Don't fail on different
37383         project/version.  Don't fail on CRLF differences.  Rewrite to use
37384         multiple -e instead of multiple sed forks, suggested by Eric Blake
37385         <ebb9@byu.net>.
37386         * tests/test-argp-version-etc-1.sh: Likewise.
37387
37388 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37389
37390         * tests/test-version-etc.sh: Don't fail on different
37391         project/version.
37392
37393 2009-08-12  Bruno Haible  <bruno@clisp.org>
37394
37395         Tests for modules 'getopt-posix', 'getopt-gnu'.
37396         * modules/getopt-posix-tests: New file.
37397         * tests/test-getopt.c: New file.
37398         * tests/test-getopt.h: New file.
37399         * tests/test-getopt_long.h: New file.
37400
37401         New modules 'getopt-posix', 'getopt-gnu'.
37402         * modules/getopt-gnu: New file, renamed from modules/getopt.
37403         * modules/getopt-posix: New file.
37404         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37405         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37406         (gl_GETOPT): Remove macro.
37407         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37408         Disable the test against BSD systems that declare optreset. Test
37409         against mingw bug. Test against lack of support of optional arguments
37410         on many platforms.
37411         * doc/glibc-headers/getopt.texi: Update module name and list of
37412         relevant platforms.
37413         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37414         'getopt-gnu' and more portability problems.
37415         * NEWS: Mention the changes.
37416
37417 2009-08-12  Bruno Haible  <bruno@clisp.org>
37418
37419         Ensure that optarg etc. get declared by <unistd.h>.
37420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37421         AC_USE_SYSTEM_EXTENSIONS.
37422         * modules/getopt (Depends-on): Add 'extensions'.
37423
37424 2009-08-12  Bruno Haible  <bruno@clisp.org>
37425
37426         Avoid test link errors.
37427         * modules/pipe-filter-ii-tests (Makefile.am): Define
37428         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37429         * modules/pipe-filter-gi-tests (Makefile.am): Define
37430         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37432
37433 2009-08-12  Bruno Haible  <bruno@clisp.org>
37434
37435         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37436         gl_GETOPT_SUBSTITUTE before.
37437         (gl_GETOPT): Use it.
37438         * m4/argp.m4 (gl_ARGP): Update.
37439         Reported by Sergey Poznyakoff.
37440
37441         * m4/getopt.m4: Reorder macros.
37442         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37443         (gl_GETOPT_SUBSTITUTE): Remove macro.
37444
37445 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37446
37447         Minor improvement in gitlog-to-changelog
37448
37449         * build-aux/gitlog-to-changelog: New option `--format' makes
37450         output format string configurable.
37451
37452 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37453
37454         Optimize exclude: use hash tables for non-wildcard patterns.
37455
37456         * lib/exclude.c: Include hash.h and mbuiter.h
37457         (struct exclude_pattern, exclude_segment): New data types.
37458         (struct exclude): Rewrite.
37459         (fnmatch_pattern_has_wildcards): New function.
37460         (new_exclude_segment, free_exclude_segment): New functions.
37461         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37462         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37463         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37464         * modules/exclude: Depend on hash and mbuiter.
37465
37466         * modules/exclude-tests: New file.
37467         * tests/test-exclude.c: New file.
37468         * tests/test-exclude1.sh: New file.
37469         * tests/test-exclude2.sh: New file.
37470         * tests/test-exclude3.sh: New file.
37471         * tests/test-exclude4.sh: New file.
37472         * tests/test-exclude5.sh: New file.
37473         * tests/test-exclude6.sh: New file.
37474         * tests/test-exclude7.sh: New file.
37475
37476 2009-08-12  Bruno Haible  <bruno@clisp.org>
37477
37478         Ensure that getopt() gets declared by <unistd.h>.
37479         * lib/unistd.in.h: Conditionally include getopt.h.
37480         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37481         Set GNULIB_UNISTD_H_GETOPT.
37482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37483         GNULIB_UNISTD_H_GETOPT.
37484         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37485
37486 2009-08-12  Bruno Haible  <bruno@clisp.org>
37487
37488         Clarify logic.
37489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37490         gl_replace_getopt instead of GETOPT_H.
37491
37492 2009-08-12  Bruno Haible  <bruno@clisp.org>
37493
37494         * m4/getopt.m4: Add comments.
37495
37496 2009-08-12  Bruno Haible  <bruno@clisp.org>
37497
37498         Disable multithread support by default on Cygwin 1.5.x.
37499         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37500         set gl_use_threads=no if not specified otherwise.
37501
37502 2009-08-11  Bruno Haible  <bruno@clisp.org>
37503
37504         Avoid compilation error on NetBSD 5.0.
37505         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37506         * tests/test-stdio.c: Likewise.
37507         * tests/test-stdlib.c: Likewise.
37508         * tests/test-string.c: Likewise.
37509         * tests/test-unistd.c: Likewise.
37510         Reported by Greg Troxel <gdt@ir.bbn.com>
37511         at <https://savannah.gnu.org/support/?106973>.
37512
37513 2009-08-11  Bruno Haible  <bruno@clisp.org>
37514
37515         * modules/dup2-tests (Depends-on): Remove close.
37516
37517         Undo 2009-07-19 commit.
37518         * modules/acl-tests (Depends-on): Remove close.
37519         * modules/binary-io-tests (Depends-on): Likewise.
37520         * modules/closein-tests (Depends-on): Likewise.
37521         * modules/flock-tests (Depends-on): Likewise.
37522         * modules/fsync-tests (Depends-on): Likewise.
37523         * modules/lseek-tests (Depends-on): Likewise.
37524         * modules/pipe-tests (Depends-on): Likewise.
37525         * modules/posix_spawn-tests (Depends-on): Likewise.
37526         * modules/posix_spawnp-tests (Depends-on): Likewise.
37527         * modules/stat-time-tests (Depends-on): Likewise.
37528         * modules/yesno-tests (Depends-on): Likewise.
37529
37530 2009-08-10  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37533
37534 2009-08-10  Bruno Haible  <bruno@clisp.org>
37535
37536         Fix a gcc warning.
37537         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37538
37539 2009-08-10  Bruno Haible  <bruno@clisp.org>
37540
37541         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37542         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37543         not only the first time.
37544         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37545         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37546         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37547         is 1, not only the the first time.
37548
37549 2009-08-10  Bruno Haible  <bruno@clisp.org>
37550
37551         Make it possible to use module 'gethostname' without module 'close'.
37552         * lib/unistd.in.h (close): Evoke a link error only if
37553         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37555         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37556         * modules/unistd (Makefile.am): Substitute
37557         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37558         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37559         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37560         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37561         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37562         * modules/sys_ioctl (Makefile.am): Substitute
37563         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37564         * modules/socket (configure.ac): On native Windows, set
37565         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37566         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37567         Reported by Sam Steingold <sds@gnu.org>.
37568
37569 2009-08-10  Bruno Haible  <bruno@clisp.org>
37570
37571         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37572         * modules/ioctl (configure.ac): Likewise.
37573
37574 2009-08-10  Bruno Haible  <bruno@clisp.org>
37575
37576         Avoid collision between gnulib wrapper and libintl wrapper.
37577         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37578         already defined in intl/printf.c.
37579         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37580         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37581
37582 2009-08-09  Bruno Haible  <bruno@clisp.org>
37583
37584         Make <sys/select.h> really self-contained, also on Solaris 10.
37585         * lib/sys_select.in.h: Include <string.h>.
37586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37587         Solaris 10 problem.
37588         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37589         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37590         Reported by Jim Meyering.
37591
37592 2009-08-09  Bruno Haible  <bruno@clisp.org>
37593
37594         Avoid warnings from 'aclocal' that are due to a use of macro name
37595         AM_XGETTEXT_OPTION that is not defined in automake.
37596         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37597         automake.
37598         * modules/error (configure.ac): Likewise.
37599         * modules/propername (configure.ac): Likewise.
37600         * modules/vasprintf (configure.ac): Likewise.
37601         * modules/verror (configure.ac): Likewise.
37602         * modules/xprintf (configure.ac): Likewise.
37603         * modules/xvasprintf (configure.ac): Likewise.
37604
37605 2009-08-08  Bruno Haible  <bruno@clisp.org>
37606
37607         Avoid compilation error in C++ mode.
37608         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37609         Reported by Sam Steingold <sds@gnu.org>.
37610
37611 2009-08-08  Bruno Haible  <bruno@clisp.org>
37612
37613         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37614         for the various Unix platforms.
37615         * doc/posix-headers/limits.texi: Update platforms list regarding
37616         HOST_NAME_MAX.
37617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37618
37619 2009-08-07  Jim Meyering  <meyering@redhat.com>
37620
37621         selinux-at: fix typo in a comment
37622         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37623         Spotted by Paolo Bonzini.
37624
37625         selinux-at: remove redundant m4 code, add documentation
37626         * modules/selinux-at (configure.ac): Remove redundant code.
37627         LIB_SELINUX is already set via the dependent module, selinux-h.
37628         (Include): Add quotes around selinux-at.h.
37629         * lib/selinux-at.h: Add documentation.
37630         Reported by Bruno Haible in
37631         http://marc.info/?l=gnulib-bug&m=124958988300749
37632
37633 2009-08-07  Bruno Haible  <bruno@clisp.org>
37634
37635         Avoid link error on MacOS X 10.3 and 10.4.
37636         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37637         on non-ELF systems.
37638         * lib/argp-pv.c (argp_program_version): Likewise.
37639         Reported by Simon Josefsson.
37640
37641 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37642
37643         * tests/test-version-etc.sh: Use $EXEEXT.
37644
37645 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37646
37647         update-copyright: update documentation to point to maint.mk
37648         * build-aux/update-copyright: Here.
37649
37650 2009-08-06  Jim Meyering  <meyering@redhat.com>
37651
37652         maint.mk: support update-copyright-local
37653         * top/maint.mk (update-copyright-local): Define place-holder.
37654         (update-copyright): Depend on $(update-copyright-local).
37655
37656 2009-08-06  Jim Meyering  <meyering@redhat.com>
37657
37658         selinux-at: new module
37659         Initially written for coreutils, this module will soon be
37660         used by findutils, too.
37661         * MODULES.html.sh [Misc]: Add selinux-at.
37662         * lib/selinux-at.h: New file, from coreutils.
37663         * lib/selinux-at.c: Likewise.
37664         * modules/selinux-at: Likewise.
37665         (License): Change from LGPL to GPL, since it depends
37666         on the GPL'd openat module.
37667
37668         doc: update README
37669         * README: Remove references to cogito.
37670         Remove cvs-repo-updating instructions from 2007.
37671         Don't imply that CVS is better if you have limited disk space.
37672
37673 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37674
37675         update-copyright: support C-style comments
37676         * build-aux/update-copyright: Implement and document.
37677         * tests/test-update-copyright.sh: Test.
37678
37679 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37680
37681         update-copyright: support omitted "(C)"
37682         * build-aux/update-copyright: Implement and document.  Also,
37683         allow variable whitespace before "(C)".
37684         * tests/test-update-copyright.sh: Test.
37685
37686 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37687
37688         update-copyright: don't trip on non-FSF copyright statements
37689         * build-aux/update-copyright: Fix so that the first correctly
37690         formatted FSF copyright statement is recognized no matter what
37691         appears before it.  Update documentation.
37692         * tests/test-update-copyright.sh: Test that.
37693
37694 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37695
37696         update-copyright: clean up code a little
37697         * build-aux/update-copyright: Append "_re" to the name of any
37698         variable holding a regular expression.
37699         Replace "old" and "new" with "stmt" in variable names.
37700         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37701         handled correctly.
37702         Format code more consistently.
37703
37704 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37705
37706         update-copyright-tests: improve portability
37707         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37708         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37709
37710 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37711
37712         update-copyright: support @copyright{} and &copy;
37713         * build-aux/update-copyright: Implement and document.
37714         * tests/test-update-copyright.sh: Test.
37715
37716 2009-08-04  Jim Meyering  <meyering@redhat.com>
37717
37718         update-copyright-tests: correctly test EOL=\r\n handling
37719         * tests/test-update-copyright.sh: Put \r at the end of some lines
37720         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37721
37722         maint.mk: make update-copyright exclusion list more configurable
37723         * top/maint.mk (update-copyright): Default to excluding COPYING,
37724         but allow an override, in case someone does want to update that file.
37725
37726         maint.mk: don't update copyright date in COPYING
37727         * top/maint.mk (update-copyright): Exclude COPYING.
37728
37729         maint.mk: add a copyright-updating rule
37730         * top/maint.mk (update-copyright): New rule.
37731         Derived from coreutils/Makefile.am.
37732
37733         update-copyright: rename some variables
37734         * build-aux/update-copyright: Rename a few variables for clarity.
37735         Tweak syntax.  List Joel E. Denny as coauthor.
37736
37737 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37738
37739         update-copyright: fix bug for 2-digit last year and add tests
37740         * build-aux/update-copyright: Fix bug.
37741         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37742         specified.
37743         * modules/update-copyright-tests: New
37744         * tests/test-update-copyright.sh: New.
37745
37746 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37747
37748         update-copyright: handle leading tabs in line prefix
37749         * build-aux/update-copyright: Count leading tabs as 8 spaces
37750         when computing margin.  This helps with the formatting of
37751         ChangeLogs, for example.
37752         Fix documentation a little.
37753
37754 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37755
37756         update-copyright: support EOL=\r\n
37757         * build-aux/update-copyright: Implement that.
37758
37759 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37760
37761         update-copyright: automatically format copyright statements
37762         * build-aux/update-copyright: Implement that.
37763         Also, be a little more predictable and safer by always failing
37764         when the full copyright format is not perfectly recognized as an
37765         unbroken whole.  Discussed at
37766         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37767         Rewrite documentation.
37768
37769 2009-08-03  Bruno Haible  <bruno@clisp.org>
37770
37771         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37772
37773 2009-08-02  Bruno Haible  <bruno@clisp.org>
37774
37775         Tests for module 'uname'.
37776         * modules/uname-tests: New file.
37777         * tests/test-uname.c: New file.
37778
37779         New module 'uname'.
37780         * lib/uname.c: New file.
37781         * m4/uname.m4: New file.
37782         * modules/uname: New file.
37783         * doc/posix-functions/uname.texi: Mention the new module.
37784
37785 2009-08-02  Bruno Haible  <bruno@clisp.org>
37786
37787         Tests for module 'sys_utsname'.
37788         * modules/sys_utsname-tests: New file.
37789         * tests/test-sys_utsname.c: New file.
37790
37791         New module 'sys_utsname'.
37792         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37793         * m4/sys_utsname_h.m4: New file.
37794         * modules/sys_utsname: New file.
37795         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37796
37797 2009-08-02  Bruno Haible  <bruno@clisp.org>
37798
37799         Implicitly initialize the sockets library.
37800         * lib/gethostname.c: Include sockets.h.
37801         (rpl_gethostname): Invoke gl_sockets_startup.
37802         * lib/socket.c: Include sockets.h.
37803         (rpl_socket): Invoke gl_sockets_startup.
37804         * modules/gethostname (Depends-on): Add sockets.
37805         * modules/socket (Depends-on): Likewise.
37806         * tests/test-poll.c: Don't include sockets.h.
37807         (main): Don't invoke gl_sockets_startup.
37808         * tests/test-select.c: Don't include sockets.h.
37809         (main): Don't invoke gl_sockets_startup.
37810
37811 2009-08-02  Bruno Haible  <bruno@clisp.org>
37812
37813         Allow multiple calls to gl_sockets_startup.
37814         * lib/sockets.c (initialized_sockets_version): New variable.
37815         (gl_sockets_startup): Do nothing if already called for this or a higher
37816         version.
37817         (gl_sockets_cleanup): Reset initialized_sockets_version.
37818
37819 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37820
37821         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37822         different project/version.
37823
37824 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37825             Bruno Haible  <bruno@clisp.org>
37826
37827         Tests for module 'pipe-filter-gi'.
37828         * modules/pipe-filter-gi-tests: New file.
37829         * tests/test-pipe-filter-gi1.sh: New file.
37830         * tests/test-pipe-filter-gi1.c: New file.
37831         * tests/test-pipe-filter-gi2.sh: New file.
37832         * tests/test-pipe-filter-gi2-main.c: New file.
37833         * tests/test-pipe-filter-gi2-child.c: New file.
37834
37835         New module 'pipe-filter-gi'.
37836         * lib/pipe-filter-gi.c: New file.
37837         * modules/pipe-filter-gi: New file.
37838
37839 2009-08-02  Bruno Haible  <bruno@clisp.org>
37840             Paolo Bonzini  <bonzini@gnu.org>
37841
37842         Tests for module 'pipe-filter-ii'.
37843         * modules/pipe-filter-ii-tests: New file.
37844         * tests/test-pipe-filter-ii1.sh: New file.
37845         * tests/test-pipe-filter-ii1.c: New file.
37846         * tests/test-pipe-filter-ii2.sh: New file.
37847         * tests/test-pipe-filter-ii2-main.c: New file.
37848         * tests/test-pipe-filter-ii2-child.c: New file.
37849
37850         New module 'pipe-filter-ii'.
37851         * lib/pipe-filter.h: New file.
37852         * lib/pipe-filter-ii.c: New file.
37853         * lib/pipe-filter-aux.h: New file.
37854         * modules/pipe-filter-ii: New file.
37855
37856 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37857
37858         * lib/gc-libgcrypt.c: Change copyright to FSF.
37859         * lib/gc-gnulib.c: Likewise.
37860
37861 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37862
37863         * lib/gethostname.c: Include limits.h.
37864
37865 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37866             Bruno Haible  <bruno@clisp.org>
37867
37868         Ensure HOST_NAME_MAX as part of the gethostname module.
37869         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37870         define also HOST_NAME_MAX.
37871         * tests/test-gethostname.c: Include <limits.h>.
37872         (main): Check also HOST_NAME_MAX.
37873         * doc/posix-headers/limits.texi: Document the mingw problem.
37874
37875 2009-08-02  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37878         Add comments.
37879
37880 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37881
37882         * lib/gethostname.c: Add Windows wrapper.
37883         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37884         * modules/gethostname: Depend on sys_socket & errno, for also
37885         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37886         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37887
37888 2009-07-31  Jim Meyering  <meyering@redhat.com>
37889
37890         getloadavg: fix symbol name in comment
37891         * lib/getloadavg.c: Correct a typo I introduced when adding
37892         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37893         Matt Kraai spotted the problem.
37894
37895 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37896
37897         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37898         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37899         code also if ! defined N_NAME_POINTER.
37900         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37901         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37902         but the n_name member is a 12-byte array.
37903
37904 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37905
37906         update-copyright: generalize comment handling
37907         * build-aux/update-copyright: Handle copyright statements
37908         within more comment styles.
37909         Document usage.
37910         Report any file with an external copyright holder or parse failure.
37911
37912 2009-07-29  Jim Meyering  <meyering@redhat.com>
37913
37914         mktime: correct setting of REPLACE_MKTIME
37915         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37916
37917         update-copyright: new module
37918         * modules/update-copyright: New file.
37919         * build-aux/update-copyright: New file.
37920         * MODULES.html.sh (maint+release support): Add update-copyright.
37921
37922 2009-07-27  Bruno Haible  <bruno@clisp.org>
37923
37924         Fix compilation error when <ctime> is used and mktime is replaced.
37925         * lib/time.in.h (mktime): New declaration.
37926         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37927         REPLACE_MKTIME instead of defining mktime in config.h.
37928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37929         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37930         Reported by Ross McFarland <rwmcfa1@neces.com>.
37931
37932 2009-07-27  Bruno Haible  <bruno@clisp.org>
37933
37934         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37935         Reported by Matt Kraai <mkraai@beckman.com>.
37936
37937 2009-07-25  Jim Meyering  <meyering@redhat.com>
37938
37939         maint.mk: avoid warnings about missing files
37940         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37941         diagnostic when .prev-version does not exist.
37942         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37943         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37944         nonexistent cfg.mk.
37945         Suggestions from Simon Josefsson.
37946
37947 2009-07-25  Bruno Haible  <bruno@clisp.org>
37948
37949         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37950         defined as macros. Needed on QNX 6.4.1.
37951         Reported by Matt Kraai <mkraai@beckman.com>.
37952
37953 2009-07-23  Jim Meyering  <meyering@redhat.com>
37954
37955         maint.mk: invoke "make dist" with a working value of XZ_OPT
37956         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37957
37958 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37959
37960         Make fseeko.c compile on QNX.
37961         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37962
37963 2009-07-22  Peter Simons  <simons@cryp.to>
37964
37965         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37966         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37967         * lib/md4.h: Likewise.
37968         * lib/md5.h: Likewise.
37969         * lib/sha1.h: Likewise.
37970         * lib/sha256.h: Likewise.
37971         * lib/sha512.h: Likewise.
37972
37973         tests-sha1: don't assign literal string to 'char *' variable
37974         * tests/test-sha1.c (main): Declare locals with "const" to match
37975         attributes of the right hand side.
37976
37977 2009-07-21  Eric Blake  <ebb9@byu.net>
37978
37979         dup2: fix more mingw problems
37980         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37981         fd to itself.
37982         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37983         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37984         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37985         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37986         care of mingw bugs.
37987
37988 2009-07-21  Jim Meyering  <meyering@redhat.com>
37989
37990         vc-list-files: avoid failure when /bin/sh is dash
37991         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37992         On some Debian based systems, /bin/sh is a symlink to dash, and running
37993         this command would omit the "/" following each 'tests' prefix:
37994           dash -x build-aux/vc-list-files -C . tests
37995         That is because bash and dash work differently:
37996           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37997           bash ok
37998           dash odd
37999
38000 2009-07-21  Eric Blake  <ebb9@byu.net>
38001
38002         dup2-tests: test previous patch
38003         * modules/dup2-tests: New file.
38004         * tests/test-dup2.c: Likewise.
38005         * tests/test-open.c (main): Avoid unspecified behavior.
38006         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38007         test.
38008
38009         dup2: work around mingw and cygwin 1.5 bug
38010         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38012         * modules/unistd (Makefile.am): Substitute it.
38013         * lib/unistd.in.h (dup2): Declare the replacement.
38014         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38015         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38016         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38017         * modules/execute (Depends-on): Add dup2.
38018         * modules/fseterr (Depends-on): Likewise.
38019         * modules/pipe (Depends-on): Likewise.
38020         * modules/posix_spawn-internal (Depends-on): Likewise.
38021
38022 2009-07-21  Bruno Haible  <bruno@clisp.org>
38023
38024         * modules/.gitattributes: New file.
38025
38026 2009-07-20  Bruno Haible  <bruno@clisp.org>
38027
38028         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38029         (main): Use it.
38030
38031 2009-07-20  Eric Blake  <ebb9@byu.net>
38032
38033         test-pipe: make a bit more robust.
38034         * tests/test-pipe.c (myerr): Allow error messages regardless of
38035         what we do to stderr.
38036         (test_pipe): Rearrange to avoid deadlock.
38037         (child_main): Try a larger read, to ensure we avoided deadlock.
38038         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38039         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38040         if misused.
38041
38042 2009-07-19  Jim Meyering  <meyering@redhat.com>
38043
38044         fts: avoid false-positive cycle-detection
38045         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38046         for each new command line argument.
38047
38048 2009-07-19  Bruno Haible  <bruno@clisp.org>
38049
38050         Fix build error on mingw with the modules sys_select and unistd.
38051         * modules/acl-tests (Depends-on): Add close.
38052         * modules/binary-io-tests (Depends-on): Likewise.
38053         * modules/closein-tests (Depends-on): Likewise.
38054         * modules/flock-tests (Depends-on): Likewise.
38055         * modules/fsync-tests (Depends-on): Likewise.
38056         * modules/lseek-tests (Depends-on): Likewise.
38057         * modules/pipe-tests (Depends-on): Likewise.
38058         * modules/posix_spawn-tests (Depends-on): Likewise.
38059         * modules/posix_spawnp-tests (Depends-on): Likewise.
38060         * modules/stat-time-tests (Depends-on): Likewise.
38061         * modules/yesno-tests (Depends-on): Likewise.
38062
38063 2009-07-19  Bruno Haible  <bruno@clisp.org>
38064
38065         Unify conditionals.
38066         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38067         macros, not at the compiler macros.
38068         * lib/pipe.c: Likewise.
38069         * lib/execute.c: Likewise.
38070         * lib/spawni.c: Likewise.
38071
38072 2009-07-19  Bruno Haible  <bruno@clisp.org>
38073
38074         Fix handling of closed stdin/stdout/stderr on mingw.
38075         * lib/w32spawn.h: Include unistd.h.
38076         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38077         file descriptor with O_NOINHERIT flag.
38078         (fd_safer_noinherit): New function, based on fd-safer.c.
38079         (dup_safer_noinherit): New function, based on dup-safer.c.
38080         (undup_safer_noinherit): New function.
38081         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38082         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38083         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38084         instead of fd_safer.
38085         * tests/test-pipe.c: Include <windows.h>.
38086         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38087         result.
38088
38089         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38090         from main.
38091         (test_pipe): Pass an extra argument for disambiguation.
38092         (main): Invoke parent_main or child_main.
38093
38094         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38095         consistently.
38096
38097 2009-07-18  Eric Blake  <ebb9@byu.net>
38098
38099         test-pipe: fix mingw build
38100         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38101
38102 2009-07-18  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/pipe-tests (Makefile.am): Fix typo.
38105
38106 2009-07-18  Eric Blake  <ebb9@byu.net>
38107
38108         error: fix mingw build
38109         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38110         Reported by Bruno Haible.
38111
38112         error: avoid undefined use of stdout
38113         * lib/error.c (error, error_at_line): Check that fd 1 is open
38114         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38115         is handling faults and the close_stdout module wants to report the
38116         detection of closed stdout as an error.
38117
38118 2009-07-17  Eric Blake  <ebb9@byu.net>
38119
38120         pipe: be robust in face of closed fds
38121         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38122         should cause child to misbehave.
38123         * modules/pipe-tests: New module.
38124         * tests/test-pipe.c: New file.
38125         * tests/test-pipe.sh: New file.
38126         Reported by Akim Demaille.
38127
38128 2009-07-14  Bruno Haible  <bruno@clisp.org>
38129
38130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38131         Reported by anonymous kc.
38132
38133 2009-07-07  Jim Meyering  <meyering@redhat.com>
38134
38135         maint.mk: don't look for translatable strings in *.m4 or *.mk
38136         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38137         when searching for translatable strings.
38138
38139 2009-07-05  Jim Meyering  <meyering@redhat.com>
38140
38141         remove superfluous parentheses in STREQ definition
38142         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38143         * lib/getugroups.c (STREQ): Likewise.
38144         * lib/fnmatch.c (STREQ): Likewise.
38145         Spotted by Bruno Haible.
38146
38147 2009-07-04  Jim Meyering  <meyering@redhat.com>
38148
38149         argv-iter: new module
38150         * MODULES.html.sh: Add argv-iter.
38151         * lib/argv-iter.c, lib/argv-iter.h: New files.
38152         * modules/argv-iter: New file.
38153         * modules/argv-iter-tests: New file.
38154         * tests/test-argv-iter.c: Test it.
38155
38156 2009-07-04  Bruno Haible  <bruno@clisp.org>
38157
38158         Fix assertion.
38159         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38160         contains more exact copies of a given entry than file2, leave the extra
38161         copies unpaired rather than aborting.
38162         Reported by Eric Blake.
38163
38164 2009-07-02  Bruno Haible  <bruno@clisp.org>
38165
38166         Speedup git-merge-changelog for git cherry-pick.
38167         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38168         (entries_mapping_get): New function, extracted from compute_mapping.
38169         (entries_mapping_reverse_get): New function.
38170         (compute_mapping): Add a 'full' argument. Return the result in a
38171         'struct entries_mapping'.
38172         (main): Update. Access the mappings through entries_mapping_get.
38173         Reported by Eric Blake.
38174
38175 2009-07-02  Bruno Haible  <bruno@clisp.org>
38176
38177         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38178         best_i.
38179
38180 2009-07-02  Bruno Haible  <bruno@clisp.org>
38181
38182         Speed up approximate search for matching ChangeLog entries.
38183         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38184         argument. Call fstrcmp_bounded instead of fstrcmp.
38185         (compute_mapping, try_split_merged_entry, main): Update callers.
38186
38187 2009-07-02  Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38190
38191 2009-06-30  Bruno Haible  <bruno@clisp.org>
38192
38193         Reduce the number of uc_is_cased calls.
38194         * lib/unicase.h (casing_suffix_context_t): Add
38195         'first_char_except_ignorable' field.
38196         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38197         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38198         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38199         Update initializer.
38200         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38201         case-ignorable characters.
38202         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38203         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38204         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38205         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38206         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38207
38208 2009-06-30  Bruno Haible  <bruno@clisp.org>
38209
38210         Tests for module 'unicase/ignorable'.
38211         * modules/unicase/ignorable-tests: New file.
38212         * tests/unicase/test-ignorable.c: New file, generated by
38213         gen-uni-tables.
38214
38215         Tests for module 'unicase/cased'.
38216         * modules/unicase/cased-tests: New file.
38217         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38218         * tests/unicase/test-predicate-part1.h: New file, derived from
38219         tests/unictype/test-predicate-part1.h.
38220         * tests/unicase/test-predicate-part2.h: New file, same as
38221         tests/unictype/test-predicate-part2.h.
38222
38223         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38224         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38225         (output_casing_properties): New function.
38226         (main): Call it.
38227         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38228         * lib/unicase/cased.c: Include unictype/bitmap.h.
38229         (uc_is_cased): Define through a bitmap lookup.
38230         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38231         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38232         (uc_is_case_ignorable): Define through a bitmap lookup.
38233         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38234         lib/unictype/bitmap.h.
38235         (Depends-on): Add inline. Clean up.
38236         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38237         lib/unictype/bitmap.h.
38238         (Depends-on): Add inline. Clean up.
38239         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38240         recognition.
38241         * tests/unicase/test-u16-tolower.c (main): Likewise.
38242         * tests/unicase/test-u32-tolower.c (main): Likewise.
38243
38244 2009-06-30  Bruno Haible  <bruno@clisp.org>
38245
38246         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38247         * lib/unicase/u16-casemap.c: Likewise.
38248         * lib/unicase/u32-casemap.c: Likewise.
38249
38250 2009-06-29  Bruno Haible  <bruno@clisp.org>
38251
38252         Define u32_casefold as a wrapper around u32_ct_casefold.
38253         * lib/unicase/u32-casefold.c: Update.
38254         * modules/unicase/u32-casefold (Depends-on): Add
38255         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38256         unicase/empty-suffix-context. Clean up.
38257
38258         Define u16_casefold as a wrapper around u16_ct_casefold.
38259         * lib/unicase/u16-casefold.c: Update.
38260         * modules/unicase/u16-casefold (Depends-on): Add
38261         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38262         unicase/empty-suffix-context. Clean up.
38263
38264         Define u8_casefold as a wrapper around u8_ct_casefold.
38265         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38266         * lib/unicase/u8-casefold.c: Update.
38267         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38268         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38269
38270         Define u32_totitle as a wrapper around u32_ct_totitle.
38271         * lib/unicase/u32-totitle.c: Update.
38272         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38273         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38274
38275         Define u16_totitle as a wrapper around u16_ct_totitle.
38276         * lib/unicase/u16-totitle.c: Update.
38277         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38278         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38279
38280         Define u8_totitle as a wrapper around u8_ct_totitle.
38281         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38282         functions.
38283         (FUNC): Delegate to U_CT_TOTITLE.
38284         * lib/unicase/u8-totitle.c: Update.
38285         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38286         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38287
38288         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38289         invocation.
38290         * modules/unicase/u32-tolower (Depends-on): Add
38291         unicase/empty-prefix-context, unicase/empty-suffix-context.
38292
38293         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38294         invocation.
38295         * modules/unicase/u16-tolower (Depends-on): Add
38296         unicase/empty-prefix-context, unicase/empty-suffix-context.
38297
38298         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38299         * modules/unicase/u8-tolower (Depends-on): Add
38300         unicase/empty-prefix-context, unicase/empty-suffix-context.
38301
38302         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38303         invocation.
38304         * modules/unicase/u32-toupper (Depends-on): Add
38305         unicase/empty-prefix-context, unicase/empty-suffix-context.
38306
38307         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38308         invocation.
38309         * modules/unicase/u16-toupper (Depends-on): Add
38310         unicase/empty-prefix-context, unicase/empty-suffix-context.
38311
38312         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38313         * modules/unicase/u8-toupper (Depends-on): Add
38314         unicase/empty-prefix-context, unicase/empty-suffix-context.
38315
38316         New module 'unicase/u32-ct-casefold'.
38317         * lib/unicase/u32-ct-casefold.c: New file.
38318         * modules/unicase/u32-ct-casefold: New file.
38319
38320         New module 'unicase/u16-ct-casefold'.
38321         * lib/unicase/u16-ct-casefold.c: New file.
38322         * modules/unicase/u16-ct-casefold: New file.
38323
38324         New module 'unicase/u8-ct-casefold'.
38325         * lib/unicase/u8-ct-casefold.c: New file.
38326         * lib/unicase/u-ct-casefold.h: New file, derived from
38327         lib/unicase/u-casefold.h.
38328         * modules/unicase/u8-ct-casefold: New file.
38329
38330         New module 'unicase/u32-ct-totitle'.
38331         * lib/unicase/u32-ct-totitle.c: New file.
38332         * modules/unicase/u32-ct-totitle: New file.
38333
38334         New module 'unicase/u16-ct-totitle'.
38335         * lib/unicase/u16-ct-totitle.c: New file.
38336         * modules/unicase/u16-ct-totitle: New file.
38337
38338         New module 'unicase/u8-ct-totitle'.
38339         * lib/unicase/u8-ct-totitle.c: New file.
38340         * lib/unicase/u-ct-totitle.h: New file, derived from
38341         lib/unicase/u-totitle.h.
38342         * modules/unicase/u8-ct-totitle: New file.
38343
38344         New module 'unicase/u32-ct-tolower'.
38345         * lib/unicase/u32-ct-tolower.c: New file.
38346         * modules/unicase/u32-ct-tolower: New file.
38347
38348         New module 'unicase/u16-ct-tolower'.
38349         * lib/unicase/u16-ct-tolower.c: New file.
38350         * modules/unicase/u16-ct-tolower: New file.
38351
38352         New module 'unicase/u8-ct-tolower'.
38353         * lib/unicase/u8-ct-tolower.c: New file.
38354         * modules/unicase/u8-ct-tolower: New file.
38355
38356         New module 'unicase/u32-ct-toupper'.
38357         * lib/unicase/u32-ct-toupper.c: New file.
38358         * modules/unicase/u32-ct-toupper: New file.
38359
38360         New module 'unicase/u16-ct-toupper'.
38361         * lib/unicase/u16-ct-toupper.c: New file.
38362         * modules/unicase/u16-ct-toupper: New file.
38363
38364         New module 'unicase/u8-ct-toupper'.
38365         * lib/unicase/u8-ct-toupper.c: New file.
38366         * modules/unicase/u8-ct-toupper: New file.
38367
38368         Add context arguments to u*_casemap functions.
38369         * lib/unicase/unicasemap.h: Include unicase.h.
38370         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38371         suffix_context arguments.
38372         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38373         functions.
38374         (FUNC): Add prefix_context and suffix_context arguments. Use
38375         uc_is_cased and uc_is_case_ignorable.
38376         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38377         * lib/unicase/u16-casemap.c: Likewise.
38378         * lib/unicase/u32-casemap.c: Likewise.
38379         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38380         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38381         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38382         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38383         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38384         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38385
38386         New module 'unicase/u32-suffix-context'.
38387         * lib/unicase/u32-suffix-context.c: New file.
38388         * modules/unicase/u32-suffix-context: New file.
38389
38390         New module 'unicase/u16-suffix-context'.
38391         * lib/unicase/u16-suffix-context.c: New file.
38392         * modules/unicase/u16-suffix-context: New file.
38393
38394         New module 'unicase/u8-suffix-context'.
38395         * lib/unicase/u8-suffix-context.c: New file.
38396         * lib/unicase/u-suffix-context.h: New file.
38397         * modules/unicase/u8-suffix-context: New file.
38398
38399         New module 'unicase/empty-suffix-context'.
38400         * lib/unicase/empty-suffix-context.c: New file.
38401         * modules/unicase/empty-suffix-context: New file.
38402
38403         New module 'unicase/u32-prefix-context'.
38404         * lib/unicase/u32-prefix-context.c: New file.
38405         * modules/unicase/u32-prefix-context: New file.
38406
38407         New module 'unicase/u16-prefix-context'.
38408         * lib/unicase/u16-prefix-context.c: New file.
38409         * modules/unicase/u16-prefix-context: New file.
38410
38411         New module 'unicase/u8-prefix-context'.
38412         * lib/unicase/u8-prefix-context.c: New file.
38413         * lib/unicase/u-prefix-context.h: New file.
38414         * lib/unicase/context.h: New file.
38415         * modules/unicase/u8-prefix-context: New file.
38416
38417         New module 'unicase/empty-prefix-context'.
38418         * lib/unicase/empty-prefix-context.c: New file.
38419         * modules/unicase/empty-prefix-context: New file.
38420
38421         New module 'unicase/ignorable'.
38422         * lib/unicase/ignorable.c: New file.
38423         * modules/unicase/ignorable: New file.
38424
38425         New module 'unicase/cased'.
38426         * lib/unicase/caseprop.h: New file.
38427         * lib/unicase/cased.c: New file.
38428         * modules/unicase/cased: New file.
38429
38430         New functions for case mapping of substrings.
38431         * lib/unicase.h (casing_prefix_context_t): New type.
38432         (unicase_empty_prefix_context): New variable.
38433         (u8_casing_prefix_context, u16_casing_prefix_context,
38434         u32_casing_prefix_context, u8_casing_prefixes_context,
38435         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38436         declarations.
38437         (casing_suffix_context_t): New type.
38438         (unicase_empty_suffix_context): New variable.
38439         (u8_casing_suffix_context, u16_casing_suffix_context,
38440         u32_casing_suffix_context, u8_casing_suffixes_context,
38441         u16_casing_suffixes_context, u32_casing_suffixes_context,
38442         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38443         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38444         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38445         declarations.
38446
38447 2009-06-28  Jim Meyering  <meyering@redhat.com>
38448
38449         boostrap: indent only with spaces
38450         * build-aux/bootstrap: Indent only with spaces, never TABs.
38451
38452         bootstrap: split long lines
38453         * build-aux/bootstrap: Keep line length < 80.
38454
38455         bootstrap: sync from coreutils
38456         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38457         just as autoreconf does.  Verify a list of prerequisite
38458         package-name,version-number pairs if defined in bootstrap.conf.
38459         Refer to README-prereq, if prerequisites are not satisfied.
38460
38461 2009-06-27  Eric Blake  <ebb9@byu.net>
38462
38463         tests: add test for bogus NULL definition
38464         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38465         * tests/test-stdlib.c: Likewise.
38466         * tests/test-string.c: Likewise.
38467         * tests/test-locale.c: Likewise.
38468         * tests/test-unistd.c: Likewise.
38469         * modules/stdio-tests (Depends-on): Add verify.
38470         * modules/stdlib-tests (Depends-on): Likewise.
38471         * modules/string-tests (Depends-on): Likewise.
38472         * modules/locale-tests (Depends-on): Likewise.
38473         * modules/unistd-tests (Depends-on): Likewise.
38474
38475 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38476
38477         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38478         self-explaining comment.
38479         * m4/selinux-selinux-h: Update serial.
38480         (gl_LIBSELINUX): New macro, adding a warning for missing development
38481         packages to code extracted from...
38482         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38483         Add warning for missing development packages here, too.
38484
38485 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38486
38487         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38488
38489 2009-06-25  Eric Blake  <ebb9@byu.net>
38490
38491         version-etc: fix regression
38492         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38493         gcc.
38494         (version_etc): Use it, to catch bugs with trailing NULL.
38495         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38496         (version_etc_va): Fix logic bug.
38497         * modules/version-etc-tests: Add test.
38498         * tests/test-version-etc.c: New file.
38499         * tests/test-version-etc.sh: Likewise.
38500
38501 2009-06-25  Sam Steingold  <sds@gnu.org>
38502
38503         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38504         mbtowc declaration.
38505
38506 2009-06-25  Eric Blake  <ebb9@byu.net>
38507
38508         fpurge: migrate into <stdio.h>
38509         * lib/fpurge.h: Delete...
38510         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38511         * lib/fpurge.c (fpurge): Change declaring header.
38512         * modules/fpurge (Files): Drop deleted file.
38513         (Depends-on): Add stdio.
38514         (configure.ac): Set witness.
38515         * modules/stdio (Makefile.am): Support fpurge macros.
38516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38517         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38518         * lib/fflush.c: Update client.
38519         * tests/test-fpurge.c: Likewise.
38520         * NEWS: Mention the change.
38521
38522 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38523
38524         * lib/argp-version-etc.c (program_authors): Add const
38525         qualifier.
38526         * lib/version-etc.c: Fix typos in the comments.
38527         * modules/argp-version-etc: Depends on version-etc.
38528
38529 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38530
38531         argp-version-etc: new module.
38532
38533         * lib/argp-version-etc.c: New file.
38534         * lib/argp-version-etc.h: New file.
38535         * modules/argp-version-etc: New file.
38536         * modules/argp-version-etc-tests: New file.
38537         * tests/test-argp-version-etc.c: New test.
38538         * tests/test-argp-version-etc-1.sh: New test.
38539
38540 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38541
38542         Provide additional interfaces and documentation for version-etc
38543         module.
38544
38545         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38546         interfaces.
38547         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38548         prototypes.
38549
38550 2009-06-24  Bruno Haible  <bruno@clisp.org>
38551
38552         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38553         HAVE_LIB${NAME} macro.
38554         Reported by Sam Steingold <sds@gnu.org>.
38555
38556 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38557
38558         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38559         needed.
38560
38561 2009-06-21  Bruno Haible  <bruno@clisp.org>
38562
38563         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38564         work.
38565         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38566         together with LIB${NAME}, LTLIB${NAME}.
38567         Reported by Sam Steingold <sds@gnu.org>.
38568
38569 2009-06-20  Jim Meyering  <meyering@redhat.com>
38570
38571         tests: make sc_require_test_exit_idiom more generic
38572         * top/maint.mk (Exit_witness_file): New overridable variable.
38573         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38574         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38575
38576 2009-06-19  Jim Meyering  <meyering@redhat.com>
38577
38578         hash: reverse order of src/dst parameters in an internal interface
38579         * lib/hash.c (transfer_entries): Reverse order of parameters to
38580         put DST before SRC.  Adjust callers.
38581
38582         tests: test-hash: avoid wholesale duplication
38583         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38584         Instead, use a loop and add a single conditional.
38585
38586         tests: test-hash: allow seed selection via a command line argument
38587         * tests/test-hash.c (get_seed): New function.
38588         (main): Use it.
38589
38590 2009-06-19  Eric Blake  <ebb9@byu.net>
38591
38592         hash: avoid memory leak on allocation failure
38593         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38594         failure.  Factor repeated algorithm...
38595         (transfer_entries): ...into new helper routine.
38596         (hash_delete): React to hash_rehash return value.
38597
38598         hash: reduce memory pressure in hash_rehash no-op case
38599         * lib/hash.c (next_prime): Avoid overflow.
38600         (hash_initialize): Factor bucket size computation...
38601         (compute_bucket_size): ...into new helper function.
38602         (hash_rehash): Use new function and open coding to reduce memory
38603         pressure, and avoid a memory leak in USE_OBSTACK code.
38604         Reported by Jim Meyering.
38605
38606 2009-06-18  Eric Blake  <ebb9@byu.net>
38607
38608         hash: make rotation more obvious
38609         * modules/hash (Depends-on): Add bitrotate and stdint.
38610         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38611         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38612         (SIZE_MAX): Rely on headers for definition.
38613         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38614         (raw_hasher): Use rotr_sz.
38615         Suggested by Jim Meyering.
38616
38617         hash: fix memory leak in last patch
38618         * lib/hash.c (hash_rehash): Avoid memory leak.
38619
38620         hash: avoid no-op rehashing
38621         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38622
38623         hash: provide default callback functions
38624         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38625         (hash_initialize): Use them as defaults.
38626         * tests/test-hash.c (main): Test this.
38627
38628         hash: minor optimization
38629         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38630         when possible.
38631         (hash_initialize): Document this promise.
38632         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38633         * tests/test-hash.c (hash_compare_strings): Test this.
38634
38635 2009-06-18  Bruno Haible  <bruno@clisp.org>
38636
38637         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38638         going to be replaced anyway.
38639
38640 2009-06-18  Bruno Haible  <bruno@clisp.org>
38641
38642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38643         in one place.
38644         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38645         be replaced anyway.
38646
38647 2009-06-18  Eric Blake  <ebb9@byu.net>
38648
38649         hash: check for resize before insertion
38650         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38651         threshold before insertion, so that a pathological hash_rehash
38652         that fills every bucket can still trigger another rehash.
38653
38654 2009-06-18  Jim Meyering  <meyering@redhat.com>
38655
38656         hash-tests: add a loop around the small tests
38657         * tests/test-hash.c (main): Repeat small tests with selected
38658         small initial table sizes.
38659
38660 2009-06-17  Eric Blake  <ebb9@byu.net>
38661
38662         hash: minor cleanups
38663         * lib/hash.h (hash_entry): Make opaque, by moving...
38664         * lib/hash.c (hash_entry): ...here.
38665         (hash_insert): Clarify restrictions on what can be inserted.
38666         (hash_get_next): Clarify when it is safe to remove an element
38667         during traversal.
38668         (check_tuning): Skip verification when tuning is known safe.
38669         (hash_initialize): Clarify restrictions on tuning.
38670
38671 2009-06-17  Jim Meyering  <jim@meyering.net>
38672         and Eric Blake  <ebb9@byu.net>
38673
38674         hash-tests: new module
38675         * modules/hash-tests: New file.
38676         * tests/test-hash.c: New file.
38677
38678 2009-06-17  Eric Blake  <ebb9@byu.net>
38679
38680         strstr-simple: document new module
38681         * MODULES.html.sh: Document new module.
38682
38683         strstr, strcasestr: replace on platforms with broken memchr
38684         * modules/strstr: Split into...
38685         * modules/strstr-simple: ...new module that does not care about
38686         performance, but does care about glibc bug.
38687         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38688         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38689         if platform memchr is broken, per Debian bug 521737.
38690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38691         memchr.
38692         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38693         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38694         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38695         * modules/mountlist (Depends-on): Add strstr-simple.
38696         * modules/gen-uni-tables (Depends-on): Likewise.
38697         * modules/argz (Depends-on): Add strstr.
38698
38699 2009-06-17  Bruno Haible  <bruno@clisp.org>
38700
38701         * modules/posix_spawn-internal (Depends-on): Add errno.
38702
38703 2009-06-17  Bruno Haible  <bruno@clisp.org>
38704
38705         Define missing ESTALE on Interix 3.5.
38706         * lib/errno.in.h (ESTALE): Assign a value if missing.
38707         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38708         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38709         missing.
38710         * doc/posix-headers/errno.texi: Mention the Interix bug.
38711         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38712
38713 2009-06-15  Eric Blake  <ebb9@byu.net>
38714
38715         memchr, memchr2: add valgrind exception
38716         * lib/memchr.valgrind: New file.
38717         * lib/memchr2.valgrind: New file.
38718         * modules/memchr (Files): Distribute valgrind file.
38719         * modules/memchr2 (Files): Likewise.
38720
38721         docs: memchr is no longer obsolete
38722         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38723         * lib/string.in.h (memchr): Simplify logic.
38724
38725 2009-06-14  Jim Meyering  <meyering@redhat.com>
38726
38727         link-follow: fix the "checking..." message to not mention trailing slash
38728         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38729         never considered trailing slashes.
38730
38731 2009-06-14  Bruno Haible  <bruno@clisp.org>
38732
38733         * m4/memchr.m4: Mention also the bug on IA-64.
38734         * doc/posix-functions/memchr.texi: Likewise.
38735
38736 2009-06-12  Eric Blake  <ebb9@byu.net>
38737
38738         memchr: detect broken x86_64 and alpha implementations
38739         * modules/memchr-tests (Depends-on): Move mmap detection...
38740         * modules/memchr (Depends-on): ...here.
38741         (configure.ac): Set indicator.
38742         * lib/string.in.h (memchr): Declare replacement.
38743         * modules/string (Makefile.am): Trigger replacement.
38744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38745         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38746         bugs.
38747         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38748         * modules/getpagesize (License): Relax license.
38749
38750 2009-06-11  Bruno Haible  <bruno@clisp.org>
38751
38752         * lib/idpriv.h: Add more references.
38753
38754 2009-06-08  Bruno Haible  <bruno@clisp.org>
38755
38756         Tests for module 'idpriv-droptemp'.
38757         * modules/idpriv-droptemp-tests: New file.
38758         * tests/test-idpriv-droptemp.sh: New file.
38759         * tests/test-idpriv-droptemp.su.sh: New file.
38760         * tests/test-idpriv-droptemp.c: New file.
38761
38762         New module 'idpriv-droptemp'.
38763         * lib/idpriv-droptemp.c: New file.
38764         * modules/idpriv-droptemp: New file.
38765
38766 2009-06-08  Bruno Haible  <bruno@clisp.org>
38767
38768         Tests for module 'idpriv-drop'.
38769         * modules/idpriv-drop-tests: New file.
38770         * tests/test-idpriv-drop.sh: New file.
38771         * tests/test-idpriv-drop.su.sh: New file.
38772         * tests/test-idpriv-drop.c: New file.
38773
38774         New module 'idpriv-drop'.
38775         * lib/idpriv.h: New file.
38776         * lib-idpriv-drop.c: New file.
38777         * m4/idpriv.m4: New file.
38778         * modules/idpriv-drop: New file.
38779
38780 2009-06-08  Bruno Haible  <bruno@clisp.org>
38781
38782         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38783         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38784         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38785         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38786         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38787         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38788         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38789
38790 2009-06-08  Eric Blake  <ebb9@byu.net>
38791
38792         test-strstr: use memory fence, when possible
38793         * tests/test-strstr.c (main): Use memory fence, in order to be
38794         more likely to trigger Debian bug 521737.
38795         * modules/strstr-tests (Files): Pull in additional files.
38796
38797         memchr: no longer obsolete, for wider field testing
38798         * modules/memchr (Status, Notice): Delete, this module is no
38799         longer obsolete.
38800         * modules/vasnprintf (Depends-on): Add memchr.
38801
38802 2009-06-07  Jim Meyering  <meyering@redhat.com>
38803
38804         hash: declare some functions with the warn_unused_result attribute
38805         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38806
38807 2009-06-07  Bruno Haible  <bruno@clisp.org>
38808
38809         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38810         Reported by Eric Blake.
38811
38812 2009-06-06  Eric Blake  <ebb9@byu.net>
38813
38814         test-alignof: fix typo with long double
38815         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38816         compiler error.
38817
38818 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38819
38820         Escape non-texinfo { and }s.
38821         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38822         markup error.
38823
38824 2009-06-04  Jim Meyering  <meyering@redhat.com>
38825
38826         gitlog-to-changelog: don't infloop on an empty commit log
38827         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38828         Reported by Boris Petersen <transacid@centerim.org>.
38829
38830 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38831
38832         version-etc: extend for packagers
38833         Add three new configure options, intended for packagers:
38834           --with-packager="packager name"
38835           --with-packager-version="packager-specific version"
38836           --with-packager-bug-reports="packager bug reporting"
38837         An example with coreutils:
38838           $ ./configure \
38839             --with-packager=Gentoo \
38840             --with-packager-bug-report=http://bugs.gentoo.org/ \
38841             --with-packager-version="patchset 1.6"
38842           $ ./src/ls --version | head -n2
38843           ls (GNU coreutils) 7.1-dirty
38844           Packaged by Gentoo (patchset 1.6)
38845         Note that the bug reporting info via --help doesn't show up because
38846         coreutils uses its own custom emit_bug_reporting_address() implementation
38847         in src/system.h.  If it didn't, it'd look like:
38848           $ ./src/ls --help | tail -n4
38849           Report bugs to <bug-coreutils@gnu.org>.
38850           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38851           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38852           General help using GNU software: <http://www.gnu.org/gethelp/>.
38853         * lib/version-etc.c: Print new information, if provided.
38854         * m4/version-etc.m4: New file.
38855         * modules/version-etc (Files): Add m4/version-etc.m4.
38856         (configure.ac): Add gl_VERSION_ETC.
38857
38858 2009-05-31  Bruno Haible  <bruno@clisp.org>
38859
38860         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38861         and 'int64_t'.
38862         * modules/alignof-tests (Dependencies): Add stdint.
38863         Reported by Eric Blake.
38864
38865 2009-05-31  Bruno Haible  <bruno@clisp.org>
38866
38867         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38868         restriction due to compiler bugs.
38869         Reported by Eric Blake.
38870
38871 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38872             Bruno Haible  <bruno@clisp.org>
38873
38874         Fix test-alignof failure.
38875         * lib/alignof.h (alignof_slot): New macro.
38876         (alignof_type): New macro, with the same semantics as the previous
38877         'alignof'.
38878         (alignof): Alias to alignof_slot.
38879         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38880         check that the results are usable as constant expressions.
38881
38882 2009-05-31  Bruno Haible  <bruno@clisp.org>
38883
38884         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38885         * tests/test-memchr.c (main): Check that memchr does not read past the
38886         first occurrence of the byte.
38887         * tests/test-strstr.c (main): Update comment.
38888         Suggested by Eric Blake.
38889
38890 2009-05-30  Bruno Haible  <bruno@clisp.org>
38891
38892         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38893         detail how to use dumpbin.
38894         Reported by David Byron <dbyron@dbyron.com>.
38895
38896 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38897
38898         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38899
38900 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38901
38902         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38903
38904 2009-05-28  Bruno Haible  <bruno@clisp.org>
38905
38906         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38907         build-aux/ files.
38908
38909 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38910
38911         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38912
38913 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38914
38915         * gnulib-tool (sed_transform_main_lib_file)
38916         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38917         regexps.
38918
38919 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38920
38921         * tests/test-strstr.c: Add another self-test.
38922         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38923         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38924
38925 2009-05-23  Bruno Haible  <bruno@clisp.org>
38926
38927         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38928         change.
38929
38930 2009-05-21  Bruno Haible  <bruno@clisp.org>
38931
38932         Simplify use of mode_t varargs.
38933         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38934         uses 'mode_t' or 'int'.
38935         * lib/openat.c (openat): Likewise.
38936         * lib/open-safer.c (open_safer): Likewise.
38937         * m4/mode_t.m4: New file.
38938         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38939         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38940         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38941         * modules/open (Files): Add m4/mode_t.m4.
38942         * modules/openat (Files): Likewise.
38943         * modules/fcntl-safer (Files): Likewise.
38944         Suggested by Eric Blake.
38945
38946 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38947
38948         * doc/glibc-functions/fallocate.texi: New file.
38949         * doc/gnulib.texi: Include it.
38950
38951 2009-05-21  Eric Blake  <ebb9@byu.net>
38952             Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38955         invocations.
38956         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38957
38958 2009-05-21  Eric Blake  <ebb9@byu.net>
38959             Bruno Haible  <bruno@clisp.org>
38960
38961         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38962         include_next. Fix of 2008-11-20 commit.
38963         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38964         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38965         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38966         NEXT_MATH_H.
38967         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38968         instead of NEXT_MATH_H.
38969
38970 2009-05-21  Bruno Haible  <bruno@clisp.org>
38971
38972         Avoid redefinition warnings for SIZE_MAX.
38973         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38974         Reported by Simon Josefsson.
38975
38976 2009-05-21  Bruno Haible  <bruno@clisp.org>
38977
38978         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38979         AC_CACHE_VAL.
38980
38981 2009-05-20  Bruno Haible  <bruno@clisp.org>
38982
38983         Make zeroptr.h work on mingw.
38984         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38985         mprotect.
38986         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38987         * modules/memchr2-tests (configure.ac): Likewise.
38988         * modules/memcmp-tests (configure.ac): Likewise.
38989         * modules/memmem-tests (configure.ac): Likewise.
38990         * modules/memrchr-tests (configure.ac): Likewise.
38991         Reported by Simon Josefsson.
38992
38993 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38994
38995         * tests/test-glob.c: Include string.h for strcmp prototype.
38996
38997 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38998
38999         * modules/getdelim (Depends-on): Add explicit stdint, although it
39000         was implicitly already pulled in via realloc-posix.
39001         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39002
39003 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39004
39005         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39006         G. Christensen" <tgc@jupiterrise.com>.
39007         * m4/sys_socket_h.m4: Check for sa_family_t.
39008         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39009         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39010         * tests/test-sys_socket.c: Check that sa_family_t works.
39011
39012 2009-05-18  Eric Blake  <ebb9@byu.net>
39013
39014         maint.mk: allow gnulib_dir in VPATH build
39015         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39016
39017 2009-05-15  Jim Meyering  <meyering@redhat.com>
39018
39019         maint.mk: Give gnulib_dir a default definition.
39020         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39021         Thus, most packages no longer need to specify this variable in cfg.mk
39022
39023 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39024
39025         rename.m4: fix typos that would make non-mingw cross-configure fail
39026         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39027
39028 2009-05-13  Eric Blake  <ebb9@byu.net>
39029
39030         mmap-anon: avoid out-of-order autoconf expansion
39031         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39032         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39033         * modules/memchr-tests (Depends-on): Add extensions.
39034         * modules/memchr2-tests (Depends-on): Add extensions.
39035         * modules/memcmp-tests (Depends-on): Add extensions.
39036         * modules/memmem-tests (Depends-on): Add extensions.
39037         * modules/memrchr-tests (Depends-on): Add extensions.
39038
39039 2009-05-13  Bruno Haible  <bruno@clisp.org>
39040
39041         Make some tests ISO C 99 compliant.
39042         * tests/zerosize-ptr.h: New file.
39043         * tests/test-memchr.c: Include zerosize-ptr.h.
39044         (main): Use a zero-size object pointer instead of NULL.
39045         * tests/test-memchr2.c: Include zerosize-ptr.h.
39046         (main): Use a zero-size object pointer instead of NULL.
39047         * tests/test-memcmp.c: Include zerosize-ptr.h.
39048         (main): Use a zero-size object pointer instead of NULL.
39049         * tests/test-memmem.c: Include zerosize-ptr.h.
39050         (main): Use a zero-size object pointer instead of NULL.
39051         * tests/test-memrchr.c: Include zerosize-ptr.h.
39052         (main): Use a zero-size object pointer instead of NULL.
39053         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39054         m4/mmap-anon.m4.
39055         (Depends-on): Add getpagesize.
39056         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39057         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39058         m4/mmap-anon.m4.
39059         (Depends-on): Add getpagesize.
39060         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39061         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39062         m4/mmap-anon.m4.
39063         (Depends-on): Add getpagesize.
39064         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39065         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39066         m4/mmap-anon.m4.
39067         (Depends-on): Add getpagesize.
39068         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39069         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39070         m4/mmap-anon.m4.
39071         (Depends-on): Add getpagesize.
39072         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39073
39074 2009-05-12  Bruno Haible  <bruno@clisp.org>
39075
39076         Tests for module 'alignof'.
39077         * modules/alignof-tests: New file.
39078         * tests/test-alignof.c: New file.
39079
39080 2009-05-12  Bruno Haible  <bruno@clisp.org>
39081
39082         Fix alignof macro.
39083         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39084         vendor compilers that are always correct.
39085
39086 2009-05-12  Bruno Haible  <bruno@clisp.org>
39087
39088         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39089         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39090         not whether its fully works.
39091
39092 2009-05-12  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39095
39096 2009-05-12  Jim Meyering  <meyering@redhat.com>
39097
39098         * top/maint.mk: Adjust backslash alignment.
39099
39100 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39101
39102         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39103
39104 2009-05-11  Eric Blake  <ebb9@byu.net>
39105
39106         argp: avoid undefined behavior
39107         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39108         macros.
39109
39110 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39111
39112         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39113         user.name to prevent git commit from complaining.
39114
39115 2009-05-10  Bruno Haible  <bruno@clisp.org>
39116
39117         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39118         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39119         it rewrites every file name only once.
39120         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39121
39122 2009-05-08  Bruno Haible  <bruno@clisp.org>
39123
39124         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39125         instead of 'max'.
39126
39127 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39128
39129         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39130         sockaddr_storage test.
39131
39132 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39133
39134         * modules/sys_socket (Makefile.am): Substitute
39135         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39136         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39137         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39138         * tests/test-sys_socket.c: Check sockaddr_storage.
39139
39140 2009-05-08  Bruno Haible  <bruno@clisp.org>
39141
39142         New module 'alignof'.
39143         * lib/alignof.h: New file.
39144         * modules/alignof: New file.
39145
39146 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39147             Bruno Haible  <bruno@clisp.org>
39148
39149         Fix test-file-has-acl on FreeBSD.
39150         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39151         mask is implicitly added.
39152         * tests/test-file-has-acl.c: Include <signal.h>.
39153         (main): Terminate the test after 5 seconds.
39154         * modules/acl-tests (configure.ac): Check for alarm function.
39155
39156 2009-05-04  Bruno Haible  <bruno@clisp.org>
39157
39158         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39159         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39160         * modules/errno (configure.ac): Drop AC_REQUIRE.
39161         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39162         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39163
39164 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39165
39166         * modules/glob-tests: New module.
39167         * tests/test-glob.c: Add.
39168
39169 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39170
39171         * modules/fnmatch-tests: New module.
39172         * tests/test-fnmatch.c: Add.
39173
39174 2009-05-04  Eric Blake  <ebb9@byu.net>
39175
39176         maint: make the new no-submodule-changes rule VPATH-safe
39177         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39178
39179 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39180             Bruno Haible  <bruno@clisp.org>
39181
39182         acl: Fix infinite loop on FreeBSD.
39183         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39184         of return value from acl_get_entry.
39185         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39186         Likewise.
39187
39188 2009-05-03  Bruno Haible  <bruno@clisp.org>
39189
39190         * lib/acl-internal.h (acl_entries): Clarify return value.
39191         * lib/acl_entries.c (acl_entries): Likewise.
39192
39193 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39194
39195         Bug fix in acl module.
39196         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39197
39198 2009-05-03  Bruno Haible  <bruno@clisp.org>
39199
39200         Create gperf-generated file in the source dir, not in the build dir.
39201         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39202         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39203         * modules/unicase/locale-language (unicase/locale-languages.h):
39204         Likewise.
39205         * modules/unicase/special-casing (unicase/special-casing-table.h):
39206         Likewise.
39207         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39208         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39209         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39210         Reported by Ralf Wildenhues.
39211
39212 2009-05-03  Bruno Haible  <bruno@clisp.org>
39213
39214         * modules/fnmatch (Description, configure.ac): Taken from
39215         fnmatch-posix.
39216         * modules/fnmatch-posix: Turn into a symbolic reference to the
39217         'fnmatch' module, and deprecate.
39218         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39219
39220 2009-05-03  Bruno Haible  <bruno@clisp.org>
39221
39222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39223         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39224         Reported by Ralf Wildenhues.
39225
39226 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39227
39228         * m4/fnmatch.m4: Fix fnmatch re-define.
39229
39230 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39231
39232         priv-set: new module and tests; adapt write-any-file
39233         * lib/priv-set.c: New file.
39234         * lib/priv-set.h: New file.
39235         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39236         * lib/write-any-file.c: Simplify by using priv-set module.
39237         * m4/priv-set.m4: New file.
39238         * modules/priv-set: New file.
39239         * modules/unlinkdir: Add dependency on priv-set module.
39240         * modules/write-any-file: Likewise.
39241
39242         Tests for module 'priv-set'.
39243         * modules/priv-set-tests: New file.
39244         * tests/test-priv-set.c: New file.
39245
39246 2009-05-03  Jim Meyering  <meyering@redhat.com>
39247             Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39250         use the converted UTF-8 variant of the name instead.
39251
39252 2009-05-03  Jim Meyering  <meyering@redhat.com>
39253
39254         tests: tighten some getdate tests
39255         * tests/test-getdate.c (main): Tighten tests: require equality,
39256         not just greater than.  Set TZ envvar to UTC0.
39257
39258 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39259
39260         getdate: correctly interpret "next monday" when run on a Monday
39261         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39262         that e.g., "next tues" (when run on a tuesday) results in a date
39263         that is one week in the future, and not today's date.
39264         I.e., add a week when the wday is the same as the current one.
39265         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39266         and earlier by Martin Bernreuther and Jan Minář.
39267         * tests/test-getdate.c (main): Check that "next DAY" is always in
39268         the future and that "last DAY" is always in the past.
39269
39270 2009-05-02  Jim Meyering  <meyering@redhat.com>
39271
39272         build: ensure that a release build fails when a submodule is unclean
39273         * top/maint.mk (no-submodule-changes): New rule.
39274         (alpha beta major): Depend on it.
39275
39276 2009-05-02  Bruno Haible  <bruno@clisp.org>
39277
39278         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39279         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39280         shell variable gl_fnmatch_required to detect which variant is
39281         requested.
39282         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39283         gl_FUNC_FNMATCH_POSIX.
39284         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39285         exclude fnmatch-posix.
39286
39287 2009-05-02  Bruno Haible  <bruno@clisp.org>
39288
39289         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39290         * modules/mbsrtowcs (License): Change to LGPLv2+.
39291         * modules/strnlen1 (License): Likewise.
39292         Reported by Simon Josefsson.
39293
39294 2009-05-02  Bruno Haible  <bruno@clisp.org>
39295
39296         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39297         "cross".
39298         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39299         gnulib-tool was called with option --source-base=lib.
39300
39301 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39302
39303         Use automake *-local hooks without commands, for extensibility.
39304         * modules/localcharset (Makefile.am): Rename install-exec-local
39305         rule to install-exec-localcharset, and make it a prerequisite of
39306         install-exec-local.  Likewise, rename the uninstall-local rule to
39307         uninstall-localcharset, and make it a prerequisite of the former.
39308
39309 2009-05-01  Bruno Haible  <bruno@clisp.org>
39310
39311         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39312         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39313         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39315         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39316         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39317         m4/locale-zh.m4, m4/codeset.m4.
39318
39319         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39320         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39321         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39322         m4/locale-zh.m4.
39323
39324         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39325         REPLACE_WCRTOMB if mbstate_t must be replaced.
39326         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39327         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39328
39329 2009-05-01  Bruno Haible  <bruno@clisp.org>
39330
39331         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39332         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39333         dngettext, dcngettext, textdomain, bindtextdomain,
39334         bind_textdomain_codeset): Undefine before redefining.
39335
39336 2009-04-30  Bruno Haible  <bruno@clisp.org>
39337
39338         Fix bug introduced on 2009-04-25.
39339         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39340         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39341         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39342         is defined.
39343         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39344         is defined.
39345         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39346         is defined.
39347         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39348
39349 2009-04-28  Bruno Haible  <bruno@clisp.org>
39350
39351         Comment tweaks.
39352         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39353         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39354         * lib/unicase.h (u*_casexfrm): Likewise.
39355         Reported by Paolo Bonzini.
39356
39357 2009-04-28  Bruno Haible  <bruno@clisp.org>
39358
39359         Fix a compilation error.
39360         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39361         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39362         Reported by Jim Meyering.
39363
39364 2009-04-27  Bruno Haible  <bruno@clisp.org>
39365
39366         New module 'libunistring'.
39367         * modules/libunistring: New file.
39368         * m4/libunistring.m4: New file.
39369         * MODULES.html.sh (Unicode string functions): Add it.
39370
39371 2009-04-27  Eric Blake  <ebb9@byu.net>
39372
39373         maint.mk: allow package-specific header to provide <config.h>
39374         * top/maint.mk (sc_require_config_h): New variable.
39375         (sc_require_config_h, sc_require_config_h_first): Use it.
39376
39377 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39378
39379         * top/maint.mk (sc_avoid_if_before_free): Except
39380         useless-if-before-free script.
39381
39382 2009-04-27  Eric Blake  <ebb9@byu.net>
39383
39384         maintainer-makefile: depend on all required helper scripts
39385         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39386         useless-if-before-free.
39387         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39388         version, rather than assuming gnulib checkout is available.
39389         Reported by Simen Josefsson.
39390
39391 2009-04-26  Bruno Haible  <bruno@clisp.org>
39392
39393         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39394         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39395         "../" or "..".
39396
39397 2009-04-26  Bruno Haible  <bruno@clisp.org>
39398
39399         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39400         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39401         AC_LIB_HAVE_LINKFLAGS.
39402
39403 2009-04-26  Bruno Haible  <bruno@clisp.org>
39404
39405         Simplify calling convention of u*_conv_from_encoding.
39406         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39407         u32_conv_from_encoding): Expect a resultbuf argument and return the
39408         result directly as a pointer.
39409         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39410         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39411         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39412         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39413         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39414         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39415         Update.
39416         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39417         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39418         * lib/vasnprintf.c (VASNPRINTF): Update.
39419         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39420         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39421         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39422         * NEWS: Mention the change.
39423
39424 2009-04-26  Bruno Haible  <bruno@clisp.org>
39425
39426         Simplify calling convention of u*_conv_to_encoding.
39427         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39428         u32_conv_to_encoding): Expect a resultbuf argument and return the
39429         result directly as a pointer.
39430         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39431         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39432         freeing scaled_offsets if mem_iconveha failed.
39433         * lib/unicase/u-casexfrm.h (FUNC): Update.
39434         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39435         * lib/vasnprintf.c (VASNPRINTF): Update.
39436         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39437         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39438         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39439         * NEWS: Mention the change.
39440
39441 2009-04-26  Bruno Haible  <bruno@clisp.org>
39442
39443         Avoid test failures on AIX and OSF/1.
39444         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39445         malloc(0).
39446         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39447         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39448         Likewise.
39449         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39450         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39451         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39452         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39453         * doc/posix-functions/malloc.texi: Document the portability problem
39454         related to malloc(0).
39455
39456 2009-04-26  Bruno Haible  <bruno@clisp.org>
39457
39458         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39459         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39460         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39461
39462 2009-04-25  Bruno Haible  <bruno@clisp.org>
39463
39464         Avoid link error when creating a namespace clean library.
39465         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39466         as macro with arguments if already defined as an alias.
39467         * lib/signbitf.c (gl_signbitf): Don't undefine.
39468         * lib/signbitd.c (gl_signbitd): Don't undefine.
39469         * lib/signbitl.c (gl_signbitl): Don't undefine.
39470
39471 2009-04-25  Jim Meyering  <meyering@redhat.com>
39472
39473         vc-list-files: fix another quoting bug
39474         * build-aux/vc-list-files: Avoid sed backslash expansion
39475         of pathological directory names.
39476
39477 2009-04-25  Eric Blake  <ebb9@byu.net>
39478
39479         vc-list-files: fix shell quoting error
39480         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39481         timestamp.
39482
39483 2009-04-25  Jim Meyering  <meyering@redhat.com>
39484
39485         vc-list-files: restore lost functionality with subdir argument
39486         * build-aux/vc-list-files: When given a non-"." sub-directory
39487         argument, substitute the $dir/ prefix back onto each resulting name.
39488         Otherwise, coreutils' root_tests check would fail.
39489
39490 2009-04-24  Eric Blake  <ebb9@byu.net>
39491
39492         vc-list-files: ignore git symlinks
39493         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39494         than ls-files, to ignore git symlinks.
39495
39496         maint.mk: import improvements from m4
39497         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39498         (move_if_change): Delete unused macro.
39499         (news-date-check, vc-diff-check): Support VPATH builds.
39500         (announcement): Likewise.  Split --bootstrap-tools list...
39501         (boostrap-tools): ...into separate list, which can be overridden
39502         in cfg.mk.
39503         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39504         requiring dependency on useless-if-before-free module.
39505         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39506         Support VPATH builds.
39507
39508 2009-04-24  Jim Meyering  <meyering@redhat.com>
39509
39510         maint.mk: remove coreutils-specific rules and variables
39511         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39512         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39513         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39514
39515         maint.mk: remove obsolete rule
39516         * top/maint.mk (rel-check): Remove rule.
39517         (WGET, WGETFLAGS): Remove now-unused variables.
39518
39519 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39520
39521         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39522         consistency.
39523
39524         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39525         '$(PATH_SEPARATOR)' instead of ':'.
39526
39527 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39528
39529         * lib/getopt1.c (main): Use 'const' for static array.
39530
39531 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39532
39533         * top/maint.mk: Sync with coreutils.
39534         * NEWS: Explain incompatibilities.
39535
39536 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39537             Bruno Haible  <bruno@clisp.org>
39538
39539         Fix cross-compilation results.
39540         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39541         statement, as third argument of AC_TRY_RUN.
39542         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39543         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39544         Likewise.
39545         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39546         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39547         Likewise.
39548         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39549         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39550         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39551
39552 2009-04-20  Bruno Haible  <bruno@clisp.org>
39553
39554         Avoid test failure on mingw.
39555         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39556
39557 2009-04-20  Bruno Haible  <bruno@clisp.org>
39558
39559         Avoid compilation error on mingw.
39560         * modules/localename-tests (Depends-on): Add locale.
39561
39562 2009-04-19  Bruno Haible  <bruno@clisp.org>
39563
39564         Support for building a shared library on Windows platforms.
39565         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39566         (main): Test the presence of UNINORM_NFC here.
39567         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39568         (main): Test the presence of UNINORM_NFD here.
39569         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39570         (main): Test the presence of UNINORM_NFKC here.
39571         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39572         (main): Test the presence of UNINORM_NFKD here.
39573
39574 2009-04-19  Bruno Haible  <bruno@clisp.org>
39575
39576         Avoid a compiler warning.
39577         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39578         Change type of variable 'sequence'.
39579
39580 2009-04-19  Bruno Haible  <bruno@clisp.org>
39581
39582         * modules/configmake (Makefile.am): When the contents of configmake.h
39583         does not change, arrange to preserve its modification time.
39584
39585 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39586
39587         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39588         gettext domain.
39589
39590 2009-04-16  Jim Meyering  <meyering@redhat.com>
39591
39592         useless-if-before-free: improve conversion code
39593         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39594         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39595
39596 2009-04-14  Bruno Haible  <bruno@clisp.org>
39597
39598         * modules/fcntl (Depends-on): Add extensions.
39599         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39600
39601 2009-04-12  Ben Pfaff  <blp@gnu.org>
39602
39603         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39604         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39605
39606 2009-03-20  Ben Pfaff  <blp@gnu.org>
39607
39608         Make rename replace existing destinations on Windows.
39609         * m4/rename.m4: Add test for Mingw.
39610         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39611         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39612         * doc/posix-functions/rename.texi: Document.
39613
39614 2009-04-10  Bruno Haible  <bruno@clisp.org>
39615
39616         New include file "iconveh.h".
39617         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39618         * lib/striconveh.h: Include it.
39619         (enum iconv_ilseq_handler): Remove definition.
39620         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39621         striconveh.h.
39622         * lib/striconveha.c: Include striconveh.h.
39623         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39624         * modules/striconveh (Files): Add lib/iconveh.h.
39625         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39626         lib/striconveh.h.
39627
39628 2009-04-10  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/uniconv.h: Update comment.
39631
39632 2009-04-10  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39635         always.
39636         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39637         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39638         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39639         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39640         "unistring-notinline.h", so that the function gets defined always.
39641         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39642         * lib/unistr/u8-uctomb.c: Likewise.
39643         * lib/unistr/u16-mbtouc.c: Likewise.
39644         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39645         * lib/unistr/u16-uctomb.c: Likewise.
39646         * lib/unistr/u32-mbtouc.c: Likewise.
39647         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39648         * lib/unistr/u32-uctomb.c: Likewise.
39649
39650 2009-04-10  Bruno Haible  <bruno@clisp.org>
39651
39652         Mark 'utime' obsolete.
39653         * modules/utime (Status, Notice): New sections.
39654         Suggested by Jim Meyering.
39655
39656         Fix cross-compile guess for utime test.
39657         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39658         autoconf.
39659         * doc/posix-functions/utime.texi: Give more precisions.
39660         Reported by Jan <ipif@ymail.com>.
39661
39662 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39663
39664         filevercmp: correct today's change
39665         * lib/filevercmp.c: Also handle coreutils' test inputs.
39666         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39667
39668         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39669         for reporting it.
39670         * lib/filevercmp.c: Special handle for "", "." and "..".
39671         * tests/test-filevercmp.c: Enlarge the set suite.
39672
39673 2009-04-07  Jim Meyering  <meyering@redhat.com>
39674
39675         useless-if-before-free: show how to remove braced useless free, too
39676         * build-aux/useless-if-before-free: still only in a comment, though.
39677
39678 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39679
39680         maint.mk: import changes to syntax-check macros from coreutils
39681         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39682         Use them in the relevant macros.
39683
39684 2009-04-06  Bruno Haible  <bruno@clisp.org>
39685
39686         Fix unportable use of bit-fields.
39687         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39688         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39689         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39690
39691 2009-04-06  Bruno Haible  <bruno@clisp.org>
39692
39693         Avoid test failures on AIX and OSF/1.
39694         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39695         that malloc(0) = NULL.
39696         * tests/unicase/test-u8-tolower.c (check): Likewise.
39697         * tests/unicase/test-u8-totitle.c (check): Likewise.
39698         * tests/unicase/test-u8-toupper.c (check): Likewise.
39699         * tests/unicase/test-u16-casefold.c (check): Likewise.
39700         * tests/unicase/test-u16-tolower.c (check): Likewise.
39701         * tests/unicase/test-u16-totitle.c (check): Likewise.
39702         * tests/unicase/test-u16-toupper.c (check): Likewise.
39703         * tests/unicase/test-u32-casefold.c (check): Likewise.
39704         * tests/unicase/test-u32-tolower.c (check): Likewise.
39705         * tests/unicase/test-u32-totitle.c (check): Likewise.
39706         * tests/unicase/test-u32-toupper.c (check): Likewise.
39707         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39708         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39709         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39710         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39711         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39712         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39713         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39714         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39715         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39716         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39717         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39718         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39719
39720 2009-04-05  Bruno Haible  <bruno@clisp.org>
39721
39722         Work around an autoconf limitation.
39723         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39724         comment line if it would be longer than 3 KB.
39725
39726 2009-04-05  Bruno Haible  <bruno@clisp.org>
39727
39728         Avoid test failure with libiconv-1.13.
39729         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39730         of the expected test results.
39731
39732 2009-04-05  Bruno Haible  <bruno@clisp.org>
39733
39734         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39735         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39736         that it should be installed.
39737
39738 2009-04-05  Bruno Haible  <bruno@clisp.org>
39739
39740         * gnulib-tool: New option --copy-file.
39741         (func_usage): Document it.
39742         (func_dest_tmpfilename): Moved out of func_import.
39743         (func_add_file, func_update_file): New functions, extracted from
39744         func_import.
39745         (func_import): Update.
39746
39747 2009-04-05  Karl Berry  <karl@gnu.org>
39748
39749         * README: prominently mention gnulib-tool.
39750         Rearrange sections so getting the code is near the top.
39751
39752 2009-04-05  Bruno Haible  <bruno@clisp.org>
39753
39754         * lib/unicase.h: Mention u*_cmp2.
39755         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39756         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39757         * lib/unicase/ulc-casecmp.c: Likewise.
39758         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39759         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39760         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39761         unistr/u8-cmp.
39762         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39763         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39764         unistr/u16-cmp.
39765         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39766         unistr/u32-cmp.
39767
39768         * lib/uninorm.h: Mention u*_cmp2.
39769         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39770         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39771         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39772         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39773         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39774         unistr/u8-cmp.
39775         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39776         unistr/u16-cmp.
39777         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39778         unistr/u32-cmp.
39779
39780         New module 'unistr/u32-cmp2'.
39781         * lib/unistr/u32-cmp2.c: New file.
39782         * modules/unistr/u32-cmp2: New file.
39783
39784         New module 'unistr/u16-cmp2'.
39785         * lib/unistr/u16-cmp2.c: New file.
39786         * modules/unistr/u16-cmp2: New file.
39787
39788         New module 'unistr/u8-cmp2'.
39789         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39790         * lib/unistr/u8-cmp2.c: New file.
39791         * lib/unistr/u-cmp2.h: New file.
39792         * modules/unistr/u8-cmp2: New file.
39793
39794 2009-04-05  Bruno Haible  <bruno@clisp.org>
39795
39796         * lib/unictype.h (uc_property_is_valid): New macro.
39797         * tests/unictype/test-pr_byname.c (main): Use it.
39798
39799         * lib/unistr.h: Doc fixes.
39800         * lib/uniconv.h: Doc fixes.
39801         * lib/unictype.h: Doc fixes.
39802
39803 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39804
39805         Port coreutils 7.2 to Solaris 8.
39806
39807         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39808         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39809         for Solaris 8.  This is a bit of a hack, as it means it's the
39810         caller's responsibility to add -lnsl if needed, but most likely it
39811         won't be needed since only getaddrinfo uses this and getaddrinfo
39812         isn't needed on Solaris 8.
39813
39814         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39815         problem to Solaris 8 encountered with coreutils 7.2, which
39816         resulted in a message "fnmatch.c:292: warning: passing argument 4
39817         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39818         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39819
39820 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39821
39822         * m4/ld-version-script.m4: Add FIXME comment.
39823
39824 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39825
39826         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39827         SOVERSION variable.
39828
39829 2009-04-02  Bruno Haible  <bruno@clisp.org>
39830
39831         * Makefile (info, html, dvi, pdf): Combine the rules.
39832         Suggested by Jim Meyering.
39833
39834 2009-04-01  Bruno Haible  <bruno@clisp.org>
39835
39836         * Makefile (info, html, dvi, pdf): New targets.
39837         Reported by Reuben Thomas <rrt@sc3d.org>.
39838
39839 2009-04-01  Bruno Haible  <bruno@clisp.org>
39840
39841         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39842         can be put into PATH.
39843         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39844
39845 2009-04-01  Bruno Haible  <bruno@clisp.org>
39846
39847         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39848
39849 2009-04-01  Bruno Haible  <bruno@clisp.org>
39850
39851         Rename module 'visibility'.
39852         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39853         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39854         * doc/gnulib.texi: Update.
39855         * MODULES.html.sh (Misc): Update.
39856         * NEWS: Mention the change.
39857
39858 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39859
39860         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39861         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39862         Eric Blake <ebb9@byu.net> for review.
39863         * MODULES.html.sh: Add lib-msvc-compat.
39864         * doc/gnulib.texi: Link to new section.
39865         * m4/ld-output-def.m4: New file.
39866         * doc/ld-output-def.texi: New file.
39867
39868 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39869
39870         Rename ld-version-script to lib-symbol-versions.  Suggested by
39871         Bruno Haible <bruno@clisp.org>.
39872         * modules/ld-version-script: Renamed to lib-symbol-versions.
39873         * doc/ld-version-script.texi: Fix module name.
39874         * MODULES.html.sh: Add lib-symbol-versions.
39875
39876 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39877
39878         * modules/u64-tests: New file.
39879         * tests/test-u64.c: New file.
39880
39881 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39882
39883         * MODULES.html.sh: Mention u64.
39884         * modules/u64: New module.
39885         * modules/crypto/sha512: Depend on u64 module instead of providing
39886         u64.h.
39887
39888 2009-03-27  Eric Blake  <ebb9@byu.net>
39889
39890         test-strerror: make debugging EAI_SYSTEM easier
39891         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39892         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39893         failure was EAI_SYSTEM.
39894
39895 2009-03-25  Bruno Haible  <bruno@clisp.org>
39896
39897         Fix a problem with --enable-relocatable on Solaris 7.
39898         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39899         since 2008-02-24.
39900
39901 2009-03-25  Eric Blake  <ebb9@byu.net>
39902
39903         test-sockets: avoid gcc warning
39904         * tests/test-sockets.c (main): Silence compiler warning.
39905
39906 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39907
39908         New modules nproc, pthread, contributed by Glen Lenker.
39909
39910         * MODULES.html.sh: Add pthread, nproc.
39911         * lib/nproc.c: New file.
39912         * lib/nproc.h: New file.
39913         * lib/pthread.in.h: New file.
39914         * m4/pthread.m4: New file.
39915         * modules/nproc: New file.
39916         * modules/pthread: New file.
39917
39918 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39919
39920         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39921         New variable.
39922
39923 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39924
39925         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39926         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39927         * tests/test-filevercmp.c: Add tests for backup suffixes.
39928
39929 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39930
39931         * modules/stdlib (Depends-on): Add stdint, needed when defining
39932         struct random_data on, for example, HP-UX 10.20.  Reported by
39933         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39934
39935 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39936
39937         * lib/readline.c (readline): Call fflush on stdout after printing
39938         prompt.
39939
39940 2009-03-20  Bruno Haible  <bruno@clisp.org>
39941
39942         Remove dependency from 'close' module to -lws2_32 on native Windows.
39943         * lib/close-hook.h: New file.
39944         * lib/close-hook.c: New file.
39945         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39946         w32sock.h.
39947         (_gl_close_fd_maybe_socket): Remove function.
39948         (rpl_close): Invoke execute_all_close_hooks instead of
39949         _gl_close_fd_maybe_socket.
39950         * lib/sockets.c: Include close-hook.h, w32sock.h.
39951         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39952         (close_sockets_hook): New variable.
39953         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39954         (gl_sockets_cleanup): Unregister it.
39955         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39956         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39957         * modules/close-hook: New file.
39958         * modules/close (Files): Remove lib/w32sock.h.
39959         (Depends-on): Add close-hook.
39960         (Link): Remove section.
39961         * modules/sockets (Files): Add lib/w32sock.h.
39962         (Depends-on): Add close-hook.
39963         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39964         invocation.
39965         * NEWS: Mention that LIB_CLOSE is gone.
39966
39967 2009-03-23  Eric Blake  <ebb9@byu.net>
39968
39969         signal-tests: test previous patch
39970         * tests/test-signal.c: New file.
39971         * modules/signal-tests: Likewise.
39972
39973         signal.h: always support 'volatile sig_atomic_t'
39974         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39975         (gl_SIGNAL_H_DEFAULTS): Add a default.
39976         * modules/signal (Makefile.am): Substitute if needed.
39977         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39978         users can blindly add volatile.
39979         * doc/posix-headers/signal.texi (signal.h): Document it.
39980         Reported by Matthew Woehlke.
39981
39982 2009-03-23  Jim Meyering  <meyering@redhat.com>
39983
39984         pathmax: PATH_MAX: use pathconf only when available
39985         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39986         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39987         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39988         This avoids a link failure in a PSP cross-compilation environment
39989         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39990
39991         * lib/vasnprintf.c (divide): Fix typo in comment.
39992
39993 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39994
39995         * gnulib-tool (func_filter_filelist): Fix comment.
39996
39997 2009-03-20  Bruno Haible  <bruno@clisp.org>
39998
39999         Make sockets.h self-contained.
40000         * lib/sockets.c: Include sockets.h first.
40001         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40002
40003 2009-03-19  Eric Blake  <ebb9@byu.net>
40004
40005         doc: mention more functions added in cygwin 1.7.0
40006         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40007         addition.
40008         * doc/posix-functions/log2f.texi: Likewise.
40009
40010 2009-03-19  Jim Meyering  <meyering@redhat.com>
40011
40012         fsusage: avoid syntax error due to statement-before-declaration
40013         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40014         after all declarations.  Reported by Matthew Woehlke in
40015         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40016
40017 2009-03-18  Eric Blake  <ebb9@byu.net>
40018
40019         build-aux/compile: sync from automake
40020         * build-aux/compile: New file, from automake.
40021         * config/srclist.txt: Mention build-aux/compile.
40022
40023 2009-03-17  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/git-merge-changelog.c: Fix typo in comment.
40026         Reported by Reuben Thomas <rrt@sc3d.org>.
40027
40028 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40029
40030         * m4/regex.m4: update and improve help for
40031         --without-included-regex.
40032
40033 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40034
40035         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40036         failure on missing include files.
40037
40038 2009-03-17  Eric Blake  <ebb9@byu.net>
40039
40040         doc: mention more functions added in cygwin 1.7.0
40041         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40042         addition.
40043         * doc/posix-functions/fwscanf.texi: Likewise.
40044         * doc/posix-functions/swprintf.texi: Likewise.
40045         * doc/posix-functions/swscanf.texi: Likewise.
40046         * doc/posix-functions/vfwprintf.texi: Likewise.
40047         * doc/posix-functions/vfwscanf.texi: Likewise.
40048         * doc/posix-functions/vswprintf.texi: Likewise.
40049         * doc/posix-functions/vswscanf.texi: Likewise.
40050         * doc/posix-functions/vwprintf.texi: Likewise.
40051         * doc/posix-functions/vwscanf.texi: Likewise.
40052         * doc/posix-functions/wcscasecmp.texi: Likewise.
40053         * doc/posix-functions/wcsdup.texi: Likewise.
40054         * doc/posix-functions/wcsftime.texi: Likewise.
40055         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40056         * doc/posix-functions/wprintf.texi: Likewise.
40057         * doc/posix-functions/wscanf.texi: Likewise.
40058         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40059
40060 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40061
40062         maint.mk: really add $(AM_MAKEFLAGS)
40063         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40064         was inadvertently omitted in the last commit.
40065         Spotted by Bruno Haible.
40066
40067         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40068         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40069         $(AM_MAKEFLAGS)' rather than plain `make'.
40070
40071         gnulib-tool: execute $MAKE not make
40072         * gnulib-tool: Default $MAKE to 'make'.
40073         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40074         than make.  Initialize $MAKE in the do-autobuild script.
40075
40076         gnulib-tool: use $MAKE not make in generated files
40077         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40078         make, in generated files.  Initialize $MAKE in the do-autobuild
40079         script.
40080
40081         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40082
40083         GNUmakefile: disable parallelism only for multiple, recursive targets
40084         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40085         additions in the Makefile.
40086         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40087         by Automake.
40088         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40089         are listed on the command line and at least one of them is
40090         listed in $(ALL_RECURSIVE_TARGETS).
40091
40092 2009-03-14  Bruno Haible  <bruno@clisp.org>
40093
40094         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40095         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40096         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40097         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40098         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40099         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40100         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40101         unistr/u8-uctomb.
40102         * modules/unistr/u8-strchr (Depends-on): Likewise.
40103         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40104         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40105         unistr/u16-uctomb.
40106         * modules/unistr/u16-strchr (Depends-on): Likewise.
40107         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40108
40109 2009-03-12  Bruno Haible  <bruno@clisp.org>
40110
40111         Work around select() bug on Interix 3.5.
40112         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40113         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40114         * m4/select.m4: New file.
40115         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40116         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40117         * modules/select (Files): Add m4/select.m4.
40118         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40119         * modules/nanosleep (Depends-on): Add select.
40120         * modules/poll (Depends-on): Likewise.
40121         * doc/posix-functions/select.texi: Mention the Interix bug.
40122         Reported by Markus Duft <mduft@gentoo.org>.
40123
40124         * lib/select.c: Renamed from lib/winsock-select.c.
40125         * modules/select (Files): Add lib/select.c, remove
40126         lib/winsock-select.c.
40127         (configure.ac): Update.
40128
40129 2009-03-12  Jim Meyering  <meyering@redhat.com>
40130
40131         avoid gcc warnings about unused macro definitions
40132         * lib/readtokens.c (STREQ): Remove unused definition.
40133         * lib/xmalloc.c (SIZE_MAX): Likewise.
40134         * lib/openat-die.c (N_): Likewise.
40135         * lib/mountlist.c (SIZE_MAX): Remove definition.
40136         Instead, include <stdint.h>.
40137         * lib/readutmp.c: Likewise.
40138         * modules/readutmp (Depends-on): Add stdint.
40139         * modules/mountlist (Depends-on): Add stdint.
40140         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40141
40142 2009-03-10  Bruno Haible  <bruno@clisp.org>
40143
40144         Tests for module 'mbmemcasecoll'.
40145         * modules/mbmemcasecoll-tests: New file.
40146         * tests/test-mbmemcasecoll1.sh: New file.
40147         * tests/test-mbmemcasecoll2.sh: New file.
40148         * tests/test-mbmemcasecoll3.sh: New file.
40149         * tests/test-mbmemcasecoll.c: New file.
40150
40151         New module 'mbmemcasecoll'.
40152         * lib/mbmemcasecoll.h: New file.
40153         * lib/mbmemcasecoll.c: New file.
40154         * modules/mbmemcasecoll: New file.
40155
40156         * tests/test-mbmemcasecmp.h: New file, extracted from
40157         tests/test-mbmemcasecmp.c.
40158         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40159         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40160         (main): Update.
40161         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40162
40163 2009-03-09  Bruno Haible  <bruno@clisp.org>
40164
40165         Tests for module 'mbmemcasecmp'.
40166         * modules/mbmemcasecmp-tests: New file.
40167         * tests/test-mbmemcasecmp1.sh: New file.
40168         * tests/test-mbmemcasecmp2.sh: New file.
40169         * tests/test-mbmemcasecmp3.sh: New file.
40170         * tests/test-mbmemcasecmp.c: New file.
40171
40172         New module 'mbmemcasecmp'.
40173         * lib/mbmemcasecmp.h: New file.
40174         * lib/mbmemcasecmp.c: New file.
40175         * modules/mbmemcasecmp: New file.
40176
40177 2009-03-09  Bruno Haible  <bruno@clisp.org>
40178
40179         Tests for module 'unicase/ulc-casecoll'.
40180         * modules/unicase/ulc-casecoll-tests: New file.
40181         * tests/unicase/test-ulc-casecoll1.sh: New file.
40182         * tests/unicase/test-ulc-casecoll2.sh: New file.
40183         * tests/unicase/test-ulc-casecoll.c: New file.
40184
40185         New module 'unicase/ulc-casecoll'.
40186         * lib/unicase.h (ulc_casecoll): New declaration.
40187         * lib/unicase/ulc-casecoll.c: New file.
40188         * modules/unicase/ulc-casecoll: New file.
40189
40190         New module 'unicase/ulc-casexfrm'.
40191         * lib/unicase.h (ulc_casexfrm): New declaration.
40192         * lib/unicase/ulc-casexfrm.c: New file.
40193         * modules/unicase/ulc-casexfrm: New file.
40194
40195 2009-03-09  Bruno Haible  <bruno@clisp.org>
40196
40197         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40198         invocations.
40199
40200         * m4/mbscasecmp.m4: Remove file.
40201         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40202         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40203
40204         * m4/mbscasestr.m4: Remove file.
40205         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40206         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40207
40208         * m4/mbschr.m4: Remove file.
40209         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40210         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40211
40212         * m4/mbscspn.m4: Remove file.
40213         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40214         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40215
40216         * m4/mbslen.m4: Remove file.
40217         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40218         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40219
40220         * m4/mbsncasecmp.m4: Remove file.
40221         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40222         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40223
40224         * m4/mbsnlen.m4: Remove file.
40225         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40226         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40227
40228         * m4/mbspbrk.m4: Remove file.
40229         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40230         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40231
40232         * m4/mbspcasecmp.m4: Remove file.
40233         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40234         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40235
40236         * m4/mbsrchr.m4: Remove file.
40237         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40238         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40239
40240         * m4/mbssep.m4: Remove file.
40241         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40242         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40243
40244         * m4/mbsspn.m4: Remove file.
40245         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40246         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40247
40248         * m4/mbsstr.m4: Remove file.
40249         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40250         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40251
40252         * m4/mbstok_r.m4: Remove file.
40253         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40254         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40255
40256         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40257
40258         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40259         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40260
40261         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40262
40263 2009-03-08  Bruno Haible  <bruno@clisp.org>
40264
40265         Tests for module 'unicase/ulc-casecmp'.
40266         * modules/unicase/ulc-casecmp-tests: New file.
40267         * tests/unicase/test-ulc-casecmp1.sh: New file.
40268         * tests/unicase/test-ulc-casecmp2.sh: New file.
40269         * tests/unicase/test-ulc-casecmp.c: New file.
40270
40271         New module 'unicase/ulc-casecmp'.
40272         * lib/unicase.h (ulc_casecmp): New declaration.
40273         * lib/unicase/ulc-casecmp.c: New file.
40274         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40275         'const SRC_UNIT *'.
40276         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40277         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40278         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40279         * modules/unicase/ulc-casecmp: New file.
40280
40281         Tests for module 'unicase/u32-is-cased'.
40282         * modules/unicase/u32-is-cased-tests: New file.
40283         * tests/unicase/test-u32-is-cased.c: New file.
40284
40285         Tests for module 'unicase/u16-is-cased'.
40286         * modules/unicase/u16-is-cased-tests: New file.
40287         * tests/unicase/test-u16-is-cased.c: New file.
40288
40289         Tests for module 'unicase/u8-is-cased'.
40290         * modules/unicase/u8-is-cased-tests: New file.
40291         * tests/unicase/test-u8-is-cased.c: New file.
40292         * tests/unicase/test-is-cased.h: New file.
40293
40294         New module 'unicase/u32-is-cased'.
40295         * lib/unicase/u32-is-cased.c: New file.
40296         * modules/unicase/u32-is-cased: New file.
40297
40298         New module 'unicase/u16-is-cased'.
40299         * lib/unicase/u16-is-cased.c: New file.
40300         * modules/unicase/u16-is-cased: New file.
40301
40302         New module 'unicase/u8-is-cased'.
40303         * lib/unicase/u8-is-cased.c: New file.
40304         * lib/unicase/u-is-cased.h: New file.
40305         * modules/unicase/u8-is-cased: New file.
40306
40307         Tests for module 'unicase/u32-is-casefolded'.
40308         * modules/unicase/u32-is-casefolded-tests: New file.
40309         * tests/unicase/test-u32-is-casefolded.c: New file.
40310
40311         Tests for module 'unicase/u16-is-casefolded'.
40312         * modules/unicase/u16-is-casefolded-tests: New file.
40313         * tests/unicase/test-u16-is-casefolded.c: New file.
40314
40315         Tests for module 'unicase/u8-is-casefolded'.
40316         * modules/unicase/u8-is-casefolded-tests: New file.
40317         * tests/unicase/test-u8-is-casefolded.c: New file.
40318         * tests/unicase/test-is-casefolded.h: New file.
40319
40320         New module 'unicase/u32-is-casefolded'.
40321         * lib/unicase/u32-is-casefolded.c: New file.
40322         * modules/unicase/u32-is-casefolded: New file.
40323
40324         New module 'unicase/u16-is-casefolded'.
40325         * lib/unicase/u16-is-casefolded.c: New file.
40326         * modules/unicase/u16-is-casefolded: New file.
40327
40328         New module 'unicase/u8-is-casefolded'.
40329         * lib/unicase/u8-is-casefolded.c: New file.
40330         * modules/unicase/u8-is-casefolded: New file.
40331
40332         Tests for module 'unicase/u32-is-titlecase'.
40333         * modules/unicase/u32-is-titlecase-tests: New file.
40334         * tests/unicase/test-u32-is-titlecase.c: New file.
40335
40336         Tests for module 'unicase/u16-is-titlecase'.
40337         * modules/unicase/u16-is-titlecase-tests: New file.
40338         * tests/unicase/test-u16-is-titlecase.c: New file.
40339
40340         Tests for module 'unicase/u8-is-titlecase'.
40341         * modules/unicase/u8-is-titlecase-tests: New file.
40342         * tests/unicase/test-u8-is-titlecase.c: New file.
40343         * tests/unicase/test-is-titlecase.h: New file.
40344
40345         New module 'unicase/u32-is-titlecase'.
40346         * lib/unicase/u32-is-titlecase.c: New file.
40347         * modules/unicase/u32-is-titlecase: New file.
40348
40349         New module 'unicase/u16-is-titlecase'.
40350         * lib/unicase/u16-is-titlecase.c: New file.
40351         * modules/unicase/u16-is-titlecase: New file.
40352
40353         New module 'unicase/u8-is-titlecase'.
40354         * lib/unicase/u8-is-titlecase.c: New file.
40355         * modules/unicase/u8-is-titlecase: New file.
40356
40357         Tests for module 'unicase/u32-is-lowercase'.
40358         * modules/unicase/u32-is-lowercase-tests: New file.
40359         * tests/unicase/test-u32-is-lowercase.c: New file.
40360
40361         Tests for module 'unicase/u16-is-lowercase'.
40362         * modules/unicase/u16-is-lowercase-tests: New file.
40363         * tests/unicase/test-u16-is-lowercase.c: New file.
40364
40365         Tests for module 'unicase/u8-is-lowercase'.
40366         * modules/unicase/u8-is-lowercase-tests: New file.
40367         * tests/unicase/test-u8-is-lowercase.c: New file.
40368         * tests/unicase/test-is-lowercase.h: New file.
40369
40370         New module 'unicase/u32-is-lowercase'.
40371         * lib/unicase/u32-is-lowercase.c: New file.
40372         * modules/unicase/u32-is-lowercase: New file.
40373
40374         New module 'unicase/u16-is-lowercase'.
40375         * lib/unicase/u16-is-lowercase.c: New file.
40376         * modules/unicase/u16-is-lowercase: New file.
40377
40378         New module 'unicase/u8-is-lowercase'.
40379         * lib/unicase/u8-is-lowercase.c: New file.
40380         * modules/unicase/u8-is-lowercase: New file.
40381
40382         Tests for module 'unicase/u32-is-uppercase'.
40383         * modules/unicase/u32-is-uppercase-tests: New file.
40384         * tests/unicase/test-u32-is-uppercase.c: New file.
40385
40386         Tests for module 'unicase/u16-is-uppercase'.
40387         * modules/unicase/u16-is-uppercase-tests: New file.
40388         * tests/unicase/test-u16-is-uppercase.c: New file.
40389
40390         Tests for module 'unicase/u8-is-uppercase'.
40391         * modules/unicase/u8-is-uppercase-tests: New file.
40392         * tests/unicase/test-u8-is-uppercase.c: New file.
40393         * tests/unicase/test-is-uppercase.h: New file.
40394
40395         New module 'unicase/u32-is-uppercase'.
40396         * lib/unicase/u32-is-uppercase.c: New file.
40397         * modules/unicase/u32-is-uppercase: New file.
40398
40399         New module 'unicase/u16-is-uppercase'.
40400         * lib/unicase/u16-is-uppercase.c: New file.
40401         * modules/unicase/u16-is-uppercase: New file.
40402
40403         New module 'unicase/u8-is-uppercase'.
40404         * lib/unicase/u8-is-uppercase.c: New file.
40405         * modules/unicase/u8-is-uppercase: New file.
40406
40407         New module 'unicase/u32-is-invariant'.
40408         * lib/unicase/u32-is-invariant.c: New file.
40409         * modules/unicase/u32-is-invariant: New file.
40410
40411         New module 'unicase/u16-is-invariant'.
40412         * lib/unicase/u16-is-invariant.c: New file.
40413         * modules/unicase/u16-is-invariant: New file.
40414
40415         New module 'unicase/u8-is-invariant'.
40416         * lib/unicase/u8-is-invariant.c: New file.
40417         * lib/unicase/invariant.h: New file.
40418         * lib/unicase/u-is-invariant.h: New file.
40419         * modules/unicase/u8-is-invariant: New file.
40420
40421         Tests for module 'unicase/u32-casecoll'.
40422         * modules/unicase/u32-casecoll-tests: New file.
40423         * tests/unicase/test-u32-casecoll.c: New file.
40424
40425         Tests for module 'unicase/u16-casecoll'.
40426         * modules/unicase/u16-casecoll-tests: New file.
40427         * tests/unicase/test-u16-casecoll.c: New file.
40428
40429         Tests for module 'unicase/u8-casecoll'.
40430         * modules/unicase/u8-casecoll-tests: New file.
40431         * tests/unicase/test-u8-casecoll.c: New file.
40432
40433         New module 'unicase/u32-casecoll'.
40434         * lib/unicase/u32-casecoll.c: New file.
40435         * modules/unicase/u32-casecoll: New file.
40436
40437         New module 'unicase/u16-casecoll'.
40438         * lib/unicase/u16-casecoll.c: New file.
40439         * modules/unicase/u16-casecoll: New file.
40440
40441         New module 'unicase/u8-casecoll'.
40442         * lib/unicase/u8-casecoll.c: New file.
40443         * lib/unicase/u-casecoll.h: New file.
40444         * modules/unicase/u8-casecoll: New file.
40445
40446         New module 'unicase/u32-casexfrm'.
40447         * lib/unicase/u32-casexfrm.c: New file.
40448         * modules/unicase/u32-casexfrm: New file.
40449
40450         New module 'unicase/u16-casexfrm'.
40451         * lib/unicase/u16-casexfrm.c: New file.
40452         * modules/unicase/u16-casexfrm: New file.
40453
40454         New module 'unicase/u8-casexfrm'.
40455         * lib/unicase/u8-casexfrm.c: New file.
40456         * lib/unicase/u-casexfrm.h: New file.
40457         * modules/unicase/u8-casexfrm: New file.
40458
40459         Tests for module 'unicase/u32-casecmp'.
40460         * modules/unicase/u32-casecmp-tests: New file.
40461         * tests/unicase/test-u32-casecmp.c: New file.
40462
40463         Tests for module 'unicase/u16-casecmp'.
40464         * modules/unicase/u16-casecmp-tests: New file.
40465         * tests/unicase/test-u16-casecmp.c: New file.
40466
40467         Tests for module 'unicase/u8-casecmp'.
40468         * modules/unicase/u8-casecmp-tests: New file.
40469         * tests/unicase/test-u8-casecmp.c: New file.
40470         * tests/unicase/test-casecmp.h: New file.
40471
40472         New module 'unicase/u32-casecmp'.
40473         * lib/unicase/u32-casecmp.c: New file.
40474         * modules/unicase/u32-casecmp: New file.
40475
40476         New module 'unicase/u16-casecmp'.
40477         * lib/unicase/u16-casecmp.c: New file.
40478         * modules/unicase/u16-casecmp: New file.
40479
40480         New module 'unicase/u8-casecmp'.
40481         * lib/unicase/u8-casecmp.c: New file.
40482         * lib/unicase/u-casecmp.h: New file.
40483         * modules/unicase/u8-casecmp: New file.
40484
40485         Tests for module 'unicase/u32-casefold'.
40486         * modules/unicase/u32-casefold-tests: New file.
40487         * tests/unicase/test-u32-casefold.c: New file.
40488
40489         Tests for module 'unicase/u16-casefold'.
40490         * modules/unicase/u16-casefold-tests: New file.
40491         * tests/unicase/test-u16-casefold.c: New file.
40492
40493         Tests for module 'unicase/u8-casefold'.
40494         * modules/unicase/u8-casefold-tests: New file.
40495         * tests/unicase/test-u8-casefold.c: New file.
40496
40497         New module 'unicase/u32-casefold'.
40498         * lib/unicase/u32-casefold.c: New file.
40499         * modules/unicase/u32-casefold: New file.
40500
40501         New module 'unicase/u16-casefold'.
40502         * lib/unicase/u16-casefold.c: New file.
40503         * modules/unicase/u16-casefold: New file.
40504
40505         New module 'unicase/u8-casefold'.
40506         * lib/unicase/u8-casefold.c: New file.
40507         * lib/unicase/u-casefold.h: New file.
40508         * modules/unicase/u8-casefold: New file.
40509
40510         New module 'unicase/tocasefold'.
40511         * lib/unicase/casefold.h: New file.
40512         * lib/unicase/tocasefold.c: New file.
40513         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40514         * modules/unicase/tocasefold: New file.
40515
40516         Tests for module 'unicase/u32-totitle'.
40517         * modules/unicase/u32-totitle-tests: New file.
40518         * tests/unicase/test-u32-totitle.c: New file.
40519
40520         Tests for module 'unicase/u16-totitle'.
40521         * modules/unicase/u16-totitle-tests: New file.
40522         * tests/unicase/test-u16-totitle.c: New file.
40523
40524         Tests for module 'unicase/u8-totitle'.
40525         * modules/unicase/u8-totitle-tests: New file.
40526         * tests/unicase/test-u8-totitle.c: New file.
40527
40528         New module 'unicase/u32-totitle'.
40529         * lib/unicase/u32-totitle.c: New file.
40530         * modules/unicase/u32-totitle: New file.
40531
40532         New module 'unicase/u16-totitle'.
40533         * lib/unicase/u16-totitle.c: New file.
40534         * modules/unicase/u16-totitle: New file.
40535
40536         New module 'unicase/u8-totitle'.
40537         * lib/unicase/u8-totitle.c: New file.
40538         * lib/unicase/u-totitle.h: New file.
40539         * modules/unicase/u8-totitle: New file.
40540
40541         Tests for module 'unicase/u32-tolower'.
40542         * modules/unicase/u32-tolower-tests: New file.
40543         * tests/unicase/test-u32-tolower.c: New file.
40544
40545         Tests for module 'unicase/u16-tolower'.
40546         * modules/unicase/u16-tolower-tests: New file.
40547         * tests/unicase/test-u16-tolower.c: New file.
40548
40549         Tests for module 'unicase/u8-tolower'.
40550         * modules/unicase/u8-tolower-tests: New file.
40551         * tests/unicase/test-u8-tolower.c: New file.
40552
40553         New module 'unicase/u32-tolower'.
40554         * lib/unicase/u32-tolower.c: New file.
40555         * modules/unicase/u32-tolower: New file.
40556
40557         New module 'unicase/u16-tolower'.
40558         * lib/unicase/u16-tolower.c: New file.
40559         * modules/unicase/u16-tolower: New file.
40560
40561         New module 'unicase/u8-tolower'.
40562         * lib/unicase/u8-tolower.c: New file.
40563         * modules/unicase/u8-tolower: New file.
40564
40565         Tests for module 'unicase/u32-toupper'.
40566         * modules/unicase/u32-toupper-tests: New file.
40567         * tests/unicase/test-u32-toupper.c: New file.
40568
40569         Tests for module 'unicase/u16-toupper'.
40570         * modules/unicase/u16-toupper-tests: New file.
40571         * tests/unicase/test-u16-toupper.c: New file.
40572
40573         Tests for module 'unicase/u8-toupper'.
40574         * modules/unicase/u8-toupper-tests: New file.
40575         * tests/unicase/test-u8-toupper.c: New file.
40576
40577         New module 'unicase/u32-toupper'.
40578         * lib/unicase/u32-toupper.c: New file.
40579         * modules/unicase/u32-toupper: New file.
40580
40581         New module 'unicase/u16-toupper'.
40582         * lib/unicase/u16-toupper.c: New file.
40583         * modules/unicase/u16-toupper: New file.
40584
40585         New module 'unicase/u8-toupper'.
40586         * lib/unicase/u8-toupper.c: New file.
40587         * modules/unicase/u8-toupper: New file.
40588
40589         New module 'unicase/u32-casemap'.
40590         * lib/unicase/u32-casemap.c: New file.
40591         * modules/unicase/u32-casemap: New file.
40592
40593         New module 'unicase/u16-casemap'.
40594         * lib/unicase/u16-casemap.c: New file.
40595         * modules/unicase/u16-casemap: New file.
40596
40597         New module 'unicase/u8-casemap'.
40598         * lib/unicase/unicasemap.h: New file.
40599         * lib/unicase/u8-casemap.c: New file.
40600         * lib/unicase/u-casemap.h: New file.
40601         * modules/unicase/u8-casemap: New file.
40602
40603         New module 'unicase/special-casing'.
40604         * lib/unicase/special-casing.h: New file.
40605         * lib/unicase/special-casing.c: New file.
40606         * lib/unicase/special-casing-table.gperf: New file, generated by
40607         gen-uni-tables.c.
40608         * modules/unicase/special-casing: New file.
40609
40610         Tests for module 'unicase/locale-language'.
40611         * modules/unicase/locale-language-tests: New file.
40612         * tests/unicase/test-locale-language.sh: New file.
40613         * tests/unicase/test-locale-language.c: New file.
40614
40615         New module 'unicase/locale-language'.
40616         * lib/unicase/locale-language.c: New file.
40617         * lib/unicase/locale-languages.gperf: New file.
40618         * modules/unicase/locale-language: New file.
40619
40620         Generate more tables for case conversion and case folding.
40621         * lib/gen-uni-tables.c (SCC_*): New enum items.
40622         (struct special_casing_rule): New type.
40623         (casing_rules, num_casing_rules, allocated_casing_rules): New
40624         variables.
40625         (add_casing_rule, fill_casing_rules): New functions.
40626         (struct casefold_rule): New type.
40627         (casefolding_rules, num_casefolding_rules,
40628         allocated_casefolding_rules): New variables.
40629         (fill_casefolding_rules): New function.
40630         (unicode_casefold): New variable.
40631         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40632         sort_casing_rules, output_casing_rules): New functions.
40633         (main): Accept to more arguments: SpecialCasing.txt and
40634         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40635         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40636         Output mapping for casefolding.
40637
40638         * lib/unicase.h: Include stdbool.h, uninorm.h.
40639         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40640         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40641         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40642         arguments.
40643         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40644         resultp arguments.
40645         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40646         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40647         resultp arguments.
40648         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40649         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40650         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40651         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40652         declarations.
40653         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40654
40655 2009-03-08  Bruno Haible  <bruno@clisp.org>
40656
40657         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40658         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40659         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40660         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40661
40662 2009-03-07  Bruno Haible  <bruno@clisp.org>
40663
40664         Adjust u*_normcmp, u*_normcoll API.
40665         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40666         u16_normcoll, u32_normcoll): Change failure conventions.
40667         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40668         errno and return -1.
40669         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40670
40671 2009-03-07  Bruno Haible  <bruno@clisp.org>
40672
40673         Tests for module 'uninorm/u32-normcoll'.
40674         * modules/uninorm/u32-normcoll-tests: New file.
40675         * tests/uninorm/test-u32-normcoll.c: New file.
40676
40677         Tests for module 'uninorm/u16-normcoll'.
40678         * modules/uninorm/u16-normcoll-tests: New file.
40679         * tests/uninorm/test-u16-normcoll.c: New file.
40680
40681         Tests for module 'uninorm/u8-normcoll'.
40682         * modules/uninorm/u8-normcoll-tests: New file.
40683         * tests/uninorm/test-u8-normcoll.c: New file.
40684
40685 2009-03-07  Bruno Haible  <bruno@clisp.org>
40686
40687         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40688         tests/uninorm/test-u32-normcmp.c.
40689         * tests/uninorm/test-u32-normcmp.c: Include it.
40690         (test_nonascii): New function, extracted from main. Add some more
40691         tests.
40692         (main): Invoke test_ascii and test_nonascii.
40693         * modules/uninorm/u32-normcmp-tests (Files): Add
40694         tests/uninorm/test-u32-normcmp.h.
40695         (Depends-on): Remove uninorm/u32-normcmp.
40696
40697         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40698         tests/uninorm/test-u16-normcmp.c.
40699         * tests/uninorm/test-u16-normcmp.c: Include it.
40700         (test_nonascii): New function, extracted from main. Add some more
40701         tests.
40702         (main): Invoke test_ascii and test_nonascii.
40703         * modules/uninorm/u16-normcmp-tests (Files): Add
40704         tests/uninorm/test-u16-normcmp.h.
40705         (Depends-on): Remove uninorm/u16-normcmp.
40706
40707         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40708         tests/uninorm/test-u8-normcmp.c.
40709         * tests/uninorm/test-u8-normcmp.c: Include it.
40710         (test_nonascii): New function, extracted from main. Add some more
40711         tests.
40712         (main): Invoke test_ascii and test_nonascii.
40713         * modules/uninorm/u8-normcmp-tests (Files): Add
40714         tests/uninorm/test-u8-normcmp.h.
40715         (Depends-on): Remove uninorm/u8-normcmp.
40716
40717 2009-03-07  Bruno Haible  <bruno@clisp.org>
40718
40719         New module 'uninorm/u32-normcoll'.
40720         * lib/uninorm/u32-normcoll.c: New file.
40721         * modules/uninorm/u32-normcoll: New file.
40722
40723         New module 'uninorm/u16-normcoll'.
40724         * lib/uninorm/u16-normcoll.c: New file.
40725         * modules/uninorm/u16-normcoll: New file.
40726
40727         New module 'uninorm/u8-normcoll'.
40728         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40729         declarations.
40730         * lib/uninorm/u8-normcoll.c: New file.
40731         * lib/uninorm/u-normcoll.h: New file.
40732         * modules/uninorm/u8-normcoll: New file.
40733
40734         New module 'uninorm/u32-normxfrm'.
40735         * lib/uninorm/u32-normxfrm.c: New file.
40736         * modules/uninorm/u32-normxfrm: New file.
40737
40738         New module 'uninorm/u16-normxfrm'.
40739         * lib/uninorm/u16-normxfrm.c: New file.
40740         * modules/uninorm/u16-normxfrm: New file.
40741
40742         New module 'uninorm/u8-normxfrm'.
40743         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40744         declarations.
40745         * lib/uninorm/u8-normxfrm.c: New file.
40746         * lib/uninorm/u-normxfrm.h: New file.
40747         * modules/uninorm/u8-normxfrm: New file.
40748
40749 2009-03-07  Bruno Haible  <bruno@clisp.org>
40750
40751         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40752         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40753         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40754
40755 2009-03-07  Bruno Haible  <bruno@clisp.org>
40756
40757         New module 'memxfrm'.
40758         * lib/memxfrm.h: New file.
40759         * lib/memxfrm.c: New file.
40760         * modules/memxfrm: New file.
40761
40762 2009-03-07  Bruno Haible  <bruno@clisp.org>
40763
40764         New module 'memcmp2'.
40765         * lib/memcmp2.h: New file.
40766         * lib/memcmp2.c: New file.
40767         * modules/memcmp2: New file.
40768
40769 2009-03-07  Bruno Haible  <bruno@clisp.org>
40770
40771         Tests for module 'uninorm/decomposing-form'.
40772         * modules/uninorm/decomposing-form-tests: New file.
40773         * tests/uninorm/test-decomposing-form.c: New file.
40774
40775         New module 'uninorm/decomposing-form'.
40776         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40777         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40778         Add 'decomposing_variant' field.
40779         * lib/uninorm/decomposing-form.c: New file.
40780         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40781         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40782         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40783         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40784         * modules/uninorm/decomposing-form: New file.
40785         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40786         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40787
40788 2009-03-07  Bruno Haible  <bruno@clisp.org>
40789
40790         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40791         strings.
40792
40793 2009-03-06  Bruno Haible  <bruno@clisp.org>
40794
40795         Tests for module 'uninorm/u32-normcmp'.
40796         * tests/uninorm/test-u32-normcmp.c: New file.
40797         * modules/uninorm/u32-normcmp-tests: New file.
40798
40799         Tests for module 'uninorm/u16-normcmp'.
40800         * tests/uninorm/test-u16-normcmp.c: New file.
40801         * modules/uninorm/u16-normcmp-tests: New file.
40802
40803         Tests for module 'uninorm/u8-normcmp'.
40804         * tests/uninorm/test-u8-normcmp.c: New file.
40805         * modules/uninorm/u8-normcmp-tests: New file.
40806
40807         New module 'uninorm/u32-normcmp'.
40808         * lib/uninorm/u32-normcmp.c: New file.
40809         * modules/uninorm/u32-normcmp: New file.
40810
40811         New module 'uninorm/u16-normcmp'.
40812         * lib/uninorm/u16-normcmp.c: New file.
40813         * modules/uninorm/u16-normcmp: New file.
40814
40815         New module 'uninorm/u8-normcmp'.
40816         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40817         declarations.
40818         * lib/uninorm/u8-normcmp.c: New file.
40819         * lib/uninorm/u-normcmp.h: New file.
40820         * modules/uninorm/u8-normcmp: New file.
40821
40822 2009-03-06  Bruno Haible  <bruno@clisp.org>
40823
40824         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40825         Reported by Eric Blake.
40826
40827 2009-03-06  Eric Blake  <ebb9@byu.net>
40828             Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40831         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40832         condition.
40833         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40834         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40835         condition.
40836         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40837
40838 2009-03-06  Eric Blake  <ebb9@byu.net>
40839
40840         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40841         to avoid compiler warnings.
40842         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40843
40844 2009-03-05  Bruno Haible  <bruno@clisp.org>
40845
40846         * tests/test-ftell.c (main): Disable test beyond end of file on
40847         FreeMiNT.
40848         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40849
40850 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40851
40852         * lib/filevercmp.c: Move hidden files up in ordering.
40853         * tests/test-filevercmp.c: Add tests for hidden files.
40854
40855 2009-03-04  Bruno Haible  <bruno@clisp.org>
40856
40857         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40858         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40859         AM_CFLAGS.
40860         Reported by Simon Josefsson.
40861
40862 2009-03-03  Bruno Haible  <bruno@clisp.org>
40863
40864         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40865         Reported by Simon Josefsson.
40866
40867         * doc/ld-version-script.texi: Update node reference.
40868
40869 2009-03-03  Bruno Haible  <bruno@clisp.org>
40870
40871         * modules/visibility (License): Change to 'unlimited'.
40872         Suggested by Simon Josefsson.
40873
40874 2009-03-03  Jim Meyering  <meyering@redhat.com>
40875
40876         unlinkdir: cannot_unlink_dir may modify process state
40877         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40878         it's neither thread-safe nor appropriate for use in a library.
40879
40880 2009-03-03  Eric Blake  <ebb9@byu.net>
40881
40882         test-closein: silence test under Darwin
40883         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40884         care if it dies from EPIPE or EBADF.
40885
40886 2009-03-03  Bruno Haible  <bruno@clisp.org>
40887
40888         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40889         earlier.
40890         * doc/visibility.texi: Fix @node and @section.
40891
40892 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40893
40894         * doc/gnulib.texi: Link to sections for ld version script and
40895         visibility.
40896         * doc/visibility.texi: Add @node and @section.
40897         * modules/ld-version-script: New module.
40898         * m4/ld-version-script.m4: New file.
40899         * doc/ld-version-script.texi: New file.
40900
40901 2009-03-02  David Lutterkort  <lutter@redhat.com>
40902
40903         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40905
40906 2009-03-02  Bruno Haible  <bruno@clisp.org>
40907
40908         * doc/visibility.texi: Mention libtool's -export-symbols option.
40909
40910 2009-03-02  Jim Meyering  <meyering@redhat.com>
40911
40912         announce-gen: new option: --no-print-checksums
40913         * build-aux/announce-gen (usage): Describe it.
40914         (print_checksums): Print a newline here, not in the [*] footnote.
40915         (main): Honor it.
40916
40917 2009-03-01  Bruno Haible  <bruno@clisp.org>
40918
40919         Use socklen_t in the native Windows replacements prototypes.
40920         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40921         instead of 'int'.
40922         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40923         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40924         * modules/getsockopt (Depends-on): Add socklen.
40925         * modules/setsockopt (Depends-on): Add socklen.
40926
40927 2009-03-01  Bruno Haible  <bruno@clisp.org>
40928
40929         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40930         least 4.2.
40931
40932 2009-03-01  Eric Blake  <ebb9@byu.net>
40933             Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40936         error messages.
40937         * lib/wait-process.c (wait_subprocess): Omit error message about
40938         deadly signal sent to the child of termsigp != NULL.
40939
40940 2009-03-01  Eric Blake  <ebb9@byu.net>
40941
40942         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40943
40944 2009-03-01  Bruno Haible  <bruno@clisp.org>
40945
40946         Avoid a gcc warning.
40947         * tests/test-sched.c (b): Make global.
40948         Reported by Eric Blake.
40949
40950 2009-01-19  Martin Lambers  <marlam@marlam.de>
40951
40952         Provide POSIX semantics for socket timeout options on W32.
40953         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40954         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40955         * modules/setsockopt: Depend on sys_time module for struct timeval.
40956         * modules/getsockopt: Depend on sys_time module for struct timeval.
40957
40958 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40959
40960         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40961         __USE_GNU, for consistency with netdb.in.h.
40962         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40963
40964 2009-03-01  Bruno Haible  <bruno@clisp.org>
40965
40966         More support for FreeMiNT.
40967         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40968         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40969
40970 2009-03-01  Bruno Haible  <bruno@clisp.org>
40971
40972         More support for FreeMiNT.
40973         * lib/fpurge.c (fpurge): Correct last commit.
40974         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40975
40976 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40977
40978         Fix unportable awk script in vc-list-files.
40979         * build-aux/vc-list-files: In the replacement awk script, use
40980         substr with a second argument of 1, not zero.
40981         Report by Simon Josefsson.
40982
40983 2009-02-28  Bruno Haible  <bruno@clisp.org>
40984
40985         More support for FreeMiNT.
40986         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40987         to FreeMiNT today.
40988         * lib/fwriting.c (fwriting): Likewise.
40989         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40990
40991 2009-02-28  Bruno Haible  <bruno@clisp.org>
40992
40993         * tests/test-freadseek.c (main): Disable test beyond end of file on
40994         FreeMiNT.
40995         * tests/test-ftello.c (main): Likewise.
40996         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40997
40998 2009-02-28  Bruno Haible  <bruno@clisp.org>
40999
41000         Add tentative support for FreeMiNT.
41001         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41002         * lib/fpurge.c (fpurge): Likewise.
41003         * lib/freadable.c (freadable): Likewise.
41004         * lib/freading.c (freading): Likewise.
41005         * lib/freadptr.c (freadptr): Likewise.
41006         * lib/freadseek.c (freadptrinc): Likewise.
41007         * lib/fseeko.c (rpl_fseeko): Likewise.
41008         * lib/fseterr.c (fseterr): Likewise.
41009         * lib/fwritable.c (fwritable): Likewise.
41010         * lib/fwriting.c (fwriting): Likewise.
41011         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41012         Hourihane.
41013         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41014
41015 2009-02-28  Bruno Haible  <bruno@clisp.org>
41016
41017         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41018         SIGCHLD.
41019         Reported by Jim Meyering.
41020
41021 2009-02-28  Bruno Haible  <bruno@clisp.org>
41022
41023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41024         Mention the results of these tests on various platforms.
41025         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41026         order.
41027         * doc/posix-functions/printf.texi: Likewise.
41028         * doc/posix-functions/snprintf.texi: Likewise.
41029         * doc/posix-functions/sprintf.texi: Likewise.
41030         * doc/posix-functions/vfprintf.texi: Likewise.
41031         * doc/posix-functions/vprintf.texi: Likewise.
41032         * doc/posix-functions/vsnprintf.texi: Likewise.
41033         * doc/posix-functions/vsprintf.texi: Likewise.
41034         * doc/glibc-functions/obstack_printf.texi: Likewise.
41035         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41036
41037 2009-02-28  Bruno Haible  <bruno@clisp.org>
41038
41039         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41040         Reported by Loïc Minier <lool@dooz.org>.
41041
41042 2009-02-27  Bruno Haible  <bruno@clisp.org>
41043
41044         * gnulib-tool (func_import): Make the sed expression used to create the
41045         sed script for updating the .gitignore file POSIX compliant.
41046         Reported by Eric Blake.
41047
41048 2009-02-27  Bruno Haible  <bruno@clisp.org>
41049
41050         * gnulib-tool (sed): Don't alias as "sed --posix".
41051         Reported by Eric Blake.
41052
41053 2009-02-27  Bruno Haible  <bruno@clisp.org>
41054
41055         Avoid test link errors.
41056         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41057         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41058         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41059         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41060         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41061
41062 2009-02-27  Bruno Haible  <bruno@clisp.org>
41063
41064         Avoid spurious "(cached)" in configure output.
41065         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41066         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41067         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41068         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41069         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41070         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41071         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41072         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41073         Reported by Eric Blake.
41074
41075 2009-02-27  Eric Blake  <ebb9@byu.net>
41076
41077         printf: fix regression in previous patch
41078         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41079
41080 2009-02-27  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41083         value.
41084         * lib/stdint.in.h: Likewise.
41085         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41086
41087 2009-02-27  Eric Blake  <ebb9@byu.net>
41088
41089         doc: mention more functions added in cygwin 1.7.0
41090         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41091         addition.
41092         * doc/posix-functions/open_wmemstream.texi: Likewise.
41093         * doc/posix-functions/wcsnlen.texi: Likewise.
41094         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41095         * doc/posix-functions/wcstod.texi: Likewise.
41096         * doc/posix-functions/wcstof.texi: Likewise.
41097         * doc/posix-functions/wcstoimax.texi: Likewise.
41098         * doc/posix-functions/wcstok.texi: Likewise.
41099         * doc/posix-functions/wcstoumax.texi: Likewise.
41100
41101         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41103         * doc/posix-functions/fprintf.texi: Update.
41104         * doc/posix-functions/printf.texi: Update.
41105         * doc/posix-functions/snprintf.texi: Update.
41106         * doc/posix-functions/sprintf.texi: Update.
41107         * doc/posix-functions/vfprintf.texi: Update.
41108         * doc/posix-functions/vprintf.texi: Update.
41109         * doc/posix-functions/vsnprintf.texi: Update.
41110         * doc/posix-functions/vsprintf.texi: Update.
41111         * doc/glibc-functions/obstack_printf.texi: Update.
41112         * doc/glibc-functions/obstack_vprintf.texi: Update.
41113
41114 2009-02-26  Eric Blake  <ebb9@byu.net>
41115
41116         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41117         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41118         compilation bug by using runtime conversion.
41119         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41120         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41121         * modules/ceill-tests (Files): Use nan.h.
41122         * modules/floorl-tests (Files): Likewise.
41123         * modules/frexpl-tests (Files): Likewise.
41124         * modules/isnanl-tests (Files): Likewise.
41125         * modules/ldexpl-tests (Files): Likewise.
41126         * modules/roundl-tests (Files): Likewise.
41127         * modules/truncl-tests (Files): Likewise.
41128         * tests/test-ceill.c (main): Use a working NaN.
41129         * tests/test-floorl.c (main): Likewise.
41130         * tests/test-frexpl.c (main): Likewise.
41131         * tests/test-isnan.c (test_long_double): Likewise.
41132         * tests/test-isnanl.h (main): Likewise.
41133         * tests/test-ldexpl.h (main): Likewise.
41134         * tests/test-roundl.h (main): Likewise.
41135         * tests/test-truncl.h (main): Likewise.
41136         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41137
41138 2009-02-26  Eric Blake  <ebb9@byu.net>
41139             Bruno Haible  <bruno@clisp.org>
41140
41141         Work around a *printf bug with %ls on Solaris.
41142         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41143         precision is specified, sprintf stops converting the wide string
41144         argument when the number of bytes that have been produced by this
41145         conversion equals or exceeds the precision.
41146         * doc/posix-functions/fprintf.texi: Update.
41147         * doc/posix-functions/printf.texi: Update.
41148         * doc/posix-functions/snprintf.texi: Update.
41149         * doc/posix-functions/sprintf.texi: Update.
41150         * doc/posix-functions/vfprintf.texi: Update.
41151         * doc/posix-functions/vprintf.texi: Update.
41152         * doc/posix-functions/vsnprintf.texi: Update.
41153         * doc/posix-functions/vsprintf.texi: Update.
41154         * doc/glibc-functions/obstack_printf.texi: Update.
41155         * doc/glibc-functions/obstack_vprintf.texi: Update.
41156
41157 2009-02-26  Eric Blake  <ebb9@byu.net>
41158
41159         stdlib: favor compiler check of random.h
41160         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41161         to avoid an ObjC random.h installed by Swarm.
41162
41163 2009-02-26  Bruno Haible  <bruno@clisp.org>
41164
41165         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41166         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41167         Reported by Gary V. Vaughan <gary@gnu.org>.
41168
41169 2009-02-26  Bruno Haible  <bruno@clisp.org>
41170
41171         Fix *printf behaviour regarding the %ls directive.
41172         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41173         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41174         NEED_PRINTF_DIRECTIVE_LS.
41175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41176         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41178         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41179         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41180         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41181         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41186         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41187         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41188         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41189         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41190         * doc/posix-functions/fprintf.texi: Update.
41191         * doc/posix-functions/printf.texi: Update.
41192         * doc/posix-functions/snprintf.texi: Update.
41193         * doc/posix-functions/sprintf.texi: Update.
41194         * doc/posix-functions/vfprintf.texi: Update.
41195         * doc/posix-functions/vprintf.texi: Update.
41196         * doc/posix-functions/vsnprintf.texi: Update.
41197         * doc/posix-functions/vsprintf.texi: Update.
41198         * doc/glibc-functions/obstack_printf.texi: Update.
41199         * doc/glibc-functions/obstack_vprintf.texi: Update.
41200         Reported by Eric Blake.
41201
41202 2009-02-25  Bruno Haible  <bruno@clisp.org>
41203
41204         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41205         with known value.
41206         Reported by Gary V. Vaughan <gary@gnu.org>.
41207
41208 2009-02-25  Bruno Haible  <bruno@clisp.org>
41209
41210         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41211         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41212         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41213         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41214         Reported by Gary V. Vaughan <gary@gnu.org>.
41215
41216 2009-02-25  Bruno Haible  <bruno@clisp.org>
41217
41218         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41219         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41220         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41221         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41222         Reported by Gary V. Vaughan <gary@gnu.org>.
41223
41224 2009-02-25  Eric Blake  <ebb9@byu.net>
41225
41226         tests: skip fseek/ftell tests if ungetc is broken
41227         * m4/ungetc.m4: New file.
41228         * modules/fseek-tests: Split test, so ungetc dependency is
41229         separate from rest of test.
41230         * modules/fseeko-tests: Likewise.
41231         * modules/ftell-tests: Likewise.
41232         * modules/ftello-tests: Likewise.
41233         * tests/test-fseek.c (main): Isolate ungetc dependency.
41234         * tests/test-fseeko.c (main): Likewise.
41235         * tests/test-ftell.c (main): Likewise.
41236         * tests/test-ftello.c (main): Likewise.
41237         * tests/test-fseek2.sh: New file.
41238         * tests/test-fseeko2.sh: Likewise.
41239         * tests/test-ftell2.sh: Likewise.
41240         * tests/test-ftello2.sh: Likewise.
41241
41242 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41243
41244         test-getaddrinfo: fix usage of skip return code 77
41245         * tests/test-gettaddrinfo.c: Return skip code 77 only
41246         for first occurance of skip (4x77 is not 77)
41247
41248 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41249
41250         strtod: avoid C99 decl-after-statement
41251         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41252
41253 2009-02-24  Eric Blake  <ebb9@byu.net>
41254
41255         strtod: detect HP-UX 11.31 bug
41256         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41257         Reported by Gary V. Vaughan.
41258
41259 2009-02-23  Bruno Haible  <bruno@clisp.org>
41260
41261         Fix invalid read past end of memory block.
41262         * lib/vasnprintf.c (DCHAR_SET): Define.
41263         (local_wcslen): Define only when needed.
41264         (local_strnlen, local_wcsnlen): New functions.
41265         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41266         directives that involve a conversion ourselves.
41267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41268         wcsnlen, mbrtowc, wcrtomb.
41269         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41270         * tests/test-vasprintf-posix.c (test_function): Likewise.
41271         * tests/test-snprintf-posix.h (test_function): Likewise.
41272         * tests/test-sprintf-posix.h (test_function): Likewise.
41273         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41274
41275 2009-02-22  Bruno Haible  <bruno@clisp.org>
41276
41277         Implement new clarified decomposition of Hangul syllables.
41278         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41279         of type LTV, return only a pairwise decomposition.
41280         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41281         Likewise.
41282         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41283         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41284         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41285
41286 2009-02-22  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41289         zero-length results and shrink excess allocated memory.
41290         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41291         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41292         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41293         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41294         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41295         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41296         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41297         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41298         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41299         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41300         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41301         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41302
41303 2009-02-21  Bruno Haible  <bruno@clisp.org>
41304
41305         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41306         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41307         spaces after a period. Put a space between a macro name and its
41308         argument list. Trivial rewordings.
41309         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41310         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41311         (main): Return 0 explicitly.
41312
41313 2009-02-21  Bruno Haible  <bruno@clisp.org>
41314
41315         Tests for module 'uninorm/filter'.
41316         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41317         * modules/uninorm/filter-tests: New file.
41318
41319         New module 'uninorm/filter'.
41320         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41321         uninorm_filter_flush, uninorm_filter_free): New declarations.
41322         * lib/uninorm/uninorm-filter.c: New file.
41323         * modules/uninorm/filter: New file.
41324
41325 2009-02-21  Bruno Haible  <bruno@clisp.org>
41326
41327         Tests for module 'uninorm/nfkc'.
41328         * tests/uninorm/test-nfkc.c: New file.
41329         * tests/uninorm/test-u8-nfkc.c: New file.
41330         * tests/uninorm/test-u16-nfkc.c: New file.
41331         * tests/uninorm/test-u32-nfkc.c: New file.
41332         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41333         * tests/uninorm/test-u32-nfkc-big.c: New file.
41334         * modules/uninorm/nfkc-tests: New file.
41335
41336         New module 'uninorm/nfkc'.
41337         * lib/uninorm/nfkc.c: New file.
41338         * modules/uninorm/nfkc: New file.
41339
41340         Tests for module 'uninorm/nfkd'.
41341         * tests/uninorm/test-nfkd.c: New file.
41342         * tests/uninorm/test-u8-nfkd.c: New file.
41343         * tests/uninorm/test-u16-nfkd.c: New file.
41344         * tests/uninorm/test-u32-nfkd.c: New file.
41345         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41346         * tests/uninorm/test-u32-nfkd-big.c: New file.
41347         * modules/uninorm/nfkd-tests: New file.
41348
41349         New module 'uninorm/nfkd'.
41350         * lib/uninorm/nfkd.c: New file.
41351         * modules/uninorm/nfkd: New file.
41352
41353         Tests for module 'uninorm/nfc'.
41354         * tests/uninorm/test-nfc.c: New file.
41355         * tests/uninorm/test-u8-nfc.c: New file.
41356         * tests/uninorm/test-u16-nfc.c: New file.
41357         * tests/uninorm/test-u32-nfc.c: New file.
41358         * tests/uninorm/test-u32-nfc-big.sh: New file.
41359         * tests/uninorm/test-u32-nfc-big.c: New file.
41360         * modules/uninorm/nfc-tests: New file.
41361
41362         New module 'uninorm/nfc'.
41363         * lib/uninorm/nfc.c: New file.
41364         * modules/uninorm/nfc: New file.
41365
41366         Tests for module 'uninorm/nfd'.
41367         * tests/uninorm/test-nfd.c: New file.
41368         * tests/uninorm/test-u8-nfd.c: New file.
41369         * tests/uninorm/test-u16-nfd.c: New file.
41370         * tests/uninorm/test-u32-nfd.c: New file.
41371         * tests/uninorm/test-u32-nfd-big.sh: New file.
41372         * tests/uninorm/test-u32-nfd-big.c: New file.
41373         * tests/uninorm/test-u32-normalize-big.h: New file.
41374         * tests/uninorm/test-u32-normalize-big.c: New file.
41375         * tests/uninorm/NormalizationTest.txt: New file, created from
41376         Unicode 5.1.0 NormalizationTest.txt.
41377         * modules/uninorm/nfd-tests: New file.
41378
41379         New module 'uninorm/nfd'.
41380         * lib/uninorm/nfd.c: New file.
41381         * modules/uninorm/nfd: New file.
41382
41383         New module 'uninorm/u32-normalize'.
41384         * lib/uninorm/u32-normalize.c: New file.
41385         * modules/uninorm/u32-normalize: New file.
41386
41387         New module 'uninorm/u16-normalize'.
41388         * lib/uninorm/u16-normalize.c: New file.
41389         * modules/uninorm/u16-normalize: New file.
41390
41391         New module 'uninorm/u8-normalize'.
41392         * lib/uninorm/u8-normalize.c: New file.
41393         * lib/uninorm/normalize-internal.h: New file.
41394         * lib/uninorm/u-normalize-internal.h: New file.
41395         * modules/uninorm/u8-normalize: New file.
41396
41397         New module 'uninorm/decompose-internal'.
41398         * lib/uninorm/decompose-internal.c: New file.
41399         * modules/uninorm/decompose-internal: New file.
41400
41401         Tests for module 'uninorm/composition'.
41402         * tests/uninorm/test-composition.c: New file.
41403         * modules/uninorm/composition-tests: New file.
41404
41405         New module 'uninorm/composition'.
41406         * lib/uninorm/composition.c: New file.
41407         * lib/uninorm/composition-table.gperf: New file, generated by
41408         gen-uni-tables.
41409         * modules/uninorm/composition: New file.
41410
41411         Tests for module 'uninorm/compat-decomposition'.
41412         * tests/uninorm/test-compat-decomposition.c: New file.
41413         * modules/uninorm/compat-decomposition-tests: New file.
41414
41415         New module 'uninorm/compat-decomposition'.
41416         * lib/uninorm/decompose-internal.h: New file.
41417         * lib/uninorm/compat-decomposition.c: New file.
41418         * modules/uninorm/compat-decomposition: New file.
41419
41420         Tests for module 'uninorm/canonical-decomposition'.
41421         * tests/uninorm/test-canonical-decomposition.c: New file.
41422         * modules/uninorm/canonical-decomposition-tests: New file.
41423
41424         New module 'uninorm/canonical-decomposition'.
41425         * lib/uninorm/canonical-decomposition.c: New file.
41426         * modules/uninorm/canonical-decomposition: New file.
41427
41428         Tests for module 'uninorm/decomposition'.
41429         * tests/uninorm/test-decomposition.c: New file.
41430         * modules/uninorm/decomposition-tests: New file.
41431
41432         New module 'uninorm/decomposition'.
41433         * lib/uninorm/decomposition.c: New file.
41434         * modules/uninorm/decomposition: New file.
41435
41436         New module 'uninorm/decomposition-table'.
41437         * lib/uninorm/decomposition-table.h: New file.
41438         * lib/uninorm/decomposition-table.c: New file.
41439         * lib/uninorm/decomposition-table1.h: New file, generated by
41440         gen-uni-tables.
41441         * lib/uninorm/decomposition-table2.h: New file, generated by
41442         gen-uni-tables.
41443         * modules/uninorm/decomposition-table: New file.
41444
41445         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41446         (UC_DECOMP_*): New enumeration items.
41447         (get_decomposition): New function.
41448         (struct decomp_table): New type.
41449         (output_decomposition, output_decomposition_tables): New functions.
41450         (unicode_composition_exclusions): New variable.
41451         (fill_composition_exclusions, debug_output_composition_tables): New
41452         functions.
41453         (main): Accept one more argument. Invoke fill_composition_exclusions.
41454         Output decomposition and composition tables.
41455
41456         New module 'uninorm/base'.
41457         * lib/uninorm.h: New file.
41458         * lib/unictype.h: Update comment.
41459         * modules/uninorm/base: New file.
41460
41461 2009-02-21  David Lutterkort  <lutter@redhat.com>
41462
41463         Tests for module 'safe-alloc'.
41464         * tests/test-safe-alloc.c: New file.
41465         * modules/safe-alloc-tests: New file.
41466
41467         New module 'safe-alloc'.
41468         * lib/safe-alloc.h: New file.
41469         * lib/safe-alloc.c: New file.
41470         * m4/safe-alloc.m4: New file.
41471         * modules/safe-alloc: New file.
41472         * doc/safe-alloc.texi: New file.
41473         * doc/gnulib.texi: Include it.
41474         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41475         safe-alloc.
41476
41477 2009-02-18  Bruno Haible  <bruno@clisp.org>
41478
41479         Fix link error on non-glibc systems.
41480         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41481         variable.
41482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41483
41484 2009-02-18  Jim Meyering  <meyering@redhat.com>
41485
41486         fts: avoid used-uninitialized error due to recent change
41487         * lib/fts.c (fts_read): Guard uses of the new member,
41488         parent->fts_n_dirs_remaining, since it's not relevant for
41489         the parent of a directory specified on the command-line.
41490
41491 2009-02-17  James Youngman  <jay@gnu.org>
41492             Bruno Haible  <bruno@clisp.org>
41493
41494         * m4/include_next.m4: Reformulate comment.
41495
41496 2009-02-16  Jim Meyering  <meyering@redhat.com>
41497
41498         fts: add #if guards so that the fts_lgpl module still builds
41499         * lib/fts.c: Guard just-added hash-table-using parts with
41500         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41501         Reported by Simon Josefsson.
41502
41503 2009-02-15  Bruno Haible  <bruno@clisp.org>
41504
41505         * modules/array-mergesort-tests: New file.
41506         * tests/test-array-mergesort.c: New file.
41507
41508         New module 'array-mergesort'.
41509         * modules/array-mergesort: New file.
41510         * lib/array-mergesort.h: New file.
41511
41512 2009-02-15  Bruno Haible  <bruno@clisp.org>
41513
41514         Fix 2009-02-07 commit.
41515         * lib/gen-uni-tables.c (output_predicate, output_category,
41516         output_combclass, output_bidi_category, output_decimal_digit,
41517         output_digit, output_numeric, output_mirror, output_scripts,
41518         output_ident_category, output_simple_mapping): Fix format directives.
41519         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41520
41521 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41522
41523         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41524         fixes are available from IBM.
41525
41526 2009-02-13  Jim Meyering  <meyering@redhat.com>
41527
41528         fts: arrange not to stat non-directories in more cases
41529         This makes GNU find (when it doesn't need to stat each file)
41530         *much* more efficient at traversing reiserfs file systems.
41531         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41532         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41533         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41534         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41535         (leaf_optimization_applies): New function.
41536         (LCO_hash, LCO_compare): New helper functions.
41537         (link_count_optimize_ok): New function.
41538         (fts_stat): Initialize new member (if dir).
41539         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41540         we've just stat'ed a directory.  Skip the stat call when possible.
41541         ---
41542         Note this AFS-related exchange:
41543         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41544         and note find's pioctl call in find/fstype.c.
41545         But that is necessary only if you want to enable the
41546         optimization for AFS, and for now, I don't.
41547
41548         fts: move a function definition "up" (no semantic change)
41549         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41550         "up" to precede upcoming use of a related function.
41551
41552 2009-02-11  Jim Meyering  <meyering@redhat.com>
41553
41554         fts: correct internal computation of nlinks (optimization-related)
41555         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41556         whether the current entry is a directory, so don't test it.
41557
41558 2009-02-10  Bruno Haible  <bruno@clisp.org>
41559
41560         Tests for module 'uniwbrk/ulc-wordbreaks'.
41561         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41562         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41563         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41564
41565         Tests for module 'uniwbrk/u32-wordbreaks'.
41566         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41567         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41568
41569         Tests for module 'uniwbrk/u16-wordbreaks'.
41570         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41571         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41572
41573         Tests for module 'uniwbrk/u8-wordbreaks'.
41574         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41575         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41576
41577 2009-02-10  Bruno Haible  <bruno@clisp.org>
41578
41579         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41580         property.
41581         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41582         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41583         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41584
41585 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41586
41587         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41588         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41589
41590 2009-02-10  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41593         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41594         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41595         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41596         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41597         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41598
41599 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41600
41601         * lib/sockets.h (gl_fd_to_handle): New function.
41602
41603         * tests/test-sockets.c: Call gl_fd_to_handle.
41604
41605 2009-02-09  Bruno Haible  <bruno@clisp.org>
41606
41607         * doc/havelib.texi: Document the conventions on bi-arch systems.
41608
41609 2009-02-08  Bruno Haible  <bruno@clisp.org>
41610
41611         Document the AC_LIB_LINKFLAGS macro.
41612         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41613         * doc/gnulib.texi: Include it.
41614
41615 2009-02-08  Bruno Haible  <bruno@clisp.org>
41616
41617         Fix wrong order of sections, compared to TOC.
41618         * doc/gnulib.texi: Include relocatable-maint.texi after the
41619         "Regular expressions" node, not before.
41620
41621 2009-02-08  Bruno Haible  <bruno@clisp.org>
41622
41623         Tests for module 'unicase/totitle'.
41624         * modules/unicase/totitle-tests: New file.
41625
41626         Tests for module 'unicase/tolower'.
41627         * modules/unicase/tolower-tests: New file.
41628
41629         Tests for module 'unicase/toupper'.
41630         * modules/unicase/toupper-tests: New file.
41631         * tests/unicase/test-mapping-part1.h: New file.
41632         * tests/unicase/test-mapping-part2.h: New file.
41633
41634         New module 'unicase/totitle'.
41635         * modules/unicase/totitle: New file.
41636         * lib/unicase/totitle.c: New file.
41637
41638         New module 'unicase/tolower'.
41639         * modules/unicase/tolower: New file.
41640         * lib/unicase/tolower.c: New file.
41641
41642         New module 'unicase/toupper'.
41643         * modules/unicase/toupper: New file.
41644         * lib/unicase/toupper.c: New file.
41645         * lib/unicase/simple-mapping.h: New file.
41646
41647         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41648         (mapping_table): New structure.
41649         (output_simple_mapping): New function.
41650         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41651         * modules/gen-uni-tables (Description): Update.
41652         * lib/unicase/toupper.h: New file, automatically generated by
41653         gen-uni-tables.
41654         * lib/unicase/tolower.h: New file, automatically generated by
41655         gen-uni-tables.
41656         * lib/unicase/totitle.h: New file, automatically generated by
41657         gen-uni-tables.
41658         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41659         gen-uni-tables.
41660         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41661         gen-uni-tables.
41662         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41663         gen-uni-tables.
41664
41665         New module 'unicase/base'.
41666         * modules/unicase/base: New file.
41667         * lib/unicase.h: New file.
41668
41669 2009-02-08  Bruno Haible  <bruno@clisp.org>
41670
41671         New module 'uniwbrk/ulc-wordbreaks'.
41672         * modules/uniwbrk/ulc-wordbreaks: New file.
41673         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41674
41675         New module 'uniwbrk/u32-wordbreaks'.
41676         * modules/uniwbrk/u32-wordbreaks: New file.
41677         * lib/uniwbrk/u32-wordbreaks.c: New file.
41678
41679         New module 'uniwbrk/u16-wordbreaks'.
41680         * modules/uniwbrk/u16-wordbreaks: New file.
41681         * lib/uniwbrk/u16-wordbreaks.c: New file.
41682
41683         New module 'uniwbrk/u8-wordbreaks'.
41684         * modules/uniwbrk/u8-wordbreaks: New file.
41685         * lib/uniwbrk/u8-wordbreaks.c: New file.
41686         * lib/uniwbrk/u-wordbreaks.h: New file.
41687
41688         New module 'uniwbrk/table'.
41689         * modules/uniwbrk/table: New file.
41690         * lib/uniwbrk/wbrktable.h: New file.
41691         * lib/uniwbrk/wbrktable.c: New file.
41692
41693         New module 'uniwbrk/wordbreak-property'.
41694         * modules/uniwbrk/wordbreak-property: New file.
41695         * lib/uniwbrk/wordbreak-property.c: New file.
41696
41697         * lib/gen-uni-tables.c (WBP_*): New enum items.
41698         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41699         (unicode_org_wbp): New variable.
41700         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41701         New functions.
41702         (wbp_table): New structure.
41703         (output_wbp, output_wbrk_tables): New functions.
41704         (main): Accept additional argument. Invoke fill_org_wbp,
41705         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41706         output_wbrk_tables.
41707         * modules/gen-uni-tables (Description): Update.
41708         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41709         gen-uni-tables.
41710
41711         New module 'uniwbrk/base'.
41712         * modules/uniwbrk/base: New file.
41713         * lib/uniwbrk.h: New file.
41714
41715 2009-02-08  Bruno Haible  <bruno@clisp.org>
41716
41717         Update to Unicode 5.1.0.
41718         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41719         U+2185..U+2188.
41720         (is_property_default_ignorable_code_point): Don't include characters
41721         of category Cc or Cs and not-a-characters.
41722         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41723         U+0D79, U+109E, U+109F, U+A60C.
41724         * lib/unictype/bidi_of.h: Regenerated.
41725         * lib/unictype/blocks.h: Regenerated.
41726         * lib/unictype/categ_C.h: Regenerated.
41727         * lib/unictype/categ_Cf.h: Regenerated.
41728         * lib/unictype/categ_Cn.h: Regenerated.
41729         * lib/unictype/categ_L.h: Regenerated.
41730         * lib/unictype/categ_Ll.h: Regenerated.
41731         * lib/unictype/categ_Lm.h: Regenerated.
41732         * lib/unictype/categ_Lo.h: Regenerated.
41733         * lib/unictype/categ_Lu.h: Regenerated.
41734         * lib/unictype/categ_M.h: Regenerated.
41735         * lib/unictype/categ_Mc.h: Regenerated.
41736         * lib/unictype/categ_Me.h: Regenerated.
41737         * lib/unictype/categ_Mn.h: Regenerated.
41738         * lib/unictype/categ_N.h: Regenerated.
41739         * lib/unictype/categ_Nd.h: Regenerated.
41740         * lib/unictype/categ_Nl.h: Regenerated.
41741         * lib/unictype/categ_No.h: Regenerated.
41742         * lib/unictype/categ_P.h: Regenerated.
41743         * lib/unictype/categ_Pd.h: Regenerated.
41744         * lib/unictype/categ_Pe.h: Regenerated.
41745         * lib/unictype/categ_Pf.h: Regenerated.
41746         * lib/unictype/categ_Pi.h: Regenerated.
41747         * lib/unictype/categ_Po.h: Regenerated.
41748         * lib/unictype/categ_Ps.h: Regenerated.
41749         * lib/unictype/categ_S.h: Regenerated.
41750         * lib/unictype/categ_Sk.h: Regenerated.
41751         * lib/unictype/categ_Sm.h: Regenerated.
41752         * lib/unictype/categ_So.h: Regenerated.
41753         * lib/unictype/categ_of.h: Regenerated.
41754         * lib/unictype/combining.h: Regenerated.
41755         * lib/unictype/ctype_alnum.h: Regenerated.
41756         * lib/unictype/ctype_alpha.h: Regenerated.
41757         * lib/unictype/ctype_graph.h: Regenerated.
41758         * lib/unictype/ctype_lower.h: Regenerated.
41759         * lib/unictype/ctype_print.h: Regenerated.
41760         * lib/unictype/ctype_punct.h: Regenerated.
41761         * lib/unictype/ctype_upper.h: Regenerated.
41762         * lib/unictype/decdigit.h: Regenerated.
41763         * lib/unictype/digit.h: Regenerated.
41764         * lib/unictype/mirror.h: Regenerated.
41765         * lib/unictype/numeric.h: Regenerated.
41766         * lib/unictype/pr_alphabetic.h: Regenerated.
41767         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41768         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41769         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41770         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41771         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41772         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41773         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41774         * lib/unictype/pr_combining.h: Regenerated.
41775         * lib/unictype/pr_dash.h: Regenerated.
41776         * lib/unictype/pr_decimal_digit.h: Regenerated.
41777         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41778         * lib/unictype/pr_deprecated.h: Regenerated.
41779         * lib/unictype/pr_diacritic.h: Regenerated.
41780         * lib/unictype/pr_extender.h: Regenerated.
41781         * lib/unictype/pr_format_control.h: Regenerated.
41782         * lib/unictype/pr_grapheme_base.h: Regenerated.
41783         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41784         * lib/unictype/pr_grapheme_link.h: Regenerated.
41785         * lib/unictype/pr_id_continue.h: Regenerated.
41786         * lib/unictype/pr_id_start.h: Regenerated.
41787         * lib/unictype/pr_ideographic.h: Regenerated.
41788         * lib/unictype/pr_ignorable_control.h: Regenerated.
41789         * lib/unictype/pr_lowercase.h: Regenerated.
41790         * lib/unictype/pr_math.h: Regenerated.
41791         * lib/unictype/pr_numeric.h: Regenerated.
41792         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41793         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41794         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41795         * lib/unictype/pr_other_id_continue.h: Regenerated.
41796         * lib/unictype/pr_other_lowercase.h: Regenerated.
41797         * lib/unictype/pr_other_math.h: Regenerated.
41798         * lib/unictype/pr_punctuation.h: Regenerated.
41799         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41800         * lib/unictype/pr_soft_dotted.h: Regenerated.
41801         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41802         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41803         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41804         * lib/unictype/pr_uppercase.h: Regenerated.
41805         * lib/unictype/pr_xid_continue.h: Regenerated.
41806         * lib/unictype/pr_xid_start.h: Regenerated.
41807         * lib/unictype/pr_zero_width.h: Regenerated.
41808         * lib/unictype/scripts.h: Regenerated.
41809         * lib/unictype/scripts_byname.gperf: Regenerated.
41810         * lib/unictype/sy_java_ident.h: Regenerated.
41811         * lib/unilbrk/lbrkprop1.h: Regenerated.
41812         * lib/unilbrk/lbrkprop2.h: Regenerated.
41813         * tests/unictype/test-categ_C.c: Regenerated.
41814         * tests/unictype/test-categ_Cf.c: Regenerated.
41815         * tests/unictype/test-categ_Cn.c: Regenerated.
41816         * tests/unictype/test-categ_L.c: Regenerated.
41817         * tests/unictype/test-categ_Ll.c: Regenerated.
41818         * tests/unictype/test-categ_Lm.c: Regenerated.
41819         * tests/unictype/test-categ_Lo.c: Regenerated.
41820         * tests/unictype/test-categ_Lu.c: Regenerated.
41821         * tests/unictype/test-categ_M.c: Regenerated.
41822         * tests/unictype/test-categ_Mc.c: Regenerated.
41823         * tests/unictype/test-categ_Me.c: Regenerated.
41824         * tests/unictype/test-categ_Mn.c: Regenerated.
41825         * tests/unictype/test-categ_N.c: Regenerated.
41826         * tests/unictype/test-categ_Nd.c: Regenerated.
41827         * tests/unictype/test-categ_Nl.c: Regenerated.
41828         * tests/unictype/test-categ_No.c: Regenerated.
41829         * tests/unictype/test-categ_P.c: Regenerated.
41830         * tests/unictype/test-categ_Pd.c: Regenerated.
41831         * tests/unictype/test-categ_Pe.c: Regenerated.
41832         * tests/unictype/test-categ_Pf.c: Regenerated.
41833         * tests/unictype/test-categ_Pi.c: Regenerated.
41834         * tests/unictype/test-categ_Po.c: Regenerated.
41835         * tests/unictype/test-categ_Ps.c: Regenerated.
41836         * tests/unictype/test-categ_S.c: Regenerated.
41837         * tests/unictype/test-categ_Sk.c: Regenerated.
41838         * tests/unictype/test-categ_Sm.c: Regenerated.
41839         * tests/unictype/test-categ_So.c: Regenerated.
41840         * tests/unictype/test-ctype_alnum.c: Regenerated.
41841         * tests/unictype/test-ctype_alpha.c: Regenerated.
41842         * tests/unictype/test-ctype_graph.c: Regenerated.
41843         * tests/unictype/test-ctype_lower.c: Regenerated.
41844         * tests/unictype/test-ctype_print.c: Regenerated.
41845         * tests/unictype/test-ctype_punct.c: Regenerated.
41846         * tests/unictype/test-ctype_upper.c: Regenerated.
41847         * tests/unictype/test-decdigit.h: Regenerated.
41848         * tests/unictype/test-digit.h: Regenerated.
41849         * tests/unictype/test-numeric.h: Regenerated.
41850         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41851         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41852         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41853         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41854         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41855         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41856         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41857         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41858         * tests/unictype/test-pr_combining.c: Regenerated.
41859         * tests/unictype/test-pr_dash.c: Regenerated.
41860         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41861         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41862         * tests/unictype/test-pr_deprecated.c: Regenerated.
41863         * tests/unictype/test-pr_diacritic.c: Regenerated.
41864         * tests/unictype/test-pr_extender.c: Regenerated.
41865         * tests/unictype/test-pr_format_control.c: Regenerated.
41866         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41867         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41868         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41869         * tests/unictype/test-pr_id_continue.c: Regenerated.
41870         * tests/unictype/test-pr_id_start.c: Regenerated.
41871         * tests/unictype/test-pr_ideographic.c: Regenerated.
41872         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41873         * tests/unictype/test-pr_lowercase.c: Regenerated.
41874         * tests/unictype/test-pr_math.c: Regenerated.
41875         * tests/unictype/test-pr_numeric.c: Regenerated.
41876         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41877         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41878         Regenerated.
41879         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41880         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41881         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41882         * tests/unictype/test-pr_other_math.c: Regenerated.
41883         * tests/unictype/test-pr_punctuation.c: Regenerated.
41884         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41885         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41886         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41887         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41888         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41889         * tests/unictype/test-pr_uppercase.c: Regenerated.
41890         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41891         * tests/unictype/test-pr_xid_start.c: Regenerated.
41892         * tests/unictype/test-pr_zero_width.c: Regenerated.
41893
41894         Update to Unicode 5.1.0.
41895         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41896         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41897         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41898         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41899         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41900         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41901         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41902         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41903         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41904         (nonspacing_table_ind): Update.
41905         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41906
41907         Update to Unicode 5.1.0.
41908         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41909         code transform.
41910         * lib/uniname/uniname.c (unicode_character_name,
41911         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41912         * lib/uniname/uninames.h: Regenerated.
41913         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41914
41915 2009-02-07  Bruno Haible  <bruno@clisp.org>
41916
41917         Merge gen-ctype and gen-lbrk into a single program.
41918         * lib/gen-uni-tables.c: New file, incorporating
41919         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41920         Add directory prefixes to the names of the generated files.
41921         * lib/unictype/gen-ctype.c: Remove file.
41922         * lib/unilbrk/gen-lbrk.c: Remove file.
41923         * modules/gen-uni-tables: New file.
41924         * modules/unictype/gen-ctype: Remove file.
41925         * modules/unilbrk/gen-lbrk: Remove file.
41926
41927 2009-02-07  Bruno Haible  <bruno@clisp.org>
41928
41929         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41930
41931         New module 'unistr/u32-strcoll'.
41932         * modules/unistr/u32-strcoll: New file.
41933         * lib/unistr/u32-strcoll.c: New file.
41934
41935         New module 'unistr/u16-strcoll'.
41936         * modules/unistr/u16-strcoll: New file.
41937         * lib/unistr/u16-strcoll.c: New file.
41938
41939         New module 'unistr/u8-strcoll'.
41940         * modules/unistr/u8-strcoll: New file.
41941         * lib/unistr/u8-strcoll.c: New file.
41942         * lib/unistr/u-strcoll.h: New file.
41943
41944 2009-02-07  Bruno Haible  <bruno@clisp.org>
41945
41946         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41947         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41948         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41949         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41950         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41951         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41952
41953 2009-02-07  Bruno Haible  <bruno@clisp.org>
41954
41955         Make 64-bit clean.
41956         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41957         output_combclass, output_bidi_category, output_decimal_digit,
41958         output_digit, output_numeric, output_mirror, output_scripts,
41959         output_ident_category): Use proper width specifier in format strings.
41960
41961 2009-02-07  Bruno Haible  <bruno@clisp.org>
41962
41963         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41964         failure behaviour.
41965
41966 2009-02-07  Jim Meyering  <meyering@redhat.com>
41967
41968         regex: avoid compilation failure with upcoming gcc-4.4
41969         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41970         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41971         "... error: integer overflow in preprocessor expression".
41972
41973 2009-02-05  Ben Pfaff  <blp@gnu.org>
41974
41975         Fix link errors on Windows when close module is used.
41976         * modules/close: Add $(LIB_CLOSE) to Link section.
41977         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41978         $(LIB_CLOSE) on Windows.
41979
41980 2009-02-05  Jim Meyering  <meyering@redhat.com>
41981
41982         still avoid unused-parameter warnings, but do it cleanly
41983         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41984         (get_fs_usage): Cast to void instead.
41985         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41986         (dev_from_mount_options, read_file_system_list): Cast to void.
41987         Prompted by Bruno Haible.
41988
41989 2009-02-04  Jim Meyering  <meyering@redhat.com>
41990
41991         fsusage.c: correct copyright year
41992         * lib/fsusage.c: Reflect year in which the change is pushed into
41993
41994         avoid misc. warnings
41995         * lib/fsusage.c (UNUSED_PARAM): Define.
41996         (get_fs_usage): Mark parameter "disk" as unused.
41997         * lib/getugroups.c (getgrent): Use "void" in prototype.
41998         * lib/mountlist.c: Mark unused parameters.
41999         (read_file_system_list): Declare a local with "const".
42000         * lib/nanosleep.c (getnow): Declare static.
42001         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42002
42003         dirfd: set errno upon failure
42004         * lib/dirfd.c: Include <errno.h>.
42005         Set errno to ENOTSUP when returning -1.
42006         * modules/dirfd (Depends-on): Add errno.
42007         Suggested by John Kodis <kodis@comcast.net>.
42008
42009 2009-02-01  Bruno Haible  <bruno@clisp.org>
42010
42011         Don't assume sizeof (long) >= sizeof (void *).
42012         * lib/memcmp.c: Include stdint.h.
42013         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42014         srcp2 to 'const byte *'.
42015         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42016         types to uintptr_t.
42017         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42018         * modules/memcmp (Depends-on): Add stdint.
42019         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42020
42021 2009-01-30  Eric Blake  <ebb9@byu.net>
42022
42023         fix more require-before-expand issues
42024         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42025         expand, AC_PROG_AWK.
42026         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42027
42028 2009-01-28  Eric Blake  <ebb9@byu.net>
42029
42030         version-etc: use consistent URL formatting
42031         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42032         Improve formatting.  Use fputs for string without %.
42033
42034 2009-01-28  Jim Meyering  <meyering@redhat.com>
42035
42036         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42037         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42038         "underquoted definition of NAME" from autoconf-2.59.
42039
42040 2009-01-28  Bruno Haible  <bruno@clisp.org>
42041
42042         * doc/gnulib.texi: Add "Obsolete modules" to index.
42043
42044 2009-01-28  Jim Meyering  <meyering@redhat.com>
42045
42046         useless-if-before-free: recognize more variants
42047         * build-aux/useless-if-before-free: Also recognize e.g.,
42048         if (NULL != p) free (p);
42049
42050 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42051
42052         test-getaddrinfo: skip (don't fail) this test when there's no network
42053         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42054         on the presumption that it means you lack network access.
42055
42056 2009-01-26  Jim Meyering  <meyering@redhat.com>
42057
42058         fflush: avoid warnings on modern systems
42059         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42060         pos and result, into scopes where they're used.
42061
42062 2009-01-26  Eric Blake  <ebb9@byu.net>
42063
42064         Silence warning reintroduced by recent extensions patch.
42065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42066         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42067         autoconf.
42068
42069         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42070         * m4/00gnulib.m4: New file.
42071         * gnulib-tool (func_get_filelist): Always use it.
42072         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42073         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42074
42075 2009-01-25  Bruno Haible  <bruno@clisp.org>
42076
42077         Make test-quotearg work on MacOS X and AIX.
42078         * tests/test-quotearg.sh: New file.
42079         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42080         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42081         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42082         include <libintl.h>.
42083         (fake_locale): Remove variable.
42084         (gettext, dgettext, dcgettext): Remove functions.
42085         (main): Instead of setting a fake locale, set a real locale. Call
42086         textdomain and bindtextdomain.
42087         * modules/quotearg-tests (Files): Add the new files.
42088         (Depends-on): Add gettext, setenv, unsetenv.
42089         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42090         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42091         Augment TESTS_ENVIRONMENT.
42092
42093 2009-01-25  Bruno Haible  <bruno@clisp.org>
42094
42095         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42096         fr_FR.ISO8859-1 locale on MacOS X.
42097         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42098         ja_JP.eucJP locale on MacOS X.
42099         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42100         zh_CN.GB18030 locale on MacOS X.
42101
42102 2009-01-25  Bruno Haible  <bruno@clisp.org>
42103
42104         Avoid link errors on MacOS X 10.3.
42105         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42106         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42107
42108 2009-01-25  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42111         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42112         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42113         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42114         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42115         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42116         posix_spawnattr_init, posix_spawnattr_setsigmask,
42117         posix_spawnattr_setflags, posix_spawnattr_destroy.
42118
42119         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42120         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42121         * modules/execute (Files): Remove m4/posix_spawn.m4.
42122         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42123         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42124         posix_spawnattr_init, posix_spawnattr_setsigmask,
42125         posix_spawnattr_setflags, posix_spawnattr_destroy.
42126
42127 2009-01-25  Bruno Haible  <bruno@clisp.org>
42128
42129         * lib/glthread/threadlib.c: Include <stdlib.h>.
42130
42131 2009-01-25  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/glthread/threadlib.c (dummy): New declaration.
42134
42135 2009-01-25  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42138         multibyte characters also for the GB18030 encoding. Don't crash when
42139         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42140
42141 2009-01-25  Bruno Haible  <bruno@clisp.org>
42142
42143         Avoid redefining 'struct random_data' on OSF/1 5.1.
42144         * lib/stdlib.in.h: Include <random.h> if it exists.
42145         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42146         HAVE_RANDOM_H. Include <random.h> when testing whether
42147         'struct random_data' exists.
42148         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42149
42150 2009-01-25  Bruno Haible  <bruno@clisp.org>
42151
42152         Don't install charset.alias on MacOS X >= 10.3.
42153         * lib/localcharset.c (DARWIN7): New macro.
42154         (get_charset_aliases): Hardcode the result for Darwin7.
42155         * modules/localcharset (install-exec-local): Don't install
42156         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42157
42158 2009-01-25  Bruno Haible  <bruno@clisp.org>
42159
42160         Don't install charset.alias on mingw and Cygwin.
42161         * modules/localcharset (install-exec-local): Don't install
42162         charset.alias on mingw and Cygwin, if the file does not yet exist.
42163         The result for these platforms is hardcoded in localcharset.c.
42164
42165 2009-01-25  Bruno Haible  <bruno@clisp.org>
42166
42167         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42168         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42169         before requiring AC_USE_SYSTEM_EXTENSIONS.
42170
42171 2009-01-25  Jim Meyering  <meyering@redhat.com>
42172
42173         c-strtod: avoid warnings
42174         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42175         "assignment discards qualifiers from pointer target type" warnings.
42176
42177 2009-01-24  Bruno Haible  <bruno@clisp.org>
42178
42179         Add support for non-UTF-8 locales on MacOS X.
42180         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42181         canonical encodings. For Darwin 7 and newer, don't map traditional
42182         encodings to UTF-8.
42183         Reported by Vincent Lefevre <vincent@vinc17.org>
42184         at <http://savannah.gnu.org/bugs/?25235>.
42185
42186 2009-01-24  Bruno Haible  <bruno@clisp.org>
42187
42188         * doc/gnulib.texi (Obsolete modules): New section.
42189         Reported by Mike Frysinger <vapier@gentoo.org>.
42190
42191 2009-01-24  Bruno Haible  <bruno@clisp.org>
42192
42193         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42194         (%.dvi): New rule.
42195
42196 2009-01-24  Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42199         Reported by Eric Blake.
42200
42201 2009-01-24  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42204         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42205         Reported by Gary V. Vaughan <gary@gnu.org>.
42206
42207 2009-01-24  Bruno Haible  <bruno@clisp.org>
42208
42209         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42210
42211 2009-01-23  Bruno Haible  <bruno@clisp.org>
42212
42213         Make c-strtod, c-strtold usable in libraries.
42214         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42215         (C_STRTOD): Call strdup instead of xstrdup.
42216         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42217         * modules/c-strtold (Depends-on): Likewise.
42218         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42219         * NEWS: Mention the change.
42220         Reported by Michael Gold <mgold@ncf.ca>.
42221
42222 2009-01-23  Jim Meyering  <meyering@redhat.com>
42223
42224         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42225         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42226         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42227
42228 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42229
42230         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42231         GNU CoreUtils.
42232         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42233         * modules/version-etc (Description): Update.
42234
42235 2009-01-22  Bruno Haible  <bruno@clisp.org>
42236
42237         Cache the C locale object.
42238         * lib/c-strtod.c (c_locale_cache): New variable.
42239         (c_locale): New function.
42240         (C_STRTOD): Use it, and don't call freelocale.
42241         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42242         Suggested by Paolo Bonzini.
42243
42244 2009-01-21  Bruno Haible  <bruno@clisp.org>
42245
42246         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42247         conditions other than overflow.
42248
42249 2009-01-21  Bruno Haible  <bruno@clisp.org>
42250
42251         * lib/c-strtod.c: Include errno.h.
42252         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42253         value from STRTOD_L and STRTOD.
42254
42255 2009-01-21  Bruno Haible  <bruno@clisp.org>
42256         and Jim Meyering  <meyering@redhat.com>
42257
42258         nanosleep: skip configure test (fail it) for apple universal builds
42259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42260         universal builds, assume that nanosleep does not work.
42261         * modules/nanosleep (Depends-on): Add multiarch.
42262
42263         mktime: skip configure test (fail it) for apple universal builds
42264         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42265         universal builds, assume that mktime does not work.
42266         * modules/mktime (Depends-on): Add multiarch.
42267
42268 2009-01-21  Eric Blake  <ebb9@byu.net>
42269
42270         multiarch: avoid expand-before-require warning
42271         * modules/multiarch (configure.ac): Require, rather than expand,
42272         gl_MULTIARCH.
42273         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42274         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42275         enforce that all clients require it.  Partial reversion of
42276         2008-12-29 patch.
42277
42278         error: avoid expand-before-require warning
42279         * modules/errno (configure.ac): Require, rather than expand,
42280         gl_HEADER_ERRNO_H.
42281         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42282         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42283         enforce that all clients require it.
42284
42285         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42286         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42287         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42288         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42289
42290 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42291
42292         Revert:
42293         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42294
42295         regex: do not depend on obsolete modules.
42296         * modules/regex: Remove memcmp and memmove.
42297
42298 2009-01-20  Bruno Haible  <bruno@clisp.org>
42299
42300         Make the 'link' module link on Windows NT 4.
42301         * lib/link.c (_WIN32_WINNT): Don't define.
42302         (CreateHardLinkFuncType): New type.
42303         (CreateHardLinkFunc, initialized): New variables.
42304         (initialize): New function.
42305         (link): Invoke CreateHardLink indirectly through the function pointer.
42306
42307 2009-01-20  Bruno Haible  <bruno@clisp.org>
42308
42309         Fix compilation failure on mingw.
42310         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42311
42312 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42313
42314         * doc/c-strtod.texi: Mention a couple of restrictions.
42315
42316 2009-01-20  Jim Meyering  <meyering@redhat.com>
42317
42318         gettimeofday: move more declarations out of functions
42319         * lib/gettimeofday.c: Move extern declarations of tzset and
42320         gmtime out of containing functions.  Prompted by Bruno Haible.
42321
42322 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42323
42324         regex: do not depend on obsolete modules.
42325         * modules/regex: Remove memcmp and memmove.
42326
42327 2009-01-19  Bruno Haible  <bruno@clisp.org>
42328
42329         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42330         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42331         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42332         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42333         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42334
42335 2009-01-19  Bruno Haible  <bruno@clisp.org>
42336
42337         * tests/test-link.c: Include <errno.h>.
42338         (main): Exit with code 77 when a hard link cannot be created due to
42339         the file system.
42340         * tests/test-link.sh: Skip test when a hard link cannot be created due
42341         to the file system.
42342         Suggested by Eric Blake.
42343
42344 2009-01-19  Martin Lambers  <marlam@marlam.de>
42345
42346         * modules/link-tests: New file.
42347         * tests/test-link.sh: New file.
42348         * tests/test-link.c: New file.
42349
42350 2009-01-19  Eric Blake  <ebb9@byu.net>
42351
42352         doc: mention another function added in cygwin 1.7.0
42353         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42354         Another new function in cygwin 1.7.
42355
42356 2009-01-19  Bruno Haible  <bruno@clisp.org>
42357
42358         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42359         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42360         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42361         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42362         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42363         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42364         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42365         * m4/md4.m4 (gl_MD4): Likewise.
42366         * m4/md5.m4 (gl_MD5): Likewise.
42367         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42368         * m4/sha1.m4 (gl_SHA1): Likewise.
42369         * m4/sha256.m4 (gl_SHA256): Likewise.
42370         * m4/sha512.m4 (gl_SHA512): Likewise.
42371
42372 2009-01-19  Bruno Haible  <bruno@clisp.org>
42373
42374         * modules/uniname/uniname-tests (Depends-on): Add progname.
42375         * tests/uniname/test-uninames.c: Include progname.h.
42376         (main): Call set_program_name.
42377
42378         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42379         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42380         (main): Call set_program_name.
42381
42382         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42383         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42384         (main): Call set_program_name.
42385
42386         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42387         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42388         (main): Call set_program_name.
42389
42390         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42391         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42392         (main): Call set_program_name.
42393
42394         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42395         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42396         (main): Call set_program_name.
42397
42398         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42399         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42400         (main): Call set_program_name.
42401
42402         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42403         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42404         (main): Call set_program_name.
42405
42406         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42407         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42408         (main): Call set_program_name.
42409
42410 2009-01-19  Eric Blake  <ebb9@byu.net>
42411
42412         test-unistd: test previous patch
42413         * tests/test-unistd.c: Test *_FILENO macros.
42414
42415         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42416         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42417         Guarantee a definition.
42418         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42419         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42420         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42421         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42422         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42423         Likewise.
42424         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42425         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42426         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42427         Likewise.
42428         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42429         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42430         (STDERR_FILENO): Likewise.
42431         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42432         (STDERR_FILENO): Likewise.
42433         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42434         (STDERR_FILENO): Likewise.
42435         Reported by Elbert Pol.
42436
42437 2009-01-19  Eric Blake  <ebb9@byu.net>
42438
42439         doc: mention more functions added in cygwin 1.7.0
42440         * doc/posix-functions/abort.texi (abort): Update wording related
42441         to cygwin.
42442         * doc/posix-functions/daylight.texi (daylight): Likewise.
42443         * doc/posix-functions/optarg.texi (optarg): Likewise.
42444         * doc/posix-functions/optarg.texi (opterr): Likewise.
42445         * doc/posix-functions/optarg.texi (optind): Likewise.
42446         * doc/posix-functions/optarg.texi (optopt): Likewise.
42447         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42448         worked in 1.5.x, and was withdrawn in 1.7.
42449         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42450         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42451         cygwin versions.
42452         * doc/posix-functions/perror.texi (perror): Likewise.
42453         * doc/posix-functions/printf.texi (printf): Likewise.
42454         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42455         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42456         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42457         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42458         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42459         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42460         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42461         Likewise.
42462         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42463         Likewise.
42464         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42465         this function.
42466         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42467         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42468         Likewise.
42469         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42470         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42471         * doc/posix-functions/confstr.texi (confstr): Likewise.
42472         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42473         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42474         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42475         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42476         * doc/posix-functions/fputws.texi (fputws): Likewise.
42477         * doc/posix-functions/fwide.texi (fwide): Likewise.
42478         * doc/posix-functions/getwc.texi (getwc): Likewise.
42479         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42480         * doc/posix-functions/putwc.texi (putwc): Likewise.
42481         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42482         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42483         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42484         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42485         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42486         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42487         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42488         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42489         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42490         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42491         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42492
42493 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42494
42495         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42496         * lib/ioctl.c: Include <sys/ioctl.h>.
42497
42498 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42499
42500         * modules/getdate-tests (Depends-on): Add progname.
42501         * tests/test-getdate.c: Use progname module, to avoid link errors
42502         on non-glibc systems.
42503
42504 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42505
42506         * modules/filenamecat-tests (Depends-on): Add progname.
42507         * modules/fstrcmp-tests (Depends-on): Likewise.
42508
42509         * tests/test-filenamecat.c: Use progname module, to avoid link
42510         errors on non-glibc systems.
42511         * tests/test-fstrcmp.c: Likewise.
42512
42513 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42514
42515         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42516         * lib/gettimeofday.c: Move extern declaration out of function.
42517
42518 2009-01-18  Bruno Haible  <bruno@clisp.org>
42519
42520         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42521         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42522         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42523
42524 2009-01-18  Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/strftime.c (MEMPCPY): Remove unused macro.
42527         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42528
42529 2009-01-18  Martin Lambers  <marlam@marlam.de>
42530
42531         New module 'link'.
42532         * lib/unistd.in.h (link): New declaration.
42533         * lib/link.c: New file.
42534         * m4/link.m4: New file.
42535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42536         HAVE_LINK.
42537         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42538         * modules/link: New file.
42539         * doc/posix-functions/link.texi: Mention the new module.
42540
42541 2009-01-18  Bruno Haible  <bruno@clisp.org>
42542
42543         * tests/test-avltree_list.c (main): Call set_program_name.
42544         * tests/test-avltree_oset.c (main): Likewise.
42545         * tests/test-obstack-printf.c: Include progname.h.
42546         (main): Call set_program_name.
42547         * tests/test-quotearg.c: Include progname.h.
42548         (main): Call set_program_name.
42549         * tests/test-xmemdup0.c: Include progname.h.
42550         (main): Call set_program_name.
42551
42552 2009-01-18  Bruno Haible  <bruno@clisp.org>
42553
42554         New module 'alphasort'.
42555         * lib/dirent.in.h (alphasort): New declaration.
42556         * lib/alphasort.c: New file, from glibc with modifications.
42557         * m4/alphasort.m4: New file.
42558         * modules/alphasort: New file.
42559         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42560         HAVE_ALPHASORT.
42561         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42562         HAVE_ALPHASORT.
42563         * doc/posix-functions/alphasort.texi: Mention the new module and the
42564         portability problems.
42565
42566 2009-01-18  Bruno Haible  <bruno@clisp.org>
42567
42568         New module 'scandir'.
42569         * lib/dirent.in.h (scandir): New declaration.
42570         * lib/scandir.c: New file, from glibc with modifications.
42571         * m4/scandir.m4: New file.
42572         * modules/scandir: New file.
42573         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42574         HAVE_SCANDIR.
42575         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42576         HAVE_SCANDIR.
42577         * doc/posix-functions/scandir.texi: Mention the new module and the
42578         portability problems.
42579
42580 2009-01-17  Bruno Haible  <bruno@clisp.org>
42581
42582         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42583         Update documentation.
42584         (func_remove_suffix): Escape all dots in the suffix. Update
42585         documentation.
42586         (func_filter_filelist): Update documentation.
42587         Reported by Ralf Wildenhues.
42588
42589 2009-01-17  Bruno Haible  <bruno@clisp.org>
42590
42591         * modules/dprintf-posix-tests: New file.
42592         * tests/test-dprintf-posix.sh: New file.
42593         * tests/test-dprintf-posix.c: New file.
42594
42595         New modules 'dprintf', 'dprintf-posix'.
42596         * lib/stdio.in.h (dprintf): New declaration.
42597         * lib/dprintf.c: New file.
42598         * m4/dprintf.m4: New file.
42599         * m4/dprintf-posix.m4: New file.
42600         * modules/dprintf: New file.
42601         * modules/dprintf-posix: New file.
42602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42603         HAVE_DPRINTF, REPLACE_DPRINTF.
42604         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42605         HAVE_DPRINTF, REPLACE_DPRINTF.
42606         * doc/posix-functions/dprintf.texi: Mention the new modules.
42607
42608 2009-01-17  Bruno Haible  <bruno@clisp.org>
42609
42610         * modules/vdprintf-posix-tests: New file.
42611         * tests/test-vdprintf-posix.sh: New file.
42612         * tests/test-vdprintf-posix.c: New file.
42613
42614         New modules 'vdprintf', 'vdprintf-posix'.
42615         * lib/stdio.in.h (vdprintf): New declaration.
42616         * lib/vdprintf.c: New file.
42617         * m4/vdprintf.m4: New file.
42618         * m4/vdprintf-posix.m4: New file.
42619         * modules/vdprintf: New file.
42620         * modules/vdprintf-posix: New file.
42621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42622         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42623         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42624         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42625         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42626
42627 2009-01-17  Bruno Haible  <bruno@clisp.org>
42628
42629         Fix replacement of fopen on mingw.
42630         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42631         mingw.
42632
42633 2009-01-17  Bruno Haible  <bruno@clisp.org>
42634
42635         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42636         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42637
42638 2009-01-17  Bruno Haible  <bruno@clisp.org>
42639
42640         Avoid test-fflush2.sh failure on mingw.
42641         * tests/test-fflush2.c: Include binary-io.h.
42642         (main): Put standard input into binary mode.
42643         * modules/fflush-tests (Depends-on): Add binary-io.
42644
42645 2009-01-17  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/wchar.in.h: In another particular situation, include only the
42648         system's <wchar.h> file.
42649         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42650         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42651         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42652
42653 2009-01-17  Bruno Haible  <bruno@clisp.org>
42654
42655         Support for stripping executables in --enable-relocatable.
42656         * build-aux/install-reloc: Expect one more argument, or an environment
42657         variable RELOC_STRIP_PROG. If set, strip the destination program and
42658         its wrapper.
42659         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42660         RELOC_STRIP_PROG.
42661         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42662         to set RELOCATABLE_STRIP.
42663         * NEWS: Mention the new Makefile requirement.
42664
42665 2009-01-17  Bruno Haible  <bruno@clisp.org>
42666
42667         * build-aux/install-reloc: Remove debugging information left over by
42668         C compiler on MacOS X.
42669
42670 2009-01-17  Bruno Haible  <bruno@clisp.org>
42671
42672         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42673         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42674         _NSGetExecutablePath.
42675
42676 2009-01-16  Jim Meyering  <meyering@redhat.com>
42677
42678         strerror: avoid warnings about discarding "const"
42679         * lib/strerror.c (rpl_strerror): Instead of returning a const
42680         string from each and every "case", use a variable, and add a single
42681         cast after the switch.
42682
42683 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42684
42685         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42686
42687 2009-01-16  Bruno Haible  <bruno@clisp.org>
42688
42689         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42690         array initializer syntax that also works in C++ mode.
42691         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42692
42693 2009-01-16  Jim Meyering  <meyering@redhat.com>
42694
42695         poll: suppress a warning
42696         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42697         to ignore "...unsigned expression < 0 is always false" warnings.
42698
42699 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42700
42701         poll: remove declarations of unused variables
42702         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42703         sockbuf and optlen.
42704
42705 2009-01-15  Bruno Haible  <bruno@clisp.org>
42706
42707         Make fflush-after-ungetc POSIX compliant on BSD systems.
42708         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42709         (clear_ungetc_buffer): Implement also for other systems.
42710         (rpl_fflush): On glibc systems, invoke
42711         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42712         clear_ungetc_buffer after fetching the stream's position, not before.
42713
42714 2009-01-15  Bruno Haible  <bruno@clisp.org>
42715
42716         Make fflush-after-ungetc POSIX compliant on glibc systems.
42717         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42718         after ungetc.
42719         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42720         (rpl_fflush): On glibc systems, simply call the system's fflush
42721         function after clearing the ungetc buffer.
42722         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42723         Instead, lseek only to the end of file, then use the system's fseeko
42724         for the rest. On glibc systems, reset the EOF indicator bit.
42725
42726 2009-01-15  Jim Meyering  <meyering@redhat.com>
42727
42728         openmp.m4: revert quote-adding change, for portability to older autoconf
42729         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42730         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42731         Simon Josefsson noticed the problem when using autoconf-2.61.
42732
42733 2009-01-15  Bruno Haible  <bruno@clisp.org>
42734
42735         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42736         * tests/test-fflush2.c (ASSERT): Always fail.
42737         (main): Add two tests for fflush() after ungetc(), taking into account
42738         the Austin Group's clarification.
42739         Suggested by Eric Blake.
42740
42741 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42742
42743         mktime.m4: remove K&R-style function prototypes
42744         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42745         for the Sun C++ compiler.
42746
42747 2009-01-14  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42750         while including <wchar.h>.
42751         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42752         the system's <wchar.h> file.
42753         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42754
42755 2009-01-14  Bruno Haible  <bruno@clisp.org>
42756
42757         * m4/csharp.m4: Don't mention gettext on the serial number line.
42758         * m4/csharpexec.m4: Likewise.
42759         * m4/eaccess.m4: Likewise.
42760         * m4/javaexec.m4: Likewise.
42761         * m4/sig_atomic_t.m4: Likewise.
42762         * m4/tmpdir.m4: Likewise.
42763         * m4/intldir.m4: Bump gettext version.
42764         * m4/lib-ld.m4: Likewise.
42765
42766 2009-01-14  Bruno Haible  <bruno@clisp.org>
42767
42768         * lib/progname.c (set_program_name): Add more comments.
42769         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42770
42771 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42772
42773         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42774         were sys/stat.h does not define it.
42775
42776 2009-01-14  Jim Meyering  <meyering@redhat.com>
42777
42778         many *.m4 files: improve m4 quoting
42779         99% of this change was performed by running the following commands:
42780         git ls-files | grep '\.m4$' | xargs perl -pi \
42781           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42782           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42783           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42784           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42785         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42786         The remainder were to add Copyright dates, increment serial numbers,
42787         undo some changes in comments, exclude m4/intl.m4, and add quotes
42788         around the "1" in ",1" where the unusual spacing prohibited the
42789         above regexps from doing the job.  For more details, see
42790         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42791         * m4/acl.m4: Modified.
42792         * m4/afs.m4: Likewise.
42793         * m4/alloca.m4: Likewise.
42794         * m4/argp.m4: Likewise.
42795         * m4/argz.m4: Likewise.
42796         * m4/atexit.m4: Likewise.
42797         * m4/bison-i18n.m4: Likewise.
42798         * m4/bison.m4: Likewise.
42799         * m4/byteswap.m4: Likewise.
42800         * m4/c-stack.m4: Likewise.
42801         * m4/c-strtod.m4: Likewise.
42802         * m4/calloc.m4: Likewise.
42803         * m4/canonicalize-lgpl.m4: Likewise.
42804         * m4/chown.m4: Likewise.
42805         * m4/clock_time.m4: Likewise.
42806         * m4/codeset.m4: Likewise.
42807         * m4/copy-file.m4: Likewise.
42808         * m4/csharp.m4: Likewise.
42809         * m4/csharpcomp.m4: Likewise.
42810         * m4/csharpexec.m4: Likewise.
42811         * m4/d-ino.m4: Likewise.
42812         * m4/d-type.m4: Likewise.
42813         * m4/dirfd.m4: Likewise.
42814         * m4/double-slash-root.m4: Likewise.
42815         * m4/eaccess.m4: Likewise.
42816         * m4/eealloc.m4: Likewise.
42817         * m4/environ.m4: Likewise.
42818         * m4/errno_h.m4: Likewise.
42819         * m4/euidaccess.m4: Likewise.
42820         * m4/execute.m4: Likewise.
42821         * m4/fatal-signal.m4: Likewise.
42822         * m4/fchdir.m4: Likewise.
42823         * m4/fcntl_h.m4: Likewise.
42824         * m4/fileblocks.m4: Likewise.
42825         * m4/filenamecat.m4: Likewise.
42826         * m4/findprog.m4: Likewise.
42827         * m4/flexmember.m4: Likewise.
42828         * m4/fnmatch.m4: Likewise.
42829         * m4/fopen.m4: Likewise.
42830         * m4/fpending.m4: Likewise.
42831         * m4/fprintf-posix.m4: Likewise.
42832         * m4/free.m4: Likewise.
42833         * m4/frexp.m4: Likewise.
42834         * m4/frexpl.m4: Likewise.
42835         * m4/fsusage.m4: Likewise.
42836         * m4/ftruncate.m4: Likewise.
42837         * m4/gc-camellia.m4: Likewise.
42838         * m4/gc-random.m4: Likewise.
42839         * m4/gc.m4: Likewise.
42840         * m4/getaddrinfo.m4: Likewise.
42841         * m4/getcwd-abort-bug.m4: Likewise.
42842         * m4/getcwd-path-max.m4: Likewise.
42843         * m4/getdate.m4: Likewise.
42844         * m4/getdomainname.m4: Likewise.
42845         * m4/getgroups.m4: Likewise.
42846         * m4/gethostname.m4: Likewise.
42847         * m4/gethrxtime.m4: Likewise.
42848         * m4/getline.m4: Likewise.
42849         * m4/getloadavg.m4: Likewise.
42850         * m4/getndelim2.m4: Likewise.
42851         * m4/getpass.m4: Likewise.
42852         * m4/gettext.m4: Likewise.
42853         * m4/gettime.m4: Likewise.
42854         * m4/gettimeofday.m4: Likewise.
42855         * m4/gnulib-common.m4: Likewise.
42856         * m4/group-member.m4: Likewise.
42857         * m4/host-os.m4: Likewise.
42858         * m4/iconv.m4: Likewise.
42859         * m4/iconv_open.m4: Likewise.
42860         * m4/inet_ntop.m4: Likewise.
42861         * m4/inet_pton.m4: Likewise.
42862         * m4/inline.m4: Likewise.
42863         * m4/intldir.m4: Likewise.
42864         * m4/intlmacosx.m4: Likewise.
42865         * m4/intmax.m4: Likewise.
42866         * m4/intmax_t.m4: Likewise.
42867         * m4/inttypes.m4: Likewise.
42868         * m4/inttypes_h.m4: Likewise.
42869         * m4/inttypes-pri.m4: Likewise.
42870         * m4/isapipe.m4: Likewise.
42871         * m4/isnand.m4: Likewise.
42872         * m4/isnanf.m4: Likewise.
42873         * m4/isnanl.m4: Likewise.
42874         * m4/javacomp.m4: Likewise.
42875         * m4/javaexec.m4: Likewise.
42876         * m4/jm-winsz1.m4: Likewise.
42877         * m4/jm-winsz2.m4: Likewise.
42878         * m4/lchown.m4: Likewise.
42879         * m4/lcmessage.m4: Likewise.
42880         * m4/ldexpl.m4: Likewise.
42881         * m4/lib-ld.m4: Likewise.
42882         * m4/lib-link.m4: Likewise.
42883         * m4/libsigsegv.m4: Likewise.
42884         * m4/link-follow.m4: Likewise.
42885         * m4/localcharset.m4: Likewise.
42886         * m4/locale-fr.m4: Likewise.
42887         * m4/locale-ja.m4: Likewise.
42888         * m4/locale-tr.m4: Likewise.
42889         * m4/locale-zh.m4: Likewise.
42890         * m4/lock.m4: Likewise.
42891         * m4/longlong.m4: Likewise.
42892         * m4/ls-mntd-fs.m4: Likewise.
42893         * m4/lstat.m4: Likewise.
42894         * m4/malloc.m4: Likewise.
42895         * m4/mathl.m4: Likewise.
42896         * m4/mbrtowc.m4: Likewise.
42897         * m4/mbstate_t.m4: Likewise.
42898         * m4/mbswidth.m4: Likewise.
42899         * m4/memchr.m4: Likewise.
42900         * m4/memcmp.m4: Likewise.
42901         * m4/memcpy.m4: Likewise.
42902         * m4/memmem.m4: Likewise.
42903         * m4/memmove.m4: Likewise.
42904         * m4/mempcpy.m4: Likewise.
42905         * m4/memrchr.m4: Likewise.
42906         * m4/memset.m4: Likewise.
42907         * m4/minmax.m4: Likewise.
42908         * m4/mkdir-slash.m4: Likewise.
42909         * m4/mkdtemp.m4: Likewise.
42910         * m4/mktime.m4: Likewise.
42911         * m4/mmap-anon.m4: Likewise.
42912         * m4/mountlist.m4: Likewise.
42913         * m4/nanosleep.m4: Likewise.
42914         * m4/nls.m4: Likewise.
42915         * m4/nocrash.m4: Likewise.
42916         * m4/open.m4: Likewise.
42917         * m4/openat.m4: Likewise.
42918         * m4/openmp.m4: Likewise.
42919         * m4/pathmax.m4: Likewise.
42920         * m4/perl.m4: Likewise.
42921         * m4/physmem.m4: Likewise.
42922         * m4/pipe.m4: Likewise.
42923         * m4/po.m4: Likewise.
42924         * m4/poll.m4: Likewise.
42925         * m4/posixtm.m4: Likewise.
42926         * m4/posixver.m4: Likewise.
42927         * m4/printf-frexp.m4: Likewise.
42928         * m4/printf-frexpl.m4: Likewise.
42929         * m4/printf-posix.m4: Likewise.
42930         * m4/printf-posix-rpl.m4: Likewise.
42931         * m4/printf.m4: Likewise.
42932         * m4/progtest.m4: Likewise.
42933         * m4/putenv.m4: Likewise.
42934         * m4/readline.m4: Likewise.
42935         * m4/readlink.m4: Likewise.
42936         * m4/readutmp.m4: Likewise.
42937         * m4/realloc.m4: Likewise.
42938         * m4/regex.m4: Likewise.
42939         * m4/relocatable.m4: Likewise.
42940         * m4/relocatable-lib.m4: Likewise.
42941         * m4/rename-dest-slash.m4: Likewise.
42942         * m4/rename.m4: Likewise.
42943         * m4/rmdir-errno.m4: Likewise.
42944         * m4/rmdir.m4: Likewise.
42945         * m4/roundf.m4: Likewise.
42946         * m4/roundl.m4: Likewise.
42947         * m4/rpmatch.m4: Likewise.
42948         * m4/save-cwd.m4: Likewise.
42949         * m4/selinux-selinux-h.m4: Likewise.
42950         * m4/setenv.m4: Likewise.
42951         * m4/settime.m4: Likewise.
42952         * m4/sig2str.m4: Likewise.
42953         * m4/sig_atomic_t.m4: Likewise.
42954         * m4/signalblocking.m4: Likewise.
42955         * m4/signbit.m4: Likewise.
42956         * m4/sigpipe.m4: Likewise.
42957         * m4/sockets.m4: Likewise.
42958         * m4/sockpfaf.m4: Likewise.
42959         * m4/st_dm_mode.m4: Likewise.
42960         * m4/stat-time.m4: Likewise.
42961         * m4/stdbool.m4: Likewise.
42962         * m4/stdint.m4: Likewise.
42963         * m4/stdint_h.m4: Likewise.
42964         * m4/stpcpy.m4: Likewise.
42965         * m4/stpncpy.m4: Likewise.
42966         * m4/strcase.m4: Likewise.
42967         * m4/strchrnul.m4: Likewise.
42968         * m4/strcspn.m4: Likewise.
42969         * m4/strdup.m4: Likewise.
42970         * m4/strftime.m4: Likewise.
42971         * m4/strndup.m4: Likewise.
42972         * m4/strnlen.m4: Likewise.
42973         * m4/strpbrk.m4: Likewise.
42974         * m4/strptime.m4: Likewise.
42975         * m4/strsep.m4: Likewise.
42976         * m4/strtod.m4: Likewise.
42977         * m4/strtoimax.m4: Likewise.
42978         * m4/strtok_r.m4: Likewise.
42979         * m4/strtol.m4: Likewise.
42980         * m4/strtoll.m4: Likewise.
42981         * m4/strtoul.m4: Likewise.
42982         * m4/strtoull.m4: Likewise.
42983         * m4/strtoumax.m4: Likewise.
42984         * m4/strverscmp.m4: Likewise.
42985         * m4/threadlib.m4: Likewise.
42986         * m4/timegm.m4: Likewise.
42987         * m4/tm_gmtoff.m4: Likewise.
42988         * m4/tmpdir.m4: Likewise.
42989         * m4/tmpfile.m4: Likewise.
42990         * m4/tzset.m4: Likewise.
42991         * m4/uintmax_t.m4: Likewise.
42992         * m4/unlinkdir.m4: Likewise.
42993         * m4/unlocked-io.m4: Likewise.
42994         * m4/uptime.m4: Likewise.
42995         * m4/userspec.m4: Likewise.
42996         * m4/utimbuf.m4: Likewise.
42997         * m4/utime.m4: Likewise.
42998         * m4/utimes-null.m4: Likewise.
42999         * m4/utimes.m4: Likewise.
43000         * m4/vararrays.m4: Likewise.
43001         * m4/vasnprintf.m4: Likewise.
43002         * m4/vfprintf-posix.m4: Likewise.
43003         * m4/vprintf-posix.m4: Likewise.
43004         * m4/wait-process.m4: Likewise.
43005         * m4/wchar_t.m4: Likewise.
43006         * m4/wint_t.m4: Likewise.
43007         * m4/write-any-file.m4: Likewise.
43008         * m4/yield.m4: Likewise.
43009
43010 2009-01-13  Bruno Haible  <bruno@clisp.org>
43011
43012         Avoid test-copy-file.sh failures when ACL support insufficient.
43013         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43014         TESTS_ENVIRONMENT.
43015         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43016         Reported by Jim Meyering.
43017
43018 2009-01-13  Bruno Haible  <bruno@clisp.org>
43019
43020         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43021         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43022         * modules/unistdio/u8-printf-parse (Files): Likewise.
43023         * modules/unistdio/u32-printf-parse (Files): Likewise.
43024         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43025
43026 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43027
43028         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43029         and m4/inttypes_h.m4 too.
43030
43031 2009-01-12  Eric Blake  <ebb9@byu.net>
43032
43033         tests: IRIX 6.2 cc can't compile -0.0 into .data
43034         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43035         rather than at compile-time.
43036         * tests/test-floorl.c (minus_zero): Likewise.
43037         * tests/test-frexpl.c (minus_zero): Likewise.
43038         * tests/test-isnan.c (minus_zerol): Likewise.
43039         * tests/test-isnanl.h (minus_zero): Likewise.
43040         * tests/test-ldexpl.c (minus_zero): Likewise.
43041         * tests/test-roundl.c (minus_zero): Likewise.
43042         * tests/test-signbit.c (minus_zerol): Likewise.
43043         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43044         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43045         * tests/test-truncl.c (minus_zero): Likewise.
43046         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43047         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43048         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43049
43050 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43051
43052         regex: fix glibc bug 9697
43053         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43054         handling.
43055
43056 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43057
43058         regex: fix glibc bug 697
43059         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43060         being NULL also if there are no backreferences.
43061
43062 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43063
43064         regex: merge glibc changes
43065         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43066         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43067         re_string_skip_chars, re_string_reconstruct): Likewise.
43068         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43069
43070 2009-01-07  Jim Meyering  <meyering@redhat.com>
43071
43072         poll: filter through cppi
43073         * lib/poll.c: Indent cpp directives to reflect nesting.
43074
43075 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43076
43077         poll: don't return uninitialized
43078         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43079
43080 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43081
43082         avoid compile failure on AIX 6.1
43083         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43084         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43085
43086 2009-01-04  Jim Meyering  <meyering@redhat.com>
43087
43088         remove duplicate inclusion of <stdio.h>
43089         * tests/test-fprintf-posix.c: Likewise.
43090         * tests/test-printf-posix.c: Likewise.
43091         * tests/test-snprintf-posix.c: Likewise.
43092         * tests/test-sprintf-posix.c: Likewise.
43093         * tests/test-vasprintf-posix.c: Likewise.
43094         * tests/test-vfprintf-posix.c: Likewise.
43095         * tests/test-vprintf-posix.c: Likewise.
43096         * tests/test-vsnprintf-posix.c: Likewise.
43097         * tests/test-vsprintf-posix.c: Likewise.
43098
43099 2009-01-03  Jim Meyering  <meyering@redhat.com>
43100
43101         gnulib-tool: fix sed-based filtering
43102         * gnulib-tool (func_filter_filelist): Remove extra backslash
43103         in sed_fff_filter definition.
43104
43105 2009-01-02  Jim Meyering  <meyering@redhat.com>
43106
43107         strftime: avoid compilation failure on Solaris 2.6
43108         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43109         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43110         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43111         be available.  Reported by Tom G. Christensen.  Details in
43112         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43113
43114 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43115             Bruno Haible  <bruno@clisp.org>
43116
43117         Speed up gnulib-tool by doing more string processing through shell
43118         built-ins.
43119         * gnulib-tool (fast_func_append): New variable.
43120         (func_remove_prefix, func_remove_suffix): New functions.
43121         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43122         (func_filter_filelist): New function.
43123         (func_get_dependencies): Use func_remove_suffix instead of sed.
43124         (func_get_automake_snippet): Use func_filter_filelist instead of a
43125         subshell and sed invocation.
43126
43127 2009-01-01  Bruno Haible  <bruno@clisp.org>
43128
43129         Fix a security bug.
43130         * gnulib-tool (func_import, import, update): Don't allow the characters
43131         '"', '$', '`', '\' in macro arguments that become part of commands that
43132         are evaluated.
43133
43134 2009-01-01  Bruno Haible  <bruno@clisp.org>
43135
43136         * gnulib-tool (func_reset_sigpipe): Add more comments.
43137
43138 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43139
43140         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43141         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43142         already know the answer.
43143
43144 2009-01-01  Jim Meyering  <meyering@redhat.com>
43145
43146         * lib/version-etc.c (version_etc_va): Update copyright year.
43147
43148 2008-12-30  Bruno Haible  <bruno@clisp.org>
43149
43150         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43151         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43152         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43153
43154 2008-12-29  Eric Blake  <ebb9@byu.net>
43155
43156         multiarch: avoid autoconf AC_REQUIRE bug
43157         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43158         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43159         2.63 and older.
43160         Reported by Bruno Haible, and analyzed in
43161         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43162
43163 2008-12-29  Bruno Haible  <bruno@clisp.org>
43164
43165         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43166         files in subdirectories correctly.
43167         Reported by Ralf Wildenhues.
43168
43169 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43170
43171         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43172         rather than 'join FILE -', for Solaris join.
43173
43174 2008-12-29  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43177         quoting.
43178         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43179         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43180         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43181         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43182         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43183         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43184         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43185         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43186         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43187         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43188         * m4/nls.m4 (AM_NLS): Likewise.
43189         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43190         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43191         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43192         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43193         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43194         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43195         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43196         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43197         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43198         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43199         * m4/xsize.m4 (gl_XSIZE): Likewise.
43200         Suggested by Jim Meyering.
43201
43202 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43203
43204         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43205         * lib/parse-duration.c: use a switch instead of cascading if's.
43206
43207 2008-12-29  Eric Blake  <ebb9@byu.net>
43208
43209         wchar.h: supply WEOF on Irix 5.3
43210         * lib/wchar.in.h (wint_t): Also supply WEOF.
43211         * lib/wctype.in.h (wint_t): Likewise.
43212         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43213         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43214         Reported by Tom G. Christensen.
43215
43216 2008-12-26  Bruno Haible  <bruno@clisp.org>
43217
43218         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43219         i486, i586, i686.
43220
43221 2008-12-26  Bruno Haible  <bruno@clisp.org>
43222
43223         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43224
43225 2008-12-26  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43228         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43229         not __STDC_CONSTANT_MACROS.
43230         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43231
43232 2008-12-25  Bruno Haible  <bruno@clisp.org>
43233
43234         Add support for universal builds to vasnprintf.
43235         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43236         universal builds, guess no.
43237         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43238         * modules/vasprintf-posix (Depends-on): Likewise.
43239         * modules/fprintf-posix (Depends-on): Likewise.
43240         * modules/vfprintf-posix (Depends-on): Likewise.
43241         * modules/snprintf-posix (Depends-on): Likewise.
43242         * modules/vsnprintf-posix (Depends-on): Likewise.
43243         * modules/sprintf-posix (Depends-on): Likewise.
43244         * modules/vsprintf-posix (Depends-on): Likewise.
43245         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43247         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43248         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43249         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43250         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43251         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43252
43253         Add support for universal builds to <inttypes.h>.
43254         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43255         _SCNu64_PREFIX): In Apple
43256         universal builds, define directly, using _LP64.
43257         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43258         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43259         * modules/inttypes (Depends-on): Add multiarch.
43260         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43261
43262         Add support for universal builds to <stdint.h>.
43263         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43264         universal builds, define directly, using _LP64.
43265         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43266         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43267         and size_t.
43268         * modules/stdint (Depends-on): Add multiarch.
43269         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43270
43271         New module 'multiarch'.
43272         * modules/multiarch: New file.
43273         * m4/multiarch.m4: New file.
43274
43275 2008-12-25  Bruno Haible  <bruno@clisp.org>
43276
43277         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43278
43279 2008-12-25  Bruno Haible  <bruno@clisp.org>
43280
43281         * modules/btowc (License): Relicense under LGPLv2+.
43282         * modules/mbsinit (License): Likewise.
43283         * modules/mbrtowc (License): Likewise.
43284         * modules/wcrtomb (License): Likewise.
43285         * modules/streq (License): Likewise.
43286         Reported by David Lutterkort <lutter@redhat.com>.
43287
43288 2008-12-23  Bruno Haible  <bruno@clisp.org>
43289
43290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43291
43292 2008-12-23  Bruno Haible  <bruno@clisp.org>
43293
43294         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43295         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43296         GETADDRINFO_LIB, not in LIBS.
43297         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43298         * modules/canon-host (Link): Likewise.
43299         * NEWS: Mention the change.
43300         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43301         GETADDRINFO_LIB.
43302
43303 2008-12-22  Bruno Haible  <bruno@clisp.org>
43304
43305         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43306         * doc/posix-functions/iswalpha_l.texi: Likewise.
43307         * doc/posix-functions/iswblank_l.texi: Likewise.
43308         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43309         * doc/posix-functions/iswctype_l.texi: Likewise.
43310         * doc/posix-functions/iswdigit_l.texi: Likewise.
43311         * doc/posix-functions/iswgraph_l.texi: Likewise.
43312         * doc/posix-functions/iswlower_l.texi: Likewise.
43313         * doc/posix-functions/iswprint_l.texi: Likewise.
43314         * doc/posix-functions/iswpunct_l.texi: Likewise.
43315         * doc/posix-functions/iswspace_l.texi: Likewise.
43316         * doc/posix-functions/iswupper_l.texi: Likewise.
43317         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43318         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43319         * doc/posix-functions/open_wmemstream.texi: Likewise.
43320         * doc/posix-functions/swscanf.texi: Likewise.
43321         * doc/posix-functions/towctrans_l.texi: Likewise.
43322         * doc/posix-functions/towlower.texi: Likewise.
43323         * doc/posix-functions/towlower_l.texi: Likewise.
43324         * doc/posix-functions/towupper.texi: Likewise.
43325         * doc/posix-functions/towupper_l.texi: Likewise.
43326         * doc/posix-functions/vfwprintf.texi: Likewise.
43327         * doc/posix-functions/vfwscanf.texi: Likewise.
43328         * doc/posix-functions/vswscanf.texi: Likewise.
43329         * doc/posix-functions/vwprintf.texi: Likewise.
43330         * doc/posix-functions/vwscanf.texi: Likewise.
43331         * doc/posix-functions/wcpcpy.texi: Likewise.
43332         * doc/posix-functions/wcpncpy.texi: Likewise.
43333         * doc/posix-functions/wcscasecmp.texi: Likewise.
43334         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43335         * doc/posix-functions/wcscoll_l.texi: Likewise.
43336         * doc/posix-functions/wcsdup.texi: Likewise.
43337         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43338         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43339         * doc/posix-functions/wcsnlen.texi: Likewise.
43340         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43341         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43342         * doc/posix-functions/wctrans_l.texi: Likewise.
43343         * doc/posix-functions/wctype_l.texi: Likewise.
43344         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43345         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43346         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43347         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43348         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43349         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43350         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43351         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43352         * doc/glibc-functions/wcschrnul.texi: Likewise.
43353         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43354         * doc/glibc-functions/wcstod_l.texi: Likewise.
43355         * doc/glibc-functions/wcstof_l.texi: Likewise.
43356         * doc/glibc-functions/wcstol_l.texi: Likewise.
43357         * doc/glibc-functions/wcstold_l.texi: Likewise.
43358         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43359         * doc/glibc-functions/wcstoq.texi: Likewise.
43360         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43361         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43362         * doc/glibc-functions/wcstouq.texi: Likewise.
43363         * doc/glibc-functions/wmempcpy.texi: Likewise.
43364
43365 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43366             Eric Blake  <ebb9@byu.net>
43367             Paolo Bonzini  <bonzini@gnu.org>
43368             Bruno Haible  <bruno@clisp.org>
43369
43370         Make c-stack work on Haiku.
43371         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43372         (c_stack_action): Use SA_ONSTACK flag.
43373
43374 2008-12-22  Bruno Haible  <bruno@clisp.org>
43375
43376         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43377
43378 2008-12-22  Bruno Haible  <bruno@clisp.org>
43379
43380         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43381         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43382         being overridden.
43383         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43384         New macros.
43385         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43386         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43387         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43388         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43389
43390 2008-12-22  Bruno Haible  <bruno@clisp.org>
43391
43392         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43393         from test code.
43394
43395 2008-12-22  Eric Blake  <ebb9@byu.net>
43396
43397         Avoid gcc warnings on cygwin.
43398         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43399         Avoid unused variable.
43400         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43401         Likewise.
43402
43403 2008-12-22  Bruno Haible  <bruno@clisp.org>
43404
43405         Remove HAVE_MBRTOWC conditionals.
43406         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43407         (mbscasecmp): Assume mbrtowc function.
43408         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43409         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43410         * lib/mbschr.c: Include mbuiter.h unconditionally.
43411         (mbschr): Assume mbrtowc function.
43412         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43413         (mbscspn): Assume mbrtowc function.
43414         * lib/mbslen.c: Include mbuiter.h unconditionally.
43415         (mbslen): Assume mbrtowc function.
43416         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43417         (mbsncasecmp): Assume mbrtowc function.
43418         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43419         (mbsnlen): Assume mbrtowc function.
43420         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43421         (mbspbrk): Assume mbrtowc function.
43422         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43423         (mbspcasecmp): Assume mbrtowc function.
43424         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43425         (mbsrchr): Assume mbrtowc function.
43426         * lib/mbssep.c: Include mbuiter.h unconditionally.
43427         (mbssep): Assume mbrtowc function.
43428         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43429         (mbsspn): Assume mbrtowc function.
43430         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43431         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43432         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43433         (mbstok_r): Assume mbrtowc function.
43434         * lib/propername.c: Include mbuiter.h unconditionally.
43435         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43436         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43437         (trim2): Assume mbrtowc function.
43438         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43439         (mbsnwidth): Assume mbrtowc function.
43440         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43441         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43442         fallback definitions.
43443         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43444
43445 2008-12-22  Bruno Haible  <bruno@clisp.org>
43446
43447         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43448
43449 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43450
43451         * modules/regex: Request emulations for the mb*/wc* functions we need.
43452         * m4/regex.m4: Don't look for those functions here.
43453         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43454
43455 2008-12-22  Bruno Haible  <bruno@clisp.org>
43456
43457         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43458
43459 2008-12-21  Bruno Haible  <bruno@clisp.org>
43460
43461         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43462         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43463         (Include): Remove conditionalization.
43464         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43465         (Include): Remove conditionalization.
43466         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43467         (Include): Remove conditionalization.
43468         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43469         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43470         * NEWS: Mention the change.
43471         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43472         via Sergey Poznyakoff <gray@gnu.org.ua>.
43473
43474 2008-12-21  Bruno Haible  <bruno@clisp.org>
43475
43476         * MODULES.html.sh (Extended multibyte and wide character utilities
43477         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43478         wcrtomb, wcsrtombs.
43479         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43480         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43481         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43482         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43483
43484 2008-12-21  Bruno Haible  <bruno@clisp.org>
43485
43486         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43487
43488 2008-12-21  Bruno Haible  <bruno@clisp.org>
43489
43490         * modules/wcsnrtombs-tests: New file.
43491         * tests/test-wcsnrtombs1.sh: New file.
43492         * tests/test-wcsnrtombs2.sh: New file.
43493         * tests/test-wcsnrtombs3.sh: New file.
43494         * tests/test-wcsnrtombs4.sh: New file.
43495         * tests/test-wcsnrtombs.c: New file.
43496
43497         New module 'wcsnrtombs'.
43498         * lib/wchar.in.h (wcsnrtombs): New declaration.
43499         * lib/wcsnrtombs.c: New file.
43500         * lib/wcsrtombs-state.c: New file.
43501         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43502         (internal_state): Remove variable.
43503         * m4/wcsnrtombs.m4: New file.
43504         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43505         compilation units.
43506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43507         HAVE_WCSNRTOMBS.
43508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43509         HAVE_WCSNRTOMBS.
43510         * modules/wcsnrtombs: New file.
43511         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43512         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43513
43514 2008-12-21  Bruno Haible  <bruno@clisp.org>
43515
43516         * modules/wcsrtombs-tests: New file.
43517         * tests/test-wcsrtombs1.sh: New file.
43518         * tests/test-wcsrtombs2.sh: New file.
43519         * tests/test-wcsrtombs3.sh: New file.
43520         * tests/test-wcsrtombs4.sh: New file.
43521         * tests/test-wcsrtombs.c: New file.
43522
43523         New module 'wcsrtombs'.
43524         * lib/wchar.in.h (wcsrtombs): New declaration.
43525         * lib/wcsrtombs.c: New file.
43526         * m4/wcsrtombs.m4: New file.
43527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43528         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43530         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43531         * modules/wcsrtombs: New file.
43532         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43533         bugs.
43534
43535 2008-12-21  Bruno Haible  <bruno@clisp.org>
43536
43537         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43538         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43539         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43540         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43541         if not correct.
43542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43543         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43544         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43545         m4/locale-zh.m4, m4/codeset.m4.
43546         * doc/posix-functions/wcrtomb.texi: Document the bug.
43547
43548 2008-12-21  Bruno Haible  <bruno@clisp.org>
43549
43550         Work around a btowc() bug on IRIX 6.5.
43551         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43552         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43553         REPLACE_WTOBC if not.
43554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43555         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43556         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43557
43558 2008-12-21  Bruno Haible  <bruno@clisp.org>
43559
43560         * modules/wcrtomb-tests: New file.
43561         * tests/test-wcrtomb.sh: New file.
43562         * tests/test-wcrtomb.c: New file.
43563
43564         New module 'wcrtomb'.
43565         * lib/wchar.in.h (wcrtomb): New declaration.
43566         * lib/wcrtomb.c: New file.
43567         * m4/wcrtomb.m4: New file.
43568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43569         HAVE_WCRTOMB.
43570         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43571         HAVE_WCRTOMB.
43572         * modules/wcrtomb: New file.
43573         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43574
43575 2008-12-21  Bruno Haible  <bruno@clisp.org>
43576
43577         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43578         * modules/mbsrtowcs (Files): Likewise.
43579         * modules/wctob (Files): Likewise.
43580         * modules/c-strcase-tests (Files): Likewise.
43581         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43582         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43583         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43584         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43585         * modules/vasnprintf-posix-tests (Files): Likewise.
43586
43587 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43588
43589         gitlog-to-changelog: pass all command-line arguments to git-log
43590         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43591         it is sometimes convenient to filter the commits in various ways.
43592         gitlog-to-changelog only allows --since to specify a start date,
43593         but git-log itself supports many other filtering mechanisms.
43594         At the moment, I want to filter by branch name.  Rather than
43595         adding a --branch option to gitlog-to-changelog, it seems more
43596         flexible to simply pass all options directly to git-log and let
43597         git do the work.  Notice that this effectively makes --since a
43598         redundant option for gitlog-to-changelog, but removing it would
43599         require current usage to change since calls would then require
43600         an additional '--'.
43601
43602 2008-12-21  Bruno Haible  <bruno@clisp.org>
43603
43604         * modules/mbsnrtowcs-tests: New file.
43605         * tests/test-mbsnrtowcs1.sh: New file.
43606         * tests/test-mbsnrtowcs2.sh: New file.
43607         * tests/test-mbsnrtowcs3.sh: New file.
43608         * tests/test-mbsnrtowcs4.sh: New file.
43609         * tests/test-mbsnrtowcs.c: New file.
43610
43611         New module 'mbsnrtowcs'.
43612         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43613         * lib/mbsnrtowcs.c: New file.
43614         * lib/mbsrtowcs-state.c: New file.
43615         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43616         (internal_state): Remove variable.
43617         * m4/mbsnrtowcs.m4: New file.
43618         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43619         compilation units.
43620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43621         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43622         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43623         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43624         * modules/mbsnrtowcs: New file.
43625         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43626         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43627         portability problem.
43628
43629 2008-12-21  Bruno Haible  <bruno@clisp.org>
43630
43631         Work around mbsrtowcs bug.
43632         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43633         (gl_FUNC_MBSRTOWCS): Invoke it.
43634         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43635         m4/locale-zh.m4.
43636         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43637
43638 2008-12-21  Bruno Haible  <bruno@clisp.org>
43639
43640         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43641
43642 2008-12-21  Bruno Haible  <bruno@clisp.org>
43643
43644         Update doc for AIX.
43645         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43646         16-bit wchar_t type.
43647         * doc/posix-functions/btowc.texi: Likewise.
43648         * doc/posix-functions/fgetwc.texi: Likewise.
43649         * doc/posix-functions/fgetws.texi: Likewise.
43650         * doc/posix-functions/fputwc.texi: Likewise.
43651         * doc/posix-functions/fputws.texi: Likewise.
43652         * doc/posix-functions/fwide.texi: Likewise.
43653         * doc/posix-functions/fwprintf.texi: Likewise.
43654         * doc/posix-functions/fwscanf.texi: Likewise.
43655         * doc/posix-functions/getwchar.texi: Likewise.
43656         * doc/posix-functions/getwc.texi: Likewise.
43657         * doc/posix-functions/iswalnum.texi: Likewise.
43658         * doc/posix-functions/iswalpha.texi: Likewise.
43659         * doc/posix-functions/iswblank.texi: Likewise.
43660         * doc/posix-functions/iswcntrl.texi: Likewise.
43661         * doc/posix-functions/iswctype.texi: Likewise.
43662         * doc/posix-functions/iswdigit.texi: Likewise.
43663         * doc/posix-functions/iswgraph.texi: Likewise.
43664         * doc/posix-functions/iswlower.texi: Likewise.
43665         * doc/posix-functions/iswprint.texi: Likewise.
43666         * doc/posix-functions/iswpunct.texi: Likewise.
43667         * doc/posix-functions/iswspace.texi: Likewise.
43668         * doc/posix-functions/iswupper.texi: Likewise.
43669         * doc/posix-functions/iswxdigit.texi: Likewise.
43670         * doc/posix-functions/mbrtowc.texi: Likewise.
43671         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43672         * doc/posix-functions/mbstowcs.texi: Likewise.
43673         * doc/posix-functions/mbtowc.texi: Likewise.
43674         * doc/posix-functions/putwchar.texi: Likewise.
43675         * doc/posix-functions/putwc.texi: Likewise.
43676         * doc/posix-functions/swprintf.texi: Likewise.
43677         * doc/posix-functions/tolower.texi: Likewise.
43678         * doc/posix-functions/toupper.texi: Likewise.
43679         * doc/posix-functions/towctrans.texi: Likewise.
43680         * doc/posix-functions/ungetwc.texi: Likewise.
43681         * doc/posix-functions/vswprintf.texi: Likewise.
43682         * doc/posix-functions/wcrtomb.texi: Likewise.
43683         * doc/posix-functions/wcscat.texi: Likewise.
43684         * doc/posix-functions/wcschr.texi: Likewise.
43685         * doc/posix-functions/wcscmp.texi: Likewise.
43686         * doc/posix-functions/wcscoll.texi: Likewise.
43687         * doc/posix-functions/wcscpy.texi: Likewise.
43688         * doc/posix-functions/wcscspn.texi: Likewise.
43689         * doc/posix-functions/wcsftime.texi: Likewise.
43690         * doc/posix-functions/wcslen.texi: Likewise.
43691         * doc/posix-functions/wcsncat.texi: Likewise.
43692         * doc/posix-functions/wcsncmp.texi: Likewise.
43693         * doc/posix-functions/wcsncpy.texi: Likewise.
43694         * doc/posix-functions/wcspbrk.texi: Likewise.
43695         * doc/posix-functions/wcsrchr.texi: Likewise.
43696         * doc/posix-functions/wcsrtombs.texi: Likewise.
43697         * doc/posix-functions/wcsspn.texi: Likewise.
43698         * doc/posix-functions/wcsstr.texi: Likewise.
43699         * doc/posix-functions/wcstod.texi: Likewise.
43700         * doc/posix-functions/wcstof.texi: Likewise.
43701         * doc/posix-functions/wcstoimax.texi: Likewise.
43702         * doc/posix-functions/wcstok.texi: Likewise.
43703         * doc/posix-functions/wcstold.texi: Likewise.
43704         * doc/posix-functions/wcstoll.texi: Likewise.
43705         * doc/posix-functions/wcstol.texi: Likewise.
43706         * doc/posix-functions/wcstombs.texi: Likewise.
43707         * doc/posix-functions/wcstoull.texi: Likewise.
43708         * doc/posix-functions/wcstoul.texi: Likewise.
43709         * doc/posix-functions/wcstoumax.texi: Likewise.
43710         * doc/posix-functions/wcswidth.texi: Likewise.
43711         * doc/posix-functions/wcsxfrm.texi: Likewise.
43712         * doc/posix-functions/wctob.texi: Likewise.
43713         * doc/posix-functions/wctomb.texi: Likewise.
43714         * doc/posix-functions/wctrans.texi: Likewise.
43715         * doc/posix-functions/wctype.texi: Likewise.
43716         * doc/posix-functions/wcwidth.texi: Likewise.
43717         * doc/posix-functions/wmemchr.texi: Likewise.
43718         * doc/posix-functions/wmemcmp.texi: Likewise.
43719         * doc/posix-functions/wmemcpy.texi: Likewise.
43720         * doc/posix-functions/wmemmove.texi: Likewise.
43721         * doc/posix-functions/wmemset.texi: Likewise.
43722         * doc/posix-functions/wprintf.texi: Likewise.
43723         * doc/posix-functions/wscanf.texi: Likewise.
43724
43725 2008-12-21  Bruno Haible  <bruno@clisp.org>
43726
43727         Update doc for HP-UX 11.11.
43728         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43729         in HP-UX version 11.00, not in all versions of HP-UX 11.
43730         * doc/posix-functions/fwide.texi: Likewise.
43731         * doc/posix-functions/fwprintf.texi: Likewise.
43732         * doc/posix-functions/fwscanf.texi: Likewise.
43733         * doc/posix-functions/inet_ntop.texi: Likewise.
43734         * doc/posix-functions/inet_pton.texi: Likewise.
43735         * doc/posix-functions/mbrlen.texi: Likewise.
43736         * doc/posix-functions/mbrtowc.texi: Likewise.
43737         * doc/posix-functions/mbsinit.texi: Likewise.
43738         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43739         * doc/posix-functions/swprintf.texi: Likewise.
43740         * doc/posix-functions/swscanf.texi: Likewise.
43741         * doc/posix-functions/towctrans.texi: Likewise.
43742         * doc/posix-functions/vfwprintf.texi: Likewise.
43743         * doc/posix-functions/vswprintf.texi: Likewise.
43744         * doc/posix-functions/vwprintf.texi: Likewise.
43745         * doc/posix-functions/wcrtomb.texi: Likewise.
43746         * doc/posix-functions/wcsrtombs.texi: Likewise.
43747         * doc/posix-functions/wcsstr.texi: Likewise.
43748         * doc/posix-functions/wctob.texi: Likewise.
43749         * doc/posix-functions/wctrans.texi: Likewise.
43750         * doc/posix-functions/wmemchr.texi: Likewise.
43751         * doc/posix-functions/wmemcmp.texi: Likewise.
43752         * doc/posix-functions/wmemcpy.texi: Likewise.
43753         * doc/posix-functions/wmemmove.texi: Likewise.
43754         * doc/posix-functions/wmemset.texi: Likewise.
43755         * doc/posix-functions/wprintf.texi: Likewise.
43756         * doc/posix-functions/wscanf.texi: Likewise.
43757
43758 2008-12-21  Bruno Haible  <bruno@clisp.org>
43759
43760         Work around a portability problem.
43761         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43762         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43763
43764 2008-12-20  Bruno Haible  <bruno@clisp.org>
43765
43766         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43767         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43768         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43770         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43771
43772         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43773         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43774         set.
43775         (GNULIB_defined_mbstate_t): New macro.
43776         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43777         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43778         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43779         reuses the system's mbrtowc function but works around the bugs.
43780         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43781         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43782         macros.
43783         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43784         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43785         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43786         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43787         REPLACE_MBSINIT if mbsinit needs to be overridden.
43788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43789         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43790         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43791         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43792         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43793         m4/locale-zh.m4.
43794         (Depends): Add mbsinit.
43795         * modules/mbsinit (Depends): Add mbrtowc.
43796         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43797
43798 2008-12-20  Bruno Haible  <bruno@clisp.org>
43799
43800         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43801         so that there are no conversion errors on AIX.
43802         * tests/test-mbsrtowcs.c (main): LIkewise.
43803
43804 2008-12-20  Bruno Haible  <bruno@clisp.org>
43805
43806         Work around wctob bug on Solaris <= 9.
43807         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43808         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43810         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43811         * modules/wctob (Files): Add m4/locale-fr.m4.
43812         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43813
43814 2008-12-20  Bruno Haible  <bruno@clisp.org>
43815
43816         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43817         /dev/null.
43818         * tests/test-select-in.sh: Likewise.
43819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43820
43821 2008-12-20  Bruno Haible  <bruno@clisp.org>
43822
43823         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43824         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43825         Cygwin 1.5.x.
43826
43827 2008-12-20  Bruno Haible  <bruno@clisp.org>
43828
43829         Ensure mbstate_t is defined on HP-UX 11.11.
43830         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43831         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43832         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43833         AC_USE_SYSTEM_EXTENSIONS.
43834         * modules/fnmatch (Depends-on): Add extensions.
43835         * modules/mbrlen (Depends-on): Likewise.
43836         * modules/mbrtowc (Depends-on): Likewise.
43837         * modules/mbsinit (Depends-on): Likewise.
43838         * modules/mbsrtowcs (Depends-on): Likewise.
43839         * modules/mbswidth (Depends-on): Likewise.
43840         * modules/quotearg (Depends-on): Likewise.
43841         * modules/strftime (Depends-on): Likewise.
43842
43843 2008-12-20  Bruno Haible  <bruno@clisp.org>
43844
43845         Ensure wctob is declared on IRIX 6.5.
43846         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43847         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43848         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43850         of HAVE_WCTOB.
43851         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43852         HAVE_WCTOB.
43853         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43854
43855 2008-12-19  Bruno Haible  <bruno@clisp.org>
43856
43857         * modules/mbsrtowcs-tests: New file.
43858         * tests/test-mbsrtowcs1.sh: New file.
43859         * tests/test-mbsrtowcs2.sh: New file.
43860         * tests/test-mbsrtowcs3.sh: New file.
43861         * tests/test-mbsrtowcs4.sh: New file.
43862         * tests/test-mbsrtowcs.c: New file.
43863
43864         New module 'mbsrtowcs'.
43865         * lib/wchar.in.h (mbsrtowcs): New declaration.
43866         * lib/mbsrtowcs.c: New file.
43867         * m4/mbsrtowcs.m4: New file.
43868         * modules/mbsrtowcs: New file.
43869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43870         HAVE_MBSRTOWCS.
43871         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43872         HAVE_MBSRTOWCS.
43873         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43874
43875 2008-12-19  Bruno Haible  <bruno@clisp.org>
43876
43877         New module 'mbrlen'.
43878         * lib/wchar.in.h (mbrlen): New declaration.
43879         * lib/mbrlen.c: New file.
43880         * m4/mbrlen.m4: New file.
43881         * modules/mbrlen: New file.
43882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43883         HAVE_MBRLEN.
43884         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43885         HAVE_MBRLEN.
43886         * doc/posix-functions/mbrlen.texi: Document the new module.
43887
43888 2008-12-19  Bruno Haible  <bruno@clisp.org>
43889
43890         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43891         * modules/mbrtowc (Depends-on): Add verify.
43892         Suggested by Paul Eggert.
43893
43894 2008-12-18  Bruno Haible  <bruno@clisp.org>
43895
43896         * modules/mbsinit-tests: New file.
43897         * tests/test-mbsinit.sh: New file.
43898         * tests/test-mbsinit.c: New file.
43899
43900 2008-12-18  Bruno Haible  <bruno@clisp.org>
43901
43902         * modules/mbrtowc-tests: New file.
43903         * tests/test-mbrtowc1.sh: New file.
43904         * tests/test-mbrtowc2.sh: New file.
43905         * tests/test-mbrtowc3.sh: New file.
43906         * tests/test-mbrtowc4.sh: New file.
43907         * tests/test-mbrtowc.c: New file.
43908
43909         New module 'mbrtowc'.
43910         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43911         mbsinit and mbrtowc.
43912         (mbrtowc): New declaration.
43913         * lib/mbrtowc.c: New file.
43914         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43915         * modules/mbrtowc: New file.
43916         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43917         HAVE_MBRTOWC.
43918         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43919         HAVE_MBRTOWC.
43920         * doc/posix-functions/mbrtowc.texi: Document the new module.
43921
43922 2008-12-18  Bruno Haible  <bruno@clisp.org>
43923
43924         New module 'wctob'.
43925         * lib/wchar.in.h (wctob): New declaration.
43926         * lib/wctob.c: New file.
43927         * m4/wctob.m4: New file.
43928         * modules/wctob: New file.
43929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43930         HAVE_WCTOB.
43931         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43932         * doc/posix-functions/wctob.texi: Document the new module.
43933
43934 2008-12-18  Bruno Haible  <bruno@clisp.org>
43935
43936         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43937         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43938
43939 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43940
43941         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43942         G. Christensen" <tgc@jupiterrise.com>.
43943
43944         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43945         G. Christensen" <tgc@jupiterrise.com>.
43946
43947         * lib/flock.c: Need to include string.h.  Reported by "Tom
43948         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43949         <ebb9@byu.net>.
43950
43951 2008-12-18  Bruno Haible  <bruno@clisp.org>
43952
43953         * m4/locale-ja.m4: New file, from GNU gettext.
43954
43955 2008-12-17  Bruno Haible  <bruno@clisp.org>
43956
43957         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43958         Suggested by Eric Blake.
43959
43960 2008-12-17  Bruno Haible  <bruno@clisp.org>
43961
43962         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43963
43964 2008-12-17  Bruno Haible  <bruno@clisp.org>
43965
43966         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43967         * modules/mbsinit (Depends-on): Add verify.
43968         Suggested by Paul Eggert.
43969
43970 2008-12-17  Bruno Haible  <bruno@clisp.org>
43971
43972         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43973         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43974         gl_FUNC_MBRTOWC.
43975         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43976         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43977         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43978         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43979         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43980         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43981         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43982         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43983         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43984         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43985         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43986         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43987         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43988         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43989         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43990         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43991         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43992         * modules/trim (configure.ac): Likewise.
43993
43994 2008-12-17  Bruno Haible  <bruno@clisp.org>
43995
43996         * modules/btowc-tests: New file.
43997         * tests/test-btowc1.sh: New file.
43998         * tests/test-btowc2.sh: New file.
43999         * tests/test-btowc.c: New file.
44000
44001         New module 'btowc'.
44002         * lib/wchar.in.h (btowc): New declaration.
44003         * lib/btowc.c: New file.
44004         * m4/btowc.m4: New file.
44005         * modules/btowc: New file.
44006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44007         HAVE_BTOWC.
44008         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44009         * doc/posix-functions/btowc.texi: Document the new module.
44010
44011 2008-12-17  Bruno Haible  <bruno@clisp.org>
44012
44013         New module 'mbsinit'.
44014         * lib/wchar.in.h (mbsinit): New declaration.
44015         * lib/mbsinit.c: New file.
44016         * m4/mbsinit.m4: New file.
44017         * modules/mbsinit: New file.
44018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44019         HAVE_MBSINIT.
44020         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44021         HAVE_MBSINIT.
44022         * doc/posix-functions/mbsinit.texi: Document the new module.
44023
44024 2008-12-16  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/unistd.in.h: Add comment.
44027         * tests/test-environ.c: Don't include <stdlib.h>.
44028
44029 2008-12-16  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/parse-duration.h (parse_duration): Document return value
44032         convention.
44033         * lib/parse-duration.c: Include specification header first. Add
44034         comments.
44035         (_): Remove macro.
44036         (parse_year_month_day, parse_hour_minute_second): Move side effects
44037         outside of strchr call.
44038         (parse_non_iso8601): Move side effects outside of isspace call.
44039         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44040         call.
44041
44042 2008-12-16  Bruno Haible  <bruno@clisp.org>
44043
44044         * tests/test-parse-duration.sh: Produce no output when the test
44045         succeeds.
44046
44047 2008-12-16  Bruno Haible  <bruno@clisp.org>
44048
44049         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44050         expressions.
44051
44052 2008-12-15  Bruno Haible  <bruno@clisp.org>
44053
44054         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44055         * doc/glibc-functions/flistxattr.texi: Likewise.
44056         * doc/glibc-functions/fopencookie.texi: Likewise.
44057         * doc/glibc-functions/fremovexattr.texi: Likewise.
44058         * doc/glibc-functions/fsetxattr.texi: Likewise.
44059         * doc/glibc-functions/getxattr.texi: Likewise.
44060         * doc/glibc-functions/lgetxattr.texi: Likewise.
44061         * doc/glibc-functions/listxattr.texi: Likewise.
44062         * doc/glibc-functions/llistxattr.texi: Likewise.
44063         * doc/glibc-functions/lremovexattr.texi: Likewise.
44064         * doc/glibc-functions/lsetxattr.texi: Likewise.
44065         * doc/glibc-functions/removexattr.texi: Likewise.
44066         * doc/glibc-functions/setxattr.texi: Likewise.
44067         * doc/posix-functions/open_memstream.texi: Likewise.
44068
44069 2008-12-15  Eric Blake  <ebb9@byu.net>
44070
44071         Update doc for cygwin 1.7.
44072         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44073         functions.
44074         * doc/posix-functions/fchmodat.texi: Likewise.
44075         * doc/posix-functions/fchownat.texi: Likewise.
44076         * doc/posix-functions/fdopendir.texi: Likewise.
44077         * doc/posix-functions/fmemopen.texi: Likewise.
44078         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44079         * doc/posix-functions/fstatat.texi: Likewise.
44080         * doc/posix-functions/futimens.texi: Likewise.
44081         * doc/posix-functions/gai_strerror.texi: Likewise.
44082         * doc/posix-functions/getaddrinfo.texi: Likewise.
44083         * doc/posix-functions/getnameinfo.texi: Likewise.
44084         * doc/posix-functions/if_freenameindex.texi: Likewise.
44085         * doc/posix-functions/if_indextoname.texi: Likewise.
44086         * doc/posix-functions/if_nameindex.texi: Likewise.
44087         * doc/posix-functions/if_nametoindex.texi: Likewise.
44088         * doc/posix-functions/insque.texi: Likewise.
44089         * doc/posix-functions/linkat.texi: Likewise.
44090         * doc/posix-functions/llrint.texi: Likewise.
44091         * doc/posix-functions/llrintf.texi: Likewise.
44092         * doc/posix-functions/llrintl.texi: Likewise.
44093         * doc/posix-functions/lockf.texi: Likewise.
44094         * doc/posix-functions/lrintl.texi: Likewise.
44095         * doc/posix-functions/mkdirat.texi: Likewise.
44096         * doc/posix-functions/mkfifoat.texi: Likewise.
44097         * doc/posix-functions/mknodat.texi: Likewise.
44098         * doc/posix-functions/mq_close.texi: Likewise.
44099         * doc/posix-functions/mq_getattr.texi: Likewise.
44100         * doc/posix-functions/mq_notify.texi: Likewise.
44101         * doc/posix-functions/mq_open.texi: Likewise.
44102         * doc/posix-functions/mq_receive.texi: Likewise.
44103         * doc/posix-functions/mq_send.texi: Likewise.
44104         * doc/posix-functions/mq_setattr.texi: Likewise.
44105         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44106         * doc/posix-functions/mq_timedsend.texi: Likewise.
44107         * doc/posix-functions/mq_unlink.texi: Likewise.
44108         * doc/posix-functions/open_memstream.texi: Likewise.
44109         * doc/posix-functions/openat.texi: Likewise.
44110         * doc/posix-functions/posix_fadvise.texi: Likewise.
44111         * doc/posix-functions/posix_fallocate.texi: Likewise.
44112         * doc/posix-functions/posix_madvise.texi: Likewise.
44113         * doc/posix-functions/posix_memalign.texi: Likewise.
44114         * doc/posix-functions/posix_openpt.texi: Likewise.
44115         * doc/posix-functions/readlinkat.texi: Likewise.
44116         * doc/posix-functions/remque.texi: Likewise.
44117         * doc/posix-functions/renameat.texi: Likewise.
44118         * doc/posix-functions/rintl.texi: Likewise.
44119         * doc/posix-functions/sem_unlink.texi: Likewise.
44120         * doc/posix-functions/shm_open.texi: Likewise.
44121         * doc/posix-functions/shm_unlink.texi: Likewise.
44122         * doc/posix-functions/signgam.texi: Likewise.
44123         * doc/posix-functions/sigset.texi: Likewise.
44124         * doc/posix-functions/stpcpy.texi: Likewise.
44125         * doc/posix-functions/stpncpy.texi: Likewise.
44126         * doc/posix-functions/strerror.texi: Likewise.
44127         * doc/posix-functions/strtod.texi: Likewise.
44128         * doc/posix-functions/symlinkat.texi: Likewise.
44129         * doc/posix-functions/unlinkat.texi: Likewise.
44130         * doc/posix-functions/utimensat.texi: Likewise.
44131         * doc/glibc-functions/bindresvport.texi: Likewise.
44132         * doc/glibc-functions/dn_expand.texi: Likewise.
44133         * doc/glibc-functions/exp10.texi: Likewise.
44134         * doc/glibc-functions/exp10f.texi: Likewise.
44135         * doc/glibc-functions/fgetxattr.texi: Likewise.
44136         * doc/glibc-functions/flistxattr.texi: Likewise.
44137         * doc/glibc-functions/fopencookie.texi: Likewise.
44138         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44139         * doc/glibc-functions/fremovexattr.texi: Likewise.
44140         * doc/glibc-functions/fsetxattr.texi: Likewise.
44141         * doc/glibc-functions/getifaddrs.texi: Likewise.
44142         * doc/glibc-functions/getxattr.texi: Likewise.
44143         * doc/glibc-functions/lgetxattr.texi: Likewise.
44144         * doc/glibc-functions/listxattr.texi: Likewise.
44145         * doc/glibc-functions/llistxattr.texi: Likewise.
44146         * doc/glibc-functions/lremovexattr.texi: Likewise.
44147         * doc/glibc-functions/lsetxattr.texi: Likewise.
44148         * doc/glibc-functions/pow10.texi: Likewise.
44149         * doc/glibc-functions/pow10f.texi: Likewise.
44150         * doc/glibc-functions/rcmd_af.texi: Likewise.
44151         * doc/glibc-functions/removexattr.texi: Likewise.
44152         * doc/glibc-functions/res_init.texi: Likewise.
44153         * doc/glibc-functions/res_mkquery.texi: Likewise.
44154         * doc/glibc-functions/res_query.texi: Likewise.
44155         * doc/glibc-functions/res_querydomain.texi: Likewise.
44156         * doc/glibc-functions/res_send.texi: Likewise.
44157         * doc/glibc-functions/rresvport_af.texi: Likewise.
44158         * doc/glibc-functions/setxattr.texi: Likewise.
44159         * doc/glibc-functions/strcasestr.texi: Likewise.
44160
44161 2008-12-15  Bruno Haible  <bruno@clisp.org>
44162
44163         Fix compilation error on OSF/1 4.0.
44164         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44165         <sys/time.h>, simply delegate to the system header.
44166         Reported by Daniel Richard G. <oss@teragram.com>.
44167
44168 2008-12-15  Bruno Haible  <bruno@clisp.org>
44169
44170         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44171         * doc/posix-functions/fchmodat.texi: Likewise.
44172         * doc/posix-functions/fchownat.texi: Likewise.
44173         * doc/posix-functions/fdopendir.texi: Likewise.
44174         * doc/posix-functions/fstatat.texi: Likewise.
44175         * doc/posix-functions/mkdirat.texi: Likewise.
44176         * doc/posix-functions/unlinkat.texi: Likewise.
44177
44178 2008-12-14  Bruno Haible  <bruno@clisp.org>
44179
44180         Update doc for POSIX:2008.
44181         * doc/posix-functions/faccessat.texi: New file.
44182         * doc/posix-functions/fchmodat.texi: New file.
44183         * doc/posix-functions/fchownat.texi: New file.
44184         * doc/posix-functions/fdopendir.texi: New file.
44185         * doc/posix-functions/fstatat.texi: New file.
44186         * doc/posix-functions/futimens.texi: New file.
44187         * doc/posix-functions/linkat.texi: New file.
44188         * doc/posix-functions/mkdirat.texi: New file.
44189         * doc/posix-functions/mkfifoat.texi: New file.
44190         * doc/posix-functions/mknodat.texi: New file.
44191         * doc/posix-functions/open_wmemstream.texi: New file.
44192         * doc/posix-functions/openat.texi: New file.
44193         * doc/posix-functions/psiginfo.texi: New file.
44194         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44195         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44196         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44197         * doc/posix-functions/readlinkat.texi: New file.
44198         * doc/posix-functions/renameat.texi: New file.
44199         * doc/posix-functions/strerror_l.texi: New file.
44200         * doc/posix-functions/symlinkat.texi: New file.
44201         * doc/posix-functions/unlinkat.texi: New file.
44202         * doc/posix-functions/utimensat.texi: New file.
44203         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44204
44205 2008-12-14  Bruno Haible  <bruno@clisp.org>
44206
44207         Update doc for POSIX:2008.
44208         * doc/posix-functions/alphasort.texi: Renamed from
44209         doc/glibc-functions/alphasort.texi.
44210         * doc/posix-functions/dirfd.texi: Renamed from
44211         doc/glibc-functions/dirfd.texi.
44212         * doc/posix-functions/dprintf.texi: Renamed from
44213         doc/glibc-functions/dprintf.texi.
44214         * doc/posix-functions/duplocale.texi: Renamed from
44215         doc/glibc-functions/duplocale.texi.
44216         * doc/posix-functions/fexecve.texi: Renamed from
44217         doc/glibc-functions/fexecve.texi.
44218         * doc/posix-functions/fmemopen.texi: Renamed from
44219         doc/glibc-functions/fmemopen.texi.
44220         * doc/posix-functions/freelocale.texi: Renamed from
44221         doc/glibc-functions/freelocale.texi.
44222         * doc/posix-functions/getdate_err.texi: Renamed from
44223         doc/glibc-functions/getdate_err.texi.
44224         * doc/posix-functions/isalnum_l.texi: Renamed from
44225         doc/glibc-functions/isalnum_l.texi.
44226         * doc/posix-functions/isalpha_l.texi: Renamed from
44227         doc/glibc-functions/isalpha_l.texi.
44228         * doc/posix-functions/isblank_l.texi: Renamed from
44229         doc/glibc-functions/isblank_l.texi.
44230         * doc/posix-functions/iscntrl_l.texi: Renamed from
44231         doc/glibc-functions/iscntrl_l.texi.
44232         * doc/posix-functions/isdigit_l.texi: Renamed from
44233         doc/glibc-functions/isdigit_l.texi.
44234         * doc/posix-functions/isgraph_l.texi: Renamed from
44235         doc/glibc-functions/isgraph_l.texi.
44236         * doc/posix-functions/islower_l.texi: Renamed from
44237         doc/glibc-functions/islower_l.texi.
44238         * doc/posix-functions/isprint_l.texi: Renamed from
44239         doc/glibc-functions/isprint_l.texi.
44240         * doc/posix-functions/ispunct_l.texi: Renamed from
44241         doc/glibc-functions/ispunct_l.texi.
44242         * doc/posix-functions/isspace_l.texi: Renamed from
44243         doc/glibc-functions/isspace_l.texi.
44244         * doc/posix-functions/isupper_l.texi: Renamed from
44245         doc/glibc-functions/isupper_l.texi.
44246         * doc/posix-functions/iswalnum_l.texi: Renamed from
44247         doc/glibc-functions/iswalnum_l.texi.
44248         * doc/posix-functions/iswalpha_l.texi: Renamed from
44249         doc/glibc-functions/iswalpha_l.texi.
44250         * doc/posix-functions/iswblank_l.texi: Renamed from
44251         doc/glibc-functions/iswblank_l.texi.
44252         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44253         doc/glibc-functions/iswcntrl_l.texi.
44254         * doc/posix-functions/iswctype_l.texi: Renamed from
44255         doc/glibc-functions/iswctype_l.texi.
44256         * doc/posix-functions/iswdigit_l.texi: Renamed from
44257         doc/glibc-functions/iswdigit_l.texi.
44258         * doc/posix-functions/iswgraph_l.texi: Renamed from
44259         doc/glibc-functions/iswgraph_l.texi.
44260         * doc/posix-functions/iswlower_l.texi: Renamed from
44261         doc/glibc-functions/iswlower_l.texi.
44262         * doc/posix-functions/iswprint_l.texi: Renamed from
44263         doc/glibc-functions/iswprint_l.texi.
44264         * doc/posix-functions/iswpunct_l.texi: Renamed from
44265         doc/glibc-functions/iswpunct_l.texi.
44266         * doc/posix-functions/iswspace_l.texi: Renamed from
44267         doc/glibc-functions/iswspace_l.texi.
44268         * doc/posix-functions/iswupper_l.texi: Renamed from
44269         doc/glibc-functions/iswupper_l.texi.
44270         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44271         doc/glibc-functions/iswxdigit_l.texi.
44272         * doc/posix-functions/isxdigit_l.texi: Renamed from
44273         doc/glibc-functions/isxdigit_l.texi.
44274         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44275         doc/glibc-functions/mbsnrtowcs.texi.
44276         * doc/posix-functions/mkdtemp.texi: Renamed from
44277         doc/glibc-functions/mkdtemp.texi.
44278         * doc/posix-functions/newlocale.texi: Renamed from
44279         doc/glibc-functions/newlocale.texi.
44280         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44281         doc/glibc-functions/nl_langinfo_l.texi.
44282         * doc/posix-functions/open_memstream.texi: Renamed from
44283         doc/glibc-functions/open_memstream.texi.
44284         * doc/posix-functions/opterr.texi: Renamed from
44285         doc/glibc-functions/opterr.texi.
44286         * doc/posix-functions/optind.texi: Renamed from
44287         doc/glibc-functions/optind.texi.
44288         * doc/posix-functions/optopt.texi: Renamed from
44289         doc/glibc-functions/optopt.texi.
44290         * doc/posix-functions/psignal.texi: Renamed from
44291         doc/glibc-functions/psignal.texi.
44292         * doc/posix-functions/scandir.texi: Renamed from
44293         doc/glibc-functions/scandir.texi.
44294         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44295         doc/glibc-functions/sched_get_priority_min.texi.
44296         * doc/posix-functions/signgam.texi: Renamed from
44297         doc/glibc-functions/signgam.texi.
44298         * doc/posix-functions/stpcpy.texi: Renamed from
44299         doc/glibc-functions/stpcpy.texi.
44300         * doc/posix-functions/stpncpy.texi: Renamed from
44301         doc/glibc-functions/stpncpy.texi.
44302         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44303         doc/glibc-functions/strcasecmp_l.texi.
44304         * doc/posix-functions/strcoll_l.texi: Renamed from
44305         doc/glibc-functions/strcoll_l.texi.
44306         * doc/posix-functions/strfmon_l.texi: Renamed from
44307         doc/glibc-functions/strfmon_l.texi.
44308         * doc/posix-functions/strftime_l.texi: Renamed from
44309         doc/glibc-functions/strftime_l.texi.
44310         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44311         doc/glibc-functions/strncasecmp_l.texi.
44312         * doc/posix-functions/strndup.texi: Renamed from
44313         doc/glibc-functions/strndup.texi.
44314         * doc/posix-functions/strnlen.texi: Renamed from
44315         doc/glibc-functions/strnlen.texi.
44316         * doc/posix-functions/strsignal.texi: Renamed from
44317         doc/glibc-functions/strsignal.texi.
44318         * doc/posix-functions/strxfrm_l.texi: Renamed from
44319         doc/glibc-functions/strxfrm_l.texi.
44320         * doc/posix-functions/timer_gettime.texi: Renamed from
44321         doc/glibc-functions/timer_gettime.texi.
44322         * doc/posix-functions/tolower_l.texi: Renamed from
44323         doc/glibc-functions/tolower_l.texi.
44324         * doc/posix-functions/toupper_l.texi: Renamed from
44325         doc/glibc-functions/toupper_l.texi.
44326         * doc/posix-functions/towctrans_l.texi: Renamed from
44327         doc/glibc-functions/towctrans_l.texi.
44328         * doc/posix-functions/towlower_l.texi: Renamed from
44329         doc/glibc-functions/towlower_l.texi.
44330         * doc/posix-functions/towupper_l.texi: Renamed from
44331         doc/glibc-functions/towupper_l.texi.
44332         * doc/posix-functions/uselocale.texi: Renamed from
44333         doc/glibc-functions/uselocale.texi.
44334         * doc/posix-functions/vdprintf.texi: Renamed from
44335         doc/glibc-functions/vdprintf.texi.
44336         * doc/posix-functions/wcpcpy.texi:
44337         Renamed from doc/glibc-functions/wcpcpy.texi.
44338         * doc/posix-functions/wcpncpy.texi: Renamed from
44339         doc/glibc-functions/wcpncpy.texi.
44340         * doc/posix-functions/wcscasecmp.texi: Renamed from
44341         doc/glibc-functions/wcscasecmp.texi.
44342         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44343         doc/glibc-functions/wcscasecmp_l.texi.
44344         * doc/posix-functions/wcscoll_l.texi: Renamed from
44345         doc/glibc-functions/wcscoll_l.texi.
44346         * doc/posix-functions/wcsdup.texi: Renamed from
44347         doc/glibc-functions/wcsdup.texi.
44348         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44349         doc/glibc-functions/wcsncasecmp.texi.
44350         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44351         doc/glibc-functions/wcsncasecmp_l.texi.
44352         * doc/posix-functions/wcsnlen.texi: Renamed from
44353         doc/glibc-functions/wcsnlen.texi.
44354         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44355         doc/glibc-functions/wcsnrtombs.texi.
44356         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44357         doc/glibc-functions/wcsxfrm_l.texi.
44358         * doc/posix-functions/wctrans_l.texi: Renamed from
44359         doc/glibc-functions/wctrans_l.texi.
44360         * doc/posix-functions/wctype_l.texi: Renamed from
44361         doc/glibc-functions/wctype_l.texi.
44362         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44363         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44364         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44365         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44366         these subsections.
44367         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44368         Remove sections.
44369
44370 2008-12-14  Bruno Haible  <bruno@clisp.org>
44371
44372         Update doc for POSIX:2008.
44373         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44374
44375 2008-12-14  Bruno Haible  <bruno@clisp.org>
44376
44377         Update doc for POSIX:2008.
44378         * doc/pastposix-functions/bcmp.texi: Renamed from
44379         doc/posix-functions/bcmp.texi.
44380         * doc/pastposix-functions/bcopy.texi: Renamed from
44381         doc/posix-functions/bcopy.texi.
44382         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44383         doc/posix-functions/bsd_signal.texi.
44384         * doc/pastposix-functions/bzero.texi: Renamed from
44385         doc/posix-functions/bzero.texi.
44386         * doc/pastposix-functions/ecvt.texi: Renamed from
44387         doc/posix-functions/ecvt.texi.
44388         * doc/pastposix-functions/fcvt.texi: Renamed from
44389         doc/posix-functions/fcvt.texi.
44390         * doc/pastposix-functions/ftime.texi: Renamed from
44391         doc/posix-functions/ftime.texi.
44392         * doc/pastposix-functions/gcvt.texi: Renamed from
44393         doc/posix-functions/gcvt.texi.
44394         * doc/pastposix-functions/getcontext.texi: Renamed from
44395         doc/posix-functions/getcontext.texi.
44396         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44397         doc/posix-functions/gethostbyaddr.texi.
44398         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44399         doc/posix-functions/gethostbyname.texi.
44400         * doc/pastposix-functions/getwd.texi: Renamed from
44401         doc/posix-functions/getwd.texi.
44402         * doc/pastposix-functions/h_errno.texi: Renamed from
44403         doc/posix-functions/h_errno.texi.
44404         * doc/pastposix-functions/index.texi: Renamed from
44405         doc/posix-functions/index.texi.
44406         * doc/pastposix-functions/makecontext.texi: Renamed from
44407         doc/posix-functions/makecontext.texi.
44408         * doc/pastposix-functions/mktemp.texi: Renamed from
44409         doc/posix-functions/mktemp.texi.
44410         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44411         doc/posix-functions/pthread_attr_getstackaddr.texi.
44412         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44413         doc/posix-functions/pthread_attr_setstackaddr.texi.
44414         * doc/pastposix-functions/rindex.texi: Renamed from
44415         doc/posix-functions/rindex.texi.
44416         * doc/pastposix-functions/scalb.texi: Renamed from
44417         doc/posix-functions/scalb.texi.
44418         * doc/pastposix-functions/setcontext.texi: Renamed from
44419         doc/posix-functions/setcontext.texi.
44420         * doc/pastposix-functions/swapcontext.texi: Renamed from
44421         doc/posix-functions/swapcontext.texi.
44422         * doc/pastposix-functions/ualarm.texi: Renamed from
44423         doc/posix-functions/ualarm.texi.
44424         * doc/pastposix-functions/usleep.texi: Renamed from
44425         doc/posix-functions/usleep.texi.
44426         * doc/pastposix-functions/vfork.texi: Renamed from
44427         doc/posix-functions/vfork.texi.
44428         * doc/pastposix-functions/wcswcs.texi: Renamed from
44429         doc/posix-functions/wcswcs.texi.
44430         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44431         (Function Substitutes): Update.
44432
44433 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44434
44435         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44436         m4/strerror.m4.
44437
44438 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44439             Bruno Haible  <bruno@clisp.org>
44440
44441         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44442
44443 2008-12-13  Bruno Haible  <bruno@clisp.org>
44444
44445         * modules/strtoull (Depends-on): Remove unistd.
44446
44447 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44448
44449         * modules/strtoull (Depends-on): Add stdlib.
44450
44451 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44452
44453         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44454
44455 2008-12-10  Jim Meyering  <meyering@redhat.com>
44456
44457         gl_ASSERT: don't say assertions are disabled when they're not
44458         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44459         "checking whether to enable assertions... no", when they are in
44460         fact enabled.  This is solely a bug in the output of configure.
44461         In spite of saying "no", NDEBUG was not defined in that case.
44462         Also, as noted by Eric Blake, leave assertions enabled upon
44463         --enable-assert=INVALID.
44464
44465 2008-12-10  Bruno Haible  <bruno@clisp.org>
44466
44467         Change MODULES.html to refer to POSIX:2008 where possible.
44468         * MODULES.html.sh (POSIX2008_URL): New variable.
44469         (posix_headers): Remove sys/timeb, ucontext.
44470         (posix2001_headers): New variable.
44471         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44472         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44473         index, makecontext, mktemp, pthread_attr_getstackaddr,
44474         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44475         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44476         (posix2001_functions): New variable.
44477         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44478         otherwise.
44479
44480 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44481
44482         add missing include to parse-duration.c
44483         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44484         * modules/parse-duration (Depends-on): Add xalloc.
44485
44486         fix sed script reading maint.mk
44487         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44488         (syntax-check-rules): Use it.
44489
44490 2008-12-09  Bruno Haible  <bruno@clisp.org>
44491
44492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44493         MacOS X 10.4/PowerPC.
44494         Reported by Simon Josefsson.
44495
44496 2008-12-08  Jim Meyering  <meyering@redhat.com>
44497
44498         work around mingw's lack of some S_IF definitions
44499         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44500         Reported by Simon Josefsson.
44501
44502 2008-12-08  Bruno Haible  <bruno@clisp.org>
44503
44504         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44505         applied to variables. Needed on MacOS X 10.4/PowerPC.
44506         Reported by Simon Josefsson.
44507
44508 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44509         and Eric Blake  <ebb9@byu.net>
44510
44511         assert: honor --enable-assert
44512         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44513         order to honor --enable-assert, rather than treating it as a
44514         synonym for --disable-assert.
44515
44516 2008-12-08  Jim Meyering  <meyering@redhat.com>
44517
44518         * lib/posixtm.c: Remove now-useless declaration of mktime.
44519
44520         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44521
44522 2008-12-07  Bruno Haible  <bruno@clisp.org>
44523
44524         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44525         test_once): Mark functions as static.
44526         * tests/test-tls.c (test_tls): Likewise.
44527
44528 2008-12-07  Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44531         iconv_register_autodetect.
44532
44533 2008-12-07  Jim Meyering  <meyering@redhat.com>
44534
44535         posixtm.c: avoid a warning
44536         * lib/posixtm.c (posixtime): Don't initialize tm0.
44537         It's no longer needed to placate gcc4's -Wuninitialized,
44538         and the attempt to placate would elicit a new warning.
44539
44540         unicodeio.c: mark unused parameters
44541         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44542         (fallback_failure_callback): Likewise.
44543
44544 2008-12-07  Bruno Haible  <bruno@clisp.org>
44545
44546         * gnulib-tool (func_create_testdir): When building the tests
44547         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44548         Reported by Simon Josefsson.
44549
44550 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44551
44552         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44553
44554 2008-12-06  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44557         Suggested by Eric Blake.
44558
44559 2008-12-06  Bruno Haible  <bruno@clisp.org>
44560
44561         Fix a c-stack test failure on MacOS X.
44562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44563         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44564         handler for SIGBUS as well.
44565         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44566         install a signal handler for SIGBUS as well.
44567         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44568
44569 2008-12-06  Bruno Haible  <bruno@clisp.org>
44570
44571         Advocacy documentation.
44572         * doc/gnulib-intro.texi (Benefits): New section.
44573         * doc/gnulib.texi: Update.
44574
44575 2008-12-06  Bruno Haible  <bruno@clisp.org>
44576
44577         Document the 'manywarnings' module.
44578         * doc/manywarnings.texi: New file.
44579         * doc/gnulib.texi: Include it.
44580
44581 2008-12-05  Eric Blake  <ebb9@byu.net>
44582
44583         tests: silence some gcc warnings
44584         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44585         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44586         type mismatches.
44587
44588 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44589             Bruno Haible  <bruno@clisp.org>
44590
44591         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44592
44593 2008-11-29  Jim Meyering  <meyering@redhat.com>
44594
44595         unicodeio.c: mark unused parameters
44596         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44597         (fallback_failure_callback): Likewise.
44598
44599         fts: fix a thinko
44600         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44601         (set_stat_type): Return S_IF*-valued "type" directly.
44602         Prompted by James Youngman's spotting a related bug.
44603         Confirmed by further testing through find.
44604
44605         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44606         * lib/fts.c (D_TYPE): Define.
44607         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44608         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44609         (s_ifmt_shift_bits): New function.
44610         (set_stat_type): New function.
44611         (fts_build): When not calling fts_stat, call set_stat_type
44612         to propagate dirent.d_type info to fts_read caller.
44613         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44614         fts_statp->st_mode type information may be valid.
44615
44616 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44617
44618         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44619         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44620         <sds@gnu.org>.
44621
44622 2008-11-20  Bruno Haible  <bruno@clisp.org>
44623
44624         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44625         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44626         INCLUDE_NEXT.
44627         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44628         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44629         * modules/math (Makefile.am): Substitute
44630         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44631         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44632
44633 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44634             Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/stdint.in.h: Define all type macros so that their expansion is
44637         a single typedef'ed token. Fixes a compilation failure in Boost which
44638         does "using ::int8_t;".
44639
44640 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44641
44642         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44643         gl_MANYWARN_ALL_GCC.
44644         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44645         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44646         * modules/manywarnings: New file.
44647         * MODULES.html.sh: Mention manywarnings module.
44648
44649 2008-11-18  Bruno Haible  <bruno@clisp.org>
44650
44651         * doc/gnulib-tool.texi (Unit tests): New section.
44652
44653 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44654
44655         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44656         paths like 'lib/po/foo.po'.
44657
44658 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44659
44660         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44661         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44662
44663 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44664
44665         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44666         parameter works.
44667
44668 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44669
44670         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44671
44672 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44673
44674         * modules/parse-duration-tests: New file.
44675         * tests/test-parse-duration.sh: New file.
44676         * tests/test-parse-duration.c: New file.
44677
44678         New module 'parse-duration'.
44679         * lib/parse-duration.h: New file.
44680         * lib/parse-duration.c: New file.
44681         * modules/parse-duration: New file.
44682
44683 2008-11-17  Bruno Haible  <bruno@clisp.org>
44684
44685         * tests/test-select-out.sh: Comment out the first pipe test.
44686         Reported by Simon Josefsson.
44687
44688 2008-11-17  Bruno Haible  <bruno@clisp.org>
44689
44690         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44692         gl_HOSTENT.
44693
44694 2008-11-17  Bruno Haible  <bruno@clisp.org>
44695
44696         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44697         -lnetwork and -lnet. Needed for Haiku and BeOS.
44698
44699 2008-11-16  Bruno Haible  <bruno@clisp.org>
44700
44701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44702
44703 2008-11-16  Bruno Haible  <bruno@clisp.org>
44704
44705         Avoid test failure on Haiku.
44706         * tests/test-fsync.c: Include <errno.h>.
44707         (main): Don't require that fsync (0) fails.
44708
44709 2008-11-15  Bruno Haible  <bruno@clisp.org>
44710
44711         New module 'hostent'.
44712         * modules/hostent: New file.
44713         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44714
44715 2008-11-15  Bruno Haible  <bruno@clisp.org>
44716
44717         New module 'servent'.
44718         * modules/servent: New file.
44719         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44720
44721 2008-11-15  Bruno Haible  <bruno@clisp.org>
44722
44723         Avoid generating same test program with two different rules.
44724         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44725         test-frexp to test-frexp-nolibm.
44726         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44727         test-frexpl to test-frexpl-nolibm.
44728
44729 2008-11-15  Bruno Haible  <bruno@clisp.org>
44730
44731         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44732         $(FREXPL_LIBM).
44733
44734 2008-11-15  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/netdb.in.h: Activate the definitions also when the system's
44737         <netdb.h> has 'struct addrinfo'.
44738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44739         EAI_OVERFLOW or AI_NUMERICSERV.
44740         * doc/posix-headers/netdb.texi: Document the problem.
44741
44742 2008-11-15  Bruno Haible  <bruno@clisp.org>
44743
44744         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44745
44746         Make the 'sched' module work on platforms where <sched.h> exists but
44747         is incomplete (such as Haiku).
44748         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44749         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44750         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44751         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44752         HAVE_STRUCT_SCHED_PARAM.
44753         * modules/sched (Depends-on): Add include_next.
44754         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44755         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44756         * doc/posix-headers/sched.texi: Document the issue.
44757
44758 2008-11-13  Jim Meyering  <meyering@redhat.com>
44759
44760         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44761         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44762         test would fail due to the difference in the Report bugs to ...
44763         line.  The expected address is empty, "<>", while the actual
44764         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44765
44766 2008-11-12  Bruno Haible  <bruno@clisp.org>
44767
44768         lstat: don't compile lstat.c on systems lacking lstat
44769         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44770         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44771         Reported by Daniel P. Berrange via Jim Meyering.
44772
44773 2008-11-12  Jim Meyering  <meyering@redhat.com>
44774
44775         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44776
44777 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44778
44779         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44780         instead.
44781
44782 2008-11-12  Bruno Haible  <bruno@clisp.org>
44783
44784         * lib/unicodeio.c: Include unistr.h.
44785         (utf8_wctomb): Remove function.
44786         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44787
44788 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44789
44790         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44791         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44792         <bruno@clisp.org>.
44793         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44794
44795 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44796
44797         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44798         * doc/gnulib.texi: Add section for warnings.
44799
44800 2008-11-11  Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/sockets.h: Add a comment.
44803
44804 2008-11-11  Karl Berry  <karl@gnu.org>
44805
44806         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44807
44808 2008-11-11  Eric Blake  <ebb9@byu.net>
44809
44810         fdl.texi: avoid git symlinks
44811         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44812
44813 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44814
44815         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44816
44817 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44818
44819         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44820         (gl_WARN_ADD): Substitute $2 if literal.
44821
44822 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44823
44824         * m4/warning.m4: Remove.
44825
44826 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44827
44828         * m4/warnings.m4: Almost complete rewrite. :-)
44829
44830 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44831
44832         * modules/warnings: New module.
44833         * m4/warnings.m4: New file.
44834         * MODULES.html.sh: Mention warnings module.
44835         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44836         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44837
44838 2008-11-10  Eric Blake  <ebb9@byu.net>
44839
44840         fdl.texi: make a symlink to the latest version
44841         * doc/standards.texi: Revert today's earlier change.
44842         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44843         * doc/fdl.texi: ...and replace this with a symlink to the newer
44844         fdl-1.3.texi.
44845
44846 2008-11-10  Bruno Haible  <bruno@clisp.org>
44847
44848         * tests/test-select-fd.c (main): Accept the result file name as fourth
44849         argument.
44850         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44851         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44852
44853 2008-11-10  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44856         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44857         as autoconf-substituted macros.
44858         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44860         gl_NETDB_H_DEFAULTS. Set these variables.
44861         * modules/netdb (Makefile.am): Substitute these variables.
44862
44863 2008-11-10  Eric Blake  <ebb9@byu.net>
44864
44865         standards.texi: include correct file for FDL 1.3
44866         * doc/standards.texi (GNU Free Documentation License): Change
44867         include file to pull in FDL 1.3, not 1.2.
44868
44869         fdl.texi: revert accidental change to license
44870         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44871
44872 2008-11-10  Bruno Haible  <bruno@clisp.org>
44873
44874         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44875         cross-compiling guesses also when the native compile gives no result.
44876
44877 2008-11-10  Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/spawni.c (__spawni): Force variable into the stack.
44880
44881 2008-11-10  Bruno Haible  <bruno@clisp.org>
44882
44883         Add support for Haiku.
44884         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44885         glibc and BeOS, but also on Haiku.
44886         * lib/fpurge.c (fpurge): Likewise.
44887         * lib/freadable.c (freadable): Likewise.
44888         * lib/freadahead.c (freadahead): Likewise.
44889         * lib/freading.c (freading): Likewise.
44890         * lib/freadptr.c (freadptr): Likewise.
44891         * lib/freadseek.c (freadptrinc): Likewise.
44892         * lib/fseeko.c (rpl_fseeko): Likewise.
44893         * lib/fseterr.c (fseterr): Likewise.
44894         * lib/fwritable.c (fwritable): Likewise.
44895         * lib/fwriting.c (fwriting): Likewise.
44896         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44897
44898 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44899
44900         * lib/config.charset: Treat Haiku like BeOS.
44901
44902 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44903
44904         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44905         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44906
44907 2008-11-08  Bruno Haible  <bruno@clisp.org>
44908
44909         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44910         AC_CACHE_CHECK.
44911
44912 2008-11-08  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44915
44916 2008-11-08  Bruno Haible  <bruno@clisp.org>
44917
44918         * tests/test-select-fd.c: New file.
44919         * tests/test-select-in.sh: New file.
44920         * tests/test-select-out.sh: New file.
44921         * tests/test-select-stdin.c: New file.
44922         * modules/select-tests (Files): Add the new files.
44923         (Depends-on): Add gettimeofday.
44924         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44925         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44926         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44927
44928 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44929             Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44932
44933 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44934
44935         * build-aux/pmccabe2html: Added support for C++ source files.
44936
44937 2008-11-05  Ben Pfaff  <blp@gnu.org>
44938
44939         Fix lib/close.c build on Windows.
44940         * modules/close (Files): Add lib/w32sock.h.
44941
44942 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44943
44944         Accept Bison's NEWS format.
44945         * build-aux/announce-gen (print_news_deltas): Tweak
44946         $re_prefix.
44947
44948 2008-11-04  Bruno Haible  <bruno@clisp.org>
44949
44950         * modules/random_r (Maintainer): Add glibc.
44951
44952 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44953
44954         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44955         by karl@freefriends.org (Karl Berry).
44956         * doc/alloca.texi: Likewise.
44957         * doc/c-ctype.texi: Likewise.
44958         * doc/c-strcase.texi: Likewise.
44959         * doc/c-strcaseeq.texi: Likewise.
44960         * doc/c-strcasestr.texi: Likewise.
44961         * doc/c-strstr.texi: Likewise.
44962         * doc/c-strtod.texi: Likewise.
44963         * doc/c-strtold.texi: Likewise.
44964         * doc/ctime.texi: Likewise.
44965         * doc/error.texi: Likewise.
44966         * doc/fdl.texi: Likewise.
44967         * doc/gcd.texi: Likewise.
44968         * doc/getdate.texi: Likewise.
44969         * doc/gnulib-intro.texi: Likewise.
44970         * doc/gnulib-tool.texi: Likewise.
44971         * doc/gnulib.texi: Likewise.
44972         * doc/inet_ntoa.texi: Likewise.
44973         * doc/maintain.texi: Likewise.
44974         * doc/make-stds.texi: Likewise.
44975         * doc/quote.texi: Likewise.
44976         * doc/regexprops-generic.texi: Likewise.
44977         * doc/standards.texi: Likewise.
44978         * doc/verify.texi: Likewise.
44979         * doc/visibility.texi: Likewise.
44980         * doc/gnulib.texi (GNU Free Documentation License): Include
44981         fdl-1.3.texi instead of fdl.texi.
44982
44983 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44984
44985         * doc/fdl-1.3.texi: New file, from
44986         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44987         * modules/fdl-1.3: Add.
44988         * MODULES.html.sh: Add fdl-1.3.
44989
44990 2008-11-03  Bruno Haible  <bruno@clisp.org>
44991
44992         Make determination of absolute name of header file work with AIX xlc.
44993         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44994         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44995         preprocessing.
44996         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44997         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44998
44999 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45000
45001         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45002         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45003         <ludo@gnu.org>.
45004
45005 2008-11-02  Bruno Haible  <bruno@clisp.org>
45006
45007         Mark 'strpbrk' obsolete.
45008         * modules/strpbrk (Status, Notice): New sections.
45009         * modules/strtok_r (Depends-on): Add strpbrk.
45010
45011 2008-11-02  Bruno Haible  <bruno@clisp.org>
45012
45013         Mark 'strdup' obsolete.
45014         * modules/strdup (Status, Notice): New sections.
45015         * modules/findprog (Depends-on): Add strdup.
45016         * modules/getaddrinfo (Depends-on): Likewise.
45017         * modules/localename (Depends-on): Likewise.
45018         * modules/relocatable-lib (Depends-on): Likewise.
45019         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45020         * modules/relocatable-prog (Depends-on): Likewise.
45021         * modules/trim (Depends-on): Likewise.
45022         * modules/unictype/gen-ctype (Depends-on): Likewise.
45023         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45024
45025 2008-11-02  Bruno Haible  <bruno@clisp.org>
45026
45027         Mark 'strcspn' obsolete.
45028         * modules/strcspn (Status, Notice): New sections.
45029
45030 2008-11-02  Bruno Haible  <bruno@clisp.org>
45031
45032         Mark 'rmdir' obsolete.
45033         * modules/rmdir (Status, Notice): New sections.
45034         * modules/clean-temp (Depends-on): Add rmdir.
45035         * modules/openat (Depends-on): Likewise.
45036
45037 2008-11-02  Bruno Haible  <bruno@clisp.org>
45038
45039         Mark 'raise' obsolete.
45040         * modules/raise (Status, Notice): New sections.
45041         (Include): Specify <signal.h>.
45042         * modules/stdio (Depends-on): Add raise.
45043         * modules/write (Depends-on): Likewise.
45044
45045 2008-11-02  Bruno Haible  <bruno@clisp.org>
45046
45047         Mark 'memset' obsolete.
45048         * modules/memset (Status, Notice): New sections.
45049
45050 2008-11-02  Bruno Haible  <bruno@clisp.org>
45051
45052         Mark 'memmove' obsolete.
45053         * modules/memmove (Status, Notice): New sections.
45054         * modules/argp (Depends-on): Add memmove.
45055         * modules/argz (Depends-on): Likewise.
45056         * modules/canonicalize (Depends-on): Likewise.
45057         * modules/canonicalize-lgpl (Depends-on): Likewise.
45058         * modules/fts (Depends-on): Likewise.
45059         * modules/getcwd (Depends-on): Likewise.
45060         * modules/human (Depends-on): Likewise.
45061         * modules/regex (Depends-on): Likewise.
45062         * modules/striconveh (Depends-on): Likewise.
45063         * modules/trim (Depends-on): Likewise.
45064         * modules/unistr/u8-move (Depends-on): Likewise.
45065         * modules/unistr/u16-move (Depends-on): Likewise.
45066         * modules/unistr/u32-move (Depends-on): Likewise.
45067
45068 2008-11-02  Bruno Haible  <bruno@clisp.org>
45069
45070         Mark 'memcpy' obsolete.
45071         * modules/memcpy (Status, Notice): New sections.
45072
45073 2008-11-02  Bruno Haible  <bruno@clisp.org>
45074
45075         Mark 'memcmp' obsolete.
45076         * modules/memcmp (Status, Notice): New sections.
45077         * modules/argmatch (Depends-on): Add memchr.
45078         * modules/backupfile (Depends-on): Likewise.
45079         * modules/c-strcasestr (Depends-on): Likewise.
45080         * modules/crypto/des (Depends-on): Likewise.
45081         * modules/csharpcomp (Depends-on): Likewise.
45082         * modules/fnmatch (Depends-on): Likewise.
45083         * modules/git-merge-changelog (Depends-on): Likewise.
45084         * modules/isnand (Depends-on): Likewise.
45085         * modules/isnand-nolibm (Depends-on): Likewise.
45086         * modules/isnanf (Depends-on): Likewise.
45087         * modules/isnanf-nolibm (Depends-on): Likewise.
45088         * modules/isnanl (Depends-on): Likewise.
45089         * modules/isnanl-nolibm (Depends-on): Likewise.
45090         * modules/mbchar (Depends-on): Likewise.
45091         * modules/memcoll (Depends-on): Likewise.
45092         * modules/quotearg (Depends-on): Likewise.
45093         * modules/regex (Depends-on): Likewise.
45094         * modules/relocatable-prog (Depends-on): Likewise.
45095         * modules/same (Depends-on): Likewise.
45096         * modules/signbit (Depends-on): Likewise.
45097         * modules/strcasestr-simple (Depends-on): Likewise.
45098         * modules/unictype/gen-ctype (Depends-on): Likewise.
45099         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45100         * modules/uniname/uniname (Depends-on): Likewise.
45101         * modules/unistr/u8-cmp (Depends-on): Likewise.
45102
45103 2008-11-02  Bruno Haible  <bruno@clisp.org>
45104
45105         Mark 'memchr' obsolete.
45106         * modules/memchr (Status, Notice): New sections.
45107         * modules/argp (Depends-on): Add memchr.
45108         * modules/base64 (Depends-on): Likewise.
45109         * modules/c-strcasestr (Depends-on): Likewise.
45110         * modules/chdir-long (Depends-on): Likewise.
45111         * modules/fnmatch (Depends-on): Likewise.
45112         * modules/getsubopt (Depends-on): Likewise.
45113         * modules/git-merge-changelog (Depends-on): Likewise.
45114         * modules/glob (Depends-on): Likewise.
45115         * modules/strcasestr-simple (Depends-on): Likewise.
45116         * modules/strnlen (Depends-on): Likewise.
45117
45118 2008-11-02  Bruno Haible  <bruno@clisp.org>
45119
45120         Mark 'atexit' obsolete.
45121         * modules/atexit (Status, Notice): New sections.
45122         * modules/chdir-long (Depends-on): Add atexit.
45123         * modules/wait-process (Depends-on): Likewise.
45124
45125 2008-11-02  Bruno Haible  <bruno@clisp.org>
45126
45127         * gnulib-tool: New option --with-obsolete.
45128         (func_usage): Document it.
45129         (func_modules_transitive_closure): Drop obsolete dependencies if
45130         incobsolete is not true.
45131         (func_import): Read and save the incobsolete variable to the cache.
45132
45133 2008-11-02  Bruno Haible  <bruno@clisp.org>
45134
45135         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45136         * gnulib-tool: New option --extract-status.
45137         (func_usage): Document it.
45138         (sed_extract_prog): Recognize it.
45139         (func_get_status): New function.
45140
45141 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45142
45143         * modules/sockets (License): Change from LGPL to LGPLv2+.
45144
45145 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45146
45147         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45148
45149 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45150
45151         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45152         Mention times and sys_times.
45153         * modules/sys_times, modules/sys_times-tests: New modules.
45154         * modules/times, modules/times-tests: Likewise
45155         * m4/sys_times_h.m4: New file.
45156         * lib/sys_times.in.h: Likewise
45157         * lib/times.c: Likewise.
45158         * tests/test-sys_times.c: Likewise.
45159         * tests/test-times.c: Likewise.
45160         * doc/posix-headers/sys_times.texi: Update.
45161         * doc/posix-functions/times.texi: Update.
45162
45163 2008-10-28  Jim Meyering  <meyering@redhat.com>
45164
45165         * modules/tempname (Depends-on): Add lstat.
45166
45167         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45168
45169 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45170
45171         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45172         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45173         using idiom used elsewhere in gnulib.
45174
45175 2008-10-27  Jim Meyering  <meyering@redhat.com>
45176
45177         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45178
45179 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45180
45181         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45182         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45183         programs.
45184         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45185
45186 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45187
45188         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45189
45190 2008-10-27  Bruno Haible  <bruno@clisp.org>
45191
45192         * tests/test-lstat.c: Include <stdio.h>.
45193
45194 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45195
45196         * modules/lstat-tests: New module.
45197         * tests/test-lstat.c: New file.
45198
45199 2008-10-26  Jim Meyering  <meyering@redhat.com>
45200
45201         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45202
45203 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45204             Bruno Haible  <bruno@clisp.org>
45205
45206         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45207         * modules/configmake (Include): Add a note that the include must come
45208         after all system headers.
45209         * lib/javaversion.c: Include configmake.h after all other includes.
45210
45211 2008-10-26  Bruno Haible  <bruno@clisp.org>
45212
45213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45214         HAVE_STRUCT_RANDOM_DATA to 1.
45215         (gl_STDLIB_H): Simplify.
45216
45217 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45218
45219         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45220         substitute HAVE_STRUCT_RANDOM_DATA.
45221         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45222         random_data.
45223         * modules/stdlib (Makefile.am): Substitute
45224         HAVE_STRUCT_RANDOM_DATA.
45225
45226 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45227
45228         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45229         * doc/gnulib-intro.texi (Copyright): Likewise.
45230
45231 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45232
45233         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45234         findings.
45235
45236 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45237             Bruno Haible  <bruno@clisp.org>
45238
45239         * lib/unistd.in.h: Include <winsock2.h>.
45240         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45241         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45242         Provide dummy declarations.
45243         (gethostname): Override.
45244         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45245         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45246         gl_PREREQ_SYS_H_WINSOCK2.
45247         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45248         * doc/posix-functions/gethostname.texi: More details.
45249
45250 2008-10-25  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45253         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45254         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45255
45256         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45257         here ...
45258         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45259         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45260         gl_UNISTD_H_DEFAULTS.
45261
45262 2008-10-25  Eric Blake  <ebb9@byu.net>
45263
45264         signbit: avoid spurious compiler failure
45265         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45266         declarations inside function.
45267
45268 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45269             Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45272         * modules/random_r (Depends-on): Add stdint.
45273
45274 2008-10-24  Bruno Haible  <bruno@clisp.org>
45275
45276         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45277         Eggert.
45278         * modules/strerror (License): Likewise.
45279
45280 2008-10-24  Jim Meyering  <meyering@redhat.com>
45281
45282         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45283         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45284
45285 2008-10-24  Eric Blake  <ebb9@byu.net>
45286
45287         getgroups: fix compilation when getgroups is available
45288         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45289         but with <config.h> override of getgroups disabled.
45290
45291 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45292
45293         * doc/gnulib.texi (Header files): Add note about C++ problems.
45294         Explained by Bruno Haible <bruno@clisp.org>.
45295
45296 2008-10-23  Bruno Haible  <bruno@clisp.org>
45297
45298         Define a dummy SA_NODEFER macro on Interix.
45299         * lib/signal.in.h (SA_NODEFER): Define fallback.
45300         Reported by Aleksey Cheusov <cheusov@tut.by> via
45301         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45302
45303 2008-10-23  Bruno Haible  <bruno@clisp.org>
45304
45305         * modules/freadahead (License): Change to LGPLv2+.
45306         Suggested by Simon Josefsson.
45307
45308 2008-10-23  Jim Meyering  <meyering@redhat.com>
45309
45310         random_r: new module
45311         * modules/random_r: New file.
45312         * m4/random_r.m4: New file.
45313         * lib/random_r.c: New file, from glibc.
45314         * modules/random_r-tests: New file.
45315         * tests/test-random_r.c: New file.
45316         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45317          Declare.
45318         (RAND_MAX): Define.
45319         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45320         * modules/stdlib: Substitute them, too.
45321         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45322         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45323         * doc/glibc-functions/random_r.texi: Likewise.
45324         * doc/glibc-functions/setstate_r.texi: Likewise.
45325         * doc/glibc-functions/srandom_r.texi: Likewise.
45326         * config/srclist.txt: Mention it.
45327
45328 2008-10-23  David Lutterkort  <lutter@redhat.com>
45329
45330         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45331         link requirement
45332
45333 2008-10-23  Jim Meyering  <meyering@redhat.com>
45334
45335         selinux-h: mark parameters of stub functions as intentionally unused
45336         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45337         * lib/se-context.in.h: Likewise.
45338
45339 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45340
45341         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45342
45343 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45344
45345         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45346
45347 2008-10-22  Eric Blake  <ebb9@byu.net>
45348
45349         glthread/thread: avoid compiler warning
45350         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45351         Add unreachable abort to silence compiler.
45352
45353 2008-10-22  Eric Blake  <ebb9@byu.net>
45354
45355         netdb: also supply struct addrinfo for cygwin 1.5.x
45356         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45357         older cygwin.
45358         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45359         cygwin.
45360         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45361
45362 2008-10-22  Bruno Haible  <bruno@clisp.org>
45363
45364         * users.txt: Update entry about pspp.
45365
45366 2008-10-21  Bruno Haible  <bruno@clisp.org>
45367
45368         Simplification.
45369         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45370         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45371
45372         Simplification.
45373         * lib/ioctl.c (ioctl): Don't undefine.
45374         * lib/socket.c (socket): Don't undefine.
45375
45376         Remove unused module indicator macros.
45377         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45378         GNULIB_$1 as a C macro.
45379
45380         * doc/posix-functions/close.texi: Undo last change.
45381         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45382         Windows platforms.
45383
45384 2008-10-21  Bruno Haible  <bruno@clisp.org>
45385
45386         Add gethostname() declaration to <unistd.h>.
45387         * lib/unistd.in.h (gethostname): New declaration.
45388         * lib/gethostname.c: Include <unistd.h>.
45389         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45390         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45392         and HAVE_GETHOSTNAME.
45393         * modules/gethostname (Depends-on): Add unistd.
45394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45395         (Include): Specify <unistd.h>.
45396         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45397         HAVE_GETHOSTNAME.
45398         * tests/test-gethostname.c: Include <unistd.h> first.
45399
45400 2008-10-21  Bruno Haible  <bruno@clisp.org>
45401
45402         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45403         * modules/select-tests (Depends-on): Likewise.
45404         Reported by Simon Josefsson.
45405
45406 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45407
45408         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45409         * lib/accept.c: New file, based on winsock.c.
45410         * lib/bind.c: New file, based on winsock.c.
45411         * lib/connect.c: New file, based on winsock.c.
45412         * lib/getpeername.c: New file, based on winsock.c.
45413         * lib/getsockname.c: New file, based on winsock.c.
45414         * lib/getsockopt.c: New file, based on winsock.c.
45415         * lib/ioctl.c: New file, based on winsock.c.
45416         * lib/listen.c: New file, based on winsock.c.
45417         * lib/recv.c: New file, based on winsock.c.
45418         * lib/recvfrom.c: New file, based on winsock.c.
45419         * lib/send.c: New file, based on winsock.c.
45420         * lib/sendto.c: New file, based on winsock.c.
45421         * lib/setsockopt.c: New file, based on winsock.c.
45422         * lib/shutdown.c: New file, based on winsock.c.
45423         * lib/socket.c: New file, based on winsock.c.
45424         * lib/w32sock.h: New file, based on winsock.c.
45425         * lib/winsock.c: Remove file.
45426         * modules/accept: Likewise.
45427         * modules/bind: Likewise.
45428         * modules/connect: Likewise.
45429         * modules/getpeername: Likewise.
45430         * modules/getsockname: Likewise.
45431         * modules/getsockopt: Likewise.
45432         * modules/ioctl: Likewise.
45433         * modules/listen: Likewise.
45434         * modules/recv: Likewise.
45435         * modules/recvfrom: Likewise.
45436         * modules/send: Likewise.
45437         * modules/sendto: Likewise.
45438         * modules/setsockopt: Likewise.
45439         * modules/shutdown: Likewise.
45440         * modules/socket: Use socket.c instead of winsock.c.
45441         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45442         * doc/posix-functions/accept.texi: Doc fix.
45443         * doc/posix-functions/bind.texi: Doc fix.
45444         * doc/posix-functions/close.texi: Doc fix.
45445         * doc/posix-functions/connect.texi: Doc fix.
45446         * doc/posix-functions/getpeername.texi: Doc fix.
45447         * doc/posix-functions/getsockname.texi: Doc fix.
45448         * doc/posix-functions/getsockopt.texi: Doc fix.
45449         * doc/posix-functions/ioctl.texi: Doc fix.
45450         * doc/posix-functions/listen.texi: Doc fix.
45451         * doc/posix-functions/recv.texi: Doc fix.
45452         * doc/posix-functions/recvfrom.texi: Doc fix.
45453         * doc/posix-functions/send.texi: Doc fix.
45454         * doc/posix-functions/sendto.texi: Doc fix.
45455         * doc/posix-functions/setsockopt.texi: Doc fix.
45456         * doc/posix-functions/shutdown.texi: Doc fix.
45457         * doc/posix-functions/socket.texi: Doc fix.
45458
45459 2008-10-20  Bruno Haible  <bruno@clisp.org>
45460
45461         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45462         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45463         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45464         as an alias for SIGABRT.
45465         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45466         (sigaction): Map it to SIGABRT.
45467         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45468
45469 2008-10-20  Bruno Haible  <bruno@clisp.org>
45470
45471         * lib/fts.c: Don't include lstat.h.
45472         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45473
45474         Move the lstat() declaration to <sys/stat.h>.
45475         * lib/lstat.h: Remove file.
45476         * lib/sys_stat.in.h: Add special invocation convention.
45477         (lstat): New declaration.
45478         * lib/lstat.c (orig_lstat): New function.
45479         (rpl_lstat): Use orig_lstat instead of lstat.
45480         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45481         AC_C_INLINE. Set REPLACE_LSTAT.
45482         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45483         and REPLACE_LSTAT.
45484         * modules/lstat (Files): Remove lib/lstat.h.
45485         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45486         (Include): Specify <sys/stat.h> instead of lstat.h.
45487         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45488         REPLACE_LSTAT.
45489         * NEWS: Mention the change.
45490
45491 2008-10-20  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/posix_spawn-tests: New file.
45494         * tests/test-posix_spawn3.c: New file.
45495
45496 2008-10-20  Bruno Haible  <bruno@clisp.org>
45497
45498         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45499         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45500         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45501         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45502         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45503
45504 2008-10-20  Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45507         of posix_spawn on AIX 5.3.
45508
45509 2008-10-20  Bruno Haible  <bruno@clisp.org>
45510
45511         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45512
45513 2008-10-20  Bruno Haible  <bruno@clisp.org>
45514
45515         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45516         of AC_LANG_PROGRAM.
45517
45518 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45519
45520         * lib/netdb.in.h: Don't define GNU specific constants until they
45521         are supported or needed.  Reported by Bruno Haible
45522         <bruno@clisp.org>.
45523
45524 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45525
45526         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45527
45528 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45529
45530         * lib/getaddrinfo.h: Remove file.
45531         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45532         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45533         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45534         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45535         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45536         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45537         * tests/test-getaddrinfo.c: Likewise.
45538         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45539         * NEWS: Mention change.
45540
45541 2008-10-19  Bruno Haible  <bruno@clisp.org>
45542
45543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45544
45545 2008-10-19  Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/wait-process.c: Include simply <sys/wait.h>.
45548         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45549         WIFSTOPPED): Remove fallback definitions.
45550         * modules/wait-process (Depends-on): Add sys_wait.
45551
45552         New module 'sys_wait'.
45553         * modules/sys_wait: New file.
45554         * lib/sys_wait.in.h: New file, partially copied from
45555         lib/wait-process.c.
45556         * m4/sys_wait_h.m4: New file.
45557         * doc/posix-headers/sys_wait.texi: Mention the new module.
45558
45559 2008-10-19  Bruno Haible  <bruno@clisp.org>
45560
45561         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45562
45563 2008-10-19  Bruno Haible  <bruno@clisp.org>
45564
45565         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45566         * lib/wait-process.c (WAIT_T): Remove type.
45567         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45568         (wait_subprocess): Update.
45569
45570 2008-10-19  Bruno Haible  <bruno@clisp.org>
45571
45572         New module 'atoll'.
45573         * modules/atoll: New file.
45574         * lib/stdlib.in.h (atoll): New declaration.
45575         * lib/atoll.c: New file, from glibc with modifications.
45576         * m4/atoll.m4: New file.
45577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45578         HAVE_ATOLL.
45579         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45580         * doc/posix-functions/atoll.texi: Mention the new module.
45581
45582 2008-10-19  Bruno Haible  <bruno@clisp.org>
45583
45584         Add strtoull() declaration to <stdlib.h>.
45585         * lib/stdlib.in.h (strtoull): New declaration.
45586         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45587         Set HAVE_STRTOULL.
45588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45589         HAVE_STRTOULL.
45590         * modules/strtoull (Depends-on): Add stdlib.
45591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45592         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45593         HAVE_STRTOULL.
45594
45595 2008-10-19  Bruno Haible  <bruno@clisp.org>
45596
45597         Add strtoll() declaration to <stdlib.h>.
45598         * lib/stdlib.in.h (strtoll): New declaration.
45599         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45600         Set HAVE_STRTOLL.
45601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45602         HAVE_STRTOLL.
45603         * modules/strtoll (Depends-on): Add stdlib.
45604         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45605         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45606
45607 2008-10-19  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/bcopy (Depends-on): Add strings.
45610         (Include): Specify <strings.h>.
45611
45612 2008-10-19  Bruno Haible  <bruno@clisp.org>
45613
45614         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45615
45616 2008-10-19  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45619         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45620         mingw.
45621
45622 2008-10-19  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/atanl.c: Don't include isnanl.h.
45625         * lib/cosl.c: Likewise.
45626         * lib/ldexpl.c: Likewise.
45627         * lib/logl.c: Likewise.
45628         * lib/sinl.c: Likewise.
45629         * lib/sqrtl.c: Likewise.
45630         * lib/tanl.c: Likewise.
45631
45632         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45633         * lib/isnanf.h: Remove file.
45634         * lib/isnand.h: Remove file.
45635         * lib/isnanl.h: Remove file.
45636         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45637         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45638         macros.
45639         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45640         HAVE_ISNANF, don't define it as a C macro.
45641         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45642         HAVE_ISNAND, don't define it as a C macro.
45643         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45644         HAVE_ISNANL, don't define it as a C macro.
45645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45646         HAVE_ISNAN[FDL].
45647         * modules/isnanf (Files): Remove lib/isnanf.h.
45648         (Depends-on): Add math.
45649         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45650         (Include): Specify <math.h> instead of isnanf.h.
45651         * modules/isnand (Files): Remove lib/isnand.h.
45652         (Depends-on): Add math.
45653         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45654         (Include): Specify <math.h> instead of isnand.h.
45655         * modules/isnanl (Files): Remove lib/isnanl.h.
45656         (Depends-on): Add math.
45657         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45658         (Include): Specify <math.h> instead of isnanl.h.
45659         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45660         HAVE_ISNAN[FDL].
45661         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45662         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45663         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45664         * NEWS: Mention the change.
45665
45666 2008-10-18  Bruno Haible  <bruno@clisp.org>
45667
45668         Add getusershell(), setusershell(), endusershell() declarations to
45669         <unistd.h>.
45670         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45671         declarations.
45672         * lib/getusershell.c: Include unistd.h.
45673         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45674         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45675         HAVE_GETUSERSHELL.
45676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45677         and HAVE_GETUSERSHELL.
45678         * modules/getusershell (Depends-on): Add unistd, extensions.
45679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45680         (Include): Specify <unistd.h>.
45681         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45682         HAVE_GETUSERSHELL.
45683
45684 2008-10-18  Bruno Haible  <bruno@clisp.org>
45685
45686         Add a getloadavg() declaration to <stdlib.h>.
45687         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45688         getloadavg declaration.
45689         (getloadavg): New declaration.
45690         * lib/getloadavg.c: Include <stdlib.h> first.
45691         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45692         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45693         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45695         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45696         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45697         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45698         (Include): Specify <stdlib.h>.
45699         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45700         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45701
45702 2008-10-18  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/dirchownmod.c: Don't include lchmod.h.
45705
45706         Move the lchmod() declaration to <sys/stat.h>.
45707         * lib/lchmod.h: Remove file.
45708         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45709         (lchmod): New declaration, moved here from lib/lchown.h.
45710         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45711         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45712         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45713         and HAVE_LCHMOD.
45714         * modules/lchmod (Files): Remove lib/lchmod.h.
45715         (Depends-on): Add sys_stat, extensions.
45716         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45717         (Include): Specify <sys/stat.h> instead of lchmod.h.
45718         * modules/sys_stat (Depends-on): Add link-warning.
45719         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45720         definition of GL_LINK_WARNING.
45721         * NEWS: Mention the change.
45722
45723 2008-10-18  Bruno Haible  <bruno@clisp.org>
45724
45725         * lib/fchdir.c: Don't include dirfd.h.
45726         * lib/fts.c: Likewise.
45727         * lib/getcwd.c: Likewise.
45728         * lib/glob.c: Likewise.
45729
45730         Move the dirfd() declaration to <dirent.h>.
45731         * lib/dirfd.h: Remove file.
45732         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45733         (dirfd): New declaration.
45734         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45735         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45736         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45737         HAVE_DECL_DIRFD.
45738         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45739         HAVE_DECL_DIRFD.
45740         * modules/dirfd (Files): Remove lib/dirfd.h.
45741         (Depends-on): Add dirent, extensions.
45742         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45743         (Include): Specify <dirent.h> instead of dirfd.h.
45744         * modules/dirent (Depends-on): Add link-warning.
45745         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45746         definition of GL_LINK_WARNING.
45747         * NEWS: Mention the change.
45748
45749 2008-10-18  Bruno Haible  <bruno@clisp.org>
45750
45751         Move the euidaccess() declaration to <unistd.h>.
45752         * lib/euidaccess.h: Remove file.
45753         * lib/unistd.in.h (euidaccess): New declaration.
45754         * lib/euidaccess.c: Don't include euidaccess.h.
45755         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45756         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45758         and HAVE_EUIDACCESS.
45759         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45760         (Depends-on): Add unistd.
45761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45762         (Include): Specify <unistd.h> instead of euidaccess.h.
45763         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45764         HAVE_EUIDACCESS.
45765         * NEWS: Mention the change.
45766
45767 2008-10-18  Bruno Haible  <bruno@clisp.org>
45768
45769         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45770
45771         Move the getdomainname() declaration to <unistd.h>.
45772         * lib/getdomainname.h: Remove file.
45773         * lib/unistd.in.h (getdomainname): New declaration.
45774         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45775         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45776         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45777         HAVE_GETDOMAINNAME.
45778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45779         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45780         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45781         (Depends-on): Add unistd, extensions.
45782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45783         (Includes): Specify <unistd.h> instead of getdomainname.h.
45784         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45785         HAVE_GETDOMAINNAME.
45786         * NEWS: Mention the change.
45787
45788 2008-10-18  Bruno Haible  <bruno@clisp.org>
45789
45790         * modules/dirent: New file.
45791         * m4/dirent_h.m4: New file.
45792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45793         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45794         * modules/fchdir (Files): Remove lib/dirent.in.h.
45795         (Depends-on): Add dirent.
45796         (Makefile.am): Move rules to modules/dirent.
45797         * doc/posix-headers/dirent.texi: Mention the new module.
45798
45799 2008-10-18  Bruno Haible  <bruno@clisp.org>
45800
45801         Avoid -Wunused-parameter warnings in public gnulib header files.
45802         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45803         macro.
45804         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45805
45806 2008-10-18  Bruno Haible  <bruno@clisp.org>
45807
45808         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45809         * doc/glibc-functions/error.texi: Mention the module 'error'.
45810         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45811         * doc/glibc-functions/getdomainname.texi: Mention the module
45812         'getdomainname'.
45813         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45814         * doc/glibc-functions/getpagesize.texi: Mention the module
45815         'getpagesize'.
45816         * doc/glibc-functions/getusershell.texi: Mention the module
45817         'getusershell'.
45818         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45819         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45820         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45821         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45822         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45823         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45824         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45825         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45826         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45827         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45828         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45829         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45830         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45831         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45832
45833 2008-10-17  Bruno Haible  <bruno@clisp.org>
45834
45835         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45836         HP-UX and IRIX, use -0.0L.
45837         * tests/test-ceill.c (minus_zero): Likewise.
45838         * tests/test-floorl.c (minus_zero): Likewise.
45839         * tests/test-frexpl.c (minus_zero): Likewise.
45840         * tests/test-isnan.c (minus_zerol): Likewise.
45841         * tests/test-isnanl.h (minus_zero): Likewise.
45842         * tests/test-ldexpl.c (minus_zero): Likewise.
45843         * tests/test-roundl.c (minus_zero): Likewise.
45844         * tests/test-signbit.c (minus_zerol): Likewise.
45845         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45846         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45847         * tests/test-truncl.c (minus_zero): Likewise.
45848         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45849         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45850         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45851         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45852
45853 2008-10-17  Bruno Haible  <bruno@clisp.org>
45854
45855         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45856         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45857         that it gets activated only for gcc >= 3.0.
45858         * lib/dirent.in.h: Likewise.
45859         * lib/errno.in.h: Likewise.
45860         * lib/fcntl.in.h: Likewise.
45861         * lib/float.in.h: Likewise.
45862         * lib/iconv.in.h: Likewise.
45863         * lib/inttypes.in.h: Likewise.
45864         * lib/locale.in.h: Likewise.
45865         * lib/math.in.h: Likewise.
45866         * lib/netdb.in.h: Likewise.
45867         * lib/netinet_in.in.h: Likewise.
45868         * lib/search.in.h: Likewise.
45869         * lib/signal.in.h: Likewise.
45870         * lib/spawn.in.h: Likewise.
45871         * lib/stdarg.in.h: Likewise.
45872         * lib/stdint.in.h: Likewise.
45873         * lib/stdio.in.h: Likewise.
45874         * lib/stdlib.in.h: Likewise.
45875         * lib/string.in.h: Likewise.
45876         * lib/strings.in.h: Likewise.
45877         * lib/sys_file.in.h: Likewise.
45878         * lib/sys_ioctl.in.h: Likewise.
45879         * lib/sys_select.in.h: Likewise.
45880         * lib/sys_socket.in.h: Likewise.
45881         * lib/sys_stat.in.h: Likewise.
45882         * lib/sys_time.in.h: Likewise.
45883         * lib/sysexits.in.h: Likewise.
45884         * lib/time.in.h: Likewise.
45885         * lib/unistd.in.h: Likewise.
45886         * lib/wchar.in.h: Likewise.
45887         * lib/wctype.in.h: Likewise.
45888         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45889
45890 2008-10-17  Jim Meyering  <meyering@redhat.com>
45891
45892         ignore-value: don't depend on inline module
45893         * modules/ignore-value (Depends-on): Remove 'inline'.
45894         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45895         Suggestion from Bruno Haible.
45896
45897 2008-10-17  Bruno Haible  <bruno@clisp.org>
45898
45899         New implementation of condition variables for Win32.
45900         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45901         (gl_linked_waitqueue_t): New type.
45902         (gl_cond_t): Use it.
45903         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45904         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45905         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45906         (glthread_cond_init_func, glthread_cond_wait_func,
45907         glthread_cond_timedwait_func, glthread_cond_signal_func,
45908         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45909         Reimplemented on the basis of gl_linked_waitqueue_t.
45910         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45911         gl_waitqueue_t.
45912         (gl_rwlock_t): Update.
45913         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45914
45915 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45916
45917         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45918         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45919
45920 2008-10-17  Jim Meyering  <meyering@redhat.com>
45921
45922         ignore-value: new module
45923         * modules/ignore-value: New file.
45924         * lib/ignore-value.h: New file.
45925         * MODULES.html.sh (Compiler warning management): New section,
45926         just for this module.  More to come.
45927
45928 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45929
45930         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45931         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45932         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45933
45934 2008-10-16  Jim Meyering  <meyering@redhat.com>
45935
45936         openat-die.c: avoid 'no previous prototype' warning
45937         * lib/openat-die.c: Include "openat.h".
45938         Reported by Reuben Thomas <rrt@sc3d.org>.
45939
45940 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45941
45942         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45943         * lib/netdb.in.h: Fix typo.
45944         Reported by Bruno Haible  <bruno@clisp.org>
45945
45946         * lib/netdb.in.h: Include sys/socket.h for platforms without
45947         netdb.h, to get structures like hostent on MinGW.
45948         * modules/netdb (Depends-on): Add sys_socket.
45949
45950 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45951
45952         * modules/netdb, modules/netdb-tests: New file.
45953         * m4/netdb_h.m4: New file.
45954         * lib/netdb.in.h: Add, currently just an empty file pending
45955         definitions.
45956         * tests/test-netdb.c: New file.
45957         * doc/posix-headers/netdb.texi: Mention that we replace it if
45958         needed.
45959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45960         netdb.
45961
45962 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45963
45964         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45965         with code.
45966
45967 2008-10-13  Bruno Haible  <bruno@clisp.org>
45968
45969         * lib/glthread/cond.c (glthread_cond_wait_func,
45970         glthread_cond_timedwait_func): Add a comment.
45971
45972 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45973
45974         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45975         * tests/test-select.c: Likewise,
45976
45977 2008-10-13  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/glthread/cond.c (glthread_cond_wait_func,
45980         glthread_cond_timedwait_func): Fix variable name.
45981         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45982
45983 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45984
45985         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45987         struct sockaddr.sa_len.
45988         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45989
45990 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45991
45992         * build-aux/pmccabe2html: Add css and css_url parameters.
45993
45994 2008-10-12  Bruno Haible  <bruno@clisp.org>
45995
45996         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45997         calling aclx_get.
45998         Reported by Rainer Tammer <tammer@tammer.net>.
45999
46000 2008-10-12  Bruno Haible  <bruno@clisp.org>
46001
46002         Use msvcrt aware primitives for creation/termination of Win32 threads.
46003         * lib/glthread/thread.c: Include <process.h>.
46004         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46005         (wrapper_func): Update signature.
46006         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46007
46008 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46009             Bruno Haible  <bruno@clisp.org>
46010
46011         Provide a Win32 implementation of the 'cond' module.
46012         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46013         * lib/glthread/cond.c (glthread_cond_init_func,
46014         glthread_cond_wait_func, glthread_cond_timedwait_func,
46015         glthread_cond_signal_func, glthread_cond_broadcast_func,
46016         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46017         * modules/cond (Dependencies): Add gettimeofday.
46018
46019 2008-10-11  Bruno Haible  <bruno@clisp.org>
46020
46021         Make sleep work on older versions of mingw.
46022         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46023         only whether it exists.
46024         * doc/posix-functions/sleep.texi: Mention the problem with older
46025         versions of mingw.
46026
46027 2008-10-11  Bruno Haible  <bruno@clisp.org>
46028
46029         New module 'shutdown'.
46030         * modules/shutdown: New file.
46031         * lib/sys_socket.in.h (shutdown): New declaration.
46032         * lib/winsock.c (shutdown): New function.
46033         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46034         GNULIB_SHUTDOWN.
46035         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46036         * doc/posix-functions/shutdown.texi: Document the new module.
46037
46038 2008-10-11  Jim Meyering  <meyering@redhat.com>
46039
46040         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46041
46042 2008-10-11  Bruno Haible  <bruno@clisp.org>
46043
46044         New module 'fclose'.
46045         * modules/fclose: New file.
46046         * lib/stdio.in.h (fclose): New declaration.
46047         * lib/fclose.c: New file.
46048         * m4/fclose.m4: New file.
46049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46050         REPLACE_FCLOSE.
46051         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46052         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46053         REPLACE_FCLOSE.
46054         * modules/close (Depends-on): fclose.
46055         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46056
46057 2008-10-11  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46060         set errno and don't call _close.
46061
46062 2008-10-10  Bruno Haible  <bruno@clisp.org>
46063
46064         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46065         ACL, not afterwards. Fixes test failure on Cygwin.
46066
46067 2008-10-09  Ben Pfaff  <blp@gnu.org>
46068
46069         * build-aux/announce-gen: Fix gnulib version related part of usage
46070         message.  Die with a useful error message if no tarballs are
46071         found.
46072
46073 2008-10-10  Jim Meyering  <meyering@redhat.com>
46074
46075         bootstrap: use git's --depth=N option only if it's supported
46076         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46077         recognize the --depth option.  Reported by Pádraig Brady.
46078
46079 2008-10-09  Bruno Haible  <bruno@clisp.org>
46080
46081         New module 'ioctl'.
46082         * modules/ioctl: New file.
46083         * lib/sys_socket.in.h (ioctl): Remove declaration.
46084         * lib/winsock.c: Include <sys/ioctl.h>.
46085         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46086         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46087         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46088         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46089         * doc/posix-functions/ioctl.texi: Mention the new module.
46090
46091 2008-10-09  Bruno Haible  <bruno@clisp.org>
46092
46093         New module 'sys_ioctl'.
46094         * lib/sys_ioctl.in.h: New file.
46095         * m4/sys_ioctl_h.m4: New file.
46096         * modules/sys_ioctl: New file.
46097         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46098
46099 2008-10-09  Bruno Haible  <bruno@clisp.org>
46100
46101         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46102         * lib/winsock.c: Include <stdarg.h>.
46103         (rpl_ioctl): Change to second argument 'int' and then varargs.
46104
46105 2008-10-09  Bruno Haible  <bruno@clisp.org>
46106
46107         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46108         when the sys_socket module is present and the system has <winsock2.h>.
46109
46110 2008-10-09  Bruno Haible  <bruno@clisp.org>
46111
46112         * doc/posix-functions/close.texi: Mention module 'close' instead of
46113         module 'sys_socket'.
46114
46115 2008-10-09  Bruno Haible  <bruno@clisp.org>
46116
46117         * doc/glibc-headers/sys_ioctl.texi: New file.
46118         * doc/gnulib.texi: Include it.
46119
46120 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46121             Bruno Haible  <bruno@clisp.org>
46122
46123         Combine the two replacements of 'close'.
46124         * lib/sys_socket.in.h (close): Define to a reminder to include
46125         <unistd.h>.
46126         (_gl_close_fd_maybe_socket): New declaration.
46127         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46128         * lib/winsock.c (close): Remove undefinition.
46129         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46130         needed for the gnulib module 'close'.
46131         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46132         define to an error symbol or to a warning, if suitable.
46133         * lib/close.c: Include <sys/socket.h>.
46134         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46135         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46136         UNISTD_H_HAVE_WINSOCK2_H.
46137         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46139         UNISTD_H_HAVE_WINSOCK2_H.
46140         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46141         (configure.ac): Set a module indicator.
46142         (Makefile.am): Substitute GNULIB_CLOSE.
46143         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46144         * modules/poll-tests (Depends-on): Add close.
46145         * modules/select-tests (Depends-on): Likewise.
46146
46147 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46148             Bruno Haible  <bruno@clisp.org>
46149
46150         New module 'close'.
46151         * modules/close: New file.
46152         * lib/unistd.in.h (close): Move declaration out of the
46153         FCHDIR_REPLACEMENT scope.
46154         (_gl_unregister_fd): New declaration.
46155         * lib/close.c: New file.
46156         * lib/fchdir.c (rpl_close): Remove function.
46157         * m4/close.m4: New file.
46158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46159         close.
46160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46161         REPLACE_CLOSE.
46162         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46163         REPLACE_CLOSE.
46164         * modules/fchdir (Depends-on): Add close.
46165
46166 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46167             Bruno Haible  <bruno@clisp.org>
46168
46169         * lib/fcntl.in.h (open): Simplify conditionals.
46170         (_gl_register_fd): New declaration.
46171         * lib/fchdir.c (rpl_open): Remove function.
46172         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46173         also.
46174         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46176         open.
46177
46178 2008-10-09  Jim Meyering  <meyering@redhat.com>
46179
46180         GNUmakefile: use the more name-space-friendly "_version"
46181         * top/GNUmakefile (_dummy): Update.
46182         (_version): Rename from "version".
46183
46184 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46185             Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46188         rpl_close.
46189         (_gl_register_fd): New function, extracted from rpl_open.
46190         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46191         (rpl_open, rpl_opendir): Use _gl_register_fd.
46192
46193 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46194
46195         Fix organization of 'open' replacement.
46196         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46197         (gl_FUNC_OPEN): Use it.
46198         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46199
46200 2008-10-08  Bruno Haible  <bruno@clisp.org>
46201
46202         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46203
46204 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46205
46206         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46207         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46208         listen).
46209
46210 2008-10-08  Eric Blake  <ebb9@byu.net>
46211
46212         GNUmakefile: add 'make version' target
46213         * top/GNUmakefile (_curr-ver): Split version update rules...
46214         (version): ...into a target.
46215
46216 2008-10-07  Bruno Haible  <bruno@clisp.org>
46217
46218         Use a more portable replacement expression for -0.0L.
46219         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46220         instead of -0.0L. Fix m4 quotation.
46221
46222         * tests/test-signbit.c: Include <float.h>.
46223         (minus_zero): New variable.
46224         (test_signbitl): Use minus_zero instead of -zero.
46225         * modules/signbit-tests (Depends-on): Add float.
46226
46227         * tests/test-ceill.c: Include <float.h>.
46228         (zero): Remove variable.
46229         (minus_zero): New variable.
46230         (main): Use minus_zero instead of -zero.
46231         * modules/ceill-tests (Depends-on): Add float.
46232
46233         * tests/test-floorl.c: Include <float.h>.
46234         (zero): Remove variable.
46235         (minus_zero): New variable.
46236         (main): Use minus_zero instead of -zero.
46237         * modules/floorl-tests (Depends-on): Add float.
46238
46239         * tests/test-roundl.c: Include <float.h>.
46240         (zero): Remove variable.
46241         (minus_zero): New variable.
46242         (main): Use minus_zero instead of -zero.
46243         * modules/roundl-tests (Depends-on): Add float.
46244
46245         * tests/test-truncl.c: Include <float.h>.
46246         (zero): Remove variable.
46247         (minus_zero): New variable.
46248         (main): Use minus_zero instead of -zero.
46249         * modules/truncl-tests (Depends-on): Add float.
46250
46251         * tests/test-frexpl.c (zero): Remove variable.
46252         (minus_zero): New variable.
46253         (main): Use minus_zero instead of -zero.
46254         * modules/frexpl-tests (Depends-on): Add float.
46255
46256         * tests/test-isnan.c (zerol): Remove variable.
46257         (minus_zerol): New variable.
46258         (test_long_double): Use minus_zerol instead of -zerol.
46259         * modules/isnan-tests (Depends-on): Add float.
46260
46261         * tests/test-isnanl.h (zero): Remove variable.
46262         (minus_zero): New variable.
46263         (main): Use minus_zero instead of -zero.
46264         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46265         * modules/isnanl-tests (Depends-on): Add float.
46266
46267         * tests/test-ldexpl.c (zero): Remove variable.
46268         (minus_zero): New variable.
46269         (main): Use minus_zero instead of -zero.
46270         * modules/ldexpl-tests (Depends-on): Add float.
46271
46272         * tests/test-snprintf-posix.h (zerol): Remove variable.
46273         (minus_zerol): New variable.
46274         (test_function): Use minus_zerol instead of -zerol.
46275         * modules/snprintf-posix-tests (Depends-on): Add float.
46276         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46277
46278         * tests/test-sprintf-posix.h (zerol): Remove variable.
46279         (minus_zerol): New variable.
46280         (test_function): Use minus_zerol instead of -zerol.
46281         * modules/sprintf-posix-tests (Depends-on): Add float.
46282         * modules/vsprintf-posix-tests (Depends-on): Add float.
46283
46284         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46285         (minus_zerol): New variable.
46286         (test_function): Use minus_zerol instead of -zerol.
46287         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46288
46289         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46290         (minus_zerol): New variable.
46291         (test_function): Use minus_zerol instead of -zerol.
46292         * modules/vasprintf-posix-tests (Depends-on): Add float.
46293
46294 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46295
46296         * MODULES.html.sh (Support for building documentation): Mention
46297         pmccabe2html.  Sort entries.
46298
46299         Add pmccabe2html module, from gnupdf.
46300         * build-aux/pmccabe.css: New file.
46301         * build-aux/pmccabe2html: New file.
46302         * m4/pmccabe2html.m4: New file.
46303         * modules/pmccabe2html: New file.
46304
46305 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46306
46307         flock: new module
46308         * MODULES.html.sh: Add to list of modules.
46309         * lib/flock.c: flock implementation for Windows and Unix systems
46310         which have fcntl.
46311         * doc/glibc-functions/flock.texi: Update documentation.
46312         * lib/sys_file.in.h: <sys/file.h> header file.
46313         * m4/flock.m4: M4 macros.
46314         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46315         * modules/flock: flock module.
46316         * modules/flock-tests: flock tests module.
46317         * modules/sys_file: sys/file.h module.
46318         * tests/test-flock.c: test suite for flock.
46319
46320 2008-10-06  Jim Meyering  <meyering@redhat.com>
46321
46322         bootstrap: check for LT_INIT more portably still ;-)
46323         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46324         Spotted by Bruno Haible.
46325
46326 2008-10-06  Eric Blake  <ebb9@byu.net>
46327
46328         test-signbit: avoid tripping Irix cc bug on -0.0L
46329         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46330         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46331         entire testsuite consistent and avoids an Irix 6.2 bug.
46332
46333 2008-10-05  Bruno Haible  <bruno@clisp.org>
46334             Jim Meyering  <jim@meyering.net>
46335
46336         Add an option for ignoring EPIPE during close_stdout.
46337         * lib/closeout.h: Include <stdbool.h>.
46338         (close_stdout_set_ignore_EPIPE): New declaration.
46339         * lib/closeout.c: Include <stdbool.h>.
46340         (ignore_EPIPE): New variable.
46341         (close_stdout_set_ignore_EPIPE): New function.
46342         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46343         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46344         failure.
46345         * modules/closeout (Depends-on): Add stdbool.
46346
46347 2008-10-05  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/accept: New file.
46350         * modules/bind: New file.
46351         * modules/connect: New file.
46352         * modules/getpeername: New file.
46353         * modules/getsockname: New file.
46354         * modules/getsockopt: New file.
46355         * modules/listen: New file.
46356         * modules/recv: New file.
46357         * modules/recvfrom: New file.
46358         * modules/send: New file.
46359         * modules/sendto: New file.
46360         * modules/setsockopt: New file.
46361         * modules/socket: New file.
46362         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46363         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46364         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46365         the particular module is requested. Add a link warning when the
46366         particular module is not requested.
46367         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46368         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46369         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46370         the particular module is requested.
46371         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46372         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46373         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46374         * modules/sys_socket (Depends-on): Add link-warning.
46375         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46376         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46377         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46378         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46379         GL_LINK_WARNING.
46380         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46381         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46382         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46383         * doc/posix-functions/getpeername.texi: Mention the new module
46384         'getpeername'.
46385         * doc/posix-functions/getsockname.texi: Mention the new module
46386         'getsockname'.
46387         * doc/posix-functions/getsockopt.texi: Mention the new module
46388         'getsockopt'.
46389         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46390         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46391         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46392         * doc/posix-functions/send.texi: Mention the new module 'send'.
46393         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46394         * doc/posix-functions/setsockopt.texi: Mention the new module
46395         'setsockopt'.
46396         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46397         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46398         listen, connect, accept.
46399         * modules/select-tests (Depends-on): Likewise.
46400
46401 2008-10-05  Bruno Haible  <bruno@clisp.org>
46402
46403         * lib/winsock.c (strerror): Remove unused #undef.
46404         (rpl_close): Remove unused local variable.
46405
46406         * modules/sys_socket (Depends-on); Add errno.
46407
46408 2008-10-05  Bruno Haible  <bruno@clisp.org>
46409
46410         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46411         (select): Add a link warning when the 'select' module is not used.
46412         * modules/sys_select (Depends-on): Add link-warning.
46413         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46414         Suggested by Paolo Bonzini.
46415
46416 2008-10-05  Jim Meyering  <meyering@redhat.com>
46417
46418         bootstrap: check for LT_INIT more portably
46419         * build-aux/bootstrap: Avoid using grep -E, since it's not
46420         portable enough.  Suggestion from Bruno Haible.
46421
46422 2008-10-05  Bruno Haible  <bruno@clisp.org>
46423
46424         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46425         as being fixed by gnulib.
46426
46427 2008-10-05  Bruno Haible  <bruno@clisp.org>
46428
46429         * modules/select-tests: New file, mostly copied from
46430         modules/sys_select-tests.
46431         * tests/test-select.c: New file, mostly copied from
46432         tests/test-sys_select.c.
46433         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46434         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46435         (Makefile.am): Remove test_sys_select_LDADD.
46436
46437         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46438         to an undefined symbol, for an error message.
46439         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46440         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46441         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46442         winsock-select.c here.
46443         * modules/sys_select (Files): Remove lib/winsock-select.c.
46444         (Depends-on): Remove alloca.
46445         (Makefile.am): Substitute GNULIB_SELECT.
46446         * modules/select: New file.
46447         * doc/posix-functions/select.texi: Update.
46448
46449 2008-10-05  Bruno Haible  <bruno@clisp.org>
46450
46451         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46452         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46453         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46454         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46455         getdtablesize.
46456         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46457         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46458
46459 2008-10-05  Bruno Haible  <bruno@clisp.org>
46460
46461         * modules/getdtablesize-tests: New file.
46462         * tests/test-getdtablesize.c: New file.
46463
46464         New module 'getdtablesize'.
46465         * lib/unistd.in.h (getdtablesize): New declaration.
46466         * lib/getdtablesize.c: New file.
46467         * m4/getdtablesize.m4: New file.
46468         * modules/getdtablesize: New file.
46469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46470         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46471         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46472         HAVE_GETDTABLESIZE.
46473         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46474
46475 2008-10-05  Bruno Haible  <bruno@clisp.org>
46476
46477         * modules/sched (Makefile.am): Fix typo.
46478         Reported by Simon Josefsson.
46479
46480 2008-10-05  Jim Meyering  <meyering@redhat.com>
46481
46482         bootstrap: check for LT_INIT, too
46483         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46484         are deprecated.  Suggestion from Ralf Wildenhues.
46485
46486 2008-10-05  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46489         overriding them by ours.
46490         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46491
46492 2008-10-05  Jim Meyering  <meyering@redhat.com>
46493
46494         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46495         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46496         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46497
46498 2008-10-04  Bruno Haible  <bruno@clisp.org>
46499
46500         * modules/dup2 (License): Change to LGPLv2+.
46501         * modules/sleep (License): Likewise.
46502         * modules/perror (License): Likewise.
46503         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46504         Blake.
46505         * modules/signal (License): Likewise.
46506         * modules/sigprocmask (License): Likewise.
46507         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46508         Meyering.
46509
46510 2008-10-04  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46513         Reported by Rainer Tammer <tammer@tammer.net>.
46514
46515 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46516             Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46519         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46520         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46521
46522 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46523
46524         filevercmp: new module
46525         * lib/filevercmp.h: New function filevercmp comparing version strings.
46526         * lib/filevercmp.c: Implementation of filevercmp function.
46527         * modules/filevercmp: Module metadata.
46528         * tests/test-filevercmp.c: Unit test for new module.
46529         * modules/filevercmp-tests: Unit test metadata.
46530         * MODULES.html.sh: Add filevercmp module.
46531
46532 2008-10-03  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/c-ctype.h: Add comment.
46535         Reported by Jim Meyering.
46536
46537 2008-10-02  Bruno Haible  <bruno@clisp.org>
46538
46539         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46540
46541 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46542
46543         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46544         name of bootstrap.conf accordingly.
46545
46546 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46547
46548         * build-aux/bootstrap: Install git-merge-changelog configuration
46549         items into .gitconfig if needed.
46550
46551 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46552
46553         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46554         git repository, and initialize/update it accordingly.
46555
46556 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46557
46558         * modules/fsync-tests: New file.
46559         * tests/test-fsync.c: New file.
46560
46561         New module 'fsync'.
46562         * lib/fsync.c: New file.
46563         * m4/fsync.m4: New file.
46564         * modules/fsync: New file.
46565         * lib/unistd.in.h (fsync): New declaration.
46566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46567         GNULIB_FSYNC and HAVE_FSYNC.
46568         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46569         * MODULES.html.sh (posix_functions): Add fsync.
46570         * doc/posix-functions/fsync.texi: Mention the new module.
46571
46572 2008-10-02  Jim Meyering  <meyering@redhat.com>
46573
46574         fts.c: sync with similar code from coreutils' remove.c
46575         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46576         Guard also with "#if defined __linux__", since for now at least,
46577         this code is Linux-kernel-specific.
46578
46579 2008-10-02  Jim Meyering  <meyering@redhat.com>
46580
46581         fts: bug fixes
46582         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46583         Include <sys/vfs.h>, not <sys/statfs.h>.
46584
46585         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46586         Include <sys/vfs.h>, not <sys/statfs.h>.
46587
46588 2008-10-01  Bruno Haible  <bruno@clisp.org>
46589
46590         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46592         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46593         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46594         * doc/posix-functions/posix_spawnp.texi: Likewise.
46595         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46596         whether posix_spawn actually works.
46597         * m4/pipe.m4 (gl_PIPE): Likewise.
46598         * modules/execute (Files): Add m4/posix_spawn.m4.
46599         * modules/pipe (Files): Add m4/posix_spawn.m4.
46600         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46601
46602 2008-10-01  Jim Meyering  <meyering@redhat.com>
46603
46604         remove trailing spaces
46605         * NEWS: Likewise.
46606         * lib/poll.c (poll): Likewise.
46607         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46608         * lib/winsock.c (rpl_close): Likewise.
46609         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46610         * modules/yield: Likewise.
46611         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46612         * tests/test-sys_select.c (connect_to_socket): Likewise.
46613
46614         fts.c: adjust a new interface to be more generally useful
46615         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46616         (fts_build): Adjust caller.
46617
46618 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46619
46620         * modules/cond-tests: New file.
46621         * tests/test-cond.c: New file.
46622
46623 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46624             Bruno Haible  <bruno@clisp.org>
46625
46626         * modules/cond (Dependencies): Add errno, time.
46627         * lib/glthread/cond.h: Include <time.h>.
46628         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46629         across platforms.
46630
46631 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46632             Bruno Haible  <bruno@clisp.org>
46633
46634         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46635
46636 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46637             Bruno Haible  <bruno@clisp.org>
46638
46639         * modules/tls-tests (Depends-on): Add thread, yield.
46640         (configure.ac): Remove all checks.
46641         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46642         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46643         gl_thread_self): Remove definitions. Include glthread/thread.h and
46644         glthread/yield.h instead.
46645         (test_tls): Pass an additional NULL argument to gl_thread_join.
46646
46647 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46648             Bruno Haible  <bruno@clisp.org>
46649
46650         * modules/lock-tests (Depends-on): Add thread, yield.
46651         (configure.ac): Remove all checks.
46652         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46653         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46654         gl_thread_self): Remove definitions. Include glthread/thread.h and
46655         glthread/yield.h instead.
46656         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46657         additional NULL argument to gl_thread_join.
46658
46659 2008-09-30  Bruno Haible  <bruno@clisp.org>
46660
46661         Fix the Win32 implementation of the 'thread' module.
46662         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46663         pointer type.
46664         (gl_thread_self): Invoke gl_thread_self_func.
46665         (gl_thread_self_func): New declaration.
46666         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46667         (do_init_self_key, init_self_key): New functions.
46668         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46669         Remove some fields.
46670         (running_threads, running_lock): Remove variables.
46671         (get_current_thread_handle): New function.
46672         (gl_thread_self_func, wrapper_func, glthread_create_func,
46673         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46674         simplified.
46675
46676 2008-09-30  Bruno Haible  <bruno@clisp.org>
46677
46678         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46679         files.
46680
46681 2008-09-30  Jim Meyering  <meyering@redhat.com>
46682
46683         fts.m4: correct the test for statfs.f_type
46684         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46685         when checking for statfs.f_type.
46686
46687 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46688
46689         tests: avoid some compiler warnings
46690         * tests/test-memchr.c (main): Pass NULL indirectly.
46691         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46692
46693 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46694
46695         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46696         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46697         exactly specified dayshifts.
46698         (dayshift): New rule.
46699         (rel): Add dayshift.
46700         (relative_time_table) [tomorrow, yesterday, today, now]:
46701         Use tDAY_SHIFT in place of tDAY_UNIT.
46702         * tests/test-getdate.c: Add tests for now-disallowed countable
46703         dayshifts, e.g., "4 yesterday ago".
46704
46705 2008-09-29  Bruno Haible  <bruno@clisp.org>
46706
46707         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46708         * tests/test-posix_spawn1.in.sh: Renamed from
46709         tests/test-posix_spawn.in.sh.
46710         * tests/test-posix_spawn2.c: New file.
46711         * tests/test-posix_spawn2.in.sh: New file.
46712         * modules/posix_spawnp-tests (Files): Update.
46713         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46714
46715 2008-09-29  Bruno Haible  <bruno@clisp.org>
46716
46717         Propagate effects of putenv/setenv/unsetenv to child processes.
46718         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46719         * lib/pipe.c (create_pipe): Likewise.
46720
46721 2008-09-29  Bruno Haible  <bruno@clisp.org>
46722
46723         Enable use of shell scripts as executables in mingw.
46724         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46725         run the program as a shell script.
46726         * lib/pipe.c (create_pipe): Likewise.
46727         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46728         resulting array.
46729
46730 2008-09-29  Eric Blake  <ebb9@byu.net>
46731
46732         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46733
46734 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46735
46736         * doc/posix-functions/accept.texi: Update mingw problems.
46737         * doc/posix-functions/bind.texi: Update mingw problems.
46738         * doc/posix-functions/close.texi: Update mingw problems.
46739         * doc/posix-functions/connect.texi: Update mingw problems.
46740         * doc/posix-functions/getpeername.texi: Update mingw problems.
46741         * doc/posix-functions/getsockname.texi: Update mingw problems.
46742         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46743         * doc/posix-functions/ioctl.texi: Update mingw problems.
46744         * doc/posix-functions/listen.texi: Update mingw problems.
46745         * doc/posix-functions/recv.texi: Update mingw problems.
46746         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46747         * doc/posix-functions/select.texi: Update mingw problems.
46748         * doc/posix-functions/send.texi: Update mingw problems.
46749         * doc/posix-functions/sendto.texi: Update mingw problems.
46750         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46751         * doc/posix-functions/socket.texi: Update mingw problems.
46752
46753 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46754             Bruno Haible  <bruno@clisp.org>
46755
46756         * lib/sys_select.in.h: Include sys/time.h.
46757         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46758         * modules/sys_select: Depend on sys_time.
46759         * tests/test-sys_select.c: Test that sys/select.h defines struct
46760         timeval fully.
46761
46762 2008-09-29  Bruno Haible  <bruno@clisp.org>
46763
46764         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46765         * lib/sys_select.in.h: Likewise.
46766
46767 2008-09-29  Bruno Haible  <bruno@clisp.org>
46768
46769         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46770
46771 2008-09-29  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46774         Set LIBSOCKET instead of augmenting LIBS.
46775         * modules/sockets (Link): New section.
46776         * modules/sockets-tests (test_sockets_LDADD): New variable.
46777         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46778         * modules/poll-tests (test_poll_LDADD): New variable.
46779         * NEWS: Document the change.
46780
46781 2008-09-29  Bruno Haible  <bruno@clisp.org>
46782
46783         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46784         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46785         ARPA_INET_H directly.
46786         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46787
46788 2008-09-28  Bruno Haible  <bruno@clisp.org>
46789
46790         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46791         from gl_HEADER_SYS_SOCKET.
46792         (gl_HEADER_SYS_SOCKET): Invoke it.
46793         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46794
46795 2008-09-28  Bruno Haible  <bruno@clisp.org>
46796
46797         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46798         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46799         Needed on OSF/1 4.0.
46800
46801 2008-09-28  Bruno Haible  <bruno@clisp.org>
46802
46803         Override open more carefully.
46804         * lib/open.c (orig_open): New function.
46805         (rpl_open): Use orig_open instead of open.
46806         * lib/fcntl.in.h: Add special invocation convention.
46807         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46808         (gl_FUNC_OPEN): Invoke it.
46809
46810         Override freopen more carefully.
46811         * lib/freopen.c (orig_freopen): New function.
46812         (rpl_freopen): Use orig_freopen instead of freopen.
46813         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46814         (gl_FUNC_FREOPEN): Invoke it.
46815
46816         Override fopen more carefully.
46817         * lib/fopen.c (orig_fopen): New function.
46818         (rpl_fopen): Use orig_fopen instead of fopen.
46819         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46820         (gl_FUNC_FOPEN): Invoke it.
46821         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46822
46823 2008-09-28  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46826         SIGPIPE.
46827
46828 2008-09-28  Bruno Haible  <bruno@clisp.org>
46829
46830         * tests/test-sigaction.c (handler, main): Disable the check whether
46831         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46832         glibc systems with LinuxThreads.
46833
46834 2008-09-28  Bruno Haible  <bruno@clisp.org>
46835
46836         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46837
46838         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46839         with AIX xlc.
46840         * lib/fcntl.in.h (open): Likewise.
46841         Reported by Rainer Tammer <tammer@tammer.net>.
46842
46843 2008-09-28  Bruno Haible  <bruno@clisp.org>
46844
46845         * modules/posix_spawnp-tests: New file.
46846         * tests/test-posix_spawn.c: New file.
46847         * tests/test-posix_spawn.in.sh: New file.
46848
46849         New module 'posix_spawnp'.
46850         * modules/posix_spawnp: New file.
46851         * lib/spawnp.c: New file, from GNU libc with modifications.
46852         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46853
46854         New module 'posix_spawn'.
46855         * modules/posix_spawn: New file.
46856         * lib/spawn.c: New file, from GNU libc with modifications.
46857         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46858
46859         New module 'posix_spawnattr_destroy'.
46860         * modules/posix_spawnattr_destroy: New file.
46861         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46862         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46863         module.
46864
46865         New module 'posix_spawnattr_setsigmask'.
46866         * modules/posix_spawnattr_setsigmask: New file.
46867         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46868         modifications.
46869         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46870         new module.
46871
46872         New module 'posix_spawnattr_getsigmask'.
46873         * modules/posix_spawnattr_getsigmask: New file.
46874         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46875         modifications.
46876         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46877         new module.
46878
46879         New module 'posix_spawnattr_setsigdefault'.
46880         * modules/posix_spawnattr_setsigdefault: New file.
46881         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46882         modifications.
46883         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46884         new module.
46885
46886         New module 'posix_spawnattr_getsigdefault'.
46887         * modules/posix_spawnattr_getsigdefault: New file.
46888         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46889         modifications.
46890         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46891         new module.
46892
46893         New module 'posix_spawnattr_setschedpolicy'.
46894         * modules/posix_spawnattr_setschedpolicy: New file.
46895         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46896         modifications.
46897         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46898         new module.
46899
46900         New module 'posix_spawnattr_getschedpolicy'.
46901         * modules/posix_spawnattr_getschedpolicy: New file.
46902         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46903         modifications.
46904         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46905         new module.
46906
46907         New module 'posix_spawnattr_setschedparam'.
46908         * modules/posix_spawnattr_setschedparam: New file.
46909         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46910         modifications.
46911         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46912         new module.
46913
46914         New module 'posix_spawnattr_getschedparam'.
46915         * modules/posix_spawnattr_getschedparam: New file.
46916         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46917         modifications.
46918         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46919         new module.
46920
46921         New module 'posix_spawnattr_setpgroup'.
46922         * modules/posix_spawnattr_setpgroup: New file.
46923         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46924         modifications.
46925         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46926         module.
46927
46928         New module 'posix_spawnattr_getpgroup'.
46929         * modules/posix_spawnattr_getpgroup: New file.
46930         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46931         modifications.
46932         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46933         module.
46934
46935         New module 'posix_spawnattr_setflags'.
46936         * modules/posix_spawnattr_setflags: New file.
46937         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46938         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46939         module.
46940
46941         New module 'posix_spawnattr_getflags'.
46942         * modules/posix_spawnattr_getflags: New file.
46943         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46944         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46945         module.
46946
46947         New module 'posix_spawnattr_init'.
46948         * modules/posix_spawnattr_init: New file.
46949         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46950         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46951         module.
46952
46953         New module 'posix_spawn_file_actions_destroy'.
46954         * modules/posix_spawn_file_actions_destroy: New file.
46955         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46956         modifications.
46957         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46958         the new module.
46959
46960         New module 'posix_spawn_file_actions_addopen'.
46961         * modules/posix_spawn_file_actions_addopen: New file.
46962         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46963         modifications.
46964         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46965         the new module.
46966
46967         New module 'posix_spawn_file_actions_adddup2'.
46968         * modules/posix_spawn_file_actions_adddup2: New file.
46969         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46970         modifications.
46971         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46972         the new module.
46973
46974         New module 'posix_spawn_file_actions_addclose'.
46975         * modules/posix_spawn_file_actions_addclose: New file.
46976         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46977         modifications.
46978         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46979         the new module.
46980
46981         New module 'posix_spawn_file_actions_init'.
46982         * modules/posix_spawn_file_actions_init: New file.
46983         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46984         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46985         new module.
46986
46987         New module 'posix_spawn-internal'.
46988         * modules/posix_spawn-internal: New file.
46989         * lib/spawn_int.h: New file, from GNU libc with modifications.
46990         * lib/spawni.c: New file, from GNU libc with modifications.
46991         * m4/posix_spawn.m4: New file.
46992
46993         New module 'spawn'.
46994         * modules/spawn: New file.
46995         * lib/spawn.in.h: New file, from GNU libc with modifications.
46996         * m4/spawn_h.m4: New file.
46997         * doc/posix-headers/spawn.texi: Mention the new module.
46998
46999 2008-09-28  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/sched-tests: New file.
47002         * tests/test-sched.c: New file.
47003
47004         New module 'sched'.
47005         * modules/sched: New file.
47006         * lib/sched.in.h: New file.
47007         * m4/sched_h.m4: New file.
47008         * doc/posix-headers/sched.texi: Mention the new module.
47009
47010 2008-09-27  Eric Blake  <ebb9@byu.net>
47011
47012         Fix previous patch, and tweak references to $0.
47013         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47014         (func_version, func_gnulib_dir): Don't call this program
47015         gnulib-tool.
47016         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47017         with using $0 in function.
47018         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47019         (func_fatal_error): Reuse the name the user invoked us with.
47020
47021 2008-09-27  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47024         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47025         (gl_ICONV_H): Not here.
47026         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47027         instead of assigning ICONV_H directly.
47028
47029         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47031         WCHAR_H directly.
47032
47033 2008-09-27  Bruno Haible  <bruno@clisp.org>
47034
47035         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47036         * modules/arpa_inet (Depends-on): Add link-warning.
47037         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47038         * modules/unistd (Makefile.am): Likewise.
47039
47040 2008-09-26  Bruno Haible  <bruno@clisp.org>
47041
47042         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47043         variables.
47044         (func_version): Essentially copied from gnulib-tool.
47045         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47046         func_readlink): Copied from gnulib-tool.
47047
47048 2008-09-26  Bruno Haible  <bruno@clisp.org>
47049
47050         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47051         invoking git-version-gen.
47052
47053 2008-09-26  Bruno Haible  <bruno@clisp.org>
47054
47055         * posix-modules: Update to directory names changed on 2008-01-19.
47056         Remove commas in output before splitting into words. No more need to
47057         avoid 'ftruncate' since 2007-02-19.
47058
47059 2008-09-26  Bruno Haible  <bruno@clisp.org>
47060
47061         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47062
47063 2008-09-26  Bruno Haible  <bruno@clisp.org>
47064
47065         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47066         * modules/fwriteerror (Depends-on): Add errno.
47067
47068 2008-09-26  Bruno Haible  <bruno@clisp.org>
47069
47070         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47071         * tests/test-vc-list-files-cvs.sh: Likewise.
47072
47073 2008-09-26  Bruno Haible  <bruno@clisp.org>
47074
47075         * doc/posix-headers/sys_resource.texi: Reorder items.
47076
47077 2008-09-26  Jim Meyering  <meyering@redhat.com>
47078
47079         fts: tweak inode comparison function
47080         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47081         inode numbers, as documented.
47082
47083         fts: sort dirent entries on inode number before traversing
47084         This avoids a quadratic, seek-related performance penalty when
47085         operating on a directory containing many entries (measurable at 10k;
47086         3.5 hours at 2 million entries with a cold cache) on certain types
47087         of file systems, including ext3 and ext4, but not tmpfs.
47088         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47089         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47090         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47091         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47092         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47093         (fts_build): Set the stat.st_ino member from D_INO.
47094         If it is likely to be useful, sort dirent entries on inode number.
47095
47096         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47097         and the struct statfs.f_type member.
47098         * modules/fts (Depends-on): Add d-ino.
47099
47100 2008-09-26  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/sigpipe-die (Depends-on): Add sigpipe.
47103
47104         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47105         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47106         and GNULIB_STDIO_H_SIGPIPE are set.
47107         * lib/stdio-write.c: New file.
47108         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47109         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47110         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47111         REPLACE_STDIO_WRITE_FUNCS.
47112         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47113         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47114         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47115         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47116         * modules/stdio (Files): Add lib/stdio-write.c.
47117         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47118         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47119         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47120         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47121         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47122         REPLACE_FPRINTF_POSIX.
47123         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47124         REPLACE_PRINTF_POSIX.
47125         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47126         REPLACE_VFPRINTF_POSIX.
47127         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47128         REPLACE_VPRINTF_POSIX.
47129         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47130         SIGPIPE issue.
47131         * doc/posix-functions/fputc.texi: Likewise.
47132         * doc/posix-functions/fputs.texi: Likewise.
47133         * doc/posix-functions/fwrite.texi: Likewise.
47134         * doc/posix-functions/printf.texi: Likewise.
47135         * doc/posix-functions/putc.texi: Likewise.
47136         * doc/posix-functions/putchar.texi: Likewise.
47137         * doc/posix-functions/puts.texi: Likewise.
47138         * doc/posix-functions/vfprintf.texi: Likewise.
47139         * doc/posix-functions/vprintf.texi: Likewise.
47140
47141         * modules/safe-write (Depends-on): Add write.
47142
47143         * modules/sigpipe-tests: New file.
47144         * tests/test-sigpipe.c: New file.
47145         * tests/test-sigpipe.sh: New file.
47146
47147         * modules/write: New file.
47148         * lib/unistd.in.h: Include <sys/types.h>.
47149         (write): New declaration.
47150         * lib/write.c: New file.
47151         * m4/write.m4: New file.
47152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47153         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47154         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47155         GNULIB_WRITE, REPLACE_WRITE.
47156         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47157         and the SIGPIPE issue.
47158
47159         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47160         (raise): New declaration.
47161         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47162         (ext_signal): New function.
47163         (rpl_raise): New function.
47164         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47165         GNULIB_SIGNAL_H_SIGPIPE.
47166         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47167         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47168
47169         * modules/sigpipe: New file.
47170         * m4/sigpipe.m4: New file.
47171
47172 2008-09-25  Derek Price  <derek@ximbiot.com>
47173             Bruno Haible  <bruno@clisp.org>
47174
47175         * gnulib-tool (func_import): Report all license incompatibilities, not
47176         just the first one.
47177
47178 2008-09-25  Bruno Haible  <bruno@clisp.org>
47179
47180         * gnulib-tool (func_import): When computing the edits, consider not
47181         only the Makefile.ams that exist but also those that will be generated.
47182
47183 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47184
47185         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47186         fixes gnulib-tool --test warning about duplicate dependency.
47187
47188 2008-09-25  Bruno Haible  <bruno@clisp.org>
47189
47190         * gnulib-tool: Don't ask the user to perform edits in the generated
47191         Makefile.ams.
47192         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47193         apply to the Makefile.am being generated.
47194         (func_emit_tests_Makefile_am): Execute edits that apply to the
47195         Makefile.am being generated.
47196         (func_import): Setup list of Makefile.am edits before emitting the
47197         Makefile.ams, not at the end.
47198         (func_create_testdir): Update.
47199         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47200
47201 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47202
47203         * gnulib-tool (func_import): Store the --tests-base option in the
47204         comment in gnulib-cache.m4.
47205
47206 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47207
47208         * NEWS: Document increased portability that sys_select now provides.
47209
47210         * lib/sys_select.in.h: Install select wrapper.
47211         * lib/sys_socket.in.h: Use more descriptive name when there is no
47212         select wrapper.
47213         * lib/winsock-select.c: New.
47214         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47215         Require gl_HEADER_SYS_SOCKET.
47216         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47217         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47218         * tests/test-sys_select.c: Add functional tests.
47219
47220 2008-09-24  Eric Blake  <ebb9@byu.net>
47221
47222         open, fopen: close fd leak in last patch
47223         * lib/open.c (rpl_open): Close fd before returning error.
47224         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47225         * doc/posix-functions/open.texi (open): Document that Irix also
47226         has the bug.
47227         * doc/posix-functions/fopen.texi (fopen): Likewise.
47228         Reported by Paolo Bonzini.
47229
47230 2008-09-24  Bruno Haible  <bruno@clisp.org>
47231
47232         Ensure that a filename ending in a slash cannot be used to access a
47233         non-directory.
47234         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47235         to check whether it's really a directory.
47236         * lib/fopen.c: Include fcntl.h, unistd.h.
47237         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47238         and fdopen().
47239         * modules/fopen (Depends-on): Add unistd.
47240         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47241         * tests/test-fopen.c (main): Likewise.
47242         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47243         * doc/posix-functions/fopen.texi: Likewise.
47244         Reported by Eric Blake.
47245
47246 2008-09-23  Eric Blake  <ebb9@byu.net>
47247
47248         c-stack: avoid compiler optimizations when provoking overflow
47249         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47250         recursion harder to optimize, to ensure a stack overflow occurs.
47251         * tests/test-c-stack.c (recurse): Likewise.
47252         Borrowed from libsigsegv.
47253
47254         c-stack: work around Irix sigaltstack bug
47255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47256         whether sigaltstack uses wrong end of stack_t (copied in part from
47257         libsigsegv).
47258         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47259         Irix bug, without requiring an over-allocation.
47260         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47261         bug.
47262
47263         fopen: document mingw bug on directories
47264         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47265         not allowing a stream visiting a directory, even though reading
47266         from such a stream is not portable.
47267
47268 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47269
47270         * lib/poll.c: Rewrite.
47271         * modules/poll: Depend on alloca.
47272
47273 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47274
47275         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47276         instead define prototypes for a full set of wrappers.  Ensure
47277         that Cygwin does not use the compatibility code, which is only
47278         for MinGW.
47279         * lib/winsock.c: New.
47280         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47281         * modules/sys_socket: Add lib/winsock.c.
47282
47283         * modules/poll-tests: Add errno and perror.
47284         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47285
47286 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47287
47288         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47289
47290 2008-09-23  Bruno Haible  <bruno@clisp.org>
47291
47292         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47293         * doc/glibc-functions/*: Likewise.
47294
47295 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47296
47297         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47298         success.
47299
47300 2008-09-22  Eric Blake  <ebb9@byu.net>
47301             Bruno Haible  <bruno@clisp.org>
47302
47303         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47304         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47305         supply %A but mishandle pseudo-NaN.
47306         Reported by Simon Josefsson.
47307
47308 2008-09-21  Bruno Haible  <bruno@clisp.org>
47309
47310         * tests/test-lock.c (main): Tweak skip message.
47311         * tests/test-tls.c (main): Likewise.
47312
47313 2008-09-21  Bruno Haible  <bruno@clisp.org>
47314
47315         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47316         whether 'struct sigaction' has sa_sigaction here...
47317         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47318         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47319
47320 2008-09-21  Bruno Haible  <bruno@clisp.org>
47321
47322         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47323         section.
47324         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47325         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47326         the new section.
47327         (Support for obsolete systems lacking POSIX:2001): New section.
47328         (String handling <string.h>): Move strdup to the new section.
47329         Suggested by Simon Josefsson and Paolo Bonzini.
47330
47331 2008-09-21  Bruno Haible  <bruno@clisp.org>
47332
47333         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47334         exponents in %e and %g results on 'long double'. Needed for mingw's
47335         improved *printf functions.
47336         * tests/test-vasprintf-posix.c (test_function): Likewise.
47337         * tests/test-snprintf-posix.h (test_function): Likewise.
47338         * tests/test-sprintf-posix.h (test_function): Likewise.
47339         Reported by Eric Blake.
47340
47341 2008-09-21  Bruno Haible  <bruno@clisp.org>
47342
47343         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47344         * tests/test-sprintf-posix.h (test_function): Likewise.
47345
47346 2008-09-21  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/getpass (Depends-on): Add strdup-posix.
47349
47350         New module 'strdup-posix'.
47351         * modules/strdup-posix: New file.
47352         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47353         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47355         REPLACE_STRDUP.
47356         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47357         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47359         strdup-posix.
47360
47361         * modules/strdup (Depends-on): Remove malloc-posix.
47362
47363 2008-09-20  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47366         Wildenhues.
47367
47368 2008-09-20  Bruno Haible  <bruno@clisp.org>
47369
47370         Ensure that wint_t gets defined on IRIX 5.3.
47371         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47372         * lib/wctype.in.h (wint_t): Likewise.
47373         (__wctype_wint_t): Remove type.
47374         (isw*): Use wint_t instead of __wctype_wint_t.
47375         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47376         * modules/wchar (Files): Add m4/wint_t.m4.
47377         (Makefile.am): Substitute HAVE_WINT_T.
47378         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47379         * tests/test-wctype.c: Check that wint_t is defined.
47380         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47381         * doc/posix-headers/wctype.texi: Likewise.
47382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47383
47384 2008-09-18  Bruno Haible  <bruno@clisp.org>
47385
47386         * gnulib-tool (func_exit): Update comment.
47387
47388 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47389
47390         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47391         assumes strdup exists and does not depend on strdup to return
47392         ENOMEM on out of memory conditions.
47393
47394 2008-09-18  Bruno Haible  <bruno@clisp.org>
47395
47396         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47397         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47398         digits for the exponent.
47399
47400 2008-09-18  Jim Meyering  <meyering@redhat.com>
47401             Bruno Haible  <bruno@clisp.org>
47402
47403         * lib/vasnprintf.c (decimal_point_char): Define also if
47404         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47405
47406 2008-09-16  Bruno Haible  <bruno@clisp.org>
47407         and Eric Blake  <ebb9@byu.net>
47408
47409         vasnprintf: support Irix 5.3
47410         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47411         that mishandle long double infinity.
47412         Reported by Tom G. Christensen.
47413
47414 2008-09-16  Bruno Haible  <bruno@clisp.org>
47415
47416         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47417         Solaris 9.
47418         * doc/glibc-functions/alphasort.texi: Likewise.
47419         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47420
47421 2008-09-16  Jim Meyering  <meyering@redhat.com>
47422
47423         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47424         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47425         a umask modification leak out of a subshell.  Otherwise, the
47426         opensolaris /bin/sh would be accepted and thus cause unwarranted
47427         failures in the coreutils test suite.
47428
47429 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47430
47431         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47432         to succeed.
47433
47434 2008-09-16  Jim Meyering  <meyering@redhat.com>
47435
47436         avoid spurious test failure when library is built without ACL support
47437         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47438         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47439         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47440         * tests/test-copy-acl.sh: Likewise.
47441
47442 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47443
47444         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47445         based on character occurrence counts.
47446
47447 2008-09-15  Eric Blake  <ebb9@byu.net>
47448
47449         tests: avoid some compiler warnings
47450         * tests/test-memchr.c (main): Pass NULL indirectly.
47451         * tests/test-closein.c (main): Avoid unused variable.
47452
47453 2008-09-15  Bruno Haible  <bruno@clisp.org>
47454
47455         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47456         are missing on OpenBSD 4.0 individually.
47457         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47458
47459 2008-09-15  Bruno Haible  <bruno@clisp.org>
47460
47461         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47462         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47463         * doc/posix-functions/perror.texi: Likewise.
47464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47465         is missing.
47466         Reported by Eric Blake.
47467
47468         * lib/errno.in.h: Use replacement values >= 2000.
47469         Reported by Eric Blake.
47470
47471 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47472
47473         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47474         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47475         limit.
47476         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47477         compareseq was aborted.
47478
47479 2008-09-14  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47482         yvec_edit_count.
47483         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47484         (fstrcmp_bounded): Simplify result computation accordingly.
47485
47486 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47487
47488         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47489         (fstrcmp): Define in terms of fstrcmp_bounded.
47490         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47491         lower_bound argument.
47492         Return quickly if the result is certainly < lower_bound.
47493         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47494
47495 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47496
47497         * lib/diffseq.h (EARLY_ABORT): New macro.
47498         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47499         evaluates to true.
47500
47501 2008-09-14  Bruno Haible  <bruno@clisp.org>
47502
47503         * modules/perror-tests: New file.
47504         * tests/test-perror.sh: New file.
47505         * tests/test-perror.c: New file.
47506
47507         New module 'perror'.
47508         * lib/stdio.in.h (perror): New declaration.
47509         * lib/perror.c: New file.
47510         * m4/perror.m4: New file.
47511         * modules/perror: New file.
47512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47513         * doc/posix-functions/perror.texi: Mention the perror module.
47514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47515         REPLACE_PERROR.
47516         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47517         REPLACE_PERROR.
47518
47519 2008-09-14  Bruno Haible  <bruno@clisp.org>
47520
47521         * modules/stdio (Makefile.am): Reorder to match the order in
47522         lib/stdio.in.h.
47523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47524
47525 2008-09-13  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47528
47529 2008-09-13  Bruno Haible  <bruno@clisp.org>
47530
47531         Extend strerror to cover the added errno values.
47532         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47533         (rpl_strerror): Provide error messages for the added errno values and
47534         for the WSA* values.
47535         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47536         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47537         strerror.
47538         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47539         * modules/strerror (Depends-on): Add errno.
47540         * doc/posix-functions/strerror.texi: Document the change.
47541         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47542         and EOVERFLOW.
47543
47544 2008-09-13  Bruno Haible  <bruno@clisp.org>
47545
47546         * modules/EOVERFLOW: Remove file.
47547         * m4/eoverflow.m4: Remove file.
47548         * modules/EOVERFLOW-tests: Remove file.
47549         * tests/test-EOVERFLOW.c: Remove file.
47550         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47551         * modules/ftell (Depends-on): Likewise.
47552         * modules/getdelim (Depends-on): Likewise.
47553         * modules/getugroups (Depends-on): Likewise.
47554         * modules/poll (Depends-on): Likewise.
47555         * modules/snprintf (Depends-on): Likewise.
47556         * modules/sprintf-posix (Depends-on): Likewise.
47557         * modules/vasnprintf (Depends-on): Likewise.
47558         * modules/vasprintf (Depends-on): Likewise.
47559         * modules/vfprintf-posix (Depends-on): Likewise.
47560         * modules/vsnprintf (Depends-on): Likewise.
47561         * modules/vsprintf-posix (Depends-on): Likewise.
47562         * modules/xvasprintf (Depends-on): Likewise.
47563         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47564         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47565         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47566         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47567         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47568         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47569         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47570         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47571         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47572         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47573         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47574         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47575         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47576         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47577         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47578         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47579         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47580         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47581         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47582         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47583         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47584         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47585         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47586         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47587         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47588         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47589         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47590         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47591         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47592         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47593         * MODULES.html.sh: Remove EOVERFLOW.
47594         * NEWS: Mention the change.
47595
47596 2008-09-13  Bruno Haible  <bruno@clisp.org>
47597
47598         * modules/errno-tests: New file.
47599         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47600
47601         * lib/errno.in.h: New file.
47602         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47603         * modules/errno: New file.
47604         * doc/posix-headers/errno.texi: Update documentation.
47605         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47606
47607 2008-09-13  Bruno Haible  <bruno@clisp.org>
47608
47609         * tests/test-poll.c: Use #if for native Windows, rather than testing
47610         __MSVCRT__.
47611
47612 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47613             Bruno Haible  <bruno@clisp.org>
47614
47615         * lib/glob.c: Don't include <pwd.h> on native Windows.
47616         (WINDOWS32): New macro.
47617         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47618
47619 2008-09-13  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47622         (ETIMEDOUT): Remove macro.
47623         (glthread_cond_timedwait_multithreaded): New declaration.
47624         (glthread_cond_timedwait): Use it.
47625         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47626         (glthread_cond_timedwait_multithreaded): New function.
47627
47628 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47629
47630         * modules/poll-tests: Do not check for io.h.
47631         * tests/test-poll.c: Check for __MSVCRT__ instead.
47632
47633 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47634
47635         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47636         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47637         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47638
47639 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47640
47641         * modules/poll-tests: New.
47642         * tests/test-poll.c: New.
47643
47644 2008-09-12  Eric Blake  <ebb9@byu.net>
47645
47646         frexp: test for NetBSD failure on -0.0
47647         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47648         not all, bugs from NetBSD 3.0 have been fixed.
47649         * doc/posix-functions/frexp.texi (frexp): Document bug.
47650         Reported by Thomas Klausner.
47651
47652         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47653         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47654         literal -0.0.
47655         Reported by Jonathan C. Patschke <jp@centtech.com>.
47656
47657 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47658
47659         * lib/glthread/cond.h: Use dummy implementation also if
47660         USE_WIN32_THREADS.
47661
47662 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47663
47664         * modules/fnmatch-posix (License): Change to LGPLv2+.
47665         * modules/fnmatch-gnu (License): Likewise.
47666
47667 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47668
47669         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47670
47671 2008-09-11  Jim Meyering  <meyering@redhat.com>
47672
47673         * users.txt: Add gtk-vnc.
47674
47675 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47676
47677         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47678         rotate amounts.
47679
47680         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47681         required for 16-bit and 8-bit rotates.
47682         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47683         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47684         UINT8_MAX instead of hard-coded constants.
47685         Suggested by Paul Eggert.
47686
47687 2008-09-07  Bruno Haible  <bruno@clisp.org>
47688
47689         * tests/test-striconveh.c (main): Check behaviour when converting from
47690         UTF-7.
47691
47692         Make striconveh work better with stateful encodings.
47693         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47694         that iconv does not increment the inptr when returning -1/EINVAL.
47695
47696 2008-09-07  Bruno Haible  <bruno@clisp.org>
47697
47698         * build-aux/config.rpath: Update according to libtool-2.2.6.
47699         * build-aux/config.libpath: Likewise.
47700
47701 2008-09-06  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47704         * lib/freadptr.c (freadptr): Likewise.
47705         * lib/freadseek.c (freadptrinc): Likewise.
47706         Reported by Simon Josefsson.
47707
47708 2008-09-06  Bruno Haible  <bruno@clisp.org>
47709
47710         * modules/freadptr (License): Change to LGPLv2+.
47711         * modules/freadseek (License): Likewise.
47712         Suggested by Eric Blake.
47713
47714         * modules/memchr2 (License): Change to LGPLv2+.
47715         Approved by Eric Blake.
47716
47717 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47718             Bruno Haible  <bruno@clisp.org>
47719
47720         Make gnulib-tool work with native 'sed' on AIX.
47721         * gnulib-tool (sed_noop): New variable.
47722         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47723         func_add_or_update, func_create_testdir): Use it to initialize sed
47724         script variables.
47725         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47726
47727 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47728             Bruno Haible  <bruno@clisp.org>
47729
47730         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47731         also works after #include directives.
47732
47733 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47734
47735         getdate.y: reject an out-of-range timezone value
47736         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47737         the range [-24...+24].  When specified with only one or two digits,
47738         * tests/test-getdate.c: Tests for the fix.
47739         * doc/getdate.texi: Document this change.
47740
47741 2008-09-03  Bruno Haible  <bruno@clisp.org>
47742
47743         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47744
47745 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47746
47747         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47748         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47749         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47750         Blake <ebb9@byu.net>.
47751
47752         * tests/test-bitrotate.c: Add more test vectors.
47753
47754 2008-09-02  Eric Blake  <ebb9@byu.net>
47755
47756         vasnprintf-posix: handle large precision via %.*d
47757         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47758         when handling it ourselves.
47759         * tests/test-vasnprintf-posix.c (test_function): Add test.
47760         * tests/test-snprintf-posix.h (test_function): Likewise.
47761         * tests/test-sprintf-posix.h (test_function): Likewise.
47762         * tests/test-vasprintf-posix.c (test_function): Likewise.
47763         Reported by Alain Guibert.
47764
47765 2008-09-01  Eric Blake  <ebb9@byu.net>
47766
47767         c-stack: make configure-time check more robust
47768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47769         successful sigaction call.
47770         Reported by Tom G. Christensen.
47771
47772 2008-09-01  Bruno Haible  <bruno@clisp.org>
47773
47774         New module 'findprog-lgpl'.
47775         * modules/findprog-lgpl: New file.
47776         * lib/findprog-lgpl.c: New file.
47777         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47778         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47779         to decide whether to use strdup or xstrdup, concatenated_filename or
47780         xconcatenated_filename.
47781
47782 2008-09-01  Bruno Haible  <bruno@clisp.org>
47783
47784         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47785         'xconcat-filename' (GPL).
47786         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47787         (License): Change to LGPLv2+.
47788         * modules/xconcat-filename: New file.
47789         * lib/concat-filename.h (concatenated_filename): Change specification.
47790         (xconcatenated_filename): New declaration.
47791         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47792         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47793         memory situations.
47794         * lib/xconcat-filename.c: New file.
47795         * NEWS: Mention the change.
47796         * lib/findprog.c: Include concat-filename.h, not filename.h.
47797         (find_in_path): Use xconcatenated_filename instead of
47798         concatenated_filename.
47799         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47800         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47801         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47802         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47803         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47804         instead of concatenated_filename.
47805         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47806         (execute_java_class): Use xconcatenated_filename instead of
47807         concatenated_filename.
47808         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47809         * modules/javacomp (Depends-on): Likewise.
47810         * modules/javaexec (Depends-on): Likewise.
47811
47812 2008-09-01  Bruno Haible  <bruno@clisp.org>
47813
47814         Split module 'filename' into 'filename' and 'concat-filename'.
47815         * modules/filename: Keep only lib/filename.h.
47816         (License): Change to LGPLv2+.
47817         * modules/concat-filename: New file, extracted from modules/filename.
47818         * lib/filename.h (concatenated_filename): Remove declaration.
47819         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47820         * lib/concat-filename.c: Include concat-filename.h.
47821         * NEWS: Mention the change.
47822
47823 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47824
47825         * lib/bitrotate.h (rotl8, rotr8): Add.
47826
47827         * modules/bitrotate (configure.ac): Need
47828         AC_REQUIRE([AC_C_INLINE]).
47829         (Description): Mention stdint.h.  Reported by Bruno Haible
47830         <bruno@clisp.org>.
47831
47832         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47833         Paolo Bonzini <bonzini@gnu.org>.
47834
47835 2008-08-31  Bruno Haible  <bruno@clisp.org>
47836
47837         Assume Solaris specific bi-arch conventions on Solaris systems.
47838         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47839         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47840         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47841         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47842         like acl_libdirstem.
47843         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47844         acl_libdirstem.
47845         * NEWS: Mention the change.
47846         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47847
47848 2008-08-31  Jim Meyering  <meyering@redhat.com>
47849
47850         * lib/strftime.h: Add comments describing the two added arguments.
47851
47852         remove duplicate #include directives
47853         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47854         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47855
47856 2008-08-31  Bruno Haible  <bruno@clisp.org>
47857
47858         New module 'sigpipe-die'.
47859         * modules/sigpipe-die: New file.
47860         * lib/sigpipe-die.h: New file.
47861         * lib/sigpipe-die.c: New file.
47862         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47863
47864 2008-08-31  Bruno Haible  <bruno@clisp.org>
47865
47866         Don't override previously installed signal handlers.
47867         * lib/fatal-signal.c (saved_sigactions): New variable.
47868         (uninstall_handlers): Reset the signal to the saved handler, not
47869         to SIG_DFL (except when ignored).
47870         (install_handlers): Save the previous handlers.
47871
47872 2008-08-30  Bruno Haible  <bruno@clisp.org>
47873
47874         * gnulib-tool (func_reset_sigpipe): New function.
47875         (func_get_automake_snippet, func_modules_transitive_closure,
47876         func_import): Invoke it before a join command that reads from stdin,
47877         to avoid "echo: write error: Broken pipe" error messages on stderr.
47878         Reported by Sam Steingold <sds@gnu.org>.
47879
47880 2008-08-30  Bruno Haible  <bruno@clisp.org>
47881
47882         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47883         Code copied from m4/open.m4.
47884         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47885         access and the filename ends in a slash. Code copied from lib/open.c.
47886         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47887         * tests/test-fopen.c (main): Check against bug with trailing slash.
47888
47889 2008-08-29  Bruno Haible  <bruno@clisp.org>
47890
47891         Avoid some "gcc -pedantic" warnings.
47892         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47893         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47894         * lib/dirent.in.h: Likewise.
47895         * lib/fcntl.in.h: Likewise.
47896         * lib/float.in.h: Likewise.
47897         * lib/iconv.in.h: Likewise.
47898         * lib/inttypes.in.h: Likewise.
47899         * lib/locale.in.h: Likewise.
47900         * lib/math.in.h: Likewise.
47901         * lib/netinet_in.in.h: Likewise.
47902         * lib/search.in.h: Likewise.
47903         * lib/signal.in.h: Likewise.
47904         * lib/stdarg.in.h: Likewise.
47905         * lib/stdint.in.h: Likewise.
47906         * lib/stdio.in.h: Likewise.
47907         * lib/stdlib.in.h: Likewise.
47908         * lib/string.in.h: Likewise.
47909         * lib/strings.in.h: Likewise.
47910         * lib/sys_select.in.h: Likewise.
47911         * lib/sys_socket.in.h: Likewise.
47912         * lib/sys_stat.in.h: Likewise.
47913         * lib/sys_time.in.h: Likewise.
47914         * lib/sysexits.in.h: Likewise.
47915         * lib/time.in.h: Likewise.
47916         * lib/unistd.in.h: Likewise.
47917         * lib/wchar.in.h: Likewise.
47918         * lib/wctype.in.h: Likewise.
47919         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47920         * modules/fchdir (Makefile.am): Likewise.
47921         * modules/fcntl (Makefile.am): Likewise.
47922         * modules/float (Makefile.am): Likewise.
47923         * modules/iconv_open (Makefile.am): Likewise.
47924         * modules/inttypes (Makefile.am): Likewise.
47925         * modules/locale (Makefile.am): Likewise.
47926         * modules/math (Makefile.am): Likewise.
47927         * modules/netinet_in (Makefile.am): Likewise.
47928         * modules/search (Makefile.am): Likewise.
47929         * modules/signal (Makefile.am): Likewise.
47930         * modules/stdarg (Makefile.am): Likewise.
47931         * modules/stdint (Makefile.am): Likewise.
47932         * modules/stdio (Makefile.am): Likewise.
47933         * modules/stdlib (Makefile.am): Likewise.
47934         * modules/string (Makefile.am): Likewise.
47935         * modules/strings (Makefile.am): Likewise.
47936         * modules/sys_select (Makefile.am): Likewise.
47937         * modules/sys_socket (Makefile.am): Likewise.
47938         * modules/sys_stat (Makefile.am): Likewise.
47939         * modules/sys_time (Makefile.am): Likewise.
47940         * modules/sysexits (Makefile.am): Likewise.
47941         * modules/time (Makefile.am): Likewise.
47942         * modules/unistd (Makefile.am): Likewise.
47943         * modules/wchar (Makefile.am): Likewise.
47944         * modules/wctype (Makefile.am): Likewise.
47945         Reported by Reuben Thomas <rrt@sc3d.org>.
47946
47947 2008-08-29  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47950         any more.
47951
47952 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47953
47954         * MODULES.html.sh (Misc): Add bitrotate.
47955
47956         * modules/bitrotate: New file.
47957
47958         * lib/bitrotate.h: New file.
47959
47960         * modules/bitrotate-tests: New file.
47961
47962         * tests/test-bitrotate.c: New file.
47963
47964         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47965         on the bitrotate module.
47966
47967         * lib/arctwo.c: Use new bitrotate module.
47968
47969 2008-08-29  Jim Meyering  <meyering@redhat.com>
47970
47971         bootstrap: merge changes from coreutils
47972         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47973         of copied files.  Remove a kludge, now that this is fixed.
47974         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47975         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47976         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47977
47978 2008-08-29  Bruno Haible  <bruno@clisp.org>
47979
47980         * MODULES.html.sh: Remove --cvs-urls option.
47981
47982 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47983
47984         maint.mk: adjust to file name change
47985         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47986
47987 2008-08-28  Jim Meyering  <meyering@redhat.com>
47988
47989         * modules/getndelim2 (License): Relicense to LGPLv2+.
47990         Approved by Richard Stallman for the version of 1995, and by
47991         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47992
47993 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47994
47995         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47996         dummy if one is not available.  Do not touch them if
47997         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47998         (getc_maybe_unlocked): New.
47999         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48000
48001 2008-08-26  Eric Blake  <ebb9@byu.net>
48002
48003         doc/INSTALL: resync from autoconf
48004         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48005         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48006         moving...
48007         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48008         * INSTALL: Regenerate.
48009         * INSTALL.ISO: New file.
48010         * INSTALL.UTF-8: Likewise.
48011
48012 2008-08-26  Jim Meyering  <meyering@redhat.com>
48013
48014         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48015         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48016         these definitions conditional, so that they may be overridden, too.
48017
48018 2008-08-26  Bruno Haible  <bruno@clisp.org>
48019
48020         Generate INSTALL file variants with prettier quotes.
48021         * doc/Makefile (INSTALL_PRELUDE): New macro.
48022         (INSTALL): Use it.
48023         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48024
48025 2008-08-26  Bruno Haible  <bruno@clisp.org>
48026
48027         Run makeinfo in an English locale.
48028         * doc/Makefile (MAKEINFO): New variable.
48029
48030 2008-08-26  Bruno Haible  <bruno@clisp.org>
48031
48032         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48033         Suggested by Eric Blake.
48034
48035 2008-08-25  Bruno Haible  <bruno@clisp.org>
48036
48037         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48038
48039 2008-08-25  Eric Blake  <ebb9@byu.net>
48040
48041         c-stack: test that stack overflow can be caught
48042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48043         that platform allows handling stack overflow; at least OS/2 EMX
48044         has sigaltstack, but crashes before transferring control to
48045         handler on stack overflow.
48046         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48047         check for HAVE_STACK_OVERFLOW_HANDLING.
48048         Reported by Elbert Pol.
48049
48050 2008-08-25  Bruno Haible  <bruno@clisp.org>
48051
48052         * doc/posix-functions/strftime.texi: Fix description of strftime
48053         module.
48054
48055 2008-08-24  Bruno Haible  <bruno@clisp.org>
48056
48057         * tests/uniwidth/test-uc_width2.c: New file.
48058         * tests/uniwidth/test-uc_width2.sh: New file.
48059         * modules/uniwidth/width-tests (Files): Add the new files.
48060         (TESTS): Add uniwidth/test-uc_width2.sh.
48061         (TESTS_ENVIRONMENT): New variable.
48062         (check_PROGRAMS): Add test-uc_width2.
48063         (test_uc_width2_SOURCES): New variable.
48064
48065         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48066         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48067         not 0x00AB.
48068         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48069
48070 2008-08-22  Eric Blake  <ebb9@byu.net>
48071
48072         test-lock, test-tls: mention why a test is skipped
48073         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48074         skipped.
48075         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48076
48077         count-one-bits: relax license
48078         * modules/count-one-bits (License): Relicense to LGPLv2+.
48079         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48080
48081 2008-08-22  Andreas Schwab  <schwab@suse.de>
48082
48083         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48084         Remove spurious space in assignment.
48085
48086 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48087
48088         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48089         Paul Eggert <eggert@CS.UCLA.EDU>.
48090
48091 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48092
48093         * modules/gettext: Add m4/threadlib.m4.
48094
48095 2008-08-19  Eric Blake  <ebb9@byu.net>
48096
48097         test-c-stack: fix compilation failure on FreeBSD 5.0
48098         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48099         headers before <sys/resource.h>.
48100         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48101         the bug.
48102         Reported by Nelson H. F. Beebe.
48103
48104         strverscmp: migrate from "strverscmp.h" to <string.h>
48105         * modules/string (Makefile.am): Add new hooks.
48106         * modules/strverscmp (Files): Remove strverscmp.h.
48107         (Depends-on): Add string.
48108         (configure.ac): Add indicator.
48109         (Include): Mention new header.
48110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48111         defaults.
48112         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48113         results.
48114         * lib/strverscmp.h: Delete.
48115         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48116         * tests/test-strverscmp.c (includes): Adjust client.
48117         * lib/check-version.c (includes): Likewise.
48118         * NEWS: Document the change.
48119
48120         strverscmp: add unit test
48121         * modules/strverscmp-tests: New file.
48122         * tests/test-strverscmp.c: Likewise.
48123
48124 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48125
48126         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48127         regarding Windows crypto stuff, from Mono.
48128
48129 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48130
48131         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48132         if present, for intel RND.  Return error on failures.
48133
48134 2008-08-18  Ben Pfaff  <blp@gnu.org>
48135
48136         gitlog-to-changelog: give better diagnostic for failed pipe-open
48137         * build-aux/gitlog-to-changelog: Improve error message: suggest
48138         that the version of Git may be too old.
48139
48140 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48141
48142         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48143         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48144
48145 2008-08-18  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48148         pthread_in_use().
48149
48150 2008-08-18  Bruno Haible  <bruno@clisp.org>
48151
48152         * lib/glthread/threadlib.c: Include <pthread.h>.
48153
48154 2008-08-18  Bruno Haible  <bruno@clisp.org>
48155
48156         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48157         glthread_recursive_lock_* macros.
48158         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48159         Fix syntax error.
48160
48161 2008-08-18  Bruno Haible  <bruno@clisp.org>
48162
48163         * lib/glthread/thread.c: Avoid forcing a context switch right after
48164         thread creation.
48165
48166 2008-08-17  Bruno Haible  <bruno@clisp.org>
48167
48168         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48169         * lib/glthread/thread.h: Provide Win32 specific implementation.
48170         * modules/thread (Files): Add lib/glthread/thread.c.
48171         (Depends-on): Add lock.
48172         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48173
48174 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48175
48176         New module 'yield'.
48177         * modules/yield: New file.
48178         * lib/glthread/yield.h: New file.
48179         * m4/yield.m4: New file.
48180         * MODULES.html.sh (Multithreading): Add yield.
48181
48182 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48183
48184         New module 'thread'.
48185         * modules/thread: New file.
48186         * lib/glthread/thread.h: New file.
48187         * m4/thread.m4: New file.
48188         * MODULES.html.sh (Multithreading): Add thread.
48189
48190 2008-08-17  Bruno Haible  <bruno@clisp.org>
48191
48192         * lib/glthread/lock.h: Include <stdlib.h> always.
48193         * lib/glthread/tls.h: Likewise.
48194         * lib/glthread/cond.h: Likewise.
48195
48196 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48197
48198         New module 'cond'.
48199         * modules/cond: New file.
48200         * lib/glthread/cond.h: New file.
48201         * lib/glthread/cond.c: New file.
48202         * m4/cond.m4: New file.
48203         * MODULES.html.sh (Multithreading): Add cond.
48204
48205 2008-08-16  Eric Blake  <ebb9@byu.net>
48206
48207         c-stack: fix regression on Irix 5.3 from 2008-06-21
48208         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48209         sa_sigaction...
48210         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48211         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48212         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48213         * modules/signal (Makefile.am): Use the value.
48214         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48215         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48216         * doc/posix-headers/signal.texi (signal.h): Document this
48217         portability issue.
48218         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48219         Reported by Tom G. Christensen.
48220
48221 2008-08-17  Bruno Haible  <bruno@clisp.org>
48222
48223         New module 'threadlib'.
48224         * modules/threadlib: New file.
48225         * lib/glthread/threadlib.c: New file, extracted from
48226         lib/glthread/lock.c.
48227         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48228         functions.
48229         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48230         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48231         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48232         macros.
48233         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48234         (gl_DISABLE_THREADS): Remove macro.
48235         * modules/lock (Files): Remove build-aux/config.rpath.
48236         (Depends-on): Remove havelib. Add threadlib.
48237         (configure.ac-early): Remove section.
48238         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48239         * modules/tls (Depends-on): Remove lock. Add threadlib.
48240         (Link): New section, copied from threadlib.
48241         * MODULES.html.sh (Multithreading): Add threadlib.
48242
48243 2008-08-14  Bruno Haible  <bruno@clisp.org>
48244
48245         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48246         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48247         glthread_rwlock_unlock, glthread_rwlock_destroy,
48248         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48249         glthread_recursive_lock_destroy): Define as macros always.
48250         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48251         glthread_lock_lock.
48252         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48253         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48254         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48255         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48256         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48257         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48258         (glthread_recursive_lock_lock_func): Renamed from
48259         glthread_recursive_lock_lock.
48260         (glthread_recursive_lock_unlock_func): Renamed from
48261         glthread_recursive_lock_unlock.
48262         (glthread_recursive_lock_destroy_func): Renamed from
48263         glthread_recursive_lock_destroy.
48264
48265 2008-08-14  Bruno Haible  <bruno@clisp.org>
48266
48267         * lib/glthread/lock.h: Renamed from lib/lock.h.
48268         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48269         * lib/glthread/tls.h: Renamed from lib/tls.h.
48270         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48271         * lib/fstrcmp.c: Update includes.
48272         * lib/strsignal.c: Update includes.
48273         * modules/lock (Files, Makefile.am): Update.
48274         (Include): Change to "glthread/lock.h".
48275         * modules/tls (Files, Makefile.am): Update.
48276         (Include): Change to "glthread/tls.h".
48277         * tests/test-lock.c: Update includes.
48278         * tests/test-tls.c: Update includes.
48279         * NEWS: Mention the renamed header files.
48280
48281 2008-08-11  Jim Meyering  <meyering@redhat.com>
48282
48283         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48284
48285 2008-08-11  Eric Blake  <ebb9@byu.net>
48286
48287         test-c-stack: avoid C99-ism
48288         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48289         before statement.
48290         Reported by Alain Guibert.
48291
48292 2008-08-10  Jim Meyering  <meyering@redhat.com>
48293
48294         ensure that return value of uinttostr et al are not ignored
48295         * lib/inttostr.h (__GNUC_PREREQ): Define.
48296         (__attribute_warn_unused_result__): Define.
48297         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48298
48299 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48300
48301         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48302         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48303
48304 2008-08-07  Jim Meyering  <meyering@redhat.com>
48305
48306         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48307
48308         * modules/mkstemp (License): Relicense under LGPLv2+.
48309         * modules/tempname (License): Likewise.
48310
48311 2008-08-06  Bruno Haible  <bruno@clisp.org>
48312
48313         * lib/poll.c (poll): Further micro-optimization.
48314
48315 2008-08-06  Jim Meyering  <meyering@redhat.com>
48316
48317         inet_pton.c: use locale-independent tolower
48318         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48319         (inet_pton6): Use c_tolower rather than tolower.
48320         * modules/inet_pton (Depends-on): Add c-ctype.
48321
48322 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48323
48324         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48325         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48326
48327 2008-08-06  Jim Meyering  <meyering@redhat.com>
48328
48329         * modules/inet_pton (License): Relicense under LGPLv2+.
48330
48331 2008-08-03  Bruno Haible  <bruno@clisp.org>
48332
48333         Additional non-aborting API for lock and tls.
48334         * lib/lock.h: Include <errno.h>.
48335         (glthread_lock_init): New macro/function.
48336         (gl_lock_init): Define as wrapper around glthread_lock_init.
48337         (glthread_lock_lock): New macro/function.
48338         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48339         (glthread_lock_unlock): New macro/function.
48340         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48341         (glthread_lock_destroy): New macro/function.
48342         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48343         (glthread_rwlock_init): New macro/function.
48344         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48345         (glthread_rwlock_rdlock): New macro/function.
48346         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48347         (glthread_rwlock_wrlock): New macro/function.
48348         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48349         (glthread_rwlock_unlock): New macro/function.
48350         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48351         (glthread_rwlock_destroy): New macro/function.
48352         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48353         (glthread_recursive_lock_init): New macro/function.
48354         (gl_recursive_lock_init): Define as wrapper around
48355         glthread_recursive_lock_init.
48356         (glthread_recursive_lock_lock): New macro/function.
48357         (gl_recursive_lock_lock): Define as wrapper around
48358         glthread_recursive_lock_lock.
48359         (glthread_recursive_lock_unlock): New macro/function.
48360         (gl_recursive_lock_unlock): Define as wrapper around
48361         glthread_recursive_lock_unlock.
48362         (glthread_recursive_lock_destroy): New macro/function.
48363         (gl_recursive_lock_destroy): Define as wrapper around
48364         glthread_recursive_lock_destroy.
48365         (glthread_once): New macro/function.
48366         (gl_once): Define as wrapper around glthread_once.
48367         Update function declarations.
48368         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48369         glthread_rwlock_init. Return error code.
48370         (glthread_rwlock_rdlock_multithreaded): Renamed from
48371         glthread_rwlock_rdlock. Return error code.
48372         (glthread_rwlock_wrlock_multithreaded): Renamed from
48373         glthread_rwlock_wrlock. Return error code.
48374         (glthread_rwlock_unlock_multithreaded): Renamed from
48375         glthread_rwlock_unlock. Return error code.
48376         (glthread_rwlock_destroy_multithreaded): Renamed from
48377         glthread_rwlock_destroy. Return error code.
48378         (glthread_recursive_lock_init_multithreaded): Renamed from
48379         glthread_recursive_lock_init. Return error code.
48380         (glthread_recursive_lock_lock_multithreaded): Renamed from
48381         glthread_recursive_lock_lock. Return error code.
48382         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48383         glthread_recursive_lock_unlock. Return error code.
48384         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48385         glthread_recursive_lock_destroy. Return error code.
48386         (glthread_once_call): Make static.
48387         (glthread_once_multithreaded): Renamed from glthread_once.
48388         * lib/tls.h: Include <errno.h>.
48389         (glthread_tls_key_init): New macro/function.
48390         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48391         (glthread_tls_set): New macro/function.
48392         (gl_tls_set): Define as wrapper around glthread_tls_set.
48393         (glthread_tls_key_destroy): New macro/function.
48394         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48395         Update function declarations.
48396         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48397         glthread_tls_get.
48398         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48399
48400 2008-08-04  Eric Blake  <ebb9@byu.net>
48401
48402         gnumakefile: use space, not TAB, outside of targets
48403         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48404
48405 2008-08-02  Jim Meyering  <meyering@redhat.com>
48406
48407         getdate.y: avoid locale-dependent date parsing failure
48408         In Turkish locales, getdate would fail to recognize keywords
48409         containing a lowercase "i".  The solution is not to rely on
48410         locale-sensitive case-conversion.
48411         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48412         (lookup_word): Use c_toupper in place of toupper.
48413         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48414         Reported by Vefa Bicakci <bicave@superonline.com> in
48415         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48416         * modules/getdate (Depends-on): Add c-ctype.
48417
48418 2008-08-02  Bruno Haible  <bruno@clisp.org>
48419
48420         * gnulib-tool (func_import): When updating or creating a .gitignore
48421         file, prepend each added line with a slash, and ignore leading slashes
48422         from the existing lines.
48423         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48424
48425 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48426
48427         Portability fix for GNU make 3.79.1.
48428         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48429         versions do not understand.
48430
48431 2008-08-01  Bruno Haible  <bruno@clisp.org>
48432
48433         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48434         * tests/test-isnanf.h (zero): New variable.
48435         (main): Avoid literal -0.0f.
48436         * tests/test-isnand.h (zero): New variable.
48437         (main): Avoid literal -0.0.
48438         * tests/test-isnanl.h (zero): New variable.
48439         (main): Avoid literal -0.0L.
48440         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48441         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48442         -0.0, -0.0L.
48443         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48444         (test_signbitd): Avoid literal -0.0.
48445         (test_signbitl): Avoid literal -0.0L.
48446         * tests/test-ceilf1.c (zero): New variable.
48447         (main): Avoid literal -0.0f.
48448         * tests/test-ceill.c (zero): New variable.
48449         (main): Avoid literal -0.0L.
48450         * tests/test-floorf1.c (zero): New variable.
48451         (main): Avoid literal -0.0f.
48452         * tests/test-floorl.c (zero): New variable.
48453         (main): Avoid literal -0.0L.
48454         * tests/test-roundf1.c (zero): New variable.
48455         (main): Avoid literal -0.0f.
48456         * tests/test-round1.c (zero): New variable.
48457         (main): Avoid literal -0.0.
48458         * tests/test-roundl.c (zero): New variable.
48459         (main): Avoid literal -0.0L.
48460         * tests/test-truncf1.c (zero): New variable.
48461         (main): Avoid literal -0.0f.
48462         * tests/test-trunc1.c (zero): New variable.
48463         (main): Avoid literal -0.0.
48464         * tests/test-truncl.c (zero): New variable.
48465         (main): Avoid literal -0.0L.
48466         * tests/test-frexp.c (zero): New variable.
48467         (main): Avoid literal -0.0.
48468         * tests/test-frexpl.c (zero): New variable.
48469         (main): Avoid literal -0.0L.
48470         * tests/test-ldexpl.c (zero): New variable.
48471         (main): Avoid literal -0.0L.
48472         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48473         (zerod, zerol): New variables.
48474         (test_function): Avoid literals -0.0, -0.0L.
48475         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48476         (zerod, zerol): New variables.
48477         (test_function): Avoid literals -0.0, -0.0L.
48478         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48479         (zerod, zerol): New variables.
48480         (test_function): Avoid literals -0.0, -0.0L.
48481         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48482         (zerod, zerol): New variables.
48483         (test_function): Avoid literals -0.0, -0.0L.
48484         * tests/test-strtod.c (zero): New variable.
48485         (main): Avoid literal -0.0.
48486         Reported by Jonathan C. Patschke <jp@centtech.com>.
48487
48488 2008-07-31  Jim Meyering  <meyering@redhat.com>
48489
48490         sha256.h: correct definition of SHA224_DIGEST_SIZE
48491         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48492         Reported by Paulie Pena IV <paulie4@gmail.com>.
48493         Define as 224 / 8, rather than as a literal.
48494         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48495         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48496         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48497
48498 2008-07-31  Bruno Haible  <bruno@clisp.org>
48499
48500         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48501         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48502         Reported by Jonathan Patschke <jp@centtech.com>.
48503
48504 2008-07-31  Bruno Haible  <bruno@clisp.org>
48505
48506         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48507         Reported by Paolo Bonzini <bonzini@gnu.org>.
48508
48509 2008-07-30  Eric Blake  <ebb9@byu.net>
48510
48511         test-strtod: allow compilation without -lm
48512         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48513         Reported by Dennis Clarke <blastwave@gmail.com>.
48514
48515 2008-07-28  Jim Meyering  <meyering@redhat.com>
48516
48517         bootstrap: work also when there are no .po files in po/
48518         * build-aux/bootstrap (update_po_files): Complete the change
48519         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48520
48521 2008-07-27  Jim Meyering  <meyering@redhat.com>
48522
48523         * users.txt: Add zile.
48524
48525 2008-07-26  Ben Pfaff  <blp@gnu.org>
48526
48527         Add missing dependencies on new m4/exponent[fdl].m4 files.
48528         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48529         * modules/isnand-nolibm: Add m4/exponentd.m4.
48530         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48531         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48532         m4/isnan[fdl].m4, because the macros actually used moved.
48533         Reported by Jim Meyering.
48534
48535 2008-07-14  Ben Pfaff  <blp@gnu.org>
48536
48537         Add isinf module.
48538         * lib/isinf.c: New file.
48539         * lib/math.in.h: Define isinf macro if we have decided to replace
48540         it.
48541         * m4/isinf.m4: New file.
48542         * m4/math_h.m4: Initialize and substitute variables for isinf
48543         module.
48544         * modules/isinf: New file.
48545         * modules/isinf-tests: New file.
48546         * modules/math: Add substitutions for new module.
48547         * tests/test-isinf.c: New file.
48548         * doc/posix-functions/isinf.texi: Mention new module.
48549         * MODULES.html.sh: Mention new module.
48550
48551 2008-07-14  Ben Pfaff  <blp@gnu.org>
48552
48553         Factor out some macros for use by additional modules.
48554         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48555         exponentf.m4.
48556         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48557         exponentd.m4.
48558         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48559         file exponentl.m4.
48560         * m4/exponentf.m4: New file.
48561         * m4/exponentd.m4: New file.
48562         * m4/exponentl.m4: New file.
48563         * modules/isnanf: Use new file m4/exponentf.m4.
48564         * modules/isnand: Use new file m4/exponentd.m4.
48565         * modules/isnanl: Use new file m4/exponentl.m4.
48566
48567 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48568
48569         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48570         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48571         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48572         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48573
48574         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48575         readlink on platforms without PATH_MAX.
48576
48577 2008-07-21  Eric Blake  <ebb9@byu.net>
48578
48579         Warn, not fail, on stale version.
48580         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48581
48582         Don't allow installation with stale devel version number.
48583         * top/GNUmakefile (_is-install-target): New macro.
48584         (_curr-ver): Forbid installation with stale version number.
48585
48586 2008-07-20  Bruno Haible  <bruno@clisp.org>
48587
48588         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48589         TESTS_ENVIRONMENT.
48590         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48591
48592 2008-07-20  Bruno Haible  <bruno@clisp.org>
48593
48594         * lib/c-stack.h (c_stack_action): Add documentation.
48595         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48596
48597 2008-07-20  Bruno Haible  <bruno@clisp.org>
48598
48599         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48600         * modules/readlink (License): Likewise.
48601
48602 2008-07-17  Eric Blake  <ebb9@byu.net>
48603
48604         * modules/c-stack (Link): Fix typo.
48605
48606         Make c-stack use libsigsegv, when available.
48607         * modules/c-stack (Depends-on): Add libsigsegv.
48608         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48609         needed.
48610         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48611         (segv_handler, overflow_handler, c_stack_action)
48612         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48613         implementation when libsigsegv is available, but only when using
48614         the library is necessary.
48615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48616         comment, explaining why XSI check fails on Linux.
48617         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48618         * tests/test-c-stack2.sh: Tweak skip message.
48619         * NEWS: Document new link-time requirements.
48620
48621 2008-07-16  Eric Blake  <ebb9@byu.net>
48622
48623         c-stack: Expose false positives when not using libsigsegv.
48624         * modules/c-stack-tests (Files): Expand test.
48625         * tests/test-c-stack.c (main): Add means to conditionally trigger
48626         non-overflow SIGSEGV.
48627         * tests/test-c-stack2.sh: New file.
48628
48629 2008-07-14  Bruno Haible  <bruno@clisp.org>
48630
48631         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48632         Reported by Eric Blake.
48633
48634 2008-07-14  Sam Steingold  <sds@gnu.org>
48635             Bruno Haible  <bruno@clisp.org>
48636
48637         New module libsigsegv.
48638         * modules/libsigsegv: New file.
48639         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48640         modifications.
48641         * MODULES.html.sh (Signal handling): New section.
48642
48643 2008-07-14  Bruno Haible  <bruno@clisp.org>
48644
48645         * modules/unictype/ctype-* (Description): Add the word "function".
48646         Improves the resulting doc in MODULES.html.
48647
48648 2008-07-12  Ben Pfaff  <blp@gnu.org>
48649
48650         Add longlong module.
48651         * modules/longlong: New file.
48652
48653 2008-07-12  Bruno Haible  <bruno@clisp.org>
48654
48655         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48656         to empty.
48657
48658 2008-07-10  Ben Pfaff  <blp@gnu.org>
48659
48660         Add isnan module.
48661         * doc/posix-functions/isnan.texi: Mention new module.
48662         * lib/math.in.h: Define isnan macro if we have decided to replace
48663         it.
48664         * m4/isnan.m4: New file.
48665         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48666         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48667         also.
48668         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48669         redundancy.
48670         * m4/math_h.m4: Initialize and substitute variables for isnan
48671         module.
48672         * modules/isnan: New file.
48673         * modules/isnan-tests: New file.
48674         * modules/math: Add substitutions for new module.
48675         * tests/test-isnan.c: New file.
48676         * MODULES.html.sh: Mention new module.
48677
48678 2008-07-10  Ben Pfaff  <blp@gnu.org>
48679
48680         Add isnanf module.
48681         * lib/isnanf.m4: New file.
48682         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48683         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48684         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48685         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48686         * modules/isnanf: New file.
48687         * modules/isnanf-tests: New file.
48688         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48689         files.
48690         * tests/test-isnanf-nolibm.c: factored most of its contents into
48691         new file tests/test-isnanf.h.
48692         * tests/test-isnanf.h: New file.
48693         * tests/test-isnanf.c: New file.
48694         * MODULES.html.sh: Mention new module.
48695         * doc/glibc-functions/isnanf.texi: Mention new module.
48696
48697 2008-07-10  Ben Pfaff  <blp@gnu.org>
48698
48699         Add isnand module.
48700         * lib/isnand.h: New file.
48701         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48702         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48703         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48704         functionality also.
48705         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48706         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48707         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48708         * modules/isnand: New file.
48709         * modules/isnand-tests: New file.
48710         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48711         files.
48712         * tests/test-isnand-nolibm.c: factored most of its contents into
48713         new file tests/test-isnand.h.
48714         * tests/test-isnand.h: New file.
48715         * tests/test-isnand.c: New file.
48716         * MODULES.html.sh: Mention new module.
48717
48718 2008-07-10  Ben Pfaff  <blp@gnu.org>
48719
48720         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48721         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48722         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48723         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48724         * modules/isnanf-nolibm: Update references to renamed files.
48725         * modules/isnand-nolibm: Likewise.
48726         * modules/isnanf-nolibm-tests: Likewise.
48727         * modules/isnand-nolibm-tests: Likewise.
48728         * lib/frexp.c: Likewise.
48729         * lib/isfinite.c: Likewise.
48730         * lib/signbitd.c: Likewise.
48731         * lib/signbitf.c: Likewise.
48732         * lib/vasnprintf.c: Likewise.
48733         * tests/test-ceilf1.c: Likewise.
48734         * tests/test-ceilf2.c: Likewise.
48735         * tests/test-floorf1.c: Likewise.
48736         * tests/test-floorf2.c: Likewise.
48737         * tests/test-frexp.c: Likewise.
48738         * tests/test-round1.c: Likewise.
48739         * tests/test-round2.c: Likewise.
48740         * tests/test-roundf1.c: Likewise.
48741         * tests/test-strtod.c: Likewise.
48742         * tests/test-trunc1.c: Likewise.
48743         * tests/test-trunc2.c: Likewise.
48744         * tests/test-truncf1.c: Likewise.
48745         * tests/test-truncf2.c: Likewise.
48746         * NEWS: Mention the renamed header files.
48747
48748 2008-07-11  Jim Meyering  <meyering@redhat.com>
48749
48750         vc-list-files: make the last-resort awk code more portable
48751         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48752         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48753         does not support it.
48754
48755 2008-07-10  Eric Blake  <ebb9@byu.net>
48756
48757         Work with tar's bootstrap.
48758         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48759         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48760         an m4 comment.
48761
48762 2008-07-09  Jim Meyering  <meyering@redhat.com>
48763
48764         posix-shell.m4: fix typo that made this test malfunction
48765         * m4/posix-shell.m4: Remove capitalization in variable name.
48766
48767 2008-07-08  Bruno Haible  <bruno@clisp.org>
48768
48769         * m4/onceonly.m4: Update comments.
48770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48771
48772 2008-07-04  Jim Meyering  <meyering@redhat.com>
48773
48774         * users.txt: Add vc-dwim.
48775         (bison, coreutils): Use the gitweb URL.
48776
48777 2008-07-03  Jim Meyering  <meyering@redhat.com>
48778
48779         * users.txt: Add libffcall.  From Sam Steingold.
48780
48781 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48782
48783         getdate.y: do not ignore TZ with relative day, month or year offset
48784         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48785         relative-date-handling, since otherwise, the latter would clobber the
48786         sole output (an updated Start value) of the tz-handling block.
48787         * tests/test-getdate.c: Tests for the fix
48788
48789 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48790
48791         Recognize 'foo_LIBRARIES += libgnu.a'.
48792         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48793         makefile snippet has already specified an installation location,
48794         also using '+='.
48795
48796 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48797
48798         getdate.y: factor out common actions
48799         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48800         Use them in place of open-coded actions.
48801
48802 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48803
48804         Add self-test for getdate module.
48805         * modules/getdate-tests: New file.
48806         * tests/test-getdate.c: New file.
48807
48808 2008-06-29  Bruno Haible  <bruno@clisp.org>
48809
48810         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48811         .gitignore.
48812         Reported by Sylvain Beucler <beuc@beuc.net>.
48813
48814 2008-06-29  Bruno Haible  <bruno@clisp.org>
48815
48816         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48817         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48818
48819 2008-06-29  Bruno Haible  <bruno@clisp.org>
48820
48821         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48822         EXTRA_DIST.
48823         Reported by Sylvain Beucler <beuc@beuc.net>.
48824
48825 2008-06-26  Jim Meyering  <meyering@redhat.com>
48826
48827         make several modules depend on the "open" module
48828         This provides slightly increased consistency when opening-for-write
48829         the name of a non-directory spelled with a trailing slash.
48830         * modules/chdir-safer: Likewise.
48831         * modules/chown: Likewise.
48832         * modules/clean-temp: Likewise.
48833         * modules/copy-file: Likewise.
48834         * modules/fchdir: Likewise.
48835         * modules/fcntl-safer: Likewise.
48836         * modules/pipe: Likewise.
48837         * modules/utime: Likewise.
48838         Prompted by Eric Blake and Bruno Haible.
48839
48840 2008-06-24  Andreas Schwab  <schwab@suse.de>
48841
48842         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48843         literals can be used as initializers for global variables.
48844
48845 2008-06-23  Eric Blake  <ebb9@byu.net>
48846
48847         Make gnulib-cache.m4 easier to diff.
48848         * gnulib-tool (func_import): Allow newlines when reading cached
48849         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48850
48851 2008-06-23  Bruno Haible  <bruno@clisp.org>
48852
48853         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48854         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48855         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48856         m4/signalblocking.m4.
48857         (gl_PREREQ_SIGACTION): Don't invoke it.
48858         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48859         gl_PREREQ_SIG_HANDLER_H.
48860         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48861         Don't check for sigaction here.
48862
48863 2008-06-23  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48866         (install_handlers): Don't set the SA_RESETHAND flag.
48867
48868 2008-06-23  Bruno Haible  <bruno@clisp.org>
48869
48870         * m4/sigaction.m4: Comment fixes.
48871         * lib/signal.in.h: Likewise.
48872
48873 2008-06-23  Eric Blake  <ebb9@byu.net>
48874
48875         Fix typo.
48876         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48877
48878         Avoid SA_ namespace.
48879         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48880         Reported by Ralf Wildenhues.
48881
48882         Avoid test failure due to SA_RESTORER.
48883         * tests/test-sigaction.c (SA_MASK): New macro.
48884         (main): Avoid failing due to extension flags being set.
48885         Reported by Jim Meyering.
48886
48887         Revert use of sig-handler.h in sigprocmask.c.
48888         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48889         it requires the existence of struct sigaction.
48890         * lib/sigprocmask.c (handler_t): Restore typedef.
48891         (rpl_signal, old_handlers): Use local type.
48892
48893 2008-06-22  Bruno Haible  <bruno@clisp.org>
48894
48895         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48896         conditionally.
48897         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48898
48899 2008-06-22  Bruno Haible  <bruno@clisp.org>
48900
48901         * doc/posix-functions/siginterrupt.texi: Move note.
48902
48903         * lib/signal.in.h (SA_RESTART): New macro.
48904         * lib/sigaction.c: Update comment.
48905
48906         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48907
48908         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48909         (gl_PREREQ_SIGPROCMASK): Invoke it.
48910         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48911
48912         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48913
48914         * lib/sigprocmask.c: Update a comment.
48915
48916 2008-06-21  Eric Blake  <ebb9@byu.net>
48917
48918         Use sigaction module rather than signal().
48919         * modules/c-stack (Depends-on): Add sigaction.
48920         * modules/fatal-signal (Depends-on): Likewise.
48921         * modules/nanosleep (Depends-on): Likewise.
48922         * modules/sigprocmask (Files): Add sig-handler.h.
48923         * modules/sigaction (Files): Likewise.
48924         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48925         Eggert.
48926         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48927         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48928         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48929         (init_fatal_signals): Likewise.
48930         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48931         (siginterrupt): Delete fallback.
48932         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48933         instead.
48934         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48935         siginterrupt.
48936
48937         New module sigaction, for mingw.
48938         * modules/sigaction: New module...
48939         * modules/sigaction-tests: ...and its test.
48940         * m4/sigaction.m4: New file.
48941         * lib/sigaction.c: Likewise.
48942         * tests/test-sigaction.c: Likewise.
48943         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48944         * modules/signal (Makefile.am): Likewise.
48945         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48946         needed.
48947         * doc/posix-headers/signal.texi (signal.h): Mention provided
48948         types.
48949         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48950         that sigaction is preferable.
48951         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48952         module.
48953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48954         sigaction.
48955
48956         Improve robustness of sigprocmask by overriding signal.
48957         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48958         is in use.
48959         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48960         (SIGKILL, SIGSTOP): Provide fallbacks.
48961         (rpl_signal): Implement.
48962         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48963         signal can be called inside handlers.
48964
48965         Fix nanosleep module on mingw.
48966         * modules/nanosleep (Depends-on): Add sys_select.
48967         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48968
48969         Fix licensing of sigprocmask.
48970         * modules/raise (License): Relicense as LGPL.
48971
48972 2008-06-21  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48975         result if it contains question marks.
48976         Reported by Michael Geng <linux@michaelgeng.de>.
48977
48978 2008-06-19  Bruno Haible  <bruno@clisp.org>
48979
48980         Fix CVS-ism.
48981         * doc/gnulib.texi: Include updated-stamp.texi.
48982         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48983         (updated-stamp.texi): New rule.
48984         (gnulib.info): Depend on it.
48985         * doc/.gitignore: Add updated-stamp.texi.
48986         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48987
48988 2008-06-19  Bruno Haible  <bruno@clisp.org>
48989
48990         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48991         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48992
48993 2008-06-19  Eric Blake  <ebb9@byu.net>
48994
48995         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48996         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48997         Reported by Stepan Kasal.
48998
48999 2008-06-18  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49002         Reported by Eric Blake.
49003
49004 2008-06-18  Eric Blake  <ebb9@byu.net>
49005
49006         Work around cygwin 1.5.25 strsignal bug.
49007         * tests/test-strsignal.c: Allow for const char *.
49008         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49009
49010 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49011
49012         * users.txt: Update URL to article and add author/date
49013         information.
49014
49015 2008-06-17  Bruno Haible  <bruno@clisp.org>
49016
49017         New macro gl_DISABLE_THREADS.
49018         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49019         if the user did not pass --enable-threads or --disable-threads option.
49020         (gl_DISABLE_THREADS): New macro.
49021         Reported by Eric Blake <ebb9@byu.net>.
49022
49023 2008-06-17  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49026         when the macro ignores it.
49027         Based on a patch by Eric Blake <ebb9@byu.net>.
49028
49029 2008-06-17  Bruno Haible  <bruno@clisp.org>
49030
49031         * modules/tls (License): Change to LGPLv2+.
49032         Reported by Eric Blake.
49033
49034 2008-06-17  Eric Blake  <ebb9@byu.net>
49035
49036         Simplify c-stack prerequisites.
49037         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49039         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49040         check.
49041         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49042         <sys/resource.h>.
49043
49044         Move c-stack test into testsuite.
49045         * modules/c-stack-tests: New file.
49046         * lib/c-stack.c [DEBUG]: Move test program...
49047         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49048         fail test if sigaltstack is lacking.
49049         * tests/test-c-stack.sh: New driver file.
49050
49051 2008-06-16  Eric Blake  <ebb9@byu.net>
49052
49053         Use raise module consistently.
49054         * modules/fatal-signal (Depends-on): Add raise.
49055         * modules/sigprocmask (Depends-on): Likewise.
49056         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49057         * lib/sigprocmask.c (sigprocmask): Likewise.
49058         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49059         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49060
49061         Fix compliance bug in sigpending.
49062         * lib/sigprocmask.c (sigpending): Return pending array via
49063         parameter, not return value.
49064
49065 2008-06-14  Eric Blake  <ebb9@byu.net>
49066
49067         Improve obstack-printf test code.
49068         * tests/test-obstack-printf.c (test_function): Fix comment, and
49069         simplify usage of obstack_* in macros.  Add a test for coverage.
49070         Reported by Bruno Haible.
49071
49072 2008-06-14  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49075         array size as a constant, not as a const variable.
49076         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49077         AC_USE_SYSTEM_EXTENSIONS.
49078         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49079         Test whether the obstack_printf function actually exists.
49080         * modules/obstack-printf (Depends-on): Add extensions.
49081         (Include): Remove obstack.h.
49082         * modules/obstack-printf-posix (Depends-on): Add extensions.
49083         (Include): Remove obstack.h.
49084
49085 2008-06-13  Eric Blake  <ebb9@byu.net>
49086
49087         Add obstack-printf and obstack-printf-posix modules.
49088         * modules/obstack-printf: New file.
49089         * modules/obstack-printf-posix: Likewise.
49090         * MODULES.html.sh (Misc): Mention them.
49091         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49092         Likewise.
49093         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49094         Likewise.
49095         * modules/stdio (Makefile.am): Accomodate new modules.
49096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49097         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49098         Declare.
49099         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49100         functions.
49101         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49102         (gl_REPLACE_OBSTACK_PRINTF): New macros
49103         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49104         * tests/test-obstack-printf.c: New file.
49105         * modules/obstack-printf-tests: Likewise.
49106         * modules/obstack-printf-posix-tests: Likewise.
49107
49108 2008-06-11  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49111         * lib/open.c: Include errno.h.
49112         (open): Fail when attempting to write to a file that has a trailing
49113         slash.
49114         * tests/test-open.c (main): Test against trailing slash bug.
49115         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49116
49117 2008-06-10  Bruno Haible  <bruno@clisp.org>
49118
49119         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49120         for $? to work inside the trap command, with various /bin/sh-s.
49121         * tests/test-vc-list-files-cvs.sh: Likewise.
49122
49123 2008-06-10  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/acl-internal.h: Don't include gettext.h here.
49126         * lib/set-mode-acl.c: Include gettext.h here.
49127         * lib/copy-acl.c: Likewise.
49128
49129 2008-06-10  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49132         * lib/wait-process.c (wait_subprocess): Likewise.
49133         * lib/execute.h (execute): Add termsigp argument.
49134         * lib/execute.c (execute): Likewise.
49135         * lib/csharpcomp.c (compile_csharp_using_pnet,
49136         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49137         * lib/csharpexec.c (execute_csharp_using_pnet,
49138         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49139         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49140         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49141         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49142         is_jikes_present): Update.
49143         * lib/javaexec.c (execute_java_class): Update.
49144         * lib/javaversion.c (execute_and_read_line): Update.
49145         * NEWS: Document the changes.
49146         Reported by Eric Blake.
49147
49148 2008-06-10  Eric Blake  <ebb9@byu.net>
49149
49150         Add missing include.
49151         * tests/test-strstr.c (includes): Add <signal.h>.
49152         * tests/test-strcasestr.c (includes): Likewise.
49153         * tests/test-memmem.c (includes): Likewise.
49154
49155 2008-06-10  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/wait-process.c (wait_subprocess): Add an assertion.
49158
49159 2008-06-10  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49162
49163 2008-06-10  Bruno Haible  <bruno@clisp.org>
49164
49165         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49166         using alarm().
49167         * tests/test-strcasestr.c (main): Likewise.
49168         * tests/test-strstr.c (main): Likewise.
49169
49170 2008-06-09  Bruno Haible  <bruno@clisp.org>
49171
49172         Work around the Solaris 10 ACE ACLs ABI change.
49173         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49174         declare if ACL_NO_TRIVIAL is present.
49175         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49176         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49177         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49178         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49179         define if ACL_NO_TRIVIAL is present.
49180         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49181         and use the current ABI.
49182         (file_has_acl): Use same #if condition as elsewhere.
49183         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49184         in use, and use the current ABI.
49185         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49186         Reported by Jim Meyering.
49187
49188 2008-06-09  Eric Blake  <ebb9@byu.net>
49189
49190         Work around environments that (stupidly) ignore SIGALRM.
49191         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49192         before using alarm().
49193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49195         Reported by Ian Beckwith <ianb@erislabs.net>.
49196
49197         Produce autobuild blurb earlier in log.
49198         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49199
49200 2008-06-09  Jim Meyering  <meyering@redhat.com>
49201         and Ondřej Vašík  <ovasik@redhat.com>
49202
49203         utimens.c: correct kernel bug work-around
49204         Ondřej Vašík found that the invalid return value of 280 indicates
49205         failure, not success, and the kernel bug we're trying to work
49206         around affects not just the utimensat call, but also the fallback
49207         futimens call.
49208         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49209         not success.
49210         [HAVE_FUTIMENS]: Use the same work-around, here.
49211
49212 2008-06-09  Jim Meyering  <meyering@redhat.com>
49213
49214         add more guards around definition of ACE_-related code
49215         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49216         ALLOW and ACE_OWNER are also defined.
49217
49218 2008-06-08  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/acl-internal.h: Add me as co-author.
49221         * lib/file-has-acl.c: Likewise.
49222         * lib/set-mode-acl.c: Likewise.
49223         * lib/copy-acl.c: Likewise.
49224
49225 2008-06-08  Bruno Haible  <bruno@clisp.org>
49226
49227         Add support for AIX ACLs.
49228         * lib/acl-internal.h (acl_nontrivial): New declaration.
49229         * lib/file-has-acl.c (acl_nontrivial): New function.
49230         (file_has_acl): Add implementation using AIX 4 ACL API.
49231         * lib/set-mode-acl.c (qset_acl): Likewise.
49232         * lib/copy-acl.c (qcopy_acl): Likewise.
49233
49234 2008-06-08  Bruno Haible  <bruno@clisp.org>
49235
49236         Add support for HP-UX ACLs.
49237         * lib/acl-internal.h (acl_nontrivial): New declaration.
49238         * lib/file-has-acl.c (acl_nontrivial): New function.
49239         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49240         * lib/set-mode-acl.c (qset_acl): Likewise.
49241         * lib/copy-acl.c (qcopy_acl): Likewise.
49242
49243 2008-06-08  Bruno Haible  <bruno@clisp.org>
49244
49245         Add support for Cygwin ACLs.
49246         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49247         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49248         the chmod_or_fchmod call.
49249         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49250
49251 2008-06-08  Bruno Haible  <bruno@clisp.org>
49252
49253         Fix bug with setuid modes in Solaris 10+ code.
49254         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49255         succeeded, when the mode contains some special bits.
49256
49257 2008-06-08  Bruno Haible  <bruno@clisp.org>
49258
49259         Add support for Solaris 7..10 ACLs.
49260         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49261         declarations.
49262         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49263         functions.
49264         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49265         * lib/set-mode-acl.c (qset_acl): Likewise.
49266         * lib/copy-acl.c (qcopy_acl): Likewise.
49267
49268 2008-06-08  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49271         declaration.
49272         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49273         (acl_access_nontrivial): Remove MacOS X case.
49274         (file_has_acl): Use acl_extended_nontrivial.
49275         * lib/copy-acl.c (qcopy_acl): Likewise.
49276
49277 2008-06-08  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49280
49281 2008-06-08  Jim Meyering  <meyering@redhat.com>
49282
49283         * modules/acl (Maintainer): Add Bruno Haible.
49284
49285 2008-06-07  Bruno Haible  <bruno@clisp.org>
49286
49287         Improve support for Tru64 ACLs.
49288         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49289         ACL on OSF/1.
49290
49291 2008-06-07  Bruno Haible  <bruno@clisp.org>
49292
49293         Add support for MacOS X ACLs.
49294         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49295         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49296         * lib/set-mode-acl.c (qset_acl): Likewise.
49297         * lib/copy-acl.c (qcopy_acl): Likewise.
49298
49299 2008-06-07  Bruno Haible  <bruno@clisp.org>
49300
49301         Fix memory leak introduced on 2008-05-22.
49302         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49303         use.
49304
49305 2008-06-07  Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49308         to construct an empty ACL.
49309
49310 2008-06-07  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49313         precisely.
49314         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49315
49316 2008-06-07  Bruno Haible  <bruno@clisp.org>
49317
49318         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49319         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49320
49321 2008-06-07  Bruno Haible  <bruno@clisp.org>
49322
49323         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49324         regardless of POSIX.
49325         * doc/posix-functions/_longjmp.texi: Likewise.
49326         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49327         SystemV platform in this case.
49328
49329 2008-06-06  Eric Blake  <ebb9@byu.net>
49330
49331         Document abort() bugs.
49332         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49333
49334         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49335         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49336         sigsetjmp.
49337         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49338         siglongjmp, but only as a macro.
49339         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49340         is obsolete.
49341         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49342
49343         Tweak documentation to cover cygwin argz bugs.
49344         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49345         argz bug fix; no code change needed since no cygwin releases
49346         occurred between the last fix and the bug being tested.
49347         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49348         module and recently fixed cygwin bugs.
49349         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49350         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49351         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49352         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49353         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49354         Likewise.
49355         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49356         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49357         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49358         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49359         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49360         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49361         Likewise.
49362
49363         Avoid gcc warning on cygwin.
49364         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49365         !ACL_NO_TRIVIAL]: Avoid unused variable.
49366
49367 2008-06-05  Eric Blake  <ebb9@byu.net>
49368
49369         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49370         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49371         git-version-gen fails to come up with a version.
49372         Reported by Simon Josefsson.
49373
49374 2008-06-05  Jim Meyering  <meyering@redhat.com>
49375             Paul Eggert  <eggert@cs.ucla.edu>
49376
49377         utimens.c: work around a probable Linux kernel bug
49378         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49379         appears to be a kernel bug that causes utimensat to return 280
49380         instead of 0, indicating success.
49381
49382 2008-06-04  Bruno Haible  <bruno@clisp.org>
49383
49384         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49385         2008-06-01 commit.
49386
49387 2008-06-04  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49390         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49391         (file_has_acl): Use it. Save errno afterwards.
49392         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49393
49394 2008-06-03  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49397         draft code. Simplify #ifs.
49398         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49399         Put Solaris code after POSIX-draft code. Fix comments regarding
49400         Solaris 10, HP-UX. Mention Cygwin.
49401         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49402
49403 2008-06-03  Eric Blake  <ebb9@byu.net>
49404
49405         Provide fallback for older kernels.
49406         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49407         Provide runtime fallback if kernel lacks support.
49408         Reported by Mike Frysinger.
49409
49410 2008-06-02  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49413         it exists.
49414
49415 2008-06-02  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49418         * lib/copy-acl.c (qcopy_acl): Update comment.
49419
49420 2008-06-02  Bruno Haible  <bruno@clisp.org>
49421
49422         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49423         like ACL APIs.
49424
49425 2008-06-02  Bruno Haible  <bruno@clisp.org>
49426
49427         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49428         * tests/test-set-mode-acl.sh: Likewise.
49429         * tests/test-copy-acl.sh: Likewise.
49430         * tests/test-copy-file.sh: Likewise.
49431
49432 2008-06-02  Bruno Haible  <bruno@clisp.org>
49433
49434         * tests/test-file-has-acl.sh: Remove unused code.
49435
49436 2008-06-01  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49439         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49440         messages.
49441         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49442
49443 2008-06-01  Bruno Haible  <bruno@clisp.org>
49444
49445         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49446         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49447         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49448         APIs.
49449         * modules/acl-tests (configure.ac): Remove tests now contained in
49450         m4/acl.m4.
49451
49452 2008-06-02  Jim Meyering  <meyering@redhat.com>
49453
49454         announce-gen: use a better key-server host name
49455         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49456         it may be more consistently reliable.  Suggested by Werner Koch
49457         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49458
49459 2008-06-01  Bruno Haible  <bruno@clisp.org>
49460
49461         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49462         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49463
49464 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49465
49466         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49467
49468 2008-06-01  Bruno Haible  <bruno@clisp.org>
49469
49470         New ACL tests.
49471         * tests/test-file-has-acl.sh: New file.
49472         * tests/test-file-has-acl.c: New file.
49473         * tests/test-set-mode-acl.sh: New file.
49474         * tests/test-set-mode-acl.c: New file.
49475         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49476         * tests/test-copy-acl.c: New file.
49477         * modules/acl-tests: New file, based on modules/copy-file-tests.
49478         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49479         (Depends-on): Add acl-tests.
49480         (configure.ac): Remove checks.
49481         (Makefile.am): Don't create test-sameacls program here any more.
49482
49483 2008-06-01  Bruno Haible  <bruno@clisp.org>
49484
49485         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49486         * tests/test-sameacls.c: Include progname.h.
49487         (main): Invoke set_program_name. Portability fixes for MacOS X,
49488         Solaris, HP-UX.
49489
49490 2008-06-01  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49493         function.
49494         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49495
49496 2008-06-01  Bruno Haible  <bruno@clisp.org>
49497
49498         * modules/rpmatch (Depends-on): Add strdup.
49499
49500 2008-06-01  Bruno Haible  <bruno@clisp.org>
49501
49502         * lib/pipe.c: Include unistd-safer.h.
49503         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49504         * modules/pipe (Depends-on): Add unistd-safer.
49505
49506 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49507
49508         * modules/autobuild (configure.ac): Call AB_INIT.
49509
49510 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49511
49512         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49513         Suggested by Bruno Haible <bruno@clisp.org>.
49514
49515 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49516
49517         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49518         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49519         <bruno@clisp.org>.
49520
49521 2008-05-29  Eric Blake  <ebb9@byu.net>
49522
49523         Prefer new POSIX 200x interfaces over futimesat.
49524         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49525         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49526         when available.
49527         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49528
49529 2008-05-28  Bruno Haible  <bruno@clisp.org>
49530
49531         * modules/stpcpy (License): Change to LGPLv2+.
49532         Requested by David Lutterkort <dlutter@redhat.com>.
49533
49534 2008-05-27  Bruno Haible  <bruno@clisp.org>
49535
49536         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49537         current mingw.
49538         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49539
49540 2008-05-27  Bruno Haible  <bruno@clisp.org>
49541
49542         * modules/iconv_open (Link): New section, from module 'iconv'.
49543         * modules/striconv (Link): Likewise.
49544         * modules/striconveh (Link): Likewise.
49545         * modules/xstriconv (Link): Likewise.
49546         * modules/unicodeio (Link): Likewise.
49547         * modules/propername (Link): Likewise.
49548         Reported by Jim Meyering.
49549
49550 2008-05-26  Jim Meyering  <meyering@redhat.com>
49551
49552         sha256: do not artificially restrict buffer length to be < 2^32
49553         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49554         uint32_t to size_t.
49555         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49556         to match.
49557
49558         avoid unaligned access errors, e.g., on sparc
49559         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49560         direct access through a possibly-unaligned uint64* pointer.
49561         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49562         direct access through a possibly-unaligned uint32* pointer.
49563         Prompted by this patch from Tom "spot" Callaway:
49564         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49565
49566         sha512.c: fix typo in comment
49567         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49568
49569 2008-05-25  Bruno Haible  <bruno@clisp.org>
49570
49571         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49572         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49573         (Makefile.am): Update lib_SOURCES.
49574
49575 2008-05-25  Bruno Haible  <bruno@clisp.org>
49576
49577         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49578
49579 2008-05-25  Jim Meyering  <meyering@redhat.com>
49580
49581         useless-if-before-free: freed expr may have white-space differences
49582         * build-aux/useless-if-before-free: Recognize cases in which the
49583         freed expression differs from the tested one in embedded white
49584         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49585         $1 was used, so we can't make any regexp shy.  Improved tests now
49586         detect this.
49587
49588         useless-if-before-free: accept white space in the expression.
49589         * build-aux/useless-if-before-free: For now, any white space
49590         in the expression must be identical in the free argument.
49591
49592         useless-if-before-free: efficiency tweak
49593         * build-aux/useless-if-before-free: Make the expression-matching
49594         regexp "shy".
49595         Make the *outer* regexp shy, not the expr-matching one.
49596
49597         update code-in-comment to accept cast of free arg
49598         * build-aux/useless-if-before-free: Update regexp.
49599
49600 2008-05-25  Bruno Haible  <bruno@clisp.org>
49601
49602         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49603         * modules/copy-file-tests (Files, Makefile.am): Update.
49604         * tests/test-copy-file.c (func_test_copy): Update.
49605
49606 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49607
49608         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49609
49610 2008-05-23  Bruno Haible  <bruno@clisp.org>
49611
49612         Improve support for ACLs on OSF/1.
49613         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49614         Remove fallback for unknown flavors of ACLs.
49615
49616 2008-05-22  Bruno Haible  <bruno@clisp.org>
49617
49618         Add support for ACLs on OSF/1.
49619         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49620         replacements.
49621         (acl_free_text): New macro fallback.
49622         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49623         acl_free.
49624         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49625         acl_free_text function. Require AC_C_INLINE.
49626
49627 2008-05-22  Bruno Haible  <bruno@clisp.org>
49628
49629         Make copy_acl work on MacOS X 10.5.
49630         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49631         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49632         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49633         If MODE_INSIDE_ACL, don't assume that every system has the same text
49634         representation for ACLs as FreeBSD.
49635         * lib/copy-acl.c (copy_acl): Add support for platforms with
49636         !MODE_INSIDE_ACL.
49637         * lib/file-has-acl.c (file_has_acl): Likewise.
49638         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49639         FreeBSD, MacOS X, or IRIX, respectively.
49640
49641 2008-05-22  Bruno Haible  <bruno@clisp.org>
49642
49643         * lib/acl.h: Don't include <sys/acl.h>.
49644         (GETACLCNT): Move fallback to lib/acl-internal.h.
49645         * lib/acl-internal.h: Include <sys/acl.h> here.
49646         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49647
49648 2008-05-22  Bruno Haible  <bruno@clisp.org>
49649
49650         Split off copy_acl function to separate file.
49651         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49652         * lib/acl.c (copy_acl): Moved function to separate file.
49653         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49654         * modules/acl (Files): Add lib/copy-acl.c.
49655         (Makefiles.am): Augment lib_SOURCES.
49656
49657 2008-05-22  Bruno Haible  <bruno@clisp.org>
49658
49659         * modules/copy-file-tests: New file.
49660         * tests/test-copy-file.sh: New file.
49661         * tests/test-copy-file.c: New file.
49662         * tests/test-copy-file-sameacls.c: New file.
49663
49664 2008-05-22  Eric Blake  <ebb9@byu.net>
49665
49666         Avoid gcc warning.
49667         * tests/test-memcmp.c (main): Pass NULL indirectly.
49668
49669 2008-05-21  Bruno Haible  <bruno@clisp.org>
49670
49671         Add reference doc about ACLs.
49672         * doc/acl-resources.txt: New file.
49673         * doc/acl-cygwin.txt: New file.
49674
49675 2008-05-21  Bruno Haible  <bruno@clisp.org>
49676
49677         Avoid one more warning from gcc.
49678         * lib/vasnprintf.c (IF_LINT): Update comments.
49679         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49680
49681 2008-05-21  Jim Meyering  <meyering@redhat.com>
49682
49683         avoid a warning from gcc
49684         * lib/vasnprintf.c (IF_LINT): Define.
49685         (scale10_round_decimal_long_double):
49686         Use it to avoid a "may be used uninitialized" warning.
49687         (scale10_round_decimal_double): Likewise.
49688
49689 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49690
49691         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49692         declared.
49693
49694 2008-05-20  Bruno Haible  <bruno@clisp.org>
49695
49696         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49697         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49698
49699 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49700
49701         * modules/memcmp-tests: New file.
49702         * tests/test-memcmp.c: New file.
49703
49704 2008-05-19  Bruno Haible  <bruno@clisp.org>
49705
49706         * modules/propername (Notice, configure.ac): Put quoted "..." into
49707         --keyword option.
49708         * lib/propername.h: Update comments accordingly.
49709         Reported by Eric Blake.
49710
49711 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49712
49713         * modules/getpass-gnu (Depends-on): Add fseeko.
49714
49715 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49716
49717         * modules/base64-tests: New file.
49718
49719 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49720
49721         * lib/base64.c (base64_decode_ctx): If a decode context structure
49722         was passed in use it to ignore newlines.  If a context structure
49723         was _not_ passed in, continue to treat newlines as garbage (this
49724         is the historical behavior).  Formerly base64_decode.
49725         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49726         takes a decode context structure.
49727         * lib/base64.h (base64_decode): Macro for four-argument calls.
49728         (base64_decode_alloc): Likewise.
49729         * lib/base64.c (base64_decode_ctx): If a decode context structure
49730         was passed in use it to ignore newlines.  If a context structure
49731         was _not_ passed in, continue to treat newlines as garbage (this
49732         is the historical behavior).  Formerly base64_decode.
49733         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49734         takes a decode context structure.
49735         * lib/base64.h (base64_decode): Macro for four-argument calls.
49736         (base64_decode_alloc): Likewise.
49737
49738 2008-05-19  Jim Meyering  <meyering@redhat.com>
49739
49740         avoid a warning from gcc
49741         * lib/trim.c (IF_LINT): Define.
49742         (trim2): Use it to avoid a "may be used uninitialized" warning.
49743
49744         Fix doc typo.
49745         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49746
49747 2008-05-19  Bruno Haible  <bruno@clisp.org>
49748
49749         * doc/glibc-functions/getpass.texi: Document limits of other
49750         implementations.
49751
49752 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49753             Bruno Haible <bruno@clisp.org>
49754
49755         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49756
49757 2008-05-18  Bruno Haible  <bruno@clisp.org>
49758
49759         * modules/propername: New file, from GNU gettext.
49760         * lib/propername.h: New file, from GNU gettext.
49761         * lib/propername.c: New file, from GNU gettext.
49762         * MODULES.html.sh (Internationalization functions): Add propername.
49763
49764 2008-05-16  Jim Meyering  <meyering@redhat.com>
49765             Bruno Haible  <bruno@clisp.org>
49766
49767         Avoid some warnings from "gcc -Wshadow".
49768         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49769
49770 2008-05-15  Eric Blake  <ebb9@byu.net>
49771
49772         Extend previous patch to cygwin 1.7.0.
49773         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49774         fast implementation in cygwin >= 1.7.0.
49775         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49777
49778 2008-05-15  Bruno Haible  <bruno@clisp.org>
49779
49780         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49781         implementation in glibc >= 2.9.
49782         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49784
49785 2008-05-15  Bruno Haible  <bruno@clisp.org>
49786
49787         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49788         (Unicode string functions): Add unilbrk/*.
49789         Reported by Karl Berry.
49790
49791 2008-05-15  Eric Blake  <ebb9@byu.net>
49792
49793         Fix violation of <stdbool.h> replacement in regex.
49794         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49795         * lib/regexec.c (re_search_internal): Likewise.
49796         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49797
49798 2008-05-15  Jim Meyering  <meyering@redhat.com>
49799
49800         avoid distracting test output when git or cvs is not found
49801         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49802         * tests/test-vc-list-files-git.sh: Likewise.
49803
49804 2008-05-15  Eric Blake  <ebb9@byu.net>
49805
49806         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49807         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49808         glibc version.
49809         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49810         * doc/posix-functions/strstr.texi (strstr): Likewise.
49811         * lib/str-two-way.h (MAX): Sychronize with glibc.
49812
49813 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49814
49815         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49816         opr.ctx_type.
49817         (calc_first): Initialize constraint field.
49818         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49819         Fix grammar.
49820         (duplicate_node): Merge constraint field for all node types.
49821         (calc_eclosure_iter): Look at constraint field for all node types.
49822         * lib/regex_internal.c (create_cd_newstate): Don't look at
49823         opr.ctx_type.
49824
49825 2008-05-14  Bruno Haible  <bruno@clisp.org>
49826
49827         Help GCC to do better code generation.
49828         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49829         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49830         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49831         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49832         Declare with attribute 'malloc' if supported.
49833
49834 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49835
49836         use "echo STR|wc -c" rather than unportable "expr length STR"
49837         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49838         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49839
49840 2008-05-14  Jim Meyering  <meyering@redhat.com>
49841
49842         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49843         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49844         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49845         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49846         via Collin Lasse.
49847
49848 2008-05-14  Eric Blake  <ebb9@byu.net>
49849
49850         Avoid quadratic growth in gl_LIBSOURCES.
49851         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49852         Suggested by Bruno Haible.
49853
49854         Test xmemdup0.
49855         * modules/xmemdup0-tests: New file.
49856         * tests/test-xmemdup0.c: Likewise.
49857
49858 2008-05-13  Eric Blake  <ebb9@byu.net>
49859
49860         Split xmemdup0 into its own module.
49861         * modules/xmemdup0: New file.
49862         * lib/xmemdup0.h: Likewise.
49863         * lib/xmemdup0.c: Likewise.
49864         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49865         * lib/xalloc.h (xmemdup0): Remove.
49866         * lib/xmalloc.c (xmemdup0): Likewise.
49867
49868 2008-05-13  Eric Blake  <ebb9@byu.net>
49869             Bruno Haible  <bruno@clisp.org>
49870
49871         Reduce number of forks required during autoconf.
49872         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49873         and gl_LIBSOURCES_DIR.
49874         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49875         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49876         m4_syscmd per file.
49877         <m4_foreach_w>: Move...
49878         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49879
49880 2008-05-13  Eric Blake  <ebb9@byu.net>
49881
49882         * gnulib-tool: Fix various comment typos.
49883
49884 2008-05-12  Bruno Haible  <bruno@clisp.org>
49885
49886         Tailor the linebreaking algorithm.
49887         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49888
49889 2008-05-12  Bruno Haible  <bruno@clisp.org>
49890
49891         Update to Unicode 5.0.0.
49892         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49893         LBP_JV, LBP_JT. Redistribute values.
49894         (unilbrk_table): Change size.
49895         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49896         Unicode TR#14 rev. 22.
49897         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49898         LBP_JV, LBP_JT. Redistribute values.
49899         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49900         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49901         Update.
49902         * lib/unilbrk/lbrkprop1.h: Regenerated.
49903         * lib/unilbrk/lbrkprop2.h: Regenerated.
49904         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49905         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49906         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49907         Likewise.
49908         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49909         Likewise.
49910         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49911         result.
49912         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49913         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49914         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49915         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49916         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49917         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49918
49919 2008-05-11  Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49922
49923 2008-05-11  Bruno Haible  <bruno@clisp.org>
49924
49925         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49926         * modules/unilbrk/gen-lbrk: New file.
49927
49928 2008-05-11  Bruno Haible  <bruno@clisp.org>
49929
49930         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49931         * m4/sha512.m4 (gl_SHA512): Likewise.
49932
49933 2008-05-11  Jim Meyering  <meyering@redhat.com>
49934
49935         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49936         * modules/crypto/sha256: New file.
49937         * modules/crypto/sha512: Likewise.
49938         * lib/sha256.c: Likewise.
49939         * lib/sha256.h: Likewise.
49940         * lib/sha512.c: Likewise.
49941         * lib/sha512.h: Likewise.
49942         * lib/u64.h: Likewise.
49943         * m4/sha256.m4: Likewise.
49944         * m4/sha512.m4: Likewise.
49945         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49946
49947 2008-05-10  Bruno Haible  <bruno@clisp.org>
49948
49949         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49950         (Input/Output <stdio.h>): Add xprintf.
49951         (Signal handling <signal.h>): Add strsignal.
49952         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49953         (Core language properties): Add func.
49954         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49955         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49956         strings.
49957         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49958         (Input/output): New section.
49959         (File system functions): Add openat-die, stat-macros.
49960         (Networking functions): Add sockets.
49961         (Unicode string functions): Add unictype/*.
49962         (Support for building libraries and executables): Add gperf.
49963         (Support for building documentation): Add agpl-3.0.
49964         (Misc): Add nocrash.
49965
49966 2008-05-10  Bruno Haible  <bruno@clisp.org>
49967
49968         * modules/unictype/gen-ctype: New file.
49969
49970 2008-05-10  Jim Meyering  <meyering@redhat.com>
49971
49972         Make chdir-safer.c more efficient on a system with no symlinks.
49973         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49974         also if ELOOP is zero.  Suggested by Bruno Haible.
49975
49976         Make chdir-safer.c slightly safer.
49977         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49978         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49979
49980         Avoid compile failure on systems without ELOOP (like mingw).
49981         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49982         Reported by Bruno Haible.
49983
49984 2008-05-10  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49987         (is_utf8_encoding): Use a case-insensitive comparison.
49988         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49989         streq.
49990
49991 2008-05-10  Bruno Haible  <bruno@clisp.org>
49992
49993         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49994         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49995         * lib/unilbrk/ulc-common.h (iconv_string_length,
49996         iconv_string_keeping_offsets): Remove declarations.
49997         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49998         Don't include <iconv.h>, streq.h, xsize.h.
49999         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50000         conversion.
50001         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50002         <iconv.h>, streq.h, xsize.h.
50003         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50004         conversion.
50005         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50006         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50007         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50008         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50009
50010 2008-05-10  Bruno Haible  <bruno@clisp.org>
50011
50012         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50013         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50014
50015         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50016         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50017
50018         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50019         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50020
50021         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50022         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50023
50024         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50025         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50026
50027         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50028         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50029
50030         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50031         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50032
50033         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50034         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50035
50036 2008-05-10  Bruno Haible  <bruno@clisp.org>
50037
50038         Split up 'linebreak' module.
50039         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50040         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50041         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50042         modifications.
50043         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50044         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50045         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50046         lib/linebreak.c.
50047         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50048         lib/linebreak.c.
50049         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50050         lib/linebreak.c.
50051         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50052         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50053         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50054         lib/linebreak.c.
50055         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50056         lib/linebreak.c.
50057         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50058         lib/linebreak.c.
50059         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50060         lib/linebreak.c.
50061         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50062         lib/linebreak.c.
50063         * modules/unilbrk/base: New file.
50064         * modules/unilbrk/tables: New file.
50065         * modules/unilbrk/u8-possible-linebreaks: New file.
50066         * modules/unilbrk/u16-possible-linebreaks: New file.
50067         * modules/unilbrk/u32-possible-linebreaks: New file.
50068         * modules/unilbrk/ulc-common: New file.
50069         * modules/unilbrk/ulc-possible-linebreaks: New file.
50070         * modules/unilbrk/u8-width-linebreaks: New file.
50071         * modules/unilbrk/u16-width-linebreaks: New file.
50072         * modules/unilbrk/u32-width-linebreaks: New file.
50073         * modules/unilbrk/ulc-width-linebreaks: New file.
50074         * lib/linebreak.h: Remove file.
50075         * lib/linebreak.c: Remove file.
50076         * m4/linebreak.m4: Remove file.
50077         * modules/linebreak: Remove file.
50078         * NEWS: Mention the changes.
50079
50080 2008-05-09  Eric Blake  <ebb9@byu.net>
50081
50082         Add xmemdup0.
50083         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50084         implementation.
50085         * lib/xmalloc.c (xmemdup0): New C implementation.
50086
50087 2008-05-08  Bruno Haible  <bruno@clisp.org>
50088
50089         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50090
50091 2008-05-07  Eric Blake  <ebb9@byu.net>
50092
50093         Support cross-compilation of <wctype.h>.
50094         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50095         AC_CACHE_CHECK.
50096
50097 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50098
50099         * build-aux/vc-list-files: Add support for bzr.
50100
50101 2008-05-03  Jim Meyering  <meyering@redhat.com>
50102
50103         avoid failed assertion with tight malloc
50104         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50105
50106 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50107
50108         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50109         are needed from arpa/inet.h.
50110         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50111         Reported by Bruno Haible.
50112
50113 2008-05-02  Jim Meyering  <meyering@redhat.com>
50114
50115         avoid compilation error on FreeBSD 6
50116         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50117
50118 2008-05-01  Jim Meyering  <meyering@redhat.com>
50119
50120         useless-if-before-free: correct --help's exit status description
50121         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50122         for one or more matches, etc.  Reported by Bruno Haible.
50123
50124         vc-list-files: make the stand-alone gnulib test work
50125         * modules/vc-list-files-tests (configure.ac):
50126         Define and AC_SUBST abs_aux_dir.
50127         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50128         $(abs_top_srcdir) to each script and having each of them
50129         duplicate the work of setting PATH, set PATH here, using
50130         the new variable, abs_aux_dir instead.
50131         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50132         * tests/test-vc-list-files-git.sh: Likewise.
50133         Reported by Bruno Haible.
50134
50135 2008-05-01  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50138         reallocation. Rename 'done' to 'found_delimiter'.
50139
50140 2008-05-01  Jim Meyering  <meyering@redhat.com>
50141
50142         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50143         * build-aux/vc-list-files: Use `...`, not $(...).
50144
50145 2008-04-30  Jim Meyering  <meyering@redhat.com>
50146
50147         add tests for vc-list-files
50148         * modules/vc-list-files-tests: New module.
50149         * tests/test-vc-list-files-cvs.sh: New file.
50150         * tests/test-vc-list-files-git.sh: New file.
50151
50152         avoid a warning from gcc
50153         * lib/getndelim2.c (IF_LINT): Define.
50154         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50155
50156         vc-list-files: work properly with build-aux/cvsu, too
50157         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50158         to all cvs-based clauses.
50159
50160         vc-list-files: work properly in the CVS+awk case, too
50161         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50162
50163         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50164         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50165         take more than one file argument, so .  Add quotes, just in case $dir
50166         ever contains a shell meta-character.  Prompted by Soren Hansen in
50167         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50168
50169 2008-04-29  Eric Blake  <ebb9@byu.net>
50170
50171         Optimize getndelim2 to use block operations when possible.
50172         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50173         freadseek, and memchr2.
50174         * lib/getndelim2.c (getndelim2): Use them for block reads.
50175
50176 2008-04-29  Bruno Haible  <bruno@clisp.org>
50177
50178         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50180         * modules/inet_ntop (Depends-on): Add extensions.
50181         * modules/inet_pton (Depends-on): Likewise.
50182         Reported by Simon Josefsson.
50183
50184 2008-04-29  Jim Meyering  <meyering@redhat.com>
50185
50186         When the is more than one match in a block, match all of them.
50187         * build-aux/useless-if-before-free: Iterate through each block
50188         until there are no more matches.
50189
50190         Fix broken useless-if-before-free script.
50191         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50192         the expression to match cast of argument to free-like function.
50193
50194 2008-04-29  Eric Blake  <ebb9@byu.net>
50195
50196         Use new header.
50197         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50198
50199 2008-04-29  Jim Meyering  <meyering@redhat.com>
50200
50201         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50202         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50203         by gnulib to exist and to declare e.g., inet_ntop.
50204         Don't include "inet_ntop.h", now removed.
50205
50206         * m4/arpa_inet_h.m4: Remove trailing blanks.
50207
50208 2008-04-29  Eric Blake  <ebb9@byu.net>
50209
50210         Silence valgrind on safe reads beyond potential array bounds.
50211         * lib/rawmemchr.valgrind: New file.
50212         * lib/strchrnul.valgrind: Likewise.
50213         * modules/rawmemchr (Files): Distribute new file.
50214         * modules/strchrnul (Files): Likewise.
50215         Suggested by Bruno Haible.
50216
50217 2008-04-29  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50220         (inet_ntop, inet_pton): Change portability warning's wording.
50221         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50222         Invoke gl_CHECK_NEXT_HEADERS.
50223         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50224         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50225         set ARPA_INET_H.
50226         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50227         * modules/arpa_inet (Description): No longer only for systems that
50228         lack it.
50229         (Depends-on): Add include_next.
50230         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50231         HAVE_ARPA_INET_H.
50232
50233 2008-04-29  Jim Meyering  <meyering@redhat.com>
50234
50235         * modules/mkdir (License): Re-license as LGPLv2+.
50236
50237 2008-04-29  Bruno Haible  <bruno@clisp.org>
50238
50239         * modules/rawmemchr (Maintainer): Set to Eric.
50240         * modules/strchrnul (Maintainer): Likewise.
50241
50242 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50243
50244         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50245         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50246
50247         * modules/arpa_inet (arpa/inet.h): Use them.
50248
50249 2008-04-28  Eric Blake  <ebb9@byu.net>
50250
50251         Test getndelim2.
50252         * modules/getndelim2-tests: New file.
50253         * tests/test-getndelim2.c: Likewise.
50254         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50255         stream.
50256         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50257
50258         * MODULES.html.sh: Document new module.
50259
50260 2008-04-20  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/c-stack.c (die): Use raise.
50263         * modules/c-stack (Depends-on): Add raise.
50264
50265 2008-04-28  Bruno Haible  <bruno@clisp.org>
50266
50267         Expect rpmatch to be declared.
50268         * lib/yesno.c (rpmatch): Remove declaration.
50269
50270         Declare rpmatch.
50271         * lib/stdlib.in.h (rpmatch): New declaration.
50272         * lib/rpmatch.c: Include <stdlib.h> first.
50273         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50274         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50276         HAVE_RPMATCH.
50277         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50278         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50279         (Include): Set to <stdlib.h>.
50280         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50281         HAVE_RPMATCH.
50282         * NEWS: Document the change.
50283
50284 2008-04-28  Bruno Haible  <bruno@clisp.org>
50285
50286         Change rpmatch to use nl_langinfo when appropriate.
50287         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50288         (N_): New macro.
50289         (localized_pattern): New function/macro.
50290         (try): Remove match, nomatch arguments. Copy the pattern into safe
50291         memory before caching it.
50292         (rpmatch): Use localized_pattern. Add translator comments.
50293         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50294         Suggested by Eric Blake.
50295         * modules/rpmatch (Depends-on): Add stdbool.
50296
50297 2008-04-28  Eric Blake  <ebb9@byu.net>
50298
50299         Add rawmemchr module, matching glibc.
50300         * modules/string (Makefile.am): New indicator.
50301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50302         * lib/string.in.h (rawmemchr): Declare when appropriate.
50303         * modules/rawmemchr: New file.
50304         * m4/rawmemchr.m4: Likewise.
50305         * lib/rawmemchr.c: Likewise.
50306         * modules/rawmemchr-tests: Likewise.
50307         * tests/test-rawmemchr.c: Likewise.
50308         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50309         module.
50310         * modules/strchrnul (Depends-on): Add rawmemchr.
50311         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50312
50313         Whitespace cleanup.
50314         * tests/test-strchrnul.c: Reindent.
50315         * lib/strchrnul.c: Likewise.
50316
50317         Optimize and test strchrnul.
50318         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50319         * modules/strchrnul-tests: New file.
50320         * tests/test-strchrnul.c: Likewise.
50321
50322         Remove intprops dependency.
50323         * modules/memchr (Depends-on): Remove intprops.
50324         * modules/memrchr (Depends-on): Likewise.
50325         * modules/memchr2 (Depends-on): Likewise.
50326         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50327         * lib/memrchr.c (__memrchr): Likewise.
50328         * lib/memrchr2.c (memchr2): Likewise.
50329         Reported by Simon Josefsson.
50330
50331 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50332
50333         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50334         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50335
50336 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50337
50338         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50339
50340         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50341
50342         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50343
50344         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50345         declarations.
50346         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50347
50348         * m4/inet_pton.m4: Don't check for header files.
50349
50350         * m4/inet_ntop.m4: Don't check for header files.
50351
50352 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50353
50354         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50355         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50356         trigger for cygwin).
50357         Reported by Bruno Haible  <bruno@clisp.org>.
50358
50359 2008-04-28  Bruno Haible  <bruno@clisp.org>
50360
50361         * doc/posix-functions/strdup.texi: Mention mingw problem.
50362
50363 2008-04-27  Bruno Haible  <bruno@clisp.org>
50364
50365         * modules/stat-time-tests (Depends-on): Add sleep.
50366         * tests/test-stat-time.c (force_unlink): New function.
50367         (cleanup): Use it.
50368         (test_mtime): Remove the ctime related tests.
50369         (test_ctime): New function, containing the ctime related tests.
50370         (main): Call test_ctime, except on native Windows platforms.
50371
50372 2008-04-27  Bruno Haible  <bruno@clisp.org>
50373
50374         * lib/rpmatch.c (rpmatch): Add some comments.
50375         Reported by James Youngman <jay@gnu.org>.
50376
50377 2008-04-27  Bruno Haible  <bruno@clisp.org>
50378
50379         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50380         quiet NaNs.
50381
50382 2008-04-27  Bruno Haible  <bruno@clisp.org>
50383
50384         Make test-yesno.sh work on mingw.
50385         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50386         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50387         (main): Set stdin to binary mode.
50388         * modules/yesno-tests (Depends-on): Add binary-io.
50389
50390 2008-04-27  Bruno Haible  <bruno@clisp.org>
50391
50392         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50393         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50394         argument that lie outside the IEEE 854 domain.
50395         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50396         (gl_ISFINITE): Use it.
50397         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50398
50399 2008-04-27  Bruno Haible  <bruno@clisp.org>
50400
50401         Allow local renaming in config.h.
50402         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50403
50404 2008-04-27  Bruno Haible  <bruno@clisp.org>
50405
50406         * lib/memchr.c (__memchr): Change type of 'i'.
50407         * lib/memchr2.c (memchr2): Likewise.
50408
50409 2008-04-26  Eric Blake  <ebb9@byu.net>
50410         and Bruno Haible  <bruno@clisp.org>
50411
50412         Optimize and test memrchr.
50413         * modules/memrchr (Depends-on): Add intprops.
50414         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50415         * modules/memrchr-tests: New file.
50416         * tests/test-memrchr.c: New file.
50417
50418 2008-04-26  Bruno Haible  <bruno@clisp.org>
50419
50420         Add tentative support for DragonFly BSD.
50421         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50422         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50423         fp.
50424         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50425         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50426         * lib/fpurge.c (fpurge): Likewise.
50427         * lib/freadable.c (freaadable): Likewise.
50428         * lib/freadahead.c (freadahead): Likewise.
50429         * lib/freading.c (freading): Likewise.
50430         * lib/freadptr.c (freadptr): Likewise.
50431         * lib/freadseek.c (freadptrinc): Likewise.
50432         * lib/fseeko.c (fseeko): Likewise.
50433         * lib/fseterr.c (fseterr): Likewise.
50434         * lib/fwritable.c (fwritable): Likewise.
50435         * lib/fwriting.c (fwriting): Likewise.
50436
50437 2008-04-26  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/stdio-impl.h: New file.
50440         * lib/fbufmode.c: Include stdio-impl.h.
50441         (fbufmode): Use fp_, remove redundant #defines.
50442         * lib/fflush.c: Include stdio-impl.h.
50443         (clear_ungetc_buffer): Remove redundant #defines.
50444         * lib/fpurge.c: Include stdio-impl.h.
50445         (fpurge): Remove redundant #defines.
50446         * lib/freadable.c: Include stdio-impl.h.
50447         (freadable): Remove redundant #defines.
50448         * lib/freadahead.c: Include stdio-impl.h.
50449         (freadahead): Remove redundant #defines.
50450         * lib/freading.c: Include stdio-impl.h.
50451         (freading): Remove redundant #defines.
50452         * lib/freadptr.c: Include stdio-impl.h.
50453         (freadptr): Remove redundant #defines.
50454         * lib/freadseek.c: Include stdio-impl.h.
50455         (freadptrinc): Remove redundant #defines.
50456         * lib/fseeko.c: Include stdio-impl.h.
50457         (rpl_fseeko): Remove redundant #defines.
50458         * lib/fseterr.c: Include stdio-impl.h.
50459         (fseterr): Remove redundant #defines.
50460         * lib/fwritable.c: Include stdio-impl.h.
50461         (fwritable: Remove redundant #defines.
50462         * lib/fwriting.c: Include stdio-impl.h.
50463         (fwriting): Remove redundant #defines.
50464         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50465         * modules/fflush (Files): Likewise.
50466         * modules/fpurge (Files): Likewise.
50467         * modules/freadable (Files): Likewise.
50468         * modules/freadahead (Files): Likewise.
50469         * modules/freading (Files): Likewise.
50470         * modules/freadptr (Files): Likewise.
50471         * modules/freadseek (Files): Likewise.
50472         * modules/fseeko (Files): Likewise.
50473         * modules/fseterr (Files): Likewise.
50474         * modules/fwritable (Files): Likewise.
50475         * modules/fwriting (Files): Likewise.
50476
50477 2008-04-26  Bruno Haible  <bruno@clisp.org>
50478
50479         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50480         restore_seek_optimization, update_fpos_cache): New functions, extracted
50481         from rpl_fflush.
50482         (rpl_fflush): Use them.
50483         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50484         (gl_REPLACE_FFLUSH): Use it.
50485
50486 2008-04-26  Bruno Haible  <bruno@clisp.org>
50487
50488         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50489         on Solaris.
50490         * tests/test-xstrtoimax.sh: Likewise.
50491         * tests/test-xstrtoumax.sh: Likewise.
50492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50493
50494 2008-04-26  Bruno Haible  <bruno@clisp.org>
50495
50496         * modules/memchr-tests: New file.
50497         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50498
50499 2008-04-26  Eric Blake  <ebb9@byu.net>
50500             Bruno Haible  <bruno@clisp.org>
50501
50502         * lib/memchr.c: Include intprops.h.
50503         (__memchr): Optimize parallel detection of matching bytes. Rename local
50504         variables. Add explanatory comments.
50505
50506 2008-04-26  Bruno Haible  <bruno@clisp.org>
50507
50508         Fix module 'memchr', broken since 2000-10-28.
50509         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50510
50511 2008-04-26  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50514         comments.
50515
50516 2008-04-25  Eric Blake  <ebb9@byu.net>
50517
50518         Use native fstatat on cygwin 1.7.0.
50519         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50520         first.
50521
50522 2008-04-23  Eric Blake  <ebb9@byu.net>
50523
50524         Improve memchr2 performance.
50525         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50526         NUL bytes.
50527         * modules/memchr2 (Depends-on): Use intprops.h.
50528
50529 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50530
50531         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50532         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50533         <blp@cs.stanford.edu>.
50534
50535 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50536
50537         * lib/arpa_inet.in.h: New file.
50538
50539         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50540         (Makefile.am): Sed in substitute header file.
50541
50542         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50543         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50544
50545         * modules/inet_ntop (configure.ac): Use
50546         gl_ARPA_INET_MODULE_INDICATOR.
50547
50548         * modules/inet_pton (configure.ac): Use
50549         gl_ARPA_INET_MODULE_INDICATOR.
50550
50551 2008-04-22  Jim Meyering  <meyering@redhat.com>
50552
50553         * modules/verify (License): Re-license as LGPLv2+.
50554
50555 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50556
50557         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50558         parameter to void* as per POSIX standard (MinGW uses char*).
50559
50560 2008-04-21  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50563         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50564         Define to replacements if REPLACE_ISWCNTRL is 1.
50565         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50566         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50567         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50568         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50569         what it fixes.
50570         * doc/posix-functions/iswalpha.texi: Likewise.
50571         * doc/posix-functions/iswblank.texi: Likewise.
50572         * doc/posix-functions/iswcntrl.texi: Likewise.
50573         * doc/posix-functions/iswdigit.texi: Likewise.
50574         * doc/posix-functions/iswgraph.texi: Likewise.
50575         * doc/posix-functions/iswlower.texi: Likewise.
50576         * doc/posix-functions/iswprint.texi: Likewise.
50577         * doc/posix-functions/iswpunct.texi: Likewise.
50578         * doc/posix-functions/iswspace.texi: Likewise.
50579         * doc/posix-functions/iswupper.texi: Likewise.
50580         * doc/posix-functions/iswxdigit.texi: Likewise.
50581         Reported by Alain Guibert.
50582
50583 2008-04-21  Bruno Haible  <bruno@clisp.org>
50584
50585         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50586         Patch by Alain Guibert.
50587
50588 2008-04-21  Bruno Haible  <bruno@clisp.org>
50589
50590         Fix test failures on mingw.
50591         * tests/test-xstrtol.c (print_no_progname): New function.
50592         (main): Install it in error_print_progname hook.
50593         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50594         * tests/test-xstrtoimax.sh: Likewise.
50595         * tests/test-xstrtoumax.sh: Likewise.
50596
50597 2008-04-21  Bruno Haible  <bruno@clisp.org>
50598
50599         Fix test failure on mingw.
50600         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50601
50602 2008-04-21  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50605         Actually assign a value.
50606
50607 2008-04-20  Bruno Haible  <bruno@clisp.org>
50608
50609         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50610         take 2.
50611         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50612         'canonicalize-lgpl' module is also used.
50613         * lib/canonicalize-lgpl.c: Undo last change.
50614         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50615
50616 2008-04-20  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50619         config.h. Provide _mkdir based fallback for mingw.
50620         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50621         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50622         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50623         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50624         rather than defining mkdir in config.h.
50625         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50626         (gl_SYS_STAT_H_DEFAULTS): New macro.
50627         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50628         HAVE_IO_H any more.
50629         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50630         HAVE_DECL_MKDIR and HAVE_IO_H.
50631
50632 2008-04-20  Bruno Haible  <bruno@clisp.org>
50633
50634         * lib/isapipe.c: Port to native Windows platforms.
50635
50636 2008-04-20  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50639
50640 2008-04-21  Eric Blake  <ebb9@byu.net>
50641
50642         Work around preprocessors that don't handle UINTMAX_MAX.
50643         * lib/memchr2.c (memchr2): Avoid embedded #if.
50644         Reported by Alain Guibert, fix suggested by Bruno Haible.
50645
50646 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50647
50648         * doc/posix-functions/strftime.texi (strftime): Explain better
50649         Windows incompatibility.  Suggested by Micah Cowan
50650         <micah@cowan.name>.
50651
50652 2008-04-20  Bruno Haible  <bruno@clisp.org>
50653
50654         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50655         unistr/u8-mblen.
50656
50657 2008-04-20  Bruno Haible  <bruno@clisp.org>
50658
50659         Fix test failure on platforms with non-GNU iconv.
50660         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50661         (U_TO_U8): Use it, rather than u16_to_u8.
50662         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50663         units at the end of the input string.
50664         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50665
50666 2008-04-20  Bruno Haible  <bruno@clisp.org>
50667
50668         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50669         when the resulting length is 0.
50670         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50671
50672 2008-04-20  Bruno Haible  <bruno@clisp.org>
50673
50674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50675         works.
50676         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50677
50678 2008-04-20  Bruno Haible  <bruno@clisp.org>
50679
50680         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50681         * modules/tsearch-tests (configure.ac): Test for initstate function.
50682
50683 2008-04-20  Bruno Haible  <bruno@clisp.org>
50684
50685         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50686         for nlink_t if missing.
50687         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50688
50689 2008-04-19  Bruno Haible  <bruno@clisp.org>
50690
50691         Work around snprintf bug on Linux libc5.
50692         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50694         gl_SNPRINTF_SIZE1.
50695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50696         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50697         that test failed.
50698         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50699         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50700         * modules/snprintf (Files): Add m4/printf.m4.
50701         * modules/vsnprintf (Files): Likewise.
50702         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50703         * doc/posix-functions/vsnprintf.texi: Likewise.
50704
50705 2008-04-19  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50708         from 0.0058 to less than 10^-7.
50709
50710 2008-04-19  Bruno Haible  <bruno@clisp.org>
50711
50712         Fix rounding when a precision is given.
50713         * lib/vasnprintf.c (is_borderline): New function.
50714         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50715         9...9x.
50716         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50717         %e, %g.
50718         * tests/test-vasprintf-posix.c (test_function): Likewise.
50719         * tests/test-snprintf-posix.h (test_function): Likewise.
50720         * tests/test-sprintf-posix.h (test_function): Likewise.
50721         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50722         * tests/test-printf-posix.h (test_function): Likewise.
50723         * tests/test-printf-posix.output: Update.
50724         Reported by John Darrington <john@darrington.wattle.id.au> via
50725         Ben Pfaff <blp@cs.stanford.edu>.
50726
50727 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50728
50729         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50730         Suggested by Bruno Haible <bruno@clisp.org>.
50731
50732 2008-04-17  Bruno Haible  <bruno@clisp.org>
50733
50734         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50735         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50736         implementation.
50737         Patch by Bruce Merry <bmerry@gmail.com>.
50738
50739 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50740
50741         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50742         doesn't work under Windows.
50743
50744 2008-04-16  Bruno Haible  <bruno@clisp.org>
50745
50746         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50747         New macros.
50748         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50749         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50750         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50751         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50752         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50753         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50754         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50755         macros.
50756         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50757         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50758         Northern Sotho, Uighur.
50759
50760 2008-04-16  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50763         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50764         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50765         Reported by Daniel Bergström <daniel@octocode.com>.
50766
50767 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50768             Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50771         function.
50772         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50773         New functions, mostly extracted from gl_locale_name_default.
50774         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50775
50776 2008-04-16  Eric Blake  <ebb9@byu.net>
50777
50778         Adjust strtod detection to catch glibc 2.7 bug.
50779         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50780         Reported by John Gatewood Ham.
50781
50782 2008-04-16  Bruno Haible  <bruno@clisp.org>
50783
50784         Add tentative support for Linux libc5.
50785         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50786         * lib/fpurge.c (fpurge): Likewise.
50787         * lib/freadable.c (freadable): Likewise.
50788         * lib/freadahead.c (freadahead): Likewise.
50789         * lib/freading.c (freading): Likewise.
50790         * lib/freadptr.c (freadptr): Likewise.
50791         * lib/freadseek.c (freadptrinc): Likewise.
50792         * lib/fseeko.c (rpl_fseeko): Likewise.
50793         * lib/fseterr.c (fseterr): Likewise.
50794         * lib/fwritable.c (fwritable): Likewise.
50795         * lib/fwriting.c (fwriting): Likewise.
50796         Reported by Alain Guibert <alguibert+bts@free.fr>.
50797
50798 2008-04-15  Bruno Haible  <bruno@clisp.org>
50799
50800         * modules/mathl (configure.ac): Define module indicator.
50801
50802 2008-04-15  Bruno Haible  <bruno@clisp.org>
50803
50804         * lib/logl.c (logl): Remove unused variables.
50805
50806 2008-04-15  Bruno Haible  <bruno@clisp.org>
50807
50808         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50809         fails.
50810
50811 2008-04-15  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/trim.c (trim2): Fix argument of isspace() macro.
50814
50815 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50816
50817         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50818         to 0.
50819         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50820
50821 2008-04-14  Bruno Haible  <bruno@clisp.org>
50822
50823         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50824         AC_LANG_PROGRAM argument.
50825         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50826         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50827         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50828         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50829         * m4/math_h.m4 (gl_MATH_H): Likewise.
50830         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50831         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50832         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50833         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50834         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50835         * m4/regex.m4 (gl_REGEX): Likewise.
50836         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50837         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50839         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50840         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50841         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50842         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50843         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50844
50845 2008-04-14  Jim Meyering  <meyering@redhat.com>
50846
50847         test-strtod: fix typos: s/abs/fabs/
50848         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50849
50850 2008-04-13  Bruno Haible  <bruno@clisp.org>
50851
50852         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50853         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50854         module is also used and while not building the reloc-wrapper.
50855
50856 2008-04-13  Bruno Haible  <bruno@clisp.org>
50857
50858         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50859
50860 2008-04-13  Bruno Haible  <bruno@clisp.org>
50861
50862         Fix AIX compilation failure introduced on 2008-04-02.
50863         * tests/test-frexp.c (exp): Undefine before redefining.
50864         * tests/test-frexpl.c (exp): Likewise.
50865
50866 2008-04-13  Bruno Haible  <bruno@clisp.org>
50867
50868         Work around a HP-UX stdio bug.
50869         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50870         * tests/test-ftello.c (main): Likewise.
50871         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50872         * doc/posix-functions/ftello.texi: Likewise.
50873
50874 2008-04-13  Bruno Haible  <bruno@clisp.org>
50875
50876         Make test-signbit pass on HP-UX/hppa.
50877         * tests/test-signbit.c (minus_zerol): New variable.
50878         (test_signbitl): Use it.
50879
50880 2008-04-13  Bruno Haible  <bruno@clisp.org>
50881
50882         Make truncl work on OSF/1 4.0.
50883         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50884         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50885         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50887         HAVE_DECL_TRUNCL.
50888         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50889         HAVE_DECL_TRUNCL.
50890         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50891
50892 2008-04-13  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50895
50896 2008-04-13  Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50899         expression, so as to avoid HP-UX 11 cc compiler bug.
50900
50901 2008-04-13  Bruno Haible  <bruno@clisp.org>
50902
50903         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50904
50905 2008-04-13  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/git-merge-changelog.c: Remove empty declaration outside of
50908         functions.
50909
50910 2008-04-13  Bruno Haible  <bruno@clisp.org>
50911
50912         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50913
50914 2008-04-13  Bruno Haible  <bruno@clisp.org>
50915
50916         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50917         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50919         also if it exists but lacks definitions of the SHUT_* macros.
50920         * modules/sys_socket (Description): Update.
50921         Reported by Elbert Pol <e.pol@chello.nl>.
50922
50923 2008-04-13  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/localcharset.c (OS2): Don't redefine if already defined.
50926         Reported by Elbert Pol <e.pol@chello.nl>.
50927
50928 2008-04-13  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/binary-io.h [__EMX__]: Include <io.h>.
50931         Reported by Elbert Pol <e.pol@chello.nl>.
50932
50933 2008-04-12  Bruno Haible  <bruno@clisp.org>
50934
50935         * lib/fpucw.h: Enable the definitions also for x86_64.
50936         Needed for NetBSD/x86_64.
50937         Reported by Thomas Klausner <tk@giga.or.at>.
50938
50939 2008-04-12  Bruno Haible  <bruno@clisp.org>
50940
50941         * tests/test-strtod.c: Include isnand.h.
50942         (main): Use isnand instead of isnan.
50943         Reported by Jim Meyering.
50944
50945 2008-04-12  Bruno Haible  <bruno@clisp.org>
50946
50947         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50948         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50949
50950 2008-04-12  Jim Meyering  <meyering@redhat.com>
50951
50952         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50953
50954 2008-04-12  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50957         Reported by Elbert Pol <e.pol@chello.nl>.
50958
50959 2008-04-12  Eric Blake  <ebb9@byu.net>
50960
50961         Work around Solaris 10 math.h bug.
50962         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50963         (gl_MATH_H_DEFAULTS): Set up default.
50964         * modules/math (Makefile.am): Replace new indicators.
50965         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50966         * tests/test-math.c (main): Test this.
50967         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50968         * doc/posix-headers/math.texi (math.h): Mention bug.
50969         Reported by Nelson H. F. Beebe and Jim Meyering.
50970
50971 2008-04-11  Bruno Haible  <bruno@clisp.org>
50972
50973         Adapt to future versions of Apple GCC.
50974         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50975         Reported by Peter O'Gorman <peter@pogma.com>.
50976
50977 2008-04-11  Bruno Haible  <bruno@clisp.org>
50978
50979         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50980
50981 2008-04-11  Bruno Haible  <bruno@clisp.org>
50982
50983         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50984
50985         * modules/getaddrinfo-tests (Makefile.am): Define
50986         test_getaddrinfo_LDADD.
50987
50988 2008-04-11  Bruno Haible  <bruno@clisp.org>
50989
50990         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50991         (init): Fix syntax error.
50992         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50993         is declared.
50994
50995 2008-04-11  Bruno Haible  <bruno@clisp.org>
50996
50997         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50998         * modules/glob (Depends-on): Add stdbool.
50999
51000 2008-04-11  Bruno Haible  <bruno@clisp.org>
51001
51002         * lib/trim.c: Include <string.h>.
51003
51004 2008-04-11  Eric Blake  <ebb9@byu.net>
51005
51006         Avoid compile failure on OS/2.
51007         * lib/regex_internal.h (internal_function): Disable optimization
51008         on OS/2 (__EMX__), where it caused compiler error.
51009         Reported by Elbert Pol.
51010
51011 2008-04-11  Bruno Haible  <bruno@clisp.org>
51012
51013         Flush the standard error stream before aborting. Needed on mingw.
51014         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51015         * tests/test-array_list.c (ASSERT): Likewise.
51016         * tests/test-array_oset.c (ASSERT): Likewise.
51017         * tests/test-avltree_list.c (ASSERT): Likewise.
51018         * tests/test-avltree_oset.c (ASSERT): Likewise.
51019         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51020         * tests/test-binary-io.c (ASSERT): Likewise.
51021         * tests/test-byteswap.c (ASSERT): Likewise.
51022         * tests/test-c-ctype.c (ASSERT): Likewise.
51023         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51024         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51025         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51026         * tests/test-c-strstr.c (ASSERT): Likewise.
51027         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51028         * tests/test-canonicalize.c (ASSERT): Likewise.
51029         * tests/test-carray_list.c (ASSERT): Likewise.
51030         * tests/test-ceilf1.c (ASSERT): Likewise.
51031         * tests/test-ceilf2.c (ASSERT): Likewise.
51032         * tests/test-ceill.c (ASSERT): Likewise.
51033         * tests/test-count-one-bits.c (ASSERT): Likewise.
51034         * tests/test-fbufmode.c (ASSERT): Likewise.
51035         * tests/test-fflush2.c (ASSERT): Likewise.
51036         * tests/test-floorf1.c (ASSERT): Likewise.
51037         * tests/test-floorf2.c (ASSERT): Likewise.
51038         * tests/test-floorl.c (ASSERT): Likewise.
51039         * tests/test-fopen.c (ASSERT): Likewise.
51040         * tests/test-fpending.c (ASSERT): Likewise.
51041         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51042         * tests/test-fpurge.c (ASSERT): Likewise.
51043         * tests/test-freadable.c (ASSERT): Likewise.
51044         * tests/test-freadahead.c (ASSERT): Likewise.
51045         * tests/test-freading.c (ASSERT): Likewise.
51046         * tests/test-freadptr.c (ASSERT): Likewise.
51047         * tests/test-freadptr2.c (ASSERT): Likewise.
51048         * tests/test-freadseek.c (ASSERT): Likewise.
51049         * tests/test-freopen.c (ASSERT): Likewise.
51050         * tests/test-frexp.c (ASSERT): Likewise.
51051         * tests/test-frexpl.c (ASSERT): Likewise.
51052         * tests/test-fseek.c (ASSERT): Likewise.
51053         * tests/test-fseeko.c (ASSERT): Likewise.
51054         * tests/test-fstrcmp.c (ASSERT): Likewise.
51055         * tests/test-ftell.c (ASSERT): Likewise.
51056         * tests/test-ftello.c (ASSERT): Likewise.
51057         * tests/test-func.c (ASSERT): Likewise.
51058         * tests/test-fwritable.c (ASSERT): Likewise.
51059         * tests/test-fwriting.c (ASSERT): Likewise.
51060         * tests/test-getdelim.c (ASSERT): Likewise.
51061         * tests/test-getline.c (ASSERT): Likewise.
51062         * tests/test-i-ring.c (ASSERT): Likewise.
51063         * tests/test-iconv-utf.c (ASSERT): Likewise.
51064         * tests/test-iconv.c (ASSERT): Likewise.
51065         * tests/test-isfinite.c (ASSERT): Likewise.
51066         * tests/test-isnand.c (ASSERT): Likewise.
51067         * tests/test-isnanf.c (ASSERT): Likewise.
51068         * tests/test-isnanl.h (ASSERT): Likewise.
51069         * tests/test-ldexpl.c (ASSERT): Likewise.
51070         * tests/test-linked_list.c (ASSERT): Likewise.
51071         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51072         * tests/test-localename.c (ASSERT): Likewise.
51073         * tests/test-lseek.c (ASSERT): Likewise.
51074         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51075         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51076         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51077         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51078         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51079         * tests/test-mbschr.c (ASSERT): Likewise.
51080         * tests/test-mbscspn.c (ASSERT): Likewise.
51081         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51082         * tests/test-mbspbrk.c (ASSERT): Likewise.
51083         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51084         * tests/test-mbsrchr.c (ASSERT): Likewise.
51085         * tests/test-mbsspn.c (ASSERT): Likewise.
51086         * tests/test-mbsstr1.c (ASSERT): Likewise.
51087         * tests/test-mbsstr2.c (ASSERT): Likewise.
51088         * tests/test-mbsstr3.c (ASSERT): Likewise.
51089         * tests/test-memchr2.c (ASSERT): Likewise.
51090         * tests/test-memmem.c (ASSERT): Likewise.
51091         * tests/test-open.c (ASSERT): Likewise.
51092         * tests/test-printf-frexp.c (ASSERT): Likewise.
51093         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51094         * tests/test-printf-posix.c (ASSERT): Likewise.
51095         * tests/test-quotearg.c (ASSERT): Likewise.
51096         * tests/test-rbtree_list.c (ASSERT): Likewise.
51097         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51098         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51099         * tests/test-round1.c (ASSERT): Likewise.
51100         * tests/test-roundf1.c (ASSERT): Likewise.
51101         * tests/test-roundl.c (ASSERT): Likewise.
51102         * tests/test-signbit.c (ASSERT): Likewise.
51103         * tests/test-sleep.c (ASSERT): Likewise.
51104         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51105         * tests/test-snprintf.c (ASSERT): Likewise.
51106         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51107         * tests/test-stat-time.c (ASSERT): Likewise.
51108         * tests/test-strcasestr.c (ASSERT): Likewise.
51109         * tests/test-strerror.c (ASSERT): Likewise.
51110         * tests/test-striconv.c (ASSERT): Likewise.
51111         * tests/test-striconveh.c (ASSERT): Likewise.
51112         * tests/test-striconveha.c (ASSERT): Likewise.
51113         * tests/test-strsignal.c (ASSERT): Likewise.
51114         * tests/test-strstr.c (ASSERT): Likewise.
51115         * tests/test-strtod.c (ASSERT): Likewise.
51116         * tests/test-trunc1.c (ASSERT): Likewise.
51117         * tests/test-trunc2.c (ASSERT): Likewise.
51118         * tests/test-truncf1.c (ASSERT): Likewise.
51119         * tests/test-truncf2.c (ASSERT): Likewise.
51120         * tests/test-truncl.c (ASSERT): Likewise.
51121         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51122         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51123         * tests/test-vasnprintf.c (ASSERT): Likewise.
51124         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51125         * tests/test-vasprintf.c (ASSERT): Likewise.
51126         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51127         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51128         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51129         * tests/test-vsnprintf.c (ASSERT): Likewise.
51130         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51131         * tests/test-wcwidth.c (ASSERT): Likewise.
51132         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51133         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51134         * tests/test-xvasprintf.c (ASSERT): Likewise.
51135         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51136         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51137         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51138         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51139         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51140         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51141         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51142         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51143         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51144         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51145         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51146         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51147         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51148         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51149         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51150         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51151         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51152         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51153         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51154         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51155         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51156         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51157         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51158         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51159         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51160         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51161         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51162         * tests/unictype/test-combining.c (ASSERT): Likewise.
51163         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51164         * tests/unictype/test-digit.c (ASSERT): Likewise.
51165         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51166         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51167         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51168         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51169         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51170         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51171         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51172         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51173         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51174         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51175         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51176         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51177         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51178         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51179         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51180         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51181         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51182         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51183         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51184         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51185         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51186         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51187         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51188         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51189         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51190         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51191         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51192         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51193         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51194         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51195         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51196         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51197         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51198         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51199         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51200         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51201         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51202         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51203         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51204         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51205         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51206         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51207         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51208         Reported by Eric Blake.
51209
51210 2008-04-11  Bruno Haible  <bruno@clisp.org>
51211
51212         * lib/wchar.in.h: Tweak comment.
51213
51214 2008-04-11  Bruno Haible  <bruno@clisp.org>
51215
51216         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51217         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51218         gl_COMMON.
51219         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51220
51221 2008-04-11  Bruno Haible  <bruno@clisp.org>
51222
51223         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51224
51225 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51226
51227         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51228         of attempting to use non-existing /dev/*random.  Based on patch
51229         from Adam Strzelecki <ono@java.pl> in
51230         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51231
51232 2008-04-08  Bruno Haible  <bruno@clisp.org>
51233
51234         Add tentative support for emx+gcc.
51235         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51236         * lib/fpurge.c (fpurge): Likewise.
51237         * lib/freadable.c (freadable): Likewise.
51238         * lib/freadahead.c (freadahead): Likewise.
51239         * lib/freading.c (freading): Likewise.
51240         * lib/freadptr.c (freadptr): Likewise.
51241         * lib/freadseek.c (freadptrinc): Likewise.
51242         * lib/fseeko.c (rpl_fseeko): Likewise.
51243         * lib/fseterr.c (fseterr): Likewise.
51244         * lib/fwritable.c (fwritable): Likewise.
51245         * lib/fwriting.c (fwriting): Likewise.
51246         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51247
51248 2008-04-09  Eric Blake  <ebb9@byu.net>
51249
51250         Avoid some autoconf warnings.
51251         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51252         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51253         * m4/afs.m4 (gl_AFS): Likewise.
51254         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51255         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51256         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51257         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51258         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51259         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51260         (AC_CHECK_DECLS_ONCE): Likewise.
51261         Rename file...
51262         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51263         gnulib-tool requires autoconf 2.59 or better.
51264         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51265
51266 2008-04-08  Eric Blake  <ebb9@byu.net>
51267
51268         Use 'git describe --match' if present (added in git 1.5.5).
51269         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51270         if possible.
51271
51272 2008-04-08  Bruno Haible  <bruno@clisp.org>
51273
51274         Add tentative support for OpenServer.
51275         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51276         _ptr, _cnt.
51277         * lib/fpurge.c (fpurge): Likewise.
51278         * lib/freadable.c (freadable): Likewise.
51279         * lib/freadahead.c (freadahead): Likewise.
51280         * lib/freading.c (freading): Likewise.
51281         * lib/freadptr.c (freadptr): Likewise.
51282         * lib/freadseek.c (freadptrinc): Likewise.
51283         * lib/fseeko.c (rpl_fseeko): Likewise.
51284         * lib/fseterr.c (fseterr): Likewise.
51285         * lib/fwritable.c (fwritable): Likewise.
51286         * lib/fwriting.c (fwriting): Likewise.
51287         Reported by Roger Cornelius <rac@tenzing.org> and
51288         Brian K. White <brian@aljex.com>.
51289
51290 2008-04-06  Jim Meyering  <meyering@redhat.com>
51291
51292         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51293
51294 2008-04-06  Bruno Haible  <bruno@clisp.org>
51295
51296         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51297         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51298         * tests/test-printf-posix.sh: Likewise.
51299         * tests/test-vfprintf-posix.sh: Likewise.
51300         * tests/test-vprintf-posix.sh: Likewise.
51301         * tests/test-xprintf-posix.sh: Likewise.
51302
51303 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51304
51305         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51306         hide error from 'ls', needed on OS/2.
51307         Report by Elbert Pol <elbert.pol@gmail.com>.
51308
51309 2008-04-04  Eric Blake  <ebb9@byu.net>
51310
51311         Make test-fseeko.c failures meaningful.
51312         * tests/test-fseeko.c: Print line number on failure.
51313         * tests/test-fseek.c: Likewise.
51314         Reported by Nelson H. F. Beebe.
51315
51316         Improve strtod bug detection check.
51317         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51318         required for Solaris 10.
51319         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51320
51321 2008-04-04  Bruno Haible  <bruno@clisp.org>
51322
51323         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51324         by m4/setenv.m4.
51325
51326 2008-04-03  Eric Blake  <ebb9@byu.net>
51327
51328         Ensure sane .version contents.
51329         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51330         version string.
51331         * build-aux/git-version-gen: Improve documentation.
51332
51333         Make GNU make output nicer.
51334         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51335         MAKECMDGOALS to enforce message for all command line targets.  Set
51336         srcdir for use in maint.mk.
51337
51338         Another maintainer tweak.
51339         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51340         a target that regenerates version.
51341
51342 2008-04-03  Jim Meyering  <meyering@redhat.com>
51343
51344         vc-list-files: don't cause coreutils "make po-check" failure
51345         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51346
51347 2008-04-03  Eric Blake  <ebb9@byu.net>
51348
51349         Allow VPATH usage of vc-list-files.
51350         * build-aux/vc-list-files (scriptversion): Add timestamp.
51351         (options): Add --help, --version, -C.
51352         (CVS): Support installed cvsu.
51353
51354 2008-04-02  Bruno Haible  <bruno@clisp.org>
51355
51356         Avoid some "statement with no effect" warnings from gcc.
51357         * tests/test-wctype.c (main): Explicitly ignore unused values.
51358         Reported by Jim Meyering.
51359
51360 2008-04-02  Jim Meyering  <meyering@redhat.com>
51361
51362         Avoid some warnings from "gcc -Wshadow".
51363         * tests/test-frexp.c (exp): Define to a different identifier.
51364         * tests/test-frexpl.c (exp): Likewise.
51365
51366 2008-04-03  Jim Meyering  <meyering@redhat.com>
51367
51368         bootstrap: remove dangling *.[ch] symlinks from lib
51369         * build-aux/bootstrap [dangling symlink removal]: Move find's
51370         -depth option to precede all others, to avoid a warning.
51371         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51372
51373 2008-04-02  Bruno Haible  <bruno@clisp.org>
51374
51375         Avoid some warnings from "gcc -Wshadow".
51376         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51377         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51378         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51379         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51380         Reported by Jim Meyering.
51381
51382 2008-04-01  Bruno Haible  <bruno@clisp.org>
51383
51384         Fix test to work on IRIX 6.5 with cc.
51385         * tests/test-math.c (numeric_equal): New function.
51386         (main): Use it.
51387
51388 2008-04-01  Bruno Haible  <bruno@clisp.org>
51389
51390         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51391
51392 2008-04-01  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51395         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51396         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51397         (Depends-on): Remove math.
51398
51399         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51400         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51401         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51402         (Depends-on): Remove math.
51403
51404         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51405         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51406         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51407         (Depends-on): Remove math.
51408         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51409         (Depends-on): Remove math.
51410
51411         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51412         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51413         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51414         (Depends-on): Remove math.
51415         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51416         (Depends-on): Remove math.
51417
51418         * tests/test-round1.c: Include nan.h.
51419         (main): Use NaNd instead of NAN.
51420         * modules/round-tests (Files): Add tests/nan.h.
51421
51422         * tests/test-trunc1.c: Include nan.h.
51423         (main): Use NaNd instead of NAN.
51424         * modules/trunc-tests (Files): Add tests/nan.h.
51425
51426         * tests/test-roundf1.c: Include nan.h.
51427         (main): Use NaNf instead of NAN.
51428         * modules/roundf-tests (Files): Add tests/nan.h.
51429
51430         * tests/test-truncf1.c: Include nan.h.
51431         (main): Use NaNf instead of NAN.
51432         * modules/truncf-tests (Files): Add tests/nan.h.
51433
51434         * tests/test-ceilf1.c: Include nan.h.
51435         (main): Use NaNf instead of NAN.
51436         * modules/ceilf-tests (Files): Add tests/nan.h.
51437
51438         * tests/test-floorf1.c: Include nan.h.
51439         (main): Use NaNf instead of NAN.
51440         * modules/floorf-tests (Files): Add tests/nan.h.
51441
51442         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51443         (main): Use NaNf instead of NAN.
51444         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51445
51446         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51447         (main): Use NaNd instead of NAN.
51448         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51449
51450         * tests/test-frexp.c: Include nan.h.
51451         (main): Use NaNd instead of NAN.
51452         * modules/frexp-tests (Files): Add tests/nan.h.
51453
51454         * lib/isnan.c: Don't include <math.h>.
51455         (FUNC): Don't use NAN macro.
51456         * modules/isnand-nolibm (Depends-on): Remove math.
51457         * modules/isnanf-nolibm (Depends-on): Remove math.
51458         * modules/isnanl (Depends-on): Remove math.
51459         * modules/isnanl-nolibm (Depends-on): Remove math.
51460
51461         * tests/nan.h: New file.
51462
51463 2008-04-01  Eric Blake  <ebb9@byu.net>
51464
51465         Fix typos.
51466         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51467         values to be the right type.
51468
51469         For now, cater to gnulib strtod inaccuracies.
51470         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51471         fractional results.  While not as nice from a QoI perspective, it
51472         is a quicker patch than correctly implementing decimal to binary
51473         rounding.
51474
51475 2008-03-31  Eric Blake  <ebb9@byu.net>
51476
51477         Guarantee a definition of NAN.
51478         * lib/math.in.h (NAN): Define if missing.
51479         * tests/test-math.c (main): Test it.
51480         * doc/posix-headers/math.texi (math.h): Document this.
51481         * lib/isnan.c (rpl_isnand): Use it.
51482         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51483         * tests/test-floorf1.c (NaN): Likewise.
51484         * tests/test-frexp.c (NaN): Likewise.
51485         * tests/test-isnand.c (NaN): Likewise.
51486         * tests/test-isnanf.c (NaN): Likewise.
51487         * tests/test-round1.c (NaN): Likewise.
51488         * tests/test-roundf1.c (NaN): Likewise.
51489         * tests/test-snprintf-posix.h (NaN): Likewise.
51490         * tests/test-sprintf-posix.h (NaN): Likewise.
51491         * tests/test-trunc1.c (NaN): Likewise.
51492         * tests/test-truncf1.c (NaN): Likewise.
51493         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51494         * tests/test-vasprintf-posix.c (NaN): Likewise.
51495         * modules/isnand-nolibm (Depends-on): Add math.
51496         * modules/isnanf-nolibm (Depends-on): Likewise.
51497         * modules/isnanl (Depends-on): Likewise.
51498         * modules/isnanl-nolibm (Depends-on): Likewise.
51499         * modules/snprintf-posix-tests (Depends-on): Likewise.
51500         * modules/sprintf-posix-tests (Depends-on): Likewise.
51501         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51502         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51503         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51504         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51505
51506 2008-03-31  Bruno Haible  <bruno@clisp.org>
51507
51508         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51509         * doc/posix-functions/strtod.texi: Likewise.
51510
51511 2008-03-31  Bruno Haible  <bruno@clisp.org>
51512
51513         * tests/test-strtod.c (main): Don't use C99 syntax.
51514
51515 2008-03-31  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51518         Reported by Eric Blake.
51519
51520 2008-03-31  Jim Meyering  <meyering@redhat.com>
51521
51522         Don't compare actual signbit return values.
51523         * tests/test-strtod.c (main): Rather, compare only their
51524         zero/non-zero nature.
51525
51526 2008-03-31  Eric Blake  <ebb9@byu.net>
51527
51528         More strtod documentation.
51529         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51530         failures as distinct bugs.
51531
51532 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51535         Problem reported by Erik Benada in
51536         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51537
51538 2008-03-30  Bruno Haible  <bruno@clisp.org>
51539
51540         * tests/test-strtod.c: Add comments about which assertion fails on which
51541         platform.
51542         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51543
51544 2008-03-30  Eric Blake  <ebb9@byu.net>
51545
51546         Test signbit behavior on zeros.
51547         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51548         (test_signbitd, test_signbitl): Likewise.
51549
51550         More strtod touchups.
51551         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51552         sign of negative underflow, for now.  Use .5, not .1.
51553         * doc/posix-functions/strtod.texi (strtod): Mention these
51554         limitations.
51555         Reported by Jim Meyering.
51556
51557 2008-03-30  Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51560         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51561
51562 2008-03-30  Bruno Haible  <bruno@clisp.org>
51563
51564         Avoid failure when attempting to return empty iconv results on some
51565         platforms.
51566         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51567         allocation, don't report ENOMEM when the resulting string is empty.
51568
51569 2008-03-30  Bruno Haible  <bruno@clisp.org>
51570
51571         Fix buffer overrun.
51572         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51573         Don't consider the width for tmp_length. Check count against tmp_length
51574         before doing the padding. Ensure enough allocation during padding.
51575
51576 2008-03-30  Eric Blake  <ebb9@byu.net>
51577
51578         strtod touchups.
51579         * lib/strtod.c (strtod): Avoid compiler warnings.
51580         Reported by Jim Meyering.
51581
51582 2008-03-30  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51585         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51586         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51587         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51588         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51589         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51590         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51591         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51592
51593         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51594         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51595         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51596         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51597         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51598         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51599         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51600         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51601
51602         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51603         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51604         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51605         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51606         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51607         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51608         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51609         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51610
51611         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51612         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51613
51614         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51615         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51616
51617         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51618         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51619
51620         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51622         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51623
51624         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51626         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51627
51628         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51629         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51630         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51631
51632         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51634         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51635
51636         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51637         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51639         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51640         (Depends-on): Add EOVERFLOW.
51641         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51642         (Depends-on): Add EOVERFLOW.
51643         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51644         (Depends-on): Add EOVERFLOW.
51645         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51646         (Depends-on): Add EOVERFLOW.
51647         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51648         (Depends-on): Add EOVERFLOW.
51649         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51650         (Depends-on): Add EOVERFLOW.
51651         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51652         (Depends-on): Add EOVERFLOW.
51653         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51654         (Depends-on): Add EOVERFLOW.
51655
51656         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51658         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51659
51660         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51662         * modules/snprintf (Depends-on): Add EOVERFLOW.
51663
51664         * lib/poll.c (EOVERFLOW): Remove fallback.
51665         * modules/poll (Depends-on): Add EOVERFLOW.
51666
51667         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51668         * modules/getugroups (Depends-on): Add EOVERFLOW.
51669
51670         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51671         * modules/getdelim (Depends-on): Add EOVERFLOW.
51672
51673         * lib/ftell.c (EOVERFLOW): Remove fallback.
51674         * modules/ftell (Depends-on): Add EOVERFLOW.
51675
51676         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51678         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51679
51680         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51681
51682         * modules/EOVERFLOW-tests: New file.
51683         * tests/test-EOVERFLOW.c: New file.
51684
51685         * modules/EOVERFLOW: New file.
51686         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51687
51688 2008-03-30  Bruno Haible  <bruno@clisp.org>
51689
51690         Fix bug introduced on 2007-06-10.
51691         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51692         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51693
51694 2008-03-30  Bruno Haible  <bruno@clisp.org>
51695
51696         Improve freadseek's efficiency after ungetc.
51697         * lib/freadseek.c: Include freadahead.h.
51698         (freadptrinc): New function, extracted from freadseek.
51699         (freadseek): Use it in a loop. Use freadahead to determine the number
51700         of loop iterations.
51701         * modules/freadseek (Depends-on): Add freadahead.
51702         (configure.ac): Require AC_C_INLINE.
51703
51704 2008-03-30  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/freadseek.c (freadseek): Don't ignore the return value of
51707         freadptr.
51708
51709 2008-03-29  Eric Blake  <ebb9@byu.net>
51710
51711         Add hex float support.
51712         * modules/strtod (Depends-on): Add c-ctype.
51713         (Link): Mention POW_LIB.
51714         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51715         whitespace between 'e' and exponent.
51716         * tests/test-strtod.c (main): Enable hex float tests.
51717         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51718         now provides.
51719
51720         Document various strtod bugs, with some fixes.
51721         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51722         "-0x", "inf", "nan", and hex constants.
51723         * doc/posix-functions/atof.texi (atof): Likewise.
51724         * modules/stdlib (Makefile.am): Support strtod.
51725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51726         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51727         detect additional strtod bugs.
51728         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51729         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51730         bool where appropriate.  Parse 'inf' and 'nan'.
51731         * tests/test-strtod.c: New file.
51732         * modules/strtod (Depends-on): Add stdbool, stdlib.
51733         (configure.ac): Turn on module indicator.
51734         * modules/strtod-tests: New module.
51735
51736 2008-03-29  Eric Blake  <ebb9@byu.net>
51737
51738         Fix ftell on mingw.
51739         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51740         * modules/ftell-tests (Depends-on): Add binary-io.
51741         * modules/ftello-tests (Depends-on): Likewise.
51742         * tests/test-ftell.c (main): Enhance test to cover behavior after
51743         ungetc.  Enforce binary mode.
51744         * tests/test-ftello.c (main): Likewise.
51745
51746         Pass test-freadseek on cygwin.
51747         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51748         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51749         ungetc buffer.
51750
51751         * tests/test-fflush2.c (main): Fix typo.
51752
51753 2008-03-29  Bruno Haible  <bruno@clisp.org>
51754
51755         * tests/test-fflush2.c (main): Temporarily disable the contents of
51756         this test.
51757         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51758         Reported by Eric Blake.
51759
51760 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51761
51762         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51763         (GC_SHA224_DIGEST_SIZE): Add.
51764
51765         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51766         (gc_hash_digest_length): Likewise.
51767         (gc_hash_buffer): Likewise.
51768
51769 2008-03-25  Bruno Haible  <bruno@clisp.org>
51770
51771         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51772         detail which gettext release to use.
51773         Reported by Simon Josefsson.
51774
51775 2008-03-26  Jim Meyering  <meyering@redhat.com>
51776
51777         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51778         * modules/gnumakefile (clean-GNUmakefile): Also, use
51779         test ... && ... || : syntax rather than if-then ... fi.
51780
51781         gnumakefile: Don't double-quote-expand $(VPATH) value.
51782         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51783
51784 2008-03-24  Eric Blake  <ebb9@byu.net>
51785
51786         Alter GNUmakefile to install into top directory.
51787         * modules/maintainer-makefile: Split, and add dependency...
51788         * modules/gnumakefile: to this new module.
51789         * build-aux/GNUmakefile: Move...
51790         * top/GNUmakefile: ...here.
51791         * build-aux/maint.mk: Move...
51792         * top/maint.mk: ...here.
51793         * MODULES.html.sh (Support for maintaining...): Document new
51794         module.
51795
51796 2008-03-23  Bruno Haible  <bruno@clisp.org>
51797
51798         * gnulib-tool: New options --vc-files, --no-vc-files.
51799         (func_usage): Document them.
51800         (vc_files): New variable.
51801         (func_import): Consider vc_files.
51802         (func_create_testdir): Set vc_files to empty.
51803         Suggested by Jim Meyering and Karl Berry.
51804
51805 2008-03-23  Bruno Haible  <bruno@clisp.org>
51806
51807         Fix regex compilation error on HP-UX 11.
51808         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51809         * modules/regex (Files): Add m4/mbstate_t.m4.
51810         Reported by Ton Voon <ton.voon@altinity.com>.
51811
51812 2008-03-23  Bruno Haible  <bruno@clisp.org>
51813
51814         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51815
51816 2008-03-23  Eric Blake  <ebb9@byu.net>
51817             Bruno Haible  <bruno@clisp.org>
51818
51819         Install files from top/ in the destination directory.
51820         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51821         augmentation also for the files from top/.
51822         (func_import, func_create_testdir): Rewrite file names:
51823         top/filename -> filename.
51824
51825 2008-03-23  Bruno Haible  <bruno@clisp.org>
51826
51827         Tweak "gnulib --version" output.
51828         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51829
51830 2008-03-23  Bruno Haible  <bruno@clisp.org>
51831
51832         Tweak "gnulib --version" output.
51833         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51834         rather than contents of ChangeLog, when possible.
51835
51836 2008-03-21  Eric Blake  <ebb9@byu.net>
51837
51838         More --version tweaks.
51839         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51840         date of last ChangeLog entry.
51841
51842 2008-03-21  Jim Meyering  <meyering@redhat.com>
51843
51844         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51845
51846 2008-03-20  Eric Blake  <ebb9@byu.net>
51847
51848         VPATH fix.
51849         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51850
51851 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51852
51853         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51854         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51855
51856 2008-03-20  Eric Blake  <ebb9@byu.net>
51857
51858         Sync GNUmakefile with coreutils.
51859         * build-aux/GNUmakefile (have-Makefile): Rename...
51860         (_have-Makefile): ...to this, for namespace consideration.
51861         (GNUmakefile.cfg): Include, if present.
51862         (_autoreconf): Define a default.
51863         (_is-dist-target): New rule for rebuilds to pick up intra-release
51864         version.
51865         (maint-cfg.mk): Rename...
51866         (cfg.mk): ...to this.
51867
51868 2008-03-18  Jim Meyering  <meyering@redhat.com>
51869
51870         New script and module: mktempd
51871         * MODULES.html.sh (maint+release support): Add mktempd.
51872         * build-aux/mktempd: New file.
51873         * modules/mktempd: New file.
51874
51875 2008-03-15  Jim Meyering  <meyering@redhat.com>
51876
51877         Undo last change.
51878         * lib/sha1.c, lib/md5.c: 63 != ~63.
51879         Reported by Andreas Schwab.
51880
51881         sha1.c, md5.c: Hoist a redundant expression.
51882         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51883         "ctx->buflen" only once, before calling *_process_block.
51884         * lib/md5.c (md5_process_bytes): Likewise.
51885
51886 2008-03-14  Eric Blake  <ebb9@byu.net>
51887
51888         Bump copyright year in files generated by gnulib-tool.
51889         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51890         gnulib-tool, rather than hard-coding it.
51891
51892         Fix 'gnulib-tool --version' output to work with git.
51893         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51894         (startup): ...here.
51895         (func_version): Use it to invoke git-version-gen, rather than
51896         relying on CVS keyword expansion.  Modernize wording.
51897         (cvsdatestamp, last_checkin_date, version): Kill unused
51898         variables.
51899
51900 2008-03-12  Jim Meyering  <meyering@redhat.com>
51901
51902         Recognize optional cast of the argument to free.
51903         * build-aux/useless-if-before-free: Update regexps.
51904
51905         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51906
51907 2008-03-11  Bruno Haible  <bruno@clisp.org>
51908
51909         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51910         by a single package.
51911         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51912         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51913         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51914         Reported by Sam Steingold <sds@gnu.org>.
51915
51916 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51917
51918         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51919         repositories.
51920
51921 2008-03-11  Bruno Haible  <bruno@clisp.org>
51922
51923         Avoid conflicts between local macro definitions.
51924         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51925         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51926
51927 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51928             Bruno Haible  <bruno@clisp.org>
51929
51930         Make va_copy work with some version of xlc on AIX 5.1.
51931         * lib/stdarg.in.h: New file.
51932         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51933         On AIX, use a <stdarg.h> file substitute.
51934         * modules/stdarg (Files): Add lib/stdarg.in.h.
51935         (Depends-on): Add include_next.
51936         (Makefile.am): Build a stdarg.h substitute if requested.
51937         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51938
51939 2008-03-10  Bruno Haible  <bruno@clisp.org>
51940
51941         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51942         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51943         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51944
51945 2008-03-10  Bruno Haible  <bruno@clisp.org>
51946
51947         * modules/stdlib (Depends-on): Add include_next, remove
51948         absolute-header.
51949
51950 2008-03-09  Bruno Haible  <bruno@clisp.org>
51951
51952         * lib/freadahead.h (freadahead): Document more precisely.
51953         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51954         the sum of both buffer sizes.
51955         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51956         * NEWS: Document the change.
51957
51958 2008-03-09  Bruno Haible  <bruno@clisp.org>
51959
51960         Extend freadptr to return also the buffer size.
51961         * lib/freadptr.h (freadptr): Add sizep argument.
51962         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51963         (freadptr): Add sizep argument. Determine buffer size like freadahead
51964         does.
51965         * tests/test-freadptr.c: Don't include freadahead.h.
51966         (main): Adapt for new calling convention of freadptr.
51967         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51968         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51969         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51970         tests/test-freadptr2.sh.
51971         (Depends): Remove freadahead.
51972         (TESTS): Add test-freadptr2.sh.
51973         (check_PROGRAMS): Add test-freadptr2.
51974
51975 2008-03-09  Bruno Haible  <bruno@clisp.org>
51976
51977         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51978         Report and solution by Simon Josefsson.
51979
51980 2008-03-06  Bruno Haible  <bruno@clisp.org>
51981
51982         Make fflush after ungetc work on BSD platforms.
51983         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51984         * tests/test-fflush2.c: New file.
51985         * tests/test-fflush2.sh: New file.
51986         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51987         tests/test-fflush2.c.
51988         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51989         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51990
51991 2008-03-06  Eric Blake  <ebb9@byu.net>
51992
51993         Likewise for ftello.
51994         * modules/ftello (Dependencies): Add extensions.
51995         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51996
51997 2008-03-06  Bruno Haible  <bruno@clisp.org>
51998
51999         * modules/fseeko (Dependencies): Add extensions.
52000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52001         Needed on glibc systems.
52002
52003 2008-03-06  Bruno Haible  <bruno@clisp.org>
52004
52005         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52006         email address.
52007         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52008
52009 2008-03-06  Bruno Haible  <bruno@clisp.org>
52010
52011         * users.txt: Add libgnupdf.
52012
52013 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52014
52015         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52016         (Header File Substitutes, Function Substitutes,
52017         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52018         (Build robot for gnulib): Fix typo.
52019
52020 2008-03-06  Bruno Haible  <bruno@clisp.org>
52021
52022         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52023         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52024
52025 2008-03-06  Bruno Haible  <bruno@clisp.org>
52026
52027         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52028         * doc/gnulib.texi: Include it.
52029
52030 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52031
52032         * modules/func (License): Change license to unlimited; there was
52033         no LGPL parts in the module anyway.
52034
52035 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52036
52037         * modules/__func__: Renamed to modules/func.
52038         * modules/__func__-tests: Renamed to modules/func-tests.
52039         * tests/test-__func__.c: Renamed to tests/test-func.c.
52040         * m4/__func__.m4: Renamed to m4/func.m4.
52041         * doc/gnulib.texi (__func__): Section renamed to func.
52042         Suggested by Eric Blake <ebb9@byu.net>.
52043
52044 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52045
52046         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52047         about __func__.  Make example self-contained.  Suggested by Eric
52048         Blake <ebb9@byu.net>.
52049
52050         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52051         Suggested by Eric Blake <ebb9@byu.net>.
52052
52053 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52054
52055         * modules/__func__: New file.
52056         * modules/__func__-tests: New file.
52057         * tests/test-__func__.c: New file.
52058         * m4/__func__.m4: New file.
52059         * doc/gnulib.texi (__func__): Document __func__ module.
52060
52061 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52062
52063         * modules/byteswap (License): Re-license as LGPLv2+.
52064
52065 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52066
52067         * doc/Makefile: Add pdf target.
52068
52069 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52070
52071         * modules/inline (License): Use 'unlimited', since there are only
52072         *.m4 files in this module.
52073
52074 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52075             Bruno Haible  <bruno@clisp.org>
52076
52077         Add support for HP C 7.1 on OpenVMS 8.3.
52078         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52079
52080 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52081
52082         Update VMS specifics.
52083         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52084
52085 2008-03-02  Jim Meyering  <meyering@redhat.com>
52086
52087         Remove the last dependency on the "free" module.
52088         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52089         Reported by Bob Proulx.
52090
52091         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52092
52093         Remove useless "if" tests before free.  Deprecate "free" module.
52094         * doc/posix-functions/free.texi: Mention that this
52095         module is no longer useful.
52096         * modules/free (Notice): Say this module is obsolete.
52097         * modules/readutmp (Depends-on): Remove free.
52098         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52099         * lib/putenv.c (putenv): Likewise.
52100         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52101         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52102         * tests/test-c-strcasestr.c (main): Likewise.
52103         * tests/test-c-strstr.c (main): Likewise.
52104         * tests/test-mbscasestr1.c (main): Likewise.
52105         * tests/test-mbscasestr2.c (main): Likewise.
52106         * tests/test-mbsstr1.c (main): Likewise.
52107         * tests/test-mbsstr2.c (main): Likewise.
52108         * tests/test-memmem.c (main): Likewise.
52109         * tests/test-strcasestr.c (main): Likewise.
52110         * tests/test-striconv.c (main): Likewise.
52111         * tests/test-striconveh.c (main): Likewise.
52112         * tests/test-striconveha.c (main): Likewise.
52113         * tests/test-strstr.c (main): Likewise.
52114
52115         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52116
52117         bootstrap: sync from coreutils again
52118         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52119
52120 2008-03-01  Jim Meyering  <meyering@redhat.com>
52121
52122         bootstrap: sync from coreutils
52123         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52124         also when the target doesn't exist.
52125
52126 2008-03-01  Eric Blake  <ebb9@byu.net>
52127
52128         Fix bugs in last patch.
52129         * lib/memchr2.c (memchr2): Fix typo.
52130         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52131         extension.
52132         Reported by Bruce Korb.
52133
52134         New module 'memchr2'.
52135         * modules/memchr2: New file.
52136         * modules/memchr2-tests: Likewise.
52137         * lib/memchr2.h: Likewise.
52138         * lib/memchr2.c: Likewise, based on memchr.c.
52139         * tests/test-memchr2.c: New test.
52140         * MODULES.html.sh (String handling): Add memchr2.
52141
52142 2008-02-29  Bruno Haible  <bruno@clisp.org>
52143
52144         * modules/freadseek-tests: New file.
52145         * tests/test-freadseek.sh: New file.
52146         * tests/test-freadseek.c: New file.
52147
52148         New module 'freadseek'.
52149         * modules/freadseek: New file.
52150         * lib/freadseek.h: New file.
52151         * lib/freadseek.c: New file.
52152         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52153
52154 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52155
52156         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52157         wydawca.
52158
52159         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52160         program_invocation_name and program_invocation_short_name are
52161         present.
52162
52163 2008-02-28  Bruno Haible  <bruno@clisp.org>
52164
52165         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52166         * tests/test-freadptr.sh: Also test non-seekable stdin.
52167
52168 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52169
52170         * build-aux/bootstrap (source_base, m4_base)
52171         (doc_base, tests_base): New variables.
52172         (gnulib_tool_options): Do not hardcode base directories, use
52173         the above variables instead.
52174
52175 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52176
52177         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52178
52179 2008-02-28  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/freadptr-tests: New file.
52182         * tests/test-freadptr.sh: New file.
52183         * tests/test-freadptr.c: New file.
52184
52185         New module 'freadptr'.
52186         * modules/freadptr: New file.
52187         * lib/freadptr.h: New file.
52188         * lib/freadptr.c: New file.
52189         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52190
52191 2008-02-26  Karl Berry  <karl@freefriends.org>
52192
52193         Sync from Libtool:
52194         * libltdl/argz.c (argz_add, argz_count): New functions.
52195         * libltdl/argz.in.h: Declare them.
52196         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52197
52198 2008-02-22  Bruno Haible  <bruno@clisp.org>
52199
52200         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52201         is a pointer type.  Needed for HP-UX 10.
52202         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52203         * doc/posix-functions/gmtime_r.texi: Likewise.
52204         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52205
52206 2008-02-24  Bruno Haible  <bruno@clisp.org>
52207
52208         * modules/environ-tests: New file.
52209         * tests/test-environ.c: New file.
52210
52211         New module 'environ'.
52212         * modules/environ: New file.
52213         * lib/unistd.in.h (environ): New declaration.
52214         * m4/environ.m4: New file.
52215         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52216         after use.
52217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52218         HAVE_DECL_ENVIRON.
52219         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52220         HAVE_DECL_ENVIRON.
52221         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52222         wrong claim that 'environ' is missing on some systems.
52223         * modules/execute (Depends-on): Add environ.
52224         * lib/execute.c (environ): Remove fallback declaration.
52225         * modules/pipe (Depends-on): Add environ.
52226         * lib/pipe.c (environ): Remove fallback declaration.
52227         * modules/setenv (Depends-on): Add environ.
52228         * lib/setenv.c (environ): Remove fallback declaration.
52229         * modules/unsetenv (Depends-on): Add environ.
52230         * lib/unsetenv.c (environ): Remove fallback declaration.
52231         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52232         m4/environ.m4.
52233         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52234         (gl_PREREQ_UNSETENV): Likewise.
52235
52236 2008-02-24  Bruno Haible  <bruno@clisp.org>
52237
52238         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52239
52240 2008-02-20  Bob Proulx  <bob@proulx.com>
52241
52242         Enable use of older two part flavor 'git describe'.
52243         * build-aux/git-version-gen: If using the older two part flavor of
52244         git version then recreate the third part now present in the
52245         newer three part flavor of git describe.
52246
52247 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52248
52249         * lib/fts.c (fts_build): Typo correction to comment.
52250
52251 2008-02-17  Bruno Haible  <bruno@clisp.org>
52252
52253         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52254         generating no-op conflicts.
52255
52256 2008-02-17  Bruno Haible  <bruno@clisp.org>
52257
52258         Speed up by 10%.
52259         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52260         result_entries, rather than an index-based loop.
52261
52262 2008-02-17  Bruno Haible  <bruno@clisp.org>
52263
52264         Speed up by 25%.
52265         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52266         'hashcode_cached'.
52267         (entry_create): New function.
52268         (entry_hashcode): Use the cached hashcode if possible.
52269         (read_changelog_file, try_split_merged_entry): Use entry_create.
52270
52271 2008-02-17  Bruno Haible  <bruno@clisp.org>
52272
52273         Speed up from O(n^2) to O(n) for long ChangeLog files.
52274         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52275         (read_changelog_file): Change implementation of entries_reversed list
52276         to rbtreehash.
52277         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52278
52279 2008-02-17  Bruno Haible  <bruno@clisp.org>
52280
52281         New option --split-merged-entry.
52282         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52283         (find_paragraph_end, try_split_merged_entry): New functions.
52284         (long_options): Add option --split-merged-entry.
52285         (usage): Document option --split-merged-entry.
52286         (main): Implement option --split-merged-entry.
52287         Reported by Eric Blake.
52288
52289 2008-02-17  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/git-merge-changelog.c: Include c-strstr.h.
52292         (main): Support the "git pull --rebase" situation.
52293         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52294         Reported by Eric Blake.
52295
52296 2008-02-16  Eric Blake  <ebb9@byu.net>
52297
52298         Avoid doubling \ in common case of "c-maybe" quoting style.
52299         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52300         eliding outer quotes.
52301         * lib/quotearg.h: Document this.
52302         * tests/test-quotearg.c (result_strings, inputs, results_g)
52303         (flag_results, locale_results): Test it by adding a new string to
52304         each test group.
52305         (compare_strings): Test new string.
52306
52307 2008-02-13  Eric Blake  <ebb9@byu.net>
52308
52309         Avoid trigraph quoting in default output.
52310         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52311         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52312         unless explicitly requested.
52313         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52314
52315 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52316
52317         Don't rely on signed integer overflowing to negative value.
52318         * lib/getugroups.c (getugroups): Include <limits.h>.
52319         Instead, compare against INT_MAX, and increment only if the test passes.
52320
52321 2008-02-13  Jim Meyering  <meyering@redhat.com>
52322         and Eric Blake  <ebb9@byu.net>
52323
52324         Avoid shadowing warning and compile errors on Linux.
52325         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52326         forwarding macros on Linux.
52327         (dcgettext): Define a stub, for Linux.
52328         (results_g, main): Avoid warnings.
52329
52330 2008-02-12  Eric Blake  <ebb9@byu.net>
52331
52332         Silence warning in last patch.
52333         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52334
52335         Quotearg part 4: add tests, fix c-maybe colon quoting.
52336         * lib/quotearg.h: Improve documentation.
52337         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52338         escapes when adding outer quotes.  When quoting trigraphs, use
52339         valid C notation.  When quoting NUL, omit extra characters if next
52340         character is not digit.  Alter prototype.
52341         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52342         callers.
52343         * modules/quotearg-tests: New module.
52344         * tests/test-quotearg.c: New test.
52345
52346 2008-02-07  Eric Blake  <ebb9@byu.net>
52347
52348         Quotearg part 3: add flag to control outer quote elision.
52349         * lib/quotearg.h (c_maybe_quoting_style): New style.
52350         (enum quoting_flags): Better documentation of flags.
52351         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52352         c-maybe style.
52353         (quotearg_buffer_restyled): Handle new flag to elide outer
52354         quotes.
52355
52356         Quotearg part 2: add flag that can control NUL elision.
52357         * lib/quotearg.h (set_quoting_flags): New prototype.
52358         * lib/quotearg.c (struct quoting_options): Add flag field.
52359         (set_quoting_flags): New function.
52360         (quotearg_buffer_restyled): Add flags parameter.
52361         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52362         (quotearg_n_options): Set the flag, since length cannot be
52363         returned.
52364         (quoting_options_from_style): Default flags correctly.
52365
52366         Quotearg part 1: more wrappers, restore quotearg_char state.
52367         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52368         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52369         (quotearg_colon_mem): New wrappers.
52370         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52371         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52372         functions.
52373         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52374         (quotearg_colon_mem): New functions.
52375
52376 2008-02-11  Bruno Haible  <bruno@clisp.org>
52377
52378         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52379         library in the current directory: it does not work with parallel make.
52380         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52381
52382 2008-02-11  Bruno Haible  <bruno@clisp.org>
52383
52384         * .gitattributes: New file.
52385
52386 2008-02-11  Jim Meyering  <meyering@redhat.com>
52387
52388         useless-if-before-free: Fix reversed exit values.
52389         * build-aux/useless-if-before-free: Use correct values
52390         for EXIT_MATCH and EXIT_NO_MATCH.
52391
52392         * build-aux/useless-if-before-free: Close stdout carefully.
52393
52394 2008-02-10  Bruno Haible  <bruno@clisp.org>
52395
52396         New module 'git-merge-changelog'.
52397         * modules/git-merge-changelog: New file.
52398         * lib/git-merge-changelog.c: New file.
52399
52400 2008-02-10  Jim Meyering  <meyering@redhat.com>
52401
52402         useless-if-before-free: New option: --list (-l).
52403
52404         useless-if-before-free: Don't exit immediately upon open failure.
52405         * build-aux/useless-if-before-free: Exit 2 for errors.
52406         Upon failure to open a file, don't exit immediately.
52407         Rather, just warn and continue with any remaining files.
52408
52409 2008-02-10  Bruno Haible  <bruno@clisp.org>
52410
52411         New abstract list operation 'node_set_value'.
52412         * lib/gl_list.h (gl_list_node_set_value): New function.
52413         (struct gl_list_implementation): New field node_set_value.
52414         * lib/gl_list.c (gl_list_node_set_value): New function.
52415         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52416         (gl_array_list_implementation): Update.
52417         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52418         (gl_carray_list_implementation): Update.
52419         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52420         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52421         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52422         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52423         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52424         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52425         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52426         Update.
52427         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52428         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52429         (gl_sublist_list_implementation): Update.
52430
52431 2008-02-10  Bruno Haible  <bruno@clisp.org>
52432
52433         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52434         Needed when ELEMENT is #defined to 'some_type *'.
52435
52436 2008-02-10  Jim Meyering  <meyering@redhat.com>
52437
52438         New script and module: useless-if-before-free
52439         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52440         * build-aux/useless-if-before-free: New file.
52441         * modules/useless-if-before-free: New file.
52442
52443         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52444
52445         xstrtol_error: Fix typo.
52446         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52447         s/exit_failure/exit_status/.
52448
52449 2008-02-09  Jim Meyering  <meyering@redhat.com>
52450
52451         New script and module: gitlog-to-changelog
52452         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52453         * modules/gitlog-to-changelog: New file.
52454         * build-aux/gitlog-to-changelog: New file.
52455
52456 2008-02-08  Jim Meyering  <meyering@redhat.com>
52457
52458         Avoid two "parameter unused" warnings.
52459         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52460         Mark "st" as used.
52461
52462         Use "git COMMAND", not "git-COMMAND".
52463         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52464         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52465         * build-aux/git-version-gen: Use "git status", not "git-status".
52466
52467 2008-02-07  Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52470         Avoids a crash on Windows Vista.
52471         Reported by Adam Strzelecki <ono@java.pl> via
52472         Simon Josefsson <simon@josefsson.org>.
52473
52474 2008-02-06  Bruno Haible  <bruno@clisp.org>
52475
52476         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52477         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52478         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52480         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52482         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52483         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52490         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52491         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52492         left-adjust flag.
52493         * tests/test-snprintf-posix.h (test_function): Likewise.
52494         * tests/test-sprintf-posix.h (test_function): Likewise.
52495         * tests/test-vasprintf-posix.c (test_function): Likewise.
52496         * doc/posix-functions/fprintf.texi: Update.
52497         * doc/posix-functions/printf.texi: Update.
52498         * doc/posix-functions/snprintf.texi: Update.
52499         * doc/posix-functions/sprintf.texi: Update.
52500         * doc/posix-functions/vfprintf.texi: Update.
52501         * doc/posix-functions/vprintf.texi: Update.
52502         * doc/posix-functions/vsnprintf.texi: Update.
52503         * doc/posix-functions/vsprintf.texi: Update.
52504         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52505
52506 2008-02-06  Bruno Haible  <bruno@clisp.org>
52507
52508         Fix bug introduced on 2008-01-26.
52509         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52510
52511 2008-02-06  Bruno Haible  <bruno@clisp.org>
52512
52513         Fix bug introduced on 2007-06-10.
52514         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52515         !NEED_PRINTF_FLAG_ZERO.
52516
52517 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52518
52519         getloadavg: use libperfstat on AIX5
52520         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52521
52522 2008-02-03  Bruno Haible  <bruno@clisp.org>
52523
52524         * lib/diffseq.h: Add comments about required #includes.
52525         Reported by Michael Biggs <gnulib@doubleplum.net>.
52526
52527 2008-02-01  Bruno Haible  <bruno@clisp.org>
52528
52529         * users.txt: Add gnuit.
52530
52531 2008-01-31  Bruno Haible  <bruno@clisp.org>
52532
52533         * lib/md4.c (set_uint32): Mark as inline.
52534         * lib/md5.c (set_uint32): Likewise.
52535         * lib/sha1.c (set_uint32): Likewise.
52536         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52537         * m4/md5.m4 (gl_MD5): Likewise.
52538         * m4/sha1.m4 (gl_SHA1): Likewise.
52539
52540 2008-01-31  Jim Meyering  <meyering@redhat.com>
52541
52542         Use "sizeof VAR", rather than a literal "4".
52543         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52544         * lib/md4.c (md4_read_ctx): Likewise.
52545         * lib/sha1.c (sha1_read_ctx): Likewise.
52546
52547 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52548
52549         * tests/test-sha1.c: New file, based on test-md5.c.
52550
52551         * modules/crypto/sha1-tests: New file.
52552
52553 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52554
52555         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52556
52557 2008-01-31  Jim Meyering  <meyering@redhat.com>
52558
52559         Prefer "sizeof v" over the equivalent "4".
52560         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52561         * lib/md5.c (set_uint32): Likewise.
52562         * lib/sha1.c (set_uint32): Likewise.
52563
52564 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52565
52566         * lib/sha1.c (set_uint32): Mark function as static.
52567
52568 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52569
52570         md2: clarify comments to say that alignment is not required.
52571         * lib/md2.h: Remove warning about alignment in comment.
52572         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52573         never been required.
52574
52575 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52576
52577         md4: adapt alignment constraint fix from sha1.
52578         * lib/md4.c (set_uint32): New function, from sha1.c
52579         (md4_read_ctx): Use it.
52580         (md4_finish_ctx): Doc fix.
52581         * lib/md4.h: Doc fix.
52582
52583 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52584
52585         md5: adapt alignment constraint fix from sha1.
52586         * lib/md5.c (set_uint32): New function, from sha1.c
52587         (md5_read_ctx): Use it.
52588         (md5_finish_ctx): Doc fix.
52589         * lib/md5.h: Doc fix.
52590
52591 2008-01-30  Peter Palfrader  <weasel@debian.org>
52592
52593         sha1: remove the result buffer alignment constraint
52594         * lib/sha1.c (set_uint32): New function.
52595         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52596         constraint.
52597         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52598         * lib/sha1.h: Likewise.
52599
52600 2008-01-30  Andreas Schwab  <schwab@suse.de>
52601             Bruno Haible  <bruno@clisp.org>
52602
52603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52604         correct definition of LDBL_MIN_EXP.
52605
52606 2008-01-30  Karl Berry  <karl@gnu.org>
52607
52608         * config/srclist-update: try to preserve x bit on updates.
52609         * config/srclistvars.sh: update for karl.
52610
52611 2008-01-29  Jim Meyering  <meyering@redhat.com>
52612
52613         vasnprintf.c: Avoid warning about unused label
52614         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52615         "overflow" label definition and associated code with the
52616         same cpp condition that guards the sole use of that label.
52617
52618 2008-01-26  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52621         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52622         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52623         * lib/isnanl-nolibm.h (isnanl): Likewise.
52624         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52625
52626 2008-01-26  Bruno Haible  <bruno@clisp.org>
52627
52628         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52629         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52630
52631 2008-01-26  Bruno Haible  <bruno@clisp.org>
52632
52633         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52634         GCC >= 4.0 built-in.
52635         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52636
52637 2008-01-26  Bruno Haible  <bruno@clisp.org>
52638
52639         Rename isnan, applicable to 'double' only, to isnand.
52640         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52641         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52642         (configure.ac): Update.
52643         (Include): Replace "isnan.h" with "isnand.h".
52644         * m4/isnand.m4: Renamed from m4/isnan.m4.
52645         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52646         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52647         instead of isnan.c.
52648         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52649         instead of HAVE_ISNAN_IN_LIBC.
52650         (isnand): Renamed from isnan.
52651         * lib/isnand.c: New file.
52652         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52653         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52654         (Makefile.am): Update.
52655         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52656         Include isnand.h instead of isnan.h.
52657         (main): Test isnand instead of isnan.
52658         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52659         isnan-nolibm.
52660         * modules/frexp (Depends-on): Likewise.
52661         * modules/frexp-tests (Depends-on): Likewise.
52662         * modules/frexp-nolibm (Depends-on): Likewise.
52663         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52664         * modules/isfinite (Depends-on): Likewise.
52665         * modules/round-tests (Depends-on): Likewise.
52666         * modules/signbit (Depends-on): Likewise.
52667         * modules/signbit-tests (Depends-on): Likewise.
52668         * modules/snprintf-posix (Depends-on): Likewise.
52669         * modules/sprintf-posix (Depends-on): Likewise.
52670         * modules/trunc-tests (Depends-on): Likewise.
52671         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52672         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52673         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52674         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52675         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52676         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52677         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52678         * modules/vasnprintf-posix (Depends-on): Likewise.
52679         * modules/vasprintf-posix (Depends-on): Likewise.
52680         * modules/vfprintf-posix (Depends-on): Likewise.
52681         * modules/vsnprintf-posix (Depends-on): Likewise.
52682         * modules/vsprintf-posix (Depends-on): Likewise.
52683         * lib/frexp.c: Include isnand.h instead of isnan.h.
52684         (ISNAN): Set to isnand instead of isnan.
52685         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52686         (gl_isfinited): Use isnand instead of isnan.
52687         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52688         (gl_signbitd): Use isnand instead of isnan.
52689         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52690         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52691         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52692         (main): Use isnand instead of isnan.
52693         * tests/test-round1.c: Include isnand.h.
52694         (main): Use isnand instead of isnan.
52695         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52696         (ISNAN): Set to isnand instead of isnan.
52697         * tests/test-trunc1.c: Include isnand.h.
52698         (main): Use isnand instead of isnan.
52699         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52700         (equal): Use isnand instead of isnan.
52701         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52702         isnand-nolibm.
52703         * NEWS: Mention the change.
52704
52705 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52706             Bruno Haible  <bruno@clisp.org>
52707
52708         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52709         the GCC builtins for signbits are present and set
52710         REPLACE_SIGNBIT_USING_GCC if so.
52711         * lib/math.in.h (signbit): Define using GCC builtins if
52712         REPLACE_SIGNBIT_USING_GCC is set.
52713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52714         REPLACE_SIGNBIT_USING_GCC.
52715         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52716
52717 2008-01-25  Jim Meyering  <meyering@redhat.com>
52718
52719         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52720         * lib/poll.c: Include <config.h>, not "config.h".
52721         * tests/test-getaddrinfo.c: Likewise.
52722
52723 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52724
52725         * modules/sockets-tests: New file.
52726
52727 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52728
52729         * modules/sockets: New module, can be used to call WSA_Startup and
52730         WSA_Cleanup when needed.
52731
52732         * lib/sockets.h, lib/sockets.c: New files.
52733
52734         * m4/sockets.m4: New file.
52735
52736         * tests/test-sockets.c: New file.
52737
52738 2008-01-19  Bruno Haible  <bruno@clisp.org>
52739
52740         * doc/posix-headers: Renamed from doc/headers.
52741         * doc/posix-functions: Renamed from doc/functions.
52742         * doc/gnulib.texi: Update.
52743
52744 2008-01-19  Bruno Haible  <bruno@clisp.org>
52745
52746         * doc/glibc-functions/strcasestr.texi: Include contents of
52747         doc/functions/strcasestr.texi, fixing the list of platforms.
52748         * doc/functions/strcasestr.texi: Remove file.
52749
52750 2008-01-19  Bruno Haible  <bruno@clisp.org>
52751
52752         * doc/glibc-functions/memmem.texi: Include contents of
52753         doc/functions/memmem.texi.
52754         * doc/functions/memmem.texi: Remove file.
52755
52756 2008-01-18  Bruno Haible  <bruno@clisp.org>
52757
52758         * doc/glibc-functions/*.texi: New files.
52759         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52760         to use the new files.
52761
52762 2008-01-17  Bruno Haible  <bruno@clisp.org>
52763
52764         * tests/test-gethostname.c (main): Fix printf statement.
52765
52766 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52767
52768         * modules/gethostname-tests: New file.
52769
52770         * tests/test-gethostname.c: New file.
52771
52772 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52773
52774         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52775         used by the UNAME case.  Reported by Bruno Haible
52776         <bruno@clisp.org>.
52777
52778 2008-01-17  Eric Blake  <ebb9@byu.net>
52779
52780         Convert c-strcasestr to be more efficient.
52781         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52782         (Depends-on): Add c-strcase, remove malloca, strnlen.
52783         * tests/test-c-strcasestr.c (main): Enhance test.
52784         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52785
52786 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52787
52788         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52789         Use it in creating po/Makevars.
52790
52791 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52792
52793         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52794         Applications that requires it should initialize libgcrypt
52795         manually.
52796
52797 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52798
52799         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52800
52801 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52802
52803         Fix problem with getdate on mingw32 reported by Simon Josefsson
52804         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52805         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52806         tzname", when deciding whether to declare tzname.
52807         * lib/strftime.c (tzname): Likewise.
52808
52809 2008-01-15  Bruno Haible  <bruno@clisp.org>
52810
52811         Work around a MacOS X 10.5 bug in frexpl().
52812         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52813         * doc/functions/frexpl.texi: Document the bug.
52814         Reported by Elias Pipping <pipping@gentoo.org>.
52815
52816 2008-01-14  Eric Blake  <ebb9@byu.net>
52817
52818         Touch up previous patch.
52819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52820         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52821
52822         Convert strcasestr module to use Two-Way algorithm.
52823         * modules/strcasestr-simple: New module, based on the old
52824         strcasestr, but with Two-Way rather than KMP.
52825         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52826         * lib/string.in.h (rpl_strcasestr): Declare.
52827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52828         performance.
52829         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52830         * modules/string (Makefile.am): Support strcasestr.
52831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52832         * modules/strcasestr-tests (Depends-on): Check for alarm.
52833         * tests/test-strcasestr.c: Augment test.
52834         * lib/str-two-way.h: Clean up stray macro.
52835         * NEWS: Document new module.
52836         * MODULES.html.sh (string handling): Likewise.
52837         * doc/functions/strcasestr.texi: New file.
52838         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52839         here, since it is not a POSIX function.
52840
52841 2008-01-14  Colin Watson  <cjwatson@debian.org>
52842             Bruno Haible  <bruno@clisp.org>
52843
52844         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52845         works fine; if not, set REPLACE_STRSIGNAL.
52846         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52848         REPLACE_STRSIGNAL.
52849         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52850         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52851         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52852
52853 2008-01-14  Bruno Haible  <bruno@clisp.org>
52854
52855         * modules/strsignal (Include): Change to <string.h>.
52856
52857 2008-01-14  Colin Watson  <cjwatson@debian.org>
52858
52859         * modules/argp (Notice): Add a notice recommending to change
52860         XGETTEXT_OPTIONS.
52861         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52862
52863 2008-01-13  Colin Watson  <cjwatson@debian.org>
52864
52865         * modules/strsignal-tests: New file.
52866         * tests/test-strsignal.c: New file.
52867
52868         * lib/strsignal.c: New file, from glibc with modifications.
52869         * lib/siglist.h: New file, from glibc with modifications.
52870         * lib/string.in.h (strsignal): New declaration.
52871         * m4/strsignal.m4: New file.
52872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52873         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52874         * modules/strsignal: New file.
52875         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52876         HAVE_DECL_STRSIGNAL.
52877
52878 2008-01-13  Bruno Haible  <bruno@clisp.org>
52879
52880         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52881         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52882         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52883         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52884
52885 2008-01-13  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52888         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52889         * lib/argp.h (__attribute__): Likewise.
52890         * lib/c-stack.c (__attribute__): Likewise.
52891         * lib/error.h (__attribute__): Likewise.
52892         * lib/fts.c (__attribute__): Likewise.
52893         * lib/openat.h (__attribute__): Likewise.
52894         * lib/stdio.in.h (__attribute__): Likewise.
52895         * lib/string.in.h (__attribute__): Likewise.
52896         * lib/utimens.c (__attribute__): Likewise.
52897         * lib/vasnprintf.h (__attribute__): Likewise.
52898         * lib/xalloc.h (__attribute__): Likewise.
52899         * lib/xprintf.h (__attribute__): Likewise.
52900         * lib/xstrtol.h (__attribute__): Likewise.
52901         * lib/xvasprintf.h (__attribute__): Likewise.
52902
52903 2008-01-12  Bruno Haible  <bruno@clisp.org>
52904
52905         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52906         * doc/glibc-headers/a.out.texi: New file.
52907         * doc/glibc-headers/aliases.texi: New file.
52908         * doc/glibc-headers/alloca.texi: New file.
52909         * doc/glibc-headers/ar.texi: New file.
52910         * doc/glibc-headers/argp.texi: New file.
52911         * doc/glibc-headers/argz.texi: New file.
52912         * doc/glibc-headers/byteswap.texi: New file.
52913         * doc/glibc-headers/crypt.texi: New file.
52914         * doc/glibc-headers/endian.texi: New file.
52915         * doc/glibc-headers/envz.texi: New file.
52916         * doc/glibc-headers/err.texi: New file.
52917         * doc/glibc-headers/error.texi: New file.
52918         * doc/glibc-headers/execinfo.texi: New file.
52919         * doc/glibc-headers/fpu_control.texi: New file.
52920         * doc/glibc-headers/fstab.texi: New file.
52921         * doc/glibc-headers/fts.texi: New file.
52922         * doc/glibc-headers/getopt.texi: New file.
52923         * doc/glibc-headers/ieee754.texi: New file.
52924         * doc/glibc-headers/ifaddrs.texi: New file.
52925         * doc/glibc-headers/libintl.texi: New file.
52926         * doc/glibc-headers/mcheck.texi: New file.
52927         * doc/glibc-headers/mntent.texi: New file.
52928         * doc/glibc-headers/obstack.texi: New file.
52929         * doc/glibc-headers/paths.texi: New file.
52930         * doc/glibc-headers/printf.texi: New file.
52931         * doc/glibc-headers/pty.texi: New file.
52932         * doc/glibc-headers/resolv.texi: New file.
52933         * doc/glibc-headers/shadow.texi: New file.
52934         * doc/glibc-headers/sysexits.texi: New file.
52935         * doc/glibc-headers/ttyent.texi: New file.
52936
52937 2008-01-12  Jim Meyering  <meyering@redhat.com>
52938
52939         announce-gen: emit Gnulib's git-based version string.
52940         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52941         New option --gnulib-version=V, where V is expected to be
52942         the output of running git describe in the gnulib directory.
52943         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52944         not useful, and plan to stop publishing an xdelta file with each
52945         coreutils release.
52946
52947         * build-aux/announce-gen: Also check for lzma-compressed files.
52948
52949 2008-01-11  Bruno Haible  <bruno@clisp.org>
52950
52951         * tests/test-memmem.c (main): Increase maximum allowed time.
52952         * tests/test-strstr.c (main): Likewise.
52953
52954 2008-01-11  Bruno Haible  <bruno@clisp.org>
52955
52956         * doc/functions/memmem.texi: Add more precisions about platforms.
52957         * doc/functions/strstr.texi: Likewise.
52958
52959 2008-01-10  Eric Blake  <ebb9@byu.net>
52960
52961         * m4/strstr.m4: Delete cruft from copy-n-paste.
52962         Reported by Bruno Haible.
52963
52964 2008-01-10  Bruno Haible  <bruno@clisp.org>
52965
52966         Make c-strstr rely on strstr.
52967         * lib/c-strstr.c: Don't include str-kmp.h.
52968         (c_strstr): Define in terms of strstr.
52969         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52970         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52971
52972 2008-01-10  Bruno Haible  <bruno@clisp.org>
52973
52974         * doc/gnulib.texi (String Functions in C Locale): New section.
52975         * doc/c-ctype.texi: New file.
52976         * doc/c-strcase.texi: New file.
52977         * doc/c-strcaseeq.texi: New file.
52978         * doc/c-strcasestr.texi: New file.
52979         * doc/c-strstr.texi: New file.
52980         * doc/c-strtod.texi: New file.
52981         * doc/c-strtold.texi: New file.
52982
52983 2008-01-10  Eric Blake  <ebb9@byu.net>
52984
52985         * lib/relocatable.h: Fix a comment.
52986
52987 2008-01-10  Eric Blake  <ebb9@byu.net>
52988
52989         Share two-way algorithm.
52990         * lib/str-two-way.h: New file, merged from...
52991         * lib/memmem.c: ...here...
52992         * lib/strstr.c: ...and here.
52993         * modules/memmem (Files): Use it.
52994         * modules/strstr (Files): Likewise.
52995
52996         Avoid quadratic strstr implementations.
52997         * lib/strstr.c: New file.
52998         * m4/strstr.m4: Likewise.
52999         * modules/strstr: Likewise.
53000         * modules/strstr-tests: Likewise.
53001         * tests/test-strstr.c: Likewise.
53002         * lib/string.in.h (rpl_strstr): Declare.
53003         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53005         * modules/string (Makefile.am): Likewise.
53006         * MODULES.html.sh (string handling): Mention new module.
53007         * doc/functions/strstr.texi (strstr): Document the bug.
53008
53009 2008-01-10  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/relocatable.h (relocate): State whether result is freshly
53012         allocated or not.
53013         * lib/relocatable.c (relocate): Return a freshly allocated string
53014         instead of a pointer to a privately held string.
53015         Reported by Sylvain Beucler <beuc@gnu.org>.
53016
53017 2008-01-10  Colin Watson  <cjwatson@debian.org>
53018
53019         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53020         s/S_ISNLK/S_ISLNK/.
53021
53022 2008-01-09  Bruno Haible  <bruno@clisp.org>
53023
53024         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53025         and other files.
53026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53027         if it's only a guess.
53028         * modules/memmem: Simplify by depending on memmem-simple.
53029
53030 2008-01-09  Bruno Haible  <bruno@clisp.org>
53031
53032         Work around OpenBSD 4.0 tdelete() bug.
53033         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53034         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53035         macros and don't redefine the enum values.
53036         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53037         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53038         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53039
53040 2008-01-09  Bruno Haible  <bruno@clisp.org>
53041
53042         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53043         (main): Don't perform the tests if setlocale did not install a UTF-8
53044         locale. Needed on OpenBSD 4.0.
53045         * modules/wcwidth-tests (Depends-on): Add localcharset.
53046
53047 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53050         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53051         * NEWS: announce this.
53052         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53053
53054 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53055         and Eric Blake  <ebb9@byu.net>
53056
53057         Add memmem-simple module.
53058         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53059         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53060         * modules/memmem-simple: New file.
53061         * modules/memmem (Description): Tweak.
53062         * MODULES.html.sh (string handling): Mention new module.
53063         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53064         addressed by memmem-simple.
53065         * NEWS: Document the difference.
53066
53067 2008-01-09  Eric Blake  <ebb9@byu.net>
53068
53069         Give gcc some memmem optimization hints.
53070         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53071         (strcasestr): Declare as pure.
53072         * modules/memmem (Maintainer): Claim my implementation.
53073
53074 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53075
53076         Support AIX 6.1 and higher.
53077         * build-aux/config.libpath: Likewise.
53078         * build-aux/config.rpath: Likewise.
53079
53080 2008-01-08  Jim Meyering  <meyering@redhat.com>
53081             Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53084         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53085         Reported by Peter Fales in
53086         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53087
53088 2008-01-08  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/unictype/category-of (Depends-on): Add
53091         unictype/category-none.
53092         * modules/unictype/category-and-tests (Depends-on): Add
53093         unictype/category-{L,N,Lu,Nd}.
53094         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53095         * modules/unictype/category-or-tests (Depends-on): Add
53096         unictype/category-{L,N}.
53097         * modules/unictype/category-name-tests (Depends-on): Add
53098         unictype/category-{Z,Nl}.
53099         Reported by Simon Josefsson.
53100
53101 2008-01-08  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53104         convention better.
53105         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53106         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53107         Reported by Peter Miller <millerp@canb.auug.org.au>.
53108
53109 2008-01-08  Eric Blake  <ebb9@byu.net>
53110
53111         Rewrite memmem to guarantee linear complexity without malloc.
53112         * lib/memmem.c (memmem): Use Two-Way rather than
53113         Knuth-Morris-Pratt, to allow O(1) space usage.
53114         (critical_factorization, two_way_short_needle)
53115         (two_way_long_needle): New functions.
53116         (knuth_morris_pratt): Delete.
53117         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53118         Add stdint.
53119         * tests/test-memmem.c (main): Add tests for periodic needle and
53120         sublinear performance.
53121         * doc/functions/memmem.texi (memmem): Document other deficiencies
53122         in cygwin and older glibc.
53123
53124 2008-01-08  Bruno Haible  <bruno@clisp.org>
53125
53126         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53127         augmentation.
53128
53129 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53130
53131         Add a configure time option: --disable-acl.
53132         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53133         AC_ARG_ENABLE(acl).
53134
53135 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53136
53137         * tests/test-localename.c: Don't include obsolete "setenv.h".
53138
53139         * modules/localename-tests (Depends-on): Need unsetenv.
53140
53141 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53142
53143         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53144
53145 2008-01-06  Colin Watson  <cjwatson@debian.org>
53146
53147         * users.txt: Add man-db.
53148
53149 2008-01-07  Bruno Haible  <bruno@clisp.org>
53150
53151         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53152         previous section name.
53153
53154 2008-01-07  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/progname.c (set_program_name): Don't strip off a leading
53157         "lt-" prefix outside a .libs directory.
53158         Suggested by Paul Eggert.
53159
53160 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53161             Bruno Haible  <bruno@clisp.org>
53162
53163         Improve memory cleanup in 'relocatable' module.
53164         * lib/relocatable.h (compute_curr_prefix): Change return type to
53165         'char *'.
53166         * lib/relocatable.c (compute_curr_prefix): Change return type to
53167         'char *'. Free curr_installdir after use.
53168         (relocate): Free curr_prefix_better after use.
53169         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53170
53171 2008-01-01  Bruno Haible  <bruno@clisp.org>
53172
53173         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53174         failure on older glibc systems.
53175         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53176
53177 2008-01-05  Eric Blake  <ebb9@byu.net>
53178
53179         Avoid quadratic system memmem.
53180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53181         Reported by Ralf Wildenhues.
53182
53183         Fix memmem test for mingw.
53184         * modules/memmem-tests (configure.ac): Check for alarm.
53185         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53186         it.
53187         * doc/functions/memmem.texi: New file.
53188         * doc/gnulib.texi (Function Substitutes): Add memmem.
53189         Reported by Bruno Haible.
53190
53191 2008-01-04  Bruno Haible  <bruno@clisp.org>
53192
53193         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53194         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53195         gl_HEADER_STRING_H_DEFAULTS.
53196
53197 2008-01-04  Eric Blake  <ebb9@byu.net>
53198
53199         Shorten duration of memmem test.
53200         * tests/test-memmem.c (main): Use alarm to declare failure if test
53201         is taking too long.
53202         Reported by Ralf Wildenhues.
53203
53204 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53205
53206         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53207         string, needed by strerror.
53208
53209 2008-01-03  Colin Watson  <cjwatson@debian.org>
53210             Bruno Haible  <bruno@clisp.org>
53211
53212         * doc/gnulib-tool.texi (Localization): New section.
53213
53214 2008-01-02  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53217         variables to 'unsigned char *' type.
53218         Reported by Paul Eggert.
53219
53220 2008-01-02  Jim Meyering  <jim@meyering.net>
53221
53222         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53223
53224 2007-12-31  Jim Meyering  <jim@meyering.net>
53225
53226         Avoid use of private FTS type name.
53227         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53228
53229 2007-12-30  Karl Berry  <karl@gnu.org>
53230
53231         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53232         work around defect in Texinfo and/or the standalone Info browser.
53233
53234 2007-12-30  Bruno Haible  <bruno@clisp.org>
53235
53236         Unify 5 copies of the KMP code.
53237         * lib/str-kmp.h: New file.
53238         * lib/c-strcasestr.c: Include str-kmp.h.
53239         (knuth_morris_pratt): Remove function.
53240         (c_strcasestr): Update.
53241         * lib/c-strstr.c: Include str-kmp.h.
53242         (knuth_morris_pratt): Remove function.
53243         (c_strcasestr): Update.
53244         * lib/mbscasestr.c: Include str-kmp.h.
53245         (knuth_morris_pratt_unibyte): Remove function.
53246         * lib/mbsstr.c: Include str-kmp.h.
53247         (knuth_morris_pratt_unibyte): Remove function.
53248         * lib/strcasestr.c: Include str-kmp.h.
53249         (knuth_morris_pratt): Remove function.
53250         (strcasestr): Update.
53251         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53252         * modules/c-strstr (Files): Likewise.
53253         * modules/mbscasestr (Files): Likewise.
53254         * modules/mbsstr (Files): Likewise.
53255         * modules/strcasestr (Files): Likewise.
53256         Suggested by Paul Eggert.
53257
53258 2007-12-30  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53261         defined.
53262
53263 2007-12-30  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/xmalloca.h: Include xalloc.h.
53266         (xnmalloca): New macro.
53267
53268 2007-12-30  Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/malloca.h (nmalloca): New macro.
53271         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53272         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53273         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53274         knuth_morris_pratt_multibyte): Likewise.
53275         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53276         knuth_morris_pratt_multibyte): Likewise.
53277         * lib/memmem.c (knuth_morris_pratt): Likewise.
53278         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53279
53280 2007-12-25  Bruno Haible  <bruno@clisp.org>
53281
53282         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53283         * lib/glob.c: Don't include openat.h.
53284         (link_exists2_p): Add back the code that deals with the
53285         !GLOB_ALTDIRFUNC case.
53286         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53287         let it do the filename concatenation.
53288         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53289         * modules/glob (Depends-on): Remove openat.
53290
53291 2007-12-31  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/dirfd (License): Change to LGPLv2+.
53294         Approved by Jim Meyering.
53295
53296 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53299         when multiplying M by sizeof (size_t).
53300
53301 2007-12-10  Martin Lambers  <marlam@marlam.de>
53302
53303         Override getpagesize on mingw.
53304         * lib/getpagesize.c: New file.
53305         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53306         * modules/getpagesize (Files): Add lib/getpagesize.c.
53307         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53309         REPLACE_GETPAGESIZE.
53310         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53311
53312 2007-12-25  Bruno Haible  <bruno@clisp.org>
53313
53314         * modules/localcharset (Notice): New field.
53315         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53316         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53317
53318 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53319             Bruno Haible  <bruno@clisp.org>
53320
53321         Avoid using the syntax symbol() in formatted documentation.
53322         * MODULES.html.sh (func_module): When replacing symbol() with a
53323         hyperlink, remove the parentheses. Show an error if some remain.
53324         Recognize and render the '...' syntax.
53325         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53326         Rework. Add paragraph about GCC's inlining.
53327         * doc/alloca.texi: Likewise.
53328         * doc/error.texi: Remove parentheses from symbol reference.
53329         * doc/gnulib-intro.texi: Likewise.
53330         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53331         * modules/fnmatch (Description): Reword to say "the ... function".
53332         * modules/full-read (Description): Likewise.
53333         * modules/full-write (Description): Likewise.
53334         * modules/safe-read (Description): Likewise.
53335         * modules/safe-write (Description): Likewise.
53336         * modules/strchrnul (Description): Likewise.
53337         * modules/trim (Description): Likewise.
53338         * modules/error (Description): Remove parentheses from symbol
53339         references.
53340         * modules/verror (Description): Likewise.
53341         Reported by Karl Berry.
53342
53343 2007-12-25  Bruno Haible  <bruno@clisp.org>
53344
53345         Fixup after 2007-10-16 commit.
53346         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53347
53348 2007-12-24  Bruno Haible  <bruno@clisp.org>
53349
53350         Make --enable-relocatable work with DESTDIR.
53351         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53352         to compute installdir from destprog.
53353         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53354         also set the RELOC_DESTDIR variable.
53355         Reported by Левашев Иван <octagram@bluebottle.com>.
53356
53357 2007-12-24  Bruno Haible  <bruno@clisp.org>
53358
53359         Fix link error due to xalloc_die().
53360         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53361         of xreadlink.
53362         * lib/relocwrapper.c: Update comments.
53363         * build-aux/install-reloc: Remove xreadlink.c from file list.
53364         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53365         xreadlink.c.
53366         Reported by Левашев Иван <octagram@bluebottle.com>.
53367
53368 2007-12-24  Bruno Haible  <bruno@clisp.org>
53369
53370         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53371         * lib/setenv.h: Remove file.
53372         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53373         lib/setenv.h.
53374         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53375         (Depends-on): Add stdlib.
53376         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53377         gl_FUNC_UNSETENV.
53378         (Include): Replace setenv.h with <stdlib.h>.
53379         * modules/unsetenv: New file.
53380         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53381         * lib/unsetenv.c: Include <stdlib.h> first.
53382         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53383         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53384         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53385         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53386         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53387         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53389         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53390         * doc/functions/unsetenv.texi: Update.
53391         * modules/xsetenv (Depends-on): Add unsetenv.
53392         * modules/getdate (Depends-on): Likewise.
53393         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53394         * lib/xsetenv.c: Don't include setenv.h.
53395         * lib/getdate.y: Likewise.
53396         * lib/relocwrapper.c: Likewise.
53397         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53398         (Depends-on): Add stdlib.
53399         * NEWS: Mention the changes.
53400         Reported by Левашев Иван <octagram@bluebottle.com>.
53401
53402 2007-12-23  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53405         indentation.
53406
53407 2007-12-23  Bruno Haible  <bruno@clisp.org>
53408
53409         * lib/c-strcasestr.c: Add more comments.
53410         * lib/c-strstr.c: Likewise.
53411         * lib/mbscasestr.c: Likewise.
53412         * lib/mbsstr.c: Likewise.
53413         * lib/strcasestr.c: Likewise.
53414         * lib/memmem.c: Likewise.
53415
53416 2007-12-23  Bruno Haible  <bruno@clisp.org>
53417
53418         * tests/test-memmem.c: Include <string.h> first.
53419
53420 2007-12-22  Bruno Haible  <bruno@clisp.org>
53421
53422         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53423         the contents of $testsbase.
53424         Reported by Ralf Wildenhues.
53425
53426 2007-12-22  Bruno Haible  <bruno@clisp.org>
53427
53428         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53429         two variables local_ldadd_before, local_ldadd_last.
53430
53431 2007-12-20  Eric Blake  <ebb9@byu.net>
53432
53433         Work around circular library issue when cross-compiling.
53434         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53435         that progname.o does not need to pull in rpl_memcmp.
53436
53437 2007-12-19  Eric Blake  <ebb9@byu.net>
53438
53439         Fix memmem to avoid O(n^2) worst-case complexity.
53440         * lib/memmem.c (knuth_morris_pratt): New function.
53441         (memmem): Use it if first few naive iterations fail.
53442         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53443         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53444         * modules/memchr (License): Likewise.
53445         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53446         malloca.
53447         * tests/test-memmem.c: Rewrite, borrowing ideas from
53448         test-mbsstr1.c; the old version wouldn't even compile!
53449         * modules/memmem-tests: New file.
53450         * lib/string.in.h (rpl_memmem): Add declaration.
53451         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53453         REPLACE_MEMMEM.
53454
53455 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53458         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53459         before any system include files, and undef after them all.  This
53460         should fix a problem on VMS reported by John E. Malmberg in
53461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53462
53463 2007-12-17  Eric Blake  <ebb9@byu.net>
53464
53465         Revert addition of verify, for BSD/OS.
53466         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53467         can't handle large files, for the sake of obsolete platforms.
53468         * modules/fseeko (Depends-on): Remove verify.
53469         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53470         * doc/functions/ftello.texi (ftello): Likewise.
53471         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53472         Reported by Larry Jones.
53473
53474 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53475
53476         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53477         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53478
53479 2007-12-17  Jim Meyering  <meyering@redhat.com>
53480
53481         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53482         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53483         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53484         * modules/getcwd (Depends-on): Add openat.
53485         Reported by Petr Salinger.
53486
53487 2007-12-17  Bruno Haible  <bruno@clisp.org>
53488
53489         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53490         avoid a segmentation fault of the configure test on x86_64 systems.
53491
53492 2007-12-15  Jim Meyering  <meyering@redhat.com>
53493
53494         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53495
53496 2007-12-13  Eric Blake  <ebb9@byu.net>
53497
53498         Another fseek test.
53499         * tests/test-fseek.c (main): Also test ungetc handling.
53500         * tests/test-fseeko.c (main): Likewise.
53501         * modules/fseeko (Depends-on): Add verify.
53502         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53503         large.
53504         Reported by Larry Jones.
53505
53506         Fix fseeko on mingw.
53507         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53508         seek.
53509
53510         Beef up fseek tests.
53511         * tests/test-fseek.c (main): Also test eof handling.
53512         * tests/test-fseeko.c (main): Likewise.
53513         Reported by Larry Jones.
53514
53515 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53516
53517         Fix fseeko on BSD-based platforms.
53518         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53519         successful seek.
53520
53521 2007-12-12  Eric Blake  <ebb9@byu.net>
53522
53523         Allow circular dependency of separate libtests.a
53524         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53525         when use_libtests.
53526
53527 2007-12-11  Eric Blake  <ebb9@byu.net>
53528
53529         Fix bug with -0.0L in previous patch.
53530         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53531         * tests/test-isnan.c (main): Also test on zeroes.
53532         * tests/test-isnanf.c (main): Likewise.
53533         * tests/test-isnanl.h (main): Likewise.
53534
53535         Detect pseudo-denormals on x86 even when cross-compiling.
53536         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53537         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53538         invalid bit patterns that happen to satisfy ==.
53539
53540         Avoid link failures with separate libtests.a.
53541         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53542         last, to satisfy circular dependencies.
53543
53544 2007-12-11  Eric Blake  <ebb9@byu.net>
53545         and Bruno Haible  <bruno@clisp.org>
53546
53547         Fix OpenBSD 4.0 <float.h> handling of long double.
53548         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53549         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53550         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53551
53552 2007-12-11  Jim Meyering  <meyering@redhat.com>
53553
53554         * users.txt: Add libvirt.
53555
53556         Support versions of autoconf prior to 2.59c.
53557         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53558         if it is not already defined.
53559
53560 2007-12-09  Bruno Haible  <bruno@clisp.org>
53561
53562         Let 'gnulib-tool --import' collect sources needed for the tests in
53563         tests/ rather than in lib/.
53564         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53565         argument. If true, add rules to generate libtests.a, and put libtests.a
53566         into $(LDADD). Consider source files in subdirectories and set
53567         uses_subdirs.
53568         (func_emit_initmacro_start, func_emit_initmacro_end,
53569         func_emit_initmacro_done): Pass all arguments explicitly.
53570         (func_import): Determine two module lists main_modules,
53571         testsrelated_modules. Determine use_libtests. Determine two variables
53572         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53573         instead of just sed_transform_lib_file. Determine two variables
53574         main_files and testsrelated_files. Compute 'files' as the union of
53575         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53576         func_add_or_update. In the generated gnulib-comp.m4, collect the
53577         object files for tests/ in different variables than those for lib/.
53578         Substitute LIBTESTS_LIBDEPS.
53579         (func_create_testdir): Combine the uses_subdirs results from
53580         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53581
53582 2007-12-09  Bruno Haible  <bruno@clisp.org>
53583
53584         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53585         the build-aux directory.
53586
53587 2007-12-09  Bruno Haible  <bruno@clisp.org>
53588
53589         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53590         introduced on 2006-09-09.
53591
53592 2007-12-07  Jim Meyering  <meyering@redhat.com>
53593
53594         Let these macros work also with autoconf-2.59.
53595         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53596         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53597         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53598
53599 2007-12-06  Jim Meyering  <meyering@redhat.com>
53600
53601         Avoid a configure-time syntax error in gl_FUNC_ACL.
53602         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53603         function in each branch, before testing the cache variable.
53604
53605 2007-12-04  Eric Blake  <ebb9@byu.net>
53606
53607         Make scripts executable.
53608         * build-aux/config.guess: Add execute permissions.
53609         * build-aux/config.sub: Likewise.
53610         * build-aux/gendocs.sh: Likewise.
53611
53612         Fix frexp on mingw.
53613         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53614         cross-compiling.
53615         * doc/functions/frexp.texi (frexp): Document the bug.
53616
53617         Make cygwin fseeko check more reliable.
53618         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53619         version numbers, rather than unrelated feature check.
53620         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53621         * doc/functions/ftello.texi (ftello): Likewise.
53622         Reported by Bruno Haible.
53623
53624         * m4/strerror.m4: Bump version number.
53625
53626 2007-12-03  Bruno Haible  <bruno@clisp.org>
53627
53628         * doc/functions/mprotect.texi: Mention the mingw problem.
53629
53630 2007-12-03  Eric Blake  <ebb9@byu.net>
53631
53632         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53633         REPLACE_STRERROR is initialized before this macro.
53634
53635 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53638         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53639         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53640         put -lsec in even for programs other than 'ls'.  This fixes a problem
53641         for gettext reported by Bruno Haible in
53642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53643         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53644         Add support for Solaris 10.  This isn't efficient, but should get the
53645         job done for now.
53646
53647 2007-12-03  James Youngman  <jay@gnu.org>
53648
53649         * doc/regexprops-generic.texi: change "an close-group" to "a
53650         close-group" and "illegal" to "not allowed".
53651
53652 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53653
53654         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53655         pr_byname.h. Needed for the rare case when the maintainer has done
53656         "make maintainer-clean" in the source directory and then attempts a
53657         build outside the source directory.
53658         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53659         scripts_byname.h.
53660
53661 2007-12-02  Martin Lambers <marlam@marlam.de>
53662             Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/getpagesize.h: Remove file.
53665         * lib/unistd.in.h: Include declaration of getpagesize here.
53666         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53667         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53668         HAVE_SYS_PARAM_H.
53669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53670         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53671         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53672         (Depends-on): Add unistd.
53673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53674         (Include): Use <unistd.h> instead of getpagesize.h.
53675         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53676         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53677         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53678         gl_GETPAGESIZE invocation, already handled by module dependency.
53679         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53680
53681 2007-12-02  Bruno Haible  <bruno@clisp.org>
53682
53683         * modules/strings-tests: New file.
53684         * tests/test-strings.c: New file.
53685
53686         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53687         * lib/strings.in.h: New file.
53688         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53689         * m4/strings_h.m4: New file.
53690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53691         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53692         * modules/strings: New file.
53693         * modules/string (Makefile.am): Update.
53694         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53695         Reported by Karl Berry.
53696
53697 2007-12-01  Eric Blake  <ebb9@byu.net>
53698
53699         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53700         accomodate fix in cygwin 1.5.25.
53701
53702 2007-12-01  Jim Meyering  <meyering@redhat.com>
53703
53704         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53705         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53706         that would inhibit utf8-optimization of a regexp containing line-
53707         or buffer-anchors, e.g., `^', `$'.
53708
53709 2007-11-30  Bruno Haible  <bruno@clisp.org>
53710
53711         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53712         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53713         glthread_recursive_lock_init.
53714         * lib/lock.c (glthread_recursive_lock_init)
53715         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53716         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53717
53718 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53719
53720         New function qset_acl, like set_acl but with syscall semantics.
53721         * lib/acl.h (qset_acl): New decl.
53722         * lib/acl.c (qset_acl): New function.
53723         (set_acl): Use new function.  Use more-consistent diagnostics.
53724
53725 2007-11-28  Jim Meyering  <meyering@redhat.com>
53726
53727         * modules/physmem (License): Change from GPL to LGPLv2+.
53728
53729 2007-11-26  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53732         'long double' type has excess precision.
53733         Reported by Jim Meyering in
53734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53735
53736 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53737
53738         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53739         Sync from <http://gnu.org/licenses>.
53740         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53741         with license text from same location.
53742         * doc/maintain.texi, doc/standards.texi:  Sync from
53743         <http://savannah.gnu.org/projects/gnustandards>.
53744
53745 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53746         and Jim Meyering  <meyering@redhat.com>
53747
53748         Adjust getdate' grammar to accept a slightly more regular language.
53749         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53750         Before, the former was rejected.
53751         * lib/getdate.y (digits_to_date_time): New function, factored
53752         out of ...
53753         (number): ...here.  Just call digits_to_date_time.
53754         (hybrid): New non-terminal to handle an <unsigned number,
53755         signed relative offset> sequence consistently.
53756
53757 2007-11-18  Jim Meyering  <meyering@redhat.com>
53758
53759         Pull my changes from coreutils:
53760         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53761         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53762         use of $gnulib_tool_option_extras, so that it's separated from the
53763         preceding argument.
53764
53765         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53766         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53767         parent destination directories before copying a file into place.
53768
53769 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53770
53771         bootstrap: work also with 4-argument variant of AC_INIT
53772         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53773
53774 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53775
53776         Port test-getaddrinfo to Solaris.
53777         Problem reported by Bruno Haible in
53778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53779         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53780         explanation of setting 'hints'.
53781         Don't reject an implementation merely because it returns EAI_SERVICE.
53782         (EAI_SERVICE): Define to 0 if not defined.
53783
53784 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53785
53786         The license of gnu-make and posix-shell is now "GPLed build tool".
53787         * modules/gnu-make (License): Likewise.
53788         * modules/posix-shell (License): Likewise.
53789
53790         New module posix-shell, for determining a POSIX shell
53791         or perhaps something that is close enough to a POSIX shell.
53792         * m4/posix-shell.m4: New file.
53793         * modules/posix-shell: New file.
53794
53795         * MODULES.html.sh: Mention new module.
53796
53797         New module gnu-make, for determining whether we're using GNU Make.
53798         * m4/gnu-make.m4: New file.
53799         * modules/gnu-make: New file.
53800         * MODULES.html.sh: Mention new module.
53801
53802 2007-11-14  Jim Meyering  <meyering@redhat.com>
53803
53804         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53805         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53806         use this macro to create a function _definition_.
53807         Remove useless "#undef ARGMATCH_DIE".
53808
53809 2007-11-14  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/config.charset: Update for OpenBSD 4.1.
53812         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53813
53814 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53815
53816         Document 64-bit #if problems in stdint.texi.
53817         * doc/headers/stdint.texi (stdint.h): Mention problems with
53818         64-bit-#if, and how to work around them.
53819
53820         Don't insist on 'long long int' support in the preprocessor.  It
53821         breaks too many things.  For example, PRIdMAX still uses a 'long
53822         long int' format with the latest Sun compiler, even though
53823         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53824         preprocessor problem.  This causes the latest coreutils to dump
53825         core on Solaris 10 sparc with the Sun C compiler.
53826         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53827         the troublesome expressions at configure-time, not at #if-time.
53828         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53829         preprocessor.
53830         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53831         compile-time C checks, done at 'configure'-time.
53832         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53833         * modules/inttypes (Makefile): Substitute the new symbols that
53834         gl_INTTYPES_H now generates.
53835         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53836
53837 2007-11-12  Bruno Haible  <bruno@clisp.org>
53838
53839         Tests for Unicode character classification functions.
53840
53841         * modules/unictype/bidicategory-byname-tests: New file.
53842         * modules/unictype/bidicategory-name-tests: New file.
53843         * modules/unictype/bidicategory-of-tests: New file.
53844         * modules/unictype/bidicategory-test-tests: New file.
53845         * modules/unictype/block-list-tests: New file.
53846         * modules/unictype/block-of-tests: New file.
53847         * modules/unictype/block-test-tests: New file.
53848         * modules/unictype/category-C-tests: New file.
53849         * modules/unictype/category-Cc-tests: New file.
53850         * modules/unictype/category-Cf-tests: New file.
53851         * modules/unictype/category-Cn-tests: New file.
53852         * modules/unictype/category-Co-tests: New file.
53853         * modules/unictype/category-Cs-tests: New file.
53854         * modules/unictype/category-L-tests: New file.
53855         * modules/unictype/category-Ll-tests: New file.
53856         * modules/unictype/category-Lm-tests: New file.
53857         * modules/unictype/category-Lo-tests: New file.
53858         * modules/unictype/category-Lt-tests: New file.
53859         * modules/unictype/category-Lu-tests: New file.
53860         * modules/unictype/category-M-tests: New file.
53861         * modules/unictype/category-Mc-tests: New file.
53862         * modules/unictype/category-Me-tests: New file.
53863         * modules/unictype/category-Mn-tests: New file.
53864         * modules/unictype/category-N-tests: New file.
53865         * modules/unictype/category-Nd-tests: New file.
53866         * modules/unictype/category-Nl-tests: New file.
53867         * modules/unictype/category-No-tests: New file.
53868         * modules/unictype/category-P-tests: New file.
53869         * modules/unictype/category-Pc-tests: New file.
53870         * modules/unictype/category-Pd-tests: New file.
53871         * modules/unictype/category-Pe-tests: New file.
53872         * modules/unictype/category-Pf-tests: New file.
53873         * modules/unictype/category-Pi-tests: New file.
53874         * modules/unictype/category-Po-tests: New file.
53875         * modules/unictype/category-Ps-tests: New file.
53876         * modules/unictype/category-S-tests: New file.
53877         * modules/unictype/category-Sc-tests: New file.
53878         * modules/unictype/category-Sk-tests: New file.
53879         * modules/unictype/category-Sm-tests: New file.
53880         * modules/unictype/category-So-tests: New file.
53881         * modules/unictype/category-Z-tests: New file.
53882         * modules/unictype/category-Zl-tests: New file.
53883         * modules/unictype/category-Zp-tests: New file.
53884         * modules/unictype/category-Zs-tests: New file.
53885         * modules/unictype/category-and-not-tests: New file.
53886         * modules/unictype/category-and-tests: New file.
53887         * modules/unictype/category-byname-tests: New file.
53888         * modules/unictype/category-name-tests: New file.
53889         * modules/unictype/category-none-tests: New file.
53890         * modules/unictype/category-of-tests: New file.
53891         * modules/unictype/category-or-tests: New file.
53892         * modules/unictype/category-test-withtable-tests: New file.
53893         * modules/unictype/combining-class-tests: New file.
53894         * modules/unictype/ctype-alnum-tests: New file.
53895         * modules/unictype/ctype-alpha-tests: New file.
53896         * modules/unictype/ctype-blank-tests: New file.
53897         * modules/unictype/ctype-cntrl-tests: New file.
53898         * modules/unictype/ctype-digit-tests: New file.
53899         * modules/unictype/ctype-graph-tests: New file.
53900         * modules/unictype/ctype-lower-tests: New file.
53901         * modules/unictype/ctype-print-tests: New file.
53902         * modules/unictype/ctype-punct-tests: New file.
53903         * modules/unictype/ctype-space-tests: New file.
53904         * modules/unictype/ctype-upper-tests: New file.
53905         * modules/unictype/ctype-xdigit-tests: New file.
53906         * modules/unictype/decimal-digit-tests: New file.
53907         * modules/unictype/digit-tests: New file.
53908         * modules/unictype/mirror-tests: New file.
53909         * modules/unictype/numeric-tests: New file.
53910         * modules/unictype/property-alphabetic-tests: New file.
53911         * modules/unictype/property-ascii-hex-digit-tests: New file.
53912         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53913         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53914         * modules/unictype/property-bidi-block-separator-tests: New file.
53915         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53916         * modules/unictype/property-bidi-common-separator-tests: New file.
53917         * modules/unictype/property-bidi-control-tests: New file.
53918         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53919         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53920         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53921         * modules/unictype/property-bidi-european-digit-tests: New file.
53922         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53923         * modules/unictype/property-bidi-left-to-right-tests: New file.
53924         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53925         * modules/unictype/property-bidi-other-neutral-tests: New file.
53926         * modules/unictype/property-bidi-pdf-tests: New file.
53927         * modules/unictype/property-bidi-segment-separator-tests: New file.
53928         * modules/unictype/property-bidi-whitespace-tests: New file.
53929         * modules/unictype/property-byname-tests: New file.
53930         * modules/unictype/property-combining-tests: New file.
53931         * modules/unictype/property-composite-tests: New file.
53932         * modules/unictype/property-currency-symbol-tests: New file.
53933         * modules/unictype/property-dash-tests: New file.
53934         * modules/unictype/property-decimal-digit-tests: New file.
53935         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53936         * modules/unictype/property-deprecated-tests: New file.
53937         * modules/unictype/property-diacritic-tests: New file.
53938         * modules/unictype/property-extender-tests: New file.
53939         * modules/unictype/property-format-control-tests: New file.
53940         * modules/unictype/property-grapheme-base-tests: New file.
53941         * modules/unictype/property-grapheme-extend-tests: New file.
53942         * modules/unictype/property-grapheme-link-tests: New file.
53943         * modules/unictype/property-hex-digit-tests: New file.
53944         * modules/unictype/property-hyphen-tests: New file.
53945         * modules/unictype/property-id-continue-tests: New file.
53946         * modules/unictype/property-id-start-tests: New file.
53947         * modules/unictype/property-ideographic-tests: New file.
53948         * modules/unictype/property-ids-binary-operator-tests: New file.
53949         * modules/unictype/property-ids-trinary-operator-tests: New file.
53950         * modules/unictype/property-ignorable-control-tests: New file.
53951         * modules/unictype/property-iso-control-tests: New file.
53952         * modules/unictype/property-join-control-tests: New file.
53953         * modules/unictype/property-left-of-pair-tests: New file.
53954         * modules/unictype/property-line-separator-tests: New file.
53955         * modules/unictype/property-logical-order-exception-tests: New file.
53956         * modules/unictype/property-lowercase-tests: New file.
53957         * modules/unictype/property-math-tests: New file.
53958         * modules/unictype/property-non-break-tests: New file.
53959         * modules/unictype/property-not-a-character-tests: New file.
53960         * modules/unictype/property-numeric-tests: New file.
53961         * modules/unictype/property-other-alphabetic-tests: New file.
53962         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53963         * modules/unictype/property-other-grapheme-extend-tests: New file.
53964         * modules/unictype/property-other-id-continue-tests: New file.
53965         * modules/unictype/property-other-id-start-tests: New file.
53966         * modules/unictype/property-other-lowercase-tests: New file.
53967         * modules/unictype/property-other-math-tests: New file.
53968         * modules/unictype/property-other-uppercase-tests: New file.
53969         * modules/unictype/property-paired-punctuation-tests: New file.
53970         * modules/unictype/property-paragraph-separator-tests: New file.
53971         * modules/unictype/property-pattern-syntax-tests: New file.
53972         * modules/unictype/property-pattern-white-space-tests: New file.
53973         * modules/unictype/property-private-use-tests: New file.
53974         * modules/unictype/property-punctuation-tests: New file.
53975         * modules/unictype/property-quotation-mark-tests: New file.
53976         * modules/unictype/property-radical-tests: New file.
53977         * modules/unictype/property-sentence-terminal-tests: New file.
53978         * modules/unictype/property-soft-dotted-tests: New file.
53979         * modules/unictype/property-space-tests: New file.
53980         * modules/unictype/property-terminal-punctuation-tests: New file.
53981         * modules/unictype/property-test-tests: New file.
53982         * modules/unictype/property-titlecase-tests: New file.
53983         * modules/unictype/property-unassigned-code-value-tests: New file.
53984         * modules/unictype/property-unified-ideograph-tests: New file.
53985         * modules/unictype/property-uppercase-tests: New file.
53986         * modules/unictype/property-variation-selector-tests: New file.
53987         * modules/unictype/property-white-space-tests: New file.
53988         * modules/unictype/property-xid-continue-tests: New file.
53989         * modules/unictype/property-xid-start-tests: New file.
53990         * modules/unictype/property-zero-width-tests: New file.
53991         * modules/unictype/scripts-tests: New file.
53992         * modules/unictype/syntax-c-ident-tests: New file.
53993         * modules/unictype/syntax-c-whitespace-tests: New file.
53994         * modules/unictype/syntax-java-ident-tests: New file.
53995         * modules/unictype/syntax-java-whitespace-tests: New file.
53996         * tests/unictype/test-bidi_byname.c: New file.
53997         * tests/unictype/test-bidi_name.c: New file.
53998         * tests/unictype/test-bidi_of.c: New file.
53999         * tests/unictype/test-bidi_test.c: New file.
54000         * tests/unictype/test-block_list.c: New file.
54001         * tests/unictype/test-block_of.c: New file.
54002         * tests/unictype/test-block_test.c: New file.
54003         * tests/unictype/test-categ_and.c: New file.
54004         * tests/unictype/test-categ_and_not.c: New file.
54005         * tests/unictype/test-categ_byname.c: New file.
54006         * tests/unictype/test-categ_name.c: New file.
54007         * tests/unictype/test-categ_none.c: New file.
54008         * tests/unictype/test-categ_of.c: New file.
54009         * tests/unictype/test-categ_or.c: New file.
54010         * tests/unictype/test-categ_test_withtable.c: New file.
54011         * tests/unictype/test-combining.c: New file.
54012         * tests/unictype/test-decdigit.c: New file.
54013         * tests/unictype/test-digit.c: New file.
54014         * tests/unictype/test-mirror.c: New file.
54015         * tests/unictype/test-numeric.c: New file.
54016         * tests/unictype/test-pr_byname.c: New file.
54017         * tests/unictype/test-pr_test.c: New file.
54018         * tests/unictype/test-predicate-part1.h: New file.
54019         * tests/unictype/test-predicate-part2.h: New file.
54020         * tests/unictype/test-scripts.c: New file.
54021         * tests/unictype/test-sy_c_ident.c: New file.
54022         * tests/unictype/test-sy_java_ident.c: New file.
54023
54024         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54025         for Unicode 5.0.0.
54026         * tests/unictype/test-categ_Cc.c: Likewise.
54027         * tests/unictype/test-categ_Cf.c: Likewise.
54028         * tests/unictype/test-categ_Cn.c: Likewise.
54029         * tests/unictype/test-categ_Co.c: Likewise.
54030         * tests/unictype/test-categ_Cs.c: Likewise.
54031         * tests/unictype/test-categ_L.c: Likewise.
54032         * tests/unictype/test-categ_Ll.c: Likewise.
54033         * tests/unictype/test-categ_Lm.c: Likewise.
54034         * tests/unictype/test-categ_Lo.c: Likewise.
54035         * tests/unictype/test-categ_Lt.c: Likewise.
54036         * tests/unictype/test-categ_Lu.c: Likewise.
54037         * tests/unictype/test-categ_M.c: Likewise.
54038         * tests/unictype/test-categ_Mc.c: Likewise.
54039         * tests/unictype/test-categ_Me.c: Likewise.
54040         * tests/unictype/test-categ_Mn.c: Likewise.
54041         * tests/unictype/test-categ_N.c: Likewise.
54042         * tests/unictype/test-categ_Nd.c: Likewise.
54043         * tests/unictype/test-categ_Nl.c: Likewise.
54044         * tests/unictype/test-categ_No.c: Likewise.
54045         * tests/unictype/test-categ_P.c: Likewise.
54046         * tests/unictype/test-categ_Pc.c: Likewise.
54047         * tests/unictype/test-categ_Pd.c: Likewise.
54048         * tests/unictype/test-categ_Pe.c: Likewise.
54049         * tests/unictype/test-categ_Pf.c: Likewise.
54050         * tests/unictype/test-categ_Pi.c: Likewise.
54051         * tests/unictype/test-categ_Po.c: Likewise.
54052         * tests/unictype/test-categ_Ps.c: Likewise.
54053         * tests/unictype/test-categ_S.c: Likewise.
54054         * tests/unictype/test-categ_Sc.c: Likewise.
54055         * tests/unictype/test-categ_Sk.c: Likewise.
54056         * tests/unictype/test-categ_Sm.c: Likewise.
54057         * tests/unictype/test-categ_So.c: Likewise.
54058         * tests/unictype/test-categ_Z.c: Likewise.
54059         * tests/unictype/test-categ_Zl.c: Likewise.
54060         * tests/unictype/test-categ_Zp.c: Likewise.
54061         * tests/unictype/test-categ_Zs.c: Likewise.
54062         * tests/unictype/test-ctype_alnum.c: Likewise.
54063         * tests/unictype/test-ctype_alpha.c: Likewise.
54064         * tests/unictype/test-ctype_blank.c: Likewise.
54065         * tests/unictype/test-ctype_cntrl.c: Likewise.
54066         * tests/unictype/test-ctype_digit.c: Likewise.
54067         * tests/unictype/test-ctype_graph.c: Likewise.
54068         * tests/unictype/test-ctype_lower.c: Likewise.
54069         * tests/unictype/test-ctype_print.c: Likewise.
54070         * tests/unictype/test-ctype_punct.c: Likewise.
54071         * tests/unictype/test-ctype_space.c: Likewise.
54072         * tests/unictype/test-ctype_upper.c: Likewise.
54073         * tests/unictype/test-ctype_xdigit.c: Likewise.
54074         * tests/unictype/test-decdigit.h: Likewise.
54075         * tests/unictype/test-digit.h: Likewise.
54076         * tests/unictype/test-numeric.h: Likewise.
54077         * tests/unictype/test-pr_alphabetic.c: Likewise.
54078         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54079         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54080         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54081         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54082         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54083         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54084         * tests/unictype/test-pr_bidi_control.c: Likewise.
54085         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54086         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54087         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54088         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54089         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54090         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54091         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54092         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54093         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54094         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54095         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54096         * tests/unictype/test-pr_combining.c: Likewise.
54097         * tests/unictype/test-pr_composite.c: Likewise.
54098         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54099         * tests/unictype/test-pr_dash.c: Likewise.
54100         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54101         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54102         * tests/unictype/test-pr_deprecated.c: Likewise.
54103         * tests/unictype/test-pr_diacritic.c: Likewise.
54104         * tests/unictype/test-pr_extender.c: Likewise.
54105         * tests/unictype/test-pr_format_control.c: Likewise.
54106         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54107         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54108         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54109         * tests/unictype/test-pr_hex_digit.c: Likewise.
54110         * tests/unictype/test-pr_hyphen.c: Likewise.
54111         * tests/unictype/test-pr_id_continue.c: Likewise.
54112         * tests/unictype/test-pr_id_start.c: Likewise.
54113         * tests/unictype/test-pr_ideographic.c: Likewise.
54114         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54115         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54116         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54117         * tests/unictype/test-pr_iso_control.c: Likewise.
54118         * tests/unictype/test-pr_join_control.c: Likewise.
54119         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54120         * tests/unictype/test-pr_line_separator.c: Likewise.
54121         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54122         * tests/unictype/test-pr_lowercase.c: Likewise.
54123         * tests/unictype/test-pr_math.c: Likewise.
54124         * tests/unictype/test-pr_non_break.c: Likewise.
54125         * tests/unictype/test-pr_not_a_character.c: Likewise.
54126         * tests/unictype/test-pr_numeric.c: Likewise.
54127         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54128         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54129         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54130         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54131         * tests/unictype/test-pr_other_id_start.c: Likewise.
54132         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54133         * tests/unictype/test-pr_other_math.c: Likewise.
54134         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54135         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54136         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54137         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54138         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54139         * tests/unictype/test-pr_private_use.c: Likewise.
54140         * tests/unictype/test-pr_punctuation.c: Likewise.
54141         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54142         * tests/unictype/test-pr_radical.c: Likewise.
54143         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54144         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54145         * tests/unictype/test-pr_space.c: Likewise.
54146         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54147         * tests/unictype/test-pr_titlecase.c: Likewise.
54148         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54149         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54150         * tests/unictype/test-pr_uppercase.c: Likewise.
54151         * tests/unictype/test-pr_variation_selector.c: Likewise.
54152         * tests/unictype/test-pr_white_space.c: Likewise.
54153         * tests/unictype/test-pr_xid_continue.c: Likewise.
54154         * tests/unictype/test-pr_xid_start.c: Likewise.
54155         * tests/unictype/test-pr_zero_width.c: Likewise.
54156         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54157         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54158
54159 2007-11-12  Bruno Haible  <bruno@clisp.org>
54160
54161         Unicode character classification functions.
54162         * lib/unictype.h: New file.
54163         * modules/unictype/base: New file.
54164         * modules/unictype/category-L: New file.
54165         * modules/unictype/category-Lu: New file.
54166         * modules/unictype/category-Ll: New file.
54167         * modules/unictype/category-Lt: New file.
54168         * modules/unictype/category-Lm: New file.
54169         * modules/unictype/category-Lo: New file.
54170         * modules/unictype/category-M: New file.
54171         * modules/unictype/category-Mn: New file.
54172         * modules/unictype/category-Mc: New file.
54173         * modules/unictype/category-Me: New file.
54174         * modules/unictype/category-N: New file.
54175         * modules/unictype/category-Nd: New file.
54176         * modules/unictype/category-Nl: New file.
54177         * modules/unictype/category-No: New file.
54178         * modules/unictype/category-P: New file.
54179         * modules/unictype/category-Pc: New file.
54180         * modules/unictype/category-Pd: New file.
54181         * modules/unictype/category-Ps: New file.
54182         * modules/unictype/category-Pe: New file.
54183         * modules/unictype/category-Pi: New file.
54184         * modules/unictype/category-Pf: New file.
54185         * modules/unictype/category-Po: New file.
54186         * modules/unictype/category-S: New file.
54187         * modules/unictype/category-Sm: New file.
54188         * modules/unictype/category-Sc: New file.
54189         * modules/unictype/category-Sk: New file.
54190         * modules/unictype/category-So: New file.
54191         * modules/unictype/category-Z: New file.
54192         * modules/unictype/category-Zs: New file.
54193         * modules/unictype/category-Zl: New file.
54194         * modules/unictype/category-Zp: New file.
54195         * modules/unictype/category-C: New file.
54196         * modules/unictype/category-Cc: New file.
54197         * modules/unictype/category-Cf: New file.
54198         * modules/unictype/category-Cs: New file.
54199         * modules/unictype/category-Co: New file.
54200         * modules/unictype/category-Cn: New file.
54201         * modules/unictype/category-or: New file.
54202         * modules/unictype/category-of: New file.
54203         * modules/unictype/category-test: New file.
54204         * modules/unictype/category-test-withtable: New file.
54205         * modules/unictype/category-byname: New file.
54206         * modules/unictype/category-none: New file.
54207         * modules/unictype/category-and: New file.
54208         * modules/unictype/category-and-not: New file.
54209         * modules/unictype/category-name: New file.
54210         * modules/unictype/combining-class: New file.
54211         * modules/unictype/category-all: New file.
54212         * modules/unictype/bidicategory-all: New file.
54213         * modules/unictype/bidicategory-byname: New file.
54214         * modules/unictype/bidicategory-name: New file.
54215         * modules/unictype/bidicategory-of: New file.
54216         * modules/unictype/bidicategory-test: New file.
54217         * modules/unictype/decimal-digit: New file.
54218         * modules/unictype/digit: New file.
54219         * modules/unictype/numeric: New file.
54220         * modules/unictype/mirror: New file.
54221         * modules/unictype/property-white-space: New file.
54222         * modules/unictype/property-alphabetic: New file.
54223         * modules/unictype/property-other-alphabetic: New file.
54224         * modules/unictype/property-not-a-character: New file.
54225         * modules/unictype/property-default-ignorable-code-point: New file.
54226         * modules/unictype/property-other-default-ignorable-code-point: New
54227         file.
54228         * modules/unictype/property-deprecated: New file.
54229         * modules/unictype/property-logical-order-exception: New file.
54230         * modules/unictype/property-variation-selector: New file.
54231         * modules/unictype/property-private-use: New file.
54232         * modules/unictype/property-unassigned-code-value: New file.
54233         * modules/unictype/property-uppercase: New file.
54234         * modules/unictype/property-other-uppercase: New file.
54235         * modules/unictype/property-lowercase: New file.
54236         * modules/unictype/property-other-lowercase: New file.
54237         * modules/unictype/property-titlecase: New file.
54238         * modules/unictype/property-soft-dotted: New file.
54239         * modules/unictype/property-id-start: New file.
54240         * modules/unictype/property-other-id-start: New file.
54241         * modules/unictype/property-id-continue: New file.
54242         * modules/unictype/property-other-id-continue: New file.
54243         * modules/unictype/property-xid-start: New file.
54244         * modules/unictype/property-xid-continue: New file.
54245         * modules/unictype/property-pattern-white-space: New file.
54246         * modules/unictype/property-pattern-syntax: New file.
54247         * modules/unictype/property-join-control: New file.
54248         * modules/unictype/property-grapheme-base: New file.
54249         * modules/unictype/property-grapheme-extend: New file.
54250         * modules/unictype/property-other-grapheme-extend: New file.
54251         * modules/unictype/property-grapheme-link: New file.
54252         * modules/unictype/property-bidi-control: New file.
54253         * modules/unictype/property-bidi-left-to-right: New file.
54254         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54255         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54256         * modules/unictype/property-bidi-european-digit: New file.
54257         * modules/unictype/property-bidi-eur-num-separator: New file.
54258         * modules/unictype/property-bidi-eur-num-terminator: New file.
54259         * modules/unictype/property-bidi-arabic-digit: New file.
54260         * modules/unictype/property-bidi-common-separator: New file.
54261         * modules/unictype/property-bidi-block-separator: New file.
54262         * modules/unictype/property-bidi-segment-separator: New file.
54263         * modules/unictype/property-bidi-whitespace: New file.
54264         * modules/unictype/property-bidi-non-spacing-mark: New file.
54265         * modules/unictype/property-bidi-boundary-neutral: New file.
54266         * modules/unictype/property-bidi-pdf: New file.
54267         * modules/unictype/property-bidi-embedding-or-override: New file.
54268         * modules/unictype/property-bidi-other-neutral: New file.
54269         * modules/unictype/property-hex-digit: New file.
54270         * modules/unictype/property-ascii-hex-digit: New file.
54271         * modules/unictype/property-ideographic: New file.
54272         * modules/unictype/property-unified-ideograph: New file.
54273         * modules/unictype/property-radical: New file.
54274         * modules/unictype/property-ids-binary-operator: New file.
54275         * modules/unictype/property-ids-trinary-operator: New file.
54276         * modules/unictype/property-zero-width: New file.
54277         * modules/unictype/property-space: New file.
54278         * modules/unictype/property-non-break: New file.
54279         * modules/unictype/property-iso-control: New file.
54280         * modules/unictype/property-format-control: New file.
54281         * modules/unictype/property-dash: New file.
54282         * modules/unictype/property-hyphen: New file.
54283         * modules/unictype/property-punctuation: New file.
54284         * modules/unictype/property-line-separator: New file.
54285         * modules/unictype/property-paragraph-separator: New file.
54286         * modules/unictype/property-quotation-mark: New file.
54287         * modules/unictype/property-sentence-terminal: New file.
54288         * modules/unictype/property-terminal-punctuation: New file.
54289         * modules/unictype/property-currency-symbol: New file.
54290         * modules/unictype/property-math: New file.
54291         * modules/unictype/property-other-math: New file.
54292         * modules/unictype/property-paired-punctuation: New file.
54293         * modules/unictype/property-left-of-pair: New file.
54294         * modules/unictype/property-combining: New file.
54295         * modules/unictype/property-composite: New file.
54296         * modules/unictype/property-decimal-digit: New file.
54297         * modules/unictype/property-numeric: New file.
54298         * modules/unictype/property-diacritic: New file.
54299         * modules/unictype/property-extender: New file.
54300         * modules/unictype/property-ignorable-control: New file.
54301         * modules/unictype/property-test: New file.
54302         * modules/unictype/property-byname: New file.
54303         * modules/unictype/property-all: New file.
54304         * modules/unictype/scripts: New file.
54305         * modules/unictype/scripts-all: New file.
54306         * modules/unictype/block-of: New file.
54307         * modules/unictype/block-test: New file.
54308         * modules/unictype/block-list: New file.
54309         * modules/unictype/block-all: New file.
54310         * modules/unictype/syntax-c-whitespace: New file.
54311         * modules/unictype/syntax-java-whitespace: New file.
54312         * modules/unictype/syntax-c-ident: New file.
54313         * modules/unictype/syntax-java-ident: New file.
54314         * modules/unictype/ctype-alnum: New file.
54315         * modules/unictype/ctype-alpha: New file.
54316         * modules/unictype/ctype-cntrl: New file.
54317         * modules/unictype/ctype-digit: New file.
54318         * modules/unictype/ctype-graph: New file.
54319         * modules/unictype/ctype-lower: New file.
54320         * modules/unictype/ctype-print: New file.
54321         * modules/unictype/ctype-punct: New file.
54322         * modules/unictype/ctype-space: New file.
54323         * modules/unictype/ctype-upper: New file.
54324         * modules/unictype/ctype-xdigit: New file.
54325         * modules/unictype/ctype-blank: New file.
54326         * lib/unictype/bidi_byname.c: New file.
54327         * lib/unictype/bidi_name.c: New file.
54328         * lib/unictype/bidi_of.c: New file.
54329         * lib/unictype/bidi_test.c: New file.
54330         * lib/unictype/bitmap.h: New file.
54331         * lib/unictype/block_test.c: New file.
54332         * lib/unictype/blocks.c: New file.
54333         * lib/unictype/categ_C.c: New file.
54334         * lib/unictype/categ_Cc.c: New file.
54335         * lib/unictype/categ_Cf.c: New file.
54336         * lib/unictype/categ_Cn.c: New file.
54337         * lib/unictype/categ_Co.c: New file.
54338         * lib/unictype/categ_Cs.c: New file.
54339         * lib/unictype/categ_L.c: New file.
54340         * lib/unictype/categ_Ll.c: New file.
54341         * lib/unictype/categ_Lm.c: New file.
54342         * lib/unictype/categ_Lo.c: New file.
54343         * lib/unictype/categ_Lt.c: New file.
54344         * lib/unictype/categ_Lu.c: New file.
54345         * lib/unictype/categ_M.c: New file.
54346         * lib/unictype/categ_Mc.c: New file.
54347         * lib/unictype/categ_Me.c: New file.
54348         * lib/unictype/categ_Mn.c: New file.
54349         * lib/unictype/categ_N.c: New file.
54350         * lib/unictype/categ_Nd.c: New file.
54351         * lib/unictype/categ_Nl.c: New file.
54352         * lib/unictype/categ_No.c: New file.
54353         * lib/unictype/categ_P.c: New file.
54354         * lib/unictype/categ_Pc.c: New file.
54355         * lib/unictype/categ_Pd.c: New file.
54356         * lib/unictype/categ_Pe.c: New file.
54357         * lib/unictype/categ_Pf.c: New file.
54358         * lib/unictype/categ_Pi.c: New file.
54359         * lib/unictype/categ_Po.c: New file.
54360         * lib/unictype/categ_Ps.c: New file.
54361         * lib/unictype/categ_S.c: New file.
54362         * lib/unictype/categ_Sc.c: New file.
54363         * lib/unictype/categ_Sk.c: New file.
54364         * lib/unictype/categ_Sm.c: New file.
54365         * lib/unictype/categ_So.c: New file.
54366         * lib/unictype/categ_Z.c: New file.
54367         * lib/unictype/categ_Zl.c: New file.
54368         * lib/unictype/categ_Zp.c: New file.
54369         * lib/unictype/categ_Zs.c: New file.
54370         * lib/unictype/categ_and.c: New file.
54371         * lib/unictype/categ_and_not.c: New file.
54372         * lib/unictype/categ_byname.c: New file.
54373         * lib/unictype/categ_name.c: New file.
54374         * lib/unictype/categ_none.c: New file.
54375         * lib/unictype/categ_of.c: New file.
54376         * lib/unictype/categ_or.c: New file.
54377         * lib/unictype/categ_test.c: New file.
54378         * lib/unictype/combining.c: New file.
54379         * lib/unictype/ctype_alnum.c: New file.
54380         * lib/unictype/ctype_alpha.c: New file.
54381         * lib/unictype/ctype_blank.c: New file.
54382         * lib/unictype/ctype_cntrl.c: New file.
54383         * lib/unictype/ctype_digit.c: New file.
54384         * lib/unictype/ctype_graph.c: New file.
54385         * lib/unictype/ctype_lower.c: New file.
54386         * lib/unictype/ctype_print.c: New file.
54387         * lib/unictype/ctype_punct.c: New file.
54388         * lib/unictype/ctype_space.c: New file.
54389         * lib/unictype/ctype_upper.c: New file.
54390         * lib/unictype/ctype_xdigit.c: New file.
54391         * lib/unictype/decdigit.c: New file.
54392         * lib/unictype/digit.c: New file.
54393         * lib/unictype/identsyntaxmap.h: New file.
54394         * lib/unictype/mirror.c: New file.
54395         * lib/unictype/numeric.c: New file.
54396         * lib/unictype/pr_alphabetic.c: New file.
54397         * lib/unictype/pr_ascii_hex_digit.c: New file.
54398         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54399         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54400         * lib/unictype/pr_bidi_block_separator.c: New file.
54401         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54402         * lib/unictype/pr_bidi_common_separator.c: New file.
54403         * lib/unictype/pr_bidi_control.c: New file.
54404         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54405         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54406         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54407         * lib/unictype/pr_bidi_european_digit.c: New file.
54408         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54409         * lib/unictype/pr_bidi_left_to_right.c: New file.
54410         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54411         * lib/unictype/pr_bidi_other_neutral.c: New file.
54412         * lib/unictype/pr_bidi_pdf.c: New file.
54413         * lib/unictype/pr_bidi_segment_separator.c: New file.
54414         * lib/unictype/pr_bidi_whitespace.c: New file.
54415         * lib/unictype/pr_byname.c: New file.
54416         * lib/unictype/pr_byname.gperf: New file.
54417         * lib/unictype/pr_combining.c: New file.
54418         * lib/unictype/pr_composite.c: New file.
54419         * lib/unictype/pr_currency_symbol.c: New file.
54420         * lib/unictype/pr_dash.c: New file.
54421         * lib/unictype/pr_decimal_digit.c: New file.
54422         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54423         * lib/unictype/pr_deprecated.c: New file.
54424         * lib/unictype/pr_diacritic.c: New file.
54425         * lib/unictype/pr_extender.c: New file.
54426         * lib/unictype/pr_format_control.c: New file.
54427         * lib/unictype/pr_grapheme_base.c: New file.
54428         * lib/unictype/pr_grapheme_extend.c: New file.
54429         * lib/unictype/pr_grapheme_link.c: New file.
54430         * lib/unictype/pr_hex_digit.c: New file.
54431         * lib/unictype/pr_hyphen.c: New file.
54432         * lib/unictype/pr_id_continue.c: New file.
54433         * lib/unictype/pr_id_start.c: New file.
54434         * lib/unictype/pr_ideographic.c: New file.
54435         * lib/unictype/pr_ids_binary_operator.c: New file.
54436         * lib/unictype/pr_ids_trinary_operator.c: New file.
54437         * lib/unictype/pr_ignorable_control.c: New file.
54438         * lib/unictype/pr_iso_control.c: New file.
54439         * lib/unictype/pr_join_control.c: New file.
54440         * lib/unictype/pr_left_of_pair.c: New file.
54441         * lib/unictype/pr_line_separator.c: New file.
54442         * lib/unictype/pr_logical_order_exception.c: New file.
54443         * lib/unictype/pr_lowercase.c: New file.
54444         * lib/unictype/pr_math.c: New file.
54445         * lib/unictype/pr_non_break.c: New file.
54446         * lib/unictype/pr_not_a_character.c: New file.
54447         * lib/unictype/pr_numeric.c: New file.
54448         * lib/unictype/pr_other_alphabetic.c: New file.
54449         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54450         * lib/unictype/pr_other_grapheme_extend.c: New file.
54451         * lib/unictype/pr_other_id_continue.c: New file.
54452         * lib/unictype/pr_other_id_start.c: New file.
54453         * lib/unictype/pr_other_lowercase.c: New file.
54454         * lib/unictype/pr_other_math.c: New file.
54455         * lib/unictype/pr_other_uppercase.c: New file.
54456         * lib/unictype/pr_paired_punctuation.c: New file.
54457         * lib/unictype/pr_paragraph_separator.c: New file.
54458         * lib/unictype/pr_pattern_syntax.c: New file.
54459         * lib/unictype/pr_pattern_white_space.c: New file.
54460         * lib/unictype/pr_private_use.c: New file.
54461         * lib/unictype/pr_punctuation.c: New file.
54462         * lib/unictype/pr_quotation_mark.c: New file.
54463         * lib/unictype/pr_radical.c: New file.
54464         * lib/unictype/pr_sentence_terminal.c: New file.
54465         * lib/unictype/pr_soft_dotted.c: New file.
54466         * lib/unictype/pr_space.c: New file.
54467         * lib/unictype/pr_terminal_punctuation.c: New file.
54468         * lib/unictype/pr_test.c: New file.
54469         * lib/unictype/pr_titlecase.c: New file.
54470         * lib/unictype/pr_unassigned_code_value.c: New file.
54471         * lib/unictype/pr_unified_ideograph.c: New file.
54472         * lib/unictype/pr_uppercase.c: New file.
54473         * lib/unictype/pr_variation_selector.c: New file.
54474         * lib/unictype/pr_white_space.c: New file.
54475         * lib/unictype/pr_xid_continue.c: New file.
54476         * lib/unictype/pr_xid_start.c: New file.
54477         * lib/unictype/pr_zero_width.c: New file.
54478         * lib/unictype/scripts.c: New file.
54479         * lib/unictype/sy_c_ident.c: New file.
54480         * lib/unictype/sy_c_whitespace.c: New file.
54481         * lib/unictype/sy_java_ident.c: New file.
54482         * lib/unictype/sy_java_whitespace.c: New file.
54483
54484         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54485         Unicode 5.0.0.
54486         * lib/unictype/blocks.h: Likewise.
54487         * lib/unictype/categ_C.h: Likewise.
54488         * lib/unictype/categ_Cc.h: Likewise.
54489         * lib/unictype/categ_Cf.h: Likewise.
54490         * lib/unictype/categ_Cn.h: Likewise.
54491         * lib/unictype/categ_Co.h: Likewise.
54492         * lib/unictype/categ_Cs.h: Likewise.
54493         * lib/unictype/categ_L.h: Likewise.
54494         * lib/unictype/categ_Ll.h: Likewise.
54495         * lib/unictype/categ_Lm.h: Likewise.
54496         * lib/unictype/categ_Lo.h: Likewise.
54497         * lib/unictype/categ_Lt.h: Likewise.
54498         * lib/unictype/categ_Lu.h: Likewise.
54499         * lib/unictype/categ_M.h: Likewise.
54500         * lib/unictype/categ_Mc.h: Likewise.
54501         * lib/unictype/categ_Me.h: Likewise.
54502         * lib/unictype/categ_Mn.h: Likewise.
54503         * lib/unictype/categ_N.h: Likewise.
54504         * lib/unictype/categ_Nd.h: Likewise.
54505         * lib/unictype/categ_Nl.h: Likewise.
54506         * lib/unictype/categ_No.h: Likewise.
54507         * lib/unictype/categ_P.h: Likewise.
54508         * lib/unictype/categ_Pc.h: Likewise.
54509         * lib/unictype/categ_Pd.h: Likewise.
54510         * lib/unictype/categ_Pe.h: Likewise.
54511         * lib/unictype/categ_Pf.h: Likewise.
54512         * lib/unictype/categ_Pi.h: Likewise.
54513         * lib/unictype/categ_Po.h: Likewise.
54514         * lib/unictype/categ_Ps.h: Likewise.
54515         * lib/unictype/categ_S.h: Likewise.
54516         * lib/unictype/categ_Sc.h: Likewise.
54517         * lib/unictype/categ_Sk.h: Likewise.
54518         * lib/unictype/categ_Sm.h: Likewise.
54519         * lib/unictype/categ_So.h: Likewise.
54520         * lib/unictype/categ_Z.h: Likewise.
54521         * lib/unictype/categ_Zl.h: Likewise.
54522         * lib/unictype/categ_Zp.h: Likewise.
54523         * lib/unictype/categ_Zs.h: Likewise.
54524         * lib/unictype/categ_of.h: Likewise.
54525         * lib/unictype/combining.h: Likewise.
54526         * lib/unictype/ctype_alnum.h: Likewise.
54527         * lib/unictype/ctype_alpha.h: Likewise.
54528         * lib/unictype/ctype_blank.h: Likewise.
54529         * lib/unictype/ctype_cntrl.h: Likewise.
54530         * lib/unictype/ctype_digit.h: Likewise.
54531         * lib/unictype/ctype_graph.h: Likewise.
54532         * lib/unictype/ctype_lower.h: Likewise.
54533         * lib/unictype/ctype_print.h: Likewise.
54534         * lib/unictype/ctype_punct.h: Likewise.
54535         * lib/unictype/ctype_space.h: Likewise.
54536         * lib/unictype/ctype_upper.h: Likewise.
54537         * lib/unictype/ctype_xdigit.h: Likewise.
54538         * lib/unictype/decdigit.h: Likewise.
54539         * lib/unictype/digit.h: Likewise.
54540         * lib/unictype/mirror.h: Likewise.
54541         * lib/unictype/numeric.h: Likewise.
54542         * lib/unictype/pr_alphabetic.h: Likewise.
54543         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54544         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54545         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54546         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54547         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54548         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54549         * lib/unictype/pr_bidi_control.h: Likewise.
54550         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54551         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54552         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54553         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54554         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54555         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54556         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54557         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54558         * lib/unictype/pr_bidi_pdf.h: Likewise.
54559         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54560         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54561         * lib/unictype/pr_combining.h: Likewise.
54562         * lib/unictype/pr_composite.h: Likewise.
54563         * lib/unictype/pr_currency_symbol.h: Likewise.
54564         * lib/unictype/pr_dash.h: Likewise.
54565         * lib/unictype/pr_decimal_digit.h: Likewise.
54566         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54567         * lib/unictype/pr_deprecated.h: Likewise.
54568         * lib/unictype/pr_diacritic.h: Likewise.
54569         * lib/unictype/pr_extender.h: Likewise.
54570         * lib/unictype/pr_format_control.h: Likewise.
54571         * lib/unictype/pr_grapheme_base.h: Likewise.
54572         * lib/unictype/pr_grapheme_extend.h: Likewise.
54573         * lib/unictype/pr_grapheme_link.h: Likewise.
54574         * lib/unictype/pr_hex_digit.h: Likewise.
54575         * lib/unictype/pr_hyphen.h: Likewise.
54576         * lib/unictype/pr_id_continue.h: Likewise.
54577         * lib/unictype/pr_id_start.h: Likewise.
54578         * lib/unictype/pr_ideographic.h: Likewise.
54579         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54580         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54581         * lib/unictype/pr_ignorable_control.h: Likewise.
54582         * lib/unictype/pr_iso_control.h: Likewise.
54583         * lib/unictype/pr_join_control.h: Likewise.
54584         * lib/unictype/pr_left_of_pair.h: Likewise.
54585         * lib/unictype/pr_line_separator.h: Likewise.
54586         * lib/unictype/pr_logical_order_exception.h: Likewise.
54587         * lib/unictype/pr_lowercase.h: Likewise.
54588         * lib/unictype/pr_math.h: Likewise.
54589         * lib/unictype/pr_non_break.h: Likewise.
54590         * lib/unictype/pr_not_a_character.h: Likewise.
54591         * lib/unictype/pr_numeric.h: Likewise.
54592         * lib/unictype/pr_other_alphabetic.h: Likewise.
54593         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54594         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54595         * lib/unictype/pr_other_id_continue.h: Likewise.
54596         * lib/unictype/pr_other_id_start.h: Likewise.
54597         * lib/unictype/pr_other_lowercase.h: Likewise.
54598         * lib/unictype/pr_other_math.h: Likewise.
54599         * lib/unictype/pr_other_uppercase.h: Likewise.
54600         * lib/unictype/pr_paired_punctuation.h: Likewise.
54601         * lib/unictype/pr_paragraph_separator.h: Likewise.
54602         * lib/unictype/pr_pattern_syntax.h: Likewise.
54603         * lib/unictype/pr_pattern_white_space.h: Likewise.
54604         * lib/unictype/pr_private_use.h: Likewise.
54605         * lib/unictype/pr_punctuation.h: Likewise.
54606         * lib/unictype/pr_quotation_mark.h: Likewise.
54607         * lib/unictype/pr_radical.h: Likewise.
54608         * lib/unictype/pr_sentence_terminal.h: Likewise.
54609         * lib/unictype/pr_soft_dotted.h: Likewise.
54610         * lib/unictype/pr_space.h: Likewise.
54611         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54612         * lib/unictype/pr_titlecase.h: Likewise.
54613         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54614         * lib/unictype/pr_unified_ideograph.h: Likewise.
54615         * lib/unictype/pr_uppercase.h: Likewise.
54616         * lib/unictype/pr_variation_selector.h: Likewise.
54617         * lib/unictype/pr_white_space.h: Likewise.
54618         * lib/unictype/pr_xid_continue.h: Likewise.
54619         * lib/unictype/pr_xid_start.h: Likewise.
54620         * lib/unictype/pr_zero_width.h: Likewise.
54621         * lib/unictype/scripts.h: Likewise.
54622         * lib/unictype/scripts_byname.gperf: Likewise.
54623         * lib/unictype/sy_c_ident.h: Likewise.
54624         * lib/unictype/sy_c_whitespace.h: Likewise.
54625         * lib/unictype/sy_java_ident.h: Likewise.
54626         * lib/unictype/sy_java_whitespace.h: Likewise.
54627
54628         * lib/unictype/Makefile: New file.
54629         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54630         glibc.
54631         * lib/unictype/3level.h: New file, copied from glibc.
54632         * lib/unictype/3levelbit.h: New file.
54633
54634 2007-11-11  Bruno Haible  <bruno@clisp.org>
54635
54636         * modules/gperf: New file.
54637         * modules/iconv_open (Depends-on): Add it.
54638         (Makefile.am): Remove the GPERF definition.
54639
54640 2007-11-11  Bruno Haible  <bruno@clisp.org>
54641
54642         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54643         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54644
54645 2007-11-11  Bruno Haible  <bruno@clisp.org>
54646
54647         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54648         (usage): Remove function.
54649
54650 2007-11-11  Bruno Haible  <bruno@clisp.org>
54651
54652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54653         gl_FUNC_CEILF_LIBS.
54654         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54655         gl_FUNC_CEIL_LIBS.
54656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54657         gl_FUNC_CEILL_LIBS.
54658         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54659         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54660         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54661
54662 2007-11-11  Bruno Haible  <bruno@clisp.org>
54663
54664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54665         roundf were declared but do not exist on functions.
54666         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54667         roundl were declared but do not exist on functions.
54668         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54669         HAVE_FLOORL_AND_CEILL, respectively.
54670         Needed for Sun C on Solaris 10.
54671
54672 2007-11-11  Bruno Haible  <bruno@clisp.org>
54673
54674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54675         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54676         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54677         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54679         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54680         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54681         HAVE_DECL_ROUNDF.
54682         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54683         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54685         of HAVE_DECL_ROUND*.
54686         * modules/math (Makefile.am): Update.
54687
54688 2007-11-10  Bruno Haible  <bruno@clisp.org>
54689
54690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54691         ptrdiff_t as m4/intl.m4.
54692
54693 2007-11-10  Jim Meyering  <meyering@redhat.com>
54694
54695         Avoid link failure for the argmatch test.
54696         * tests/test-argmatch.c (usage): Define function to avoid a link
54697         failure: argmatch_die requires a usage function.
54698
54699 2007-11-09  Bruno Haible  <bruno@clisp.org>
54700
54701         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54702         * doc/functions/vsnprintf.texi: Likewise.
54703         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54704         with a size argument < 2.
54705
54706 2007-11-09  Bruno Haible  <bruno@clisp.org>
54707
54708         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54709         buffer. Fixes an inefficiency introduced on 2007-11-03.
54710
54711 2007-11-09  Bruno Haible  <bruno@clisp.org>
54712
54713         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54714         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54715
54716 2007-11-08  Jim Meyering  <meyering@redhat.com>
54717
54718         Change cache variable name prefix "jm_" to "gl_" everywhere.
54719         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54720         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54721         * m4/uptime.m4: s/gl_/jm_/
54722
54723 2007-11-07  Bruno Haible  <bruno@clisp.org>
54724
54725         Update to GNU gettext 0.17.
54726         * m4/intl.m4: Update to GNU gettext 0.17.
54727         * m4/po.m4: Likewise.
54728         * modules/gettext (Files): Remove m4/ulonglong.m4.
54729         (configure.ac): Require gettext infrastructure from version 0.17.
54730
54731 2007-11-06  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54734         symbolic values are not defined in a public header.
54735         * lib/freadable.c (freadable) [QNX]: Likewise.
54736         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54737         * lib/freading.c (freading) [QNX]: Likewise.
54738         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54739         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54740         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54741         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54742         Reported by Alain Magloire.
54743
54744         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54745
54746 2007-11-05  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54749         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54750         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54751         Reported by Eric Blake.
54752
54753 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54754             Bruno Haible  <bruno@clisp.org>
54755
54756         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54757         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54758         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54759         (malloc): Undefine also before including <stdlib.h>.
54760         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54761         Needed on OSF/1 4.0.
54762
54763 2007-11-05  Jim Meyering  <meyering@redhat.com>
54764
54765         git-version-gen: sync from coreutils.
54766         * build-aux/git-version-gen: Add comments.
54767         Change the first '-' to '.' in the snapshot version string,
54768         e.g., 6.9-377-08144 -> 6.9.377-08144
54769         Remove first parameter.
54770         Don't declare a version "-dirty" merely because a time
54771         stamp has changed.
54772
54773 2007-11-04  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/lock.h: Protect all macro definitions containing an 'if'
54776         statement through a "do { ... } while (0)".
54777         * lib/tls.h: Likewise.
54778
54779 2007-11-04  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54782
54783 2007-11-04  Bruno Haible  <bruno@clisp.org>
54784
54785         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54786         * modules/fprintf-posix (Depends-on): Add nocrash.
54787         * modules/snprintf-posix (Depends-on): Likewise.
54788         * modules/sprintf-posix (Depends-on): Likewise.
54789         * modules/vasnprintf-posix (Depends-on): Likewise.
54790         * modules/vasprintf-posix (Depends-on): Likewise.
54791         * modules/vfprintf-posix (Depends-on): Likewise.
54792         * modules/vsnprintf-posix (Depends-on): Likewise.
54793         * modules/vsprintf-posix (Depends-on): Likewise.
54794         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54795         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54796         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54797         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54798         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54799         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54800         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54801
54802 2007-11-04  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/nocrash: New file.
54805         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54806         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54807
54808 2007-11-04  Bruno Haible  <bruno@clisp.org>
54809
54810         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54811         precision handling.
54812         * tests/test-vasprintf-posix.c (test_function): Likewise.
54813         * tests/test-snprintf-posix.h (test_function): Likewise.
54814         * tests/test-sprintf-posix.h (test_function): Likewise.
54815
54816         Fix *printf behaviour for large precisions on mingw and BeOS.
54817         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54818         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54820         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54822         gl_PRINTF_PRECISION and test its result. Invoke
54823         gl_PREREQ_VASNPRINTF_PRECISION.
54824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54831         * doc/functions/fprintf.texi: Update.
54832         * doc/functions/printf.texi: Update.
54833         * doc/functions/snprintf.texi: Update.
54834         * doc/functions/sprintf.texi: Update.
54835         * doc/functions/vfprintf.texi: Update.
54836         * doc/functions/vprintf.texi: Update.
54837         * doc/functions/vsnprintf.texi: Update.
54838         * doc/functions/vsprintf.texi: Update.
54839
54840 2007-11-04  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54843
54844 2007-11-04  Bruno Haible  <bruno@clisp.org>
54845
54846         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54847         Reported by Sylvain Beucler <beuc@gnu.org>.
54848
54849 2007-11-03  Bruno Haible  <bruno@clisp.org>
54850
54851         * tests/test-fprintf-posix2.sh: New file.
54852         * tests/test-fprintf-posix2.c: New file.
54853         * modules/fprintf-posix-tests (Files): Add them.
54854         (TESTS): Add test-fprintf-posix2.sh.
54855         (configure.ac): Check for getrlimit and setrlimit.
54856         (check_PROGRAMS): Add test-fprintf-posix2.
54857
54858         * tests/test-printf-posix2.sh: New file.
54859         * tests/test-printf-posix2.c: New file.
54860         * modules/printf-posix-tests (Files): Add them.
54861         (TESTS): Add test-printf-posix2.sh.
54862         (configure.ac): Check for getrlimit and setrlimit.
54863         (check_PROGRAMS): Add test-printf-posix2.
54864
54865         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54866         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54867         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54868         (decode_double): New function, copied from decode_long_double.
54869         (scale10_round_decimal_decoded): New function, extracted from
54870         scale10_round_decimal_long_double.
54871         (scale10_round_decimal_long_double): Use it.
54872         (scale10_round_decimal_double): New function.
54873         (floorlog10): New function.
54874         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54876         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54878         gl_PRINTF_ENOMEM and test its result. Invoke
54879         gl_PREREQ_VASNPRINTF_ENOMEM.
54880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54882         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54883         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54887         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54888         * modules/snprintf-posix (Depends-on): Likewise.
54889         * modules/sprintf-posix (Depends-on): Likewise.
54890         * modules/vasnprintf-posix (Depends-on): Likewise.
54891         * modules/vasprintf-posix (Depends-on): Likewise.
54892         * modules/vfprintf-posix (Depends-on): Likewise.
54893         * modules/vsnprintf-posix (Depends-on): Likewise.
54894         * modules/vsprintf-posix (Depends-on): Likewise.
54895         * doc/functions/fprintf.texi: Update.
54896         * doc/functions/printf.texi: Update.
54897         * doc/functions/snprintf.texi: Update.
54898         * doc/functions/sprintf.texi: Update.
54899         * doc/functions/vfprintf.texi: Update.
54900         * doc/functions/vprintf.texi: Update.
54901         * doc/functions/vsnprintf.texi: Update.
54902         * doc/functions/vsprintf.texi: Update.
54903
54904 2007-11-03  Bruno Haible  <bruno@clisp.org>
54905
54906         * modules/frexp-nolibm-tests: New file.
54907
54908         * modules/frexp-nolibm: New file.
54909         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54910
54911 2007-11-03  Bruno Haible  <bruno@clisp.org>
54912
54913         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54914         value is C99 compliant.
54915         Needed for OSF/1 5.1.
54916
54917 2007-11-03  Bruno Haible  <bruno@clisp.org>
54918
54919         Fix out-of-memory handling of vasnprintf.
54920         * lib/printf-parse.c: Include <errno.h>.
54921         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54922         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54923         is already set.
54924
54925 2007-11-02  Eric Blake  <ebb9@byu.net>
54926
54927         Fix tests on cygwin.
54928         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54929
54930 2007-11-01  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54933         warning.
54934         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54935         needed for POSIX compatibility.
54936
54937 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54940         for compatibility with GNU.
54941
54942 2007-11-01  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54945         (putenv): Renamed from rpl_putenv. Change argument type from
54946         'const char *' to 'char *'.
54947         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54948         of defining putenv in config.h, just set REPLACE_PUTENV.
54949         * modules/putenv (Depends-on): Add stdlib.
54950         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54951         (Include): Use <stdlib.h>.
54952         * lib/stdlib.in.h (putenv): New declaration.
54953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54954         REPLACE_PUTENV.
54955         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54956         REPLACE_PUTENV.
54957         Needed for MacOS X 10.5.0.
54958         Reported by Peter O'Gorman <peter@pogma.com>.
54959
54960 2007-11-01  Jim Meyering  <meyering@redhat.com>
54961
54962         Treat an empty date string exactly like "0".
54963         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54964         if the remaining date string (to be parsed) is empty, use "0".
54965         Reported by Mischa Molhoek and discussed in this thread:
54966         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54967
54968 2007-10-31  Bruno Haible  <bruno@clisp.org>
54969
54970         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54971         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54972         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54973         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54974         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54975         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54976
54977 2007-10-31  Bruno Haible  <bruno@clisp.org>
54978
54979         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54980         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54981         (AC_TYPE_LONG_LONG_INT): Use it.
54982         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54983         it as well.
54984         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54985         to m4/longlong.m4.
54986         * modules/stdint (Files): Remove m4/ulonglong.m4.
54987         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54988         m4/ulonglong.m4.
54989         * modules/strtoumax (Files): Likewise.
54990
54991 2007-10-30  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/xvasprintf-posix: New file.
54994         Suggested by Eric Blake.
54995
54996 2007-10-30  Bruno Haible  <bruno@clisp.org>
54997
54998         * modules/xprintf-posix-tests: New file.
54999         * tests/test-xprintf-posix.sh: New file.
55000         * tests/test-xprintf-posix.c: New file.
55001         * tests/test-xfprintf-posix.c: New file.
55002
55003         * modules/xprintf-posix: New file.
55004
55005 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55006
55007         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55008         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55009         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55010
55011 2007-10-29  Bruno Haible  <bruno@clisp.org>
55012
55013         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55014         contain the special marker '_cv_'.
55015         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55017         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55018         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55019         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55020         Reported by Ralf Wildenhues.
55021
55022 2007-10-29  Bruno Haible  <bruno@clisp.org>
55023
55024         * gnulib-tool (func_import): When --lgpl is not specified, set
55025         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55026         GPLv3.
55027         Reported by Simon Josefsson.
55028
55029 2007-10-28  Bruno Haible  <bruno@clisp.org>
55030
55031         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55032         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55033         HAVE_DECL_ISFINITE.
55034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55035         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55036         HAVE_DECL_ISFINITE.
55037
55038 2007-10-28  Bruno Haible  <bruno@clisp.org>
55039
55040         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55041         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55042
55043 2007-10-28  Bruno Haible  <bruno@clisp.org>
55044
55045         Fix link errors with Sun C 5.0 on Solaris 10.
55046         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55047         function is declared but not present in the compiler's libm.
55048         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55049         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55050         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55051         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55052         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55053         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55054         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55056         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55057         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55058         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55059         HAVE_DECL_FLOORL.
55060
55061 2007-10-28  Bruno Haible  <bruno@clisp.org>
55062
55063         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55064         gl_FUNC_FLOORL. Cache the result.
55065         (gl_FUNC_FLOORL): Use it.
55066         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55067         gl_FUNC_CEILL. Cache the result.
55068         (gl_FUNC_CEILL): Use it.
55069
55070         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55071         gl_FUNC_FLOOR. Cache the result.
55072         (gl_FUNC_FLOOR): Use it.
55073         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55074         gl_FUNC_CEIL. Cache the result.
55075         (gl_FUNC_CEIL): Use it.
55076
55077         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55078         gl_FUNC_FLOORF. Cache the result.
55079         (gl_FUNC_FLOORF): Use it.
55080         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55081         gl_FUNC_CEILF. Cache the result.
55082         (gl_FUNC_CEILF): Use it.
55083
55084 2007-10-28  Bruno Haible  <bruno@clisp.org>
55085
55086         * gnulib-tool: Allow specifying the LGPL version number through
55087         --lgpl=2 or --lgpl=3.
55088         (func_usage): Document --lgpl with argument.
55089         Handle --lgpl=... arguments.
55090         (func_import): Recognize also gl_LGPL calls with an argument. When
55091         --lgpl=2 is used and the module's license is just LGPL, report an
55092         error. Set sed_transform_lib_file according to the lgpl variable. In
55093         the generated files, use --lgpl or gl_LGPL invocations with argument,
55094         if necessary.
55095         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55096         an LGPv2+ license.
55097         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55098         gl_LGPL macro.
55099
55100 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55101             Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55104         (u16_uctomb_aux): Likewise.
55105         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55106         !HAVE_INLINE.
55107         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55108
55109 2007-10-28  Bruno Haible  <bruno@clisp.org>
55110
55111         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55112         Invoke AM_GETTEXT_OPTION if it exists.
55113         * modules/vasprintf: Likewise.
55114         * modules/verror: Likewise.
55115         * modules/xprintf: Likewise.
55116         * modules/xvasprintf: Likewise.
55117
55118 2007-10-27  Ben Pfaff  <blp@gnu.org>
55119
55120         * lib/math.in.h: Define isfinite macro and prototypes for
55121         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55122         implementations.
55123         * m4/math_h.m4: New substitutions for isfinite module.
55124         * lib/isfinite.c: New file.
55125         * m4/isfinite.m4: New file.
55126         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55127         * modules/isfinite: New file.
55128         * modules/isfinite-tests: New file.
55129         * tests/tests-isfinite.c: New file.
55130         * doc/functions/isfinite.texi: Mention isfinite module.
55131         * MODULES.html.sh: Mention new module.
55132
55133 2007-10-27  Ben Pfaff  <blp@gnu.org>
55134
55135         Ralf Wildenhues reported that Tru64 4.0D declares the round
55136         functions but does not have definitions.
55137         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55138         cannot be found in any library, set the output variable to
55139         "missing" instead of "".
55140         * m4/round.m4: Also use our substitute if we cannot find round in
55141         any library, even if it is declared.
55142         * m4/roundf.m4: Likewise for roundf.
55143         * m4/roundl.m4: Likewise for roundl.
55144         * lib/math.in.h: Undefine roundf, round, roundl before defining
55145         their replacements, to allow for hypothetical systems where these
55146         may be defined as macros but not available in libraries.
55147
55148 2007-10-27  Bruno Haible  <bruno@clisp.org>
55149
55150         * doc/gnulib.texi: Invoke @firstparagraphindent.
55151         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55152         changes in gnulib.
55153         (Source changes): New section.
55154
55155 2007-10-26  Bruno Haible  <bruno@clisp.org>
55156
55157         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55158         borrowed from autoconf.
55159
55160 2007-10-26  Bruno Haible  <bruno@clisp.org>
55161
55162         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55163         strerror returned the empty string. Needed on HP-UX 11.00.
55164
55165 2007-10-24  Micah Cowan  <micah@cowan.name>
55166
55167         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55168         * build-aux/bootstrap: Remove support for now-unnecessary option,
55169         --cvs-user, and envvars CVS_USER, CVS_RSH.
55170
55171 2007-10-24  Jim Meyering  <meyering@redhat.com>
55172
55173         Avoid diagnostics from sha1sum when there is no cached checksum.
55174         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55175         if the po.s1 file hasn't been created yet.
55176
55177         * build-aux/bootstrap: Sync from coreutils:
55178         2007-10-24  Jim Meyering  <meyering@redhat.com>
55179         Get gnulib from the git repository, not from an obsolete cvs one.
55180         * build-aux/bootstrap: Suggestion from Micah Cowan.
55181         2007-10-04  Jim Meyering  <jim@meyering.net>
55182         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55183         (update_po_files): Work also when there are no .po files in po/.
55184
55185 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         * README: Append ".git" to git and cg examples.
55188         Problem reported by Benoit Sigoure.
55189
55190 2007-10-23  Micah Cowan  <micah@cowan.name>
55191
55192         * users.txt: Add wget.
55193
55194 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55195
55196         Fix linking of some unistdio tests on FreeBSD.
55197         * modules/unistdio/u16-vsnprintf-tests
55198         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55199         * modules/unistdio/u16-vsprintf-tests
55200         (test_u16_vsnprintf1_LDADD): Likewise.
55201         * modules/unistdio/u32-vsnprintf-tests
55202         (test_u32_vsnprintf1_LDADD): Likewise.
55203         * modules/unistdio/u32-vsprintf-tests
55204         (test_u32_vsprintf1_LDADD): Likewise.
55205         * modules/unistdio/u8-vsnprintf-tests
55206         (test_u8_vsnprintf1_LDADD): Likewise.
55207         * modules/unistdio/u8-vsprintf-tests
55208         (test_u8_vsprintf1_LDADD): Likewise.
55209         * modules/unistdio/ulc-vsnprintf-tests
55210         (test_ulc_vsnprintf1_LDADD): Likewise.
55211         * modules/unistdio/ulc-vsprintf-tests
55212         (test_ulc_vsprintf1_LDADD): Likewise.
55213
55214         Fix linking of some uniconv tests on FreeBSD.
55215         * modules/uniconv/u16-conv-from-enc-tests
55216         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55217         * modules/uniconv/u16-conv-to-enc-tests
55218         (test_u16_conv_to_enc_LDADD): Likewise.
55219         * modules/uniconv/u16-strconv-from-enc-tests
55220         (test_u16_strconv_from_enc_LDADD): Likewise.
55221         * modules/uniconv/u16-strconv-to-enc-tests
55222         (test_u16_strconv_to_enc_LDADD): Likewise.
55223         * modules/uniconv/u32-conv-from-enc-tests
55224         (test_u32_conv_from_enc_LDADD): Likewise.
55225         * modules/uniconv/u32-conv-to-enc-tests
55226         (test_u32_conv_to_enc_LDADD): Likewise.
55227         * modules/uniconv/u32-strconv-from-enc-tests
55228         (test_u32_strconv_from_enc_LDADD): Likewise.
55229         * modules/uniconv/u32-strconv-to-enc-tests
55230         (test_u32_strconv_to_enc_LDADD): Likewise.
55231         * modules/uniconv/u8-conv-from-enc-tests
55232         (test_u8_conv_from_enc_LDADD): Likewise.
55233         * modules/uniconv/u8-conv-to-enc-tests
55234         (test_u8_conv_to_enc_LDADD): Likewise.
55235         * modules/uniconv/u8-strconv-from-enc-tests
55236         (test_u8_strconv_from_enc_LDADD): Likewise.
55237         * modules/uniconv/u8-strconv-to-enc-tests
55238         (test_u8_strconv_to_enc_LDADD): Likewise.
55239
55240 2007-10-22  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55243         size.
55244
55245 2007-10-22  Eric Blake  <ebb9@byu.net>
55246
55247         Tweak x*printf documentation.
55248         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55249         variable name and comments.
55250         Suggested by Bruno Haible.
55251
55252 2007-10-22  Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/acl.c (copy_acl): Fix file name in comment.
55255
55256 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         Fix Tru64 problem with stdbool.h.
55259         * lib/stdbool.in.h (false, true):
55260         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55261         Don't declare as an enum in this situation; it runs afoul of Tru64.
55262         Problem reported by Steven M. Schweda in
55263         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55264
55265 2007-10-22  Eric Blake  <ebb9@byu.net>
55266
55267         Also wrap vf?printf.
55268         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55269         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55270         (xvprintf, xvfprintf): New functions.
55271
55272 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55273
55274         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55275         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55276
55277         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55278         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55279
55280 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55283         by Bruno Haible.
55284
55285 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55286
55287         * lib/getloadavg.c
55288         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55289         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55290
55291         * tests/test-i-ring.c: Work for C89.
55292
55293 2007-10-22  Bruno Haible  <bruno@clisp.org>
55294
55295         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55296         -1u, in preprocessor expression, so that we don't test for the bug
55297         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55299
55300 2007-10-22  Eric Blake  <ebb9@byu.net>
55301
55302         * tests/test-yesno.sh: Silence stderr during test.
55303
55304 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55305
55306         * modules/crypto/gc-camellia: New file.
55307
55308         * m4/gc-camellia.m4: New file.
55309
55310         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55311
55312         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55313
55314 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55315
55316         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55317         --help to stdout.  Reported by sms@antinode.org (Steven
55318         M. Schweda).
55319
55320 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55321
55322         * users.txt: Fix link to libksba.
55323
55324 2007-10-21  Ben Pfaff  <blp@gnu.org>
55325
55326         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55327         round.c roundf implementation that depends on floorf and ceilf to
55328         be tested unconditionally.
55329
55330 2007-10-21  Ben Pfaff  <blp@gnu.org>
55331
55332         * m4/check-libm-func.m4: Removed.
55333         * m4/check-math-lib.m4: New file.
55334         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55335         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55336         definition and lack of AC_LIBOBJ([roundf]).
55337         * m4/roundl.m4: Ditto, and similarly for roundl.
55338         * modules/round: Reference new m4 file.
55339         * modules/roundf: Ditto.
55340         * modules/roundl: Ditto.
55341         * tests/test-round2.c (main): Use ROUND instead of round.
55342         Bug report from Bruno Haible.
55343
55344 2007-10-21  Bruno Haible  <bruno@clisp.org>
55345
55346         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55347         context.
55348
55349 2007-10-21  Bruno Haible  <bruno@clisp.org>
55350
55351         * tests/test-wcwidth.c (main): Allow negative result for some control
55352         characters.
55353
55354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55355         Needed on OSF/1 5.1.
55356
55357 2007-10-21  Bruno Haible  <bruno@clisp.org>
55358
55359         * tests/test-floorf1.c: Include isnanf.h.
55360         (main): Use isnanf() instead of isnan().
55361         * tests/test-ceilf1.c: Include isnanf.h.
55362         (main): Use isnanf() instead of isnan().
55363         * tests/test-truncf1.c: Include isnanf.h.
55364         (main): Use isnanf() instead of isnan().
55365         * tests/test-roundf1.c: Include isnanf.h.
55366         (main): Use isnanf() instead of isnan().
55367
55368 2007-10-21  Eric Blake  <ebb9@byu.net>
55369
55370         * users.txt: Update URL for m4.
55371
55372 2007-10-21  Bruno Haible  <bruno@clisp.org>
55373
55374         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55375
55376 2007-10-21  Bruno Haible  <bruno@clisp.org>
55377
55378         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55379         Git's management files if the CVS files are not present.
55380
55381 2007-10-20  Bruno Haible  <bruno@clisp.org>
55382
55383         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55384         gcc-3.4.x.
55385
55386 2007-10-20  Ben Pfaff  <blp@gnu.org>
55387
55388         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55389         implementations.
55390         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55391         * lib/round.c: New file.
55392         * lib/roundf.c: New file.
55393         * lib/roundl.c: New file.
55394         * m4/round.m4: New file.
55395         * m4/roundf.m4: New file.
55396         * m4/roundl.m4: New file.
55397         * m4/check-libm-func-m4: New file.
55398         * modules/math: Replace round, roundf, roundl related @VARS@ in
55399         math.in.h.
55400         * modules/round: New file.
55401         * modules/round-tests: New file.
55402         * modules/roundf: New file.
55403         * modules/roundf-tests: New file.
55404         * modules/roundl: New file.
55405         * modules/roundl-tests: New file.
55406         * tests/test-round1.c: New file.
55407         * tests/test-round2.c: New file.
55408         * tests/test-roundf1.c: New file.
55409         * tests/test-roundf2.c: New file.
55410         * tests/test-roundl.c: New file.
55411         * doc/functions/round.texi: Mention round module.
55412         * doc/functions/roundf.texi: Mention roundf module.
55413         * doc/functions/roundl.texi: Mention roundl module.
55414         * MODULES.html.sh: Mention new modules.
55415         Thanks to Bruno Haible for suggestions.
55416
55417 2007-10-20  Jim Meyering  <meyering@redhat.com>
55418
55419         * lib/xprintf.c: Include <config.h> unconditionally.
55420
55421         Change xprintf's license to GPL.
55422         * modules/xprintf (License): s/LGPL/GPL/, since this module
55423         depends on modules (exit and exitfail) which are GPL.
55424         Suggestion from Bruno Haible.
55425
55426         xprintf fixes.
55427         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55428         Use a clearer diagnostic.
55429         Patch from Bruno Haible.
55430
55431 2007-10-20  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55434         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55435         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55436
55437 2007-10-20  Bruno Haible  <bruno@clisp.org>
55438
55439         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55440         precision in the comparison result > x - 1 or similar.
55441         * tests/test-ceilf2.c (correct_result_p): Likewise.
55442         * tests/test-truncf2.c (correct_result_p): Likewise.
55443         * tests/test-trunc2.c (correct_result_p): Likewise.
55444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55445
55446 2007-10-20  Bruno Haible  <bruno@clisp.org>
55447
55448         * modules/ceil: New file.
55449         * m4/ceil.m4: New file.
55450         * doc/functions/ceil.texi: Mention the 'ceil' module.
55451
55452 2007-10-20  Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/floor: New file.
55455         * m4/floor.m4: New file.
55456         * doc/functions/floor.texi: Mention the 'floor' module.
55457
55458 2007-10-20  Bruno Haible  <bruno@clisp.org>
55459
55460         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55461         of %a.
55462         * modules/floorf-tests (Depends-on): Likewise.
55463         * modules/truncf-tests (Depends-on): Likewise.
55464         * modules/trunc-tests (Depends-on): Likewise.
55465         Reported by Ben Pfaff.
55466
55467 2007-10-19  Jim Meyering  <meyering@redhat.com>
55468
55469         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55470         Don't bother testing specific errno values.  Just test ferror.
55471
55472         New module: xprintf
55473         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55474
55475 2007-10-19  Bruno Haible  <bruno@clisp.org>
55476
55477         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55478         syntax.
55479         * modules/javaexec (Makefile.am): Likewise.
55480         * modules/relocatable-prog (Makefile.am): Likewise.
55481         Suggested by Jim Meyering.
55482
55483 2007-10-18  Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55486         Reported by Jim Meyering.
55487
55488 2007-10-18  Eric Blake  <ebb9@byu.net>
55489
55490         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55491
55492 2007-10-18  Bruno Haible  <bruno@clisp.org>
55493
55494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55495         the format string into writable memory. Needed in Fortify conditions.
55496
55497 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55498             Bruno Haible  <bruno@clisp.org>
55499
55500         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55501         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55502         * modules/trim (Depends-on): Add mbchar.
55503         (configure.ac): Add gl_FUNC_MBRTOWC.
55504         (Makefile.am): Augment lib_SOURCES.
55505
55506 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55507
55508         Modify glob.c to use fstatat and dirfd, to simplify it.
55509         Suggested by Eric Blake.
55510         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55511         Don't include <stdbool.h>; not used.
55512         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55513         (link_exists_p): Simplify implementation, since we can now assume
55514         dirfd and fstatat.
55515         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55516
55517 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55518
55519         * gnulib-tool (func_get_dependencies): Fix sed script to
55520         match only tests.
55521
55522 2007-10-17  Bruno Haible  <bruno@clisp.org>
55523
55524         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55525         allow locale names without encoding suffix.
55526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55527         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55528
55529 2007-10-16  Bruno Haible  <bruno@clisp.org>
55530
55531         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55532         * lib/getgroups.c (getgroups): Likewise.
55533         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55534
55535 2007-10-16  Bruno Haible  <bruno@clisp.org>
55536
55537         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55538         * modules/malloc-posix (License): Likewise.
55539         * modules/realloc-posix (License): Likewise.
55540         * modules/calloc-posix (License): Likewise.
55541         * modules/intprops (License): Change from GPL to LGPL, with
55542         Paul Eggert's approval.
55543
55544 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55545
55546         Merge glibc changes into lib/glob.c.
55547
55548         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55549         2007-10-15 04:59:03 UTC.  Here are the changes:
55550
55551         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55552
55553         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55554
55555         * lib/glob.c: Add some branch prediction throughout.
55556
55557         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55558
55559         [BZ #5103]
55560         * lib/glob.c (glob): Recognize patterns starting \/.
55561
55562         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55563
55564         [BZ #3996]
55565         * lib/glob.c (attribute_hidden): Define if not defined.
55566         (glob): Unescape dirname, filename or username when needed and not
55567         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55568         is NULL.  Handle unescaped [ in pattern without closing ].
55569         Don't pass GLOB_CHECK down to recursive glob for directories.
55570         (__glob_pattern_type): New function.
55571         (__glob_pattern_p): Implement using __glob_pattern_type.
55572         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55573         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55574         Remove unreachable code.
55575
55576         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55577
55578         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55579         explain why there are no leaks.
55580
55581         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55582
55583         [BZ #3253]
55584         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55585         time, rather allocate increasingly bigger arrays of pointers, if
55586         possible with alloca, if too large with malloc.
55587
55588 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55591         Problem reported by H.Merijn Brand in
55592         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55593         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55594         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55595
55596 2007-10-15  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55599         with explicit rpl_ prefix.
55600         * lib/fopen.c (fopen): Likewise.
55601         * lib/freopen.c (freopen): Likewise.
55602         * lib/iconv.c (iconv): Likewise.
55603         * lib/iconv_close.c (iconv_close): Likewise.
55604
55605 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55606
55607         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55608
55609 2007-10-15  Bruno Haible  <bruno@clisp.org>
55610
55611         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55612         <stddef.h> instead of <stdlib.h> since we only need NULL.
55613         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55614
55615 2007-10-15  Bruno Haible  <bruno@clisp.org>
55616
55617         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55618         Replace paragraph talking about LIBOBJS.
55619         Reported by Colin Watson <cjwatson@debian.org>.
55620
55621 2007-10-15  Bruno Haible  <bruno@clisp.org>
55622
55623         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55624         <stdlib.h> before using NULL.
55625
55626 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55627
55628         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55629         Reported by Albert Chin <china@thewrittenword.com>.
55630
55631 2007-10-14  Bruno Haible  <bruno@clisp.org>
55632
55633         * modules/iconv_open-utf-tests: New file.
55634         * tests/test-iconv-utf.c: New file.
55635
55636         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55637         * modules/iconv_open-utf: New file.
55638         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55639         (iconv, iconv_close): New declarations.
55640         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55641         be defined.
55642         (iconv_open): Add special handling of conversion between UTF-8 and
55643         UTF-{16,32}{BE,LE}.
55644         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55645         * lib/iconv_close.c: New file.
55646         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55647         gl_FUNC_ICONV_OPEN.
55648         (gl_FUNC_ICONV_OPEN): Use it.
55649         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55650         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55651         and REPLACE_ICONV_UTF.
55652         * modules/iconv_open (Depends-on): Add c-strcase.
55653         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55654         ICONV_CONST.
55655         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55656
55657 2007-10-13  Albert Chin  <china@thewrittenword.com>
55658             Bruno Haible  <bruno@clisp.org>
55659
55660         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55661         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55662
55663 2007-10-13  Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55666         defined, use the ISO C99 inline semantics.
55667         * lib/argp.h (ARGP_EI): Likewise.
55668
55669 2007-10-13  Bruno Haible  <bruno@clisp.org>
55670
55671         Handle 'inline' change in gcc 4.3.0.
55672         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55673         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55674         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55675         argp_fmtstream_point): Disable 'extern' declaration if the function
55676         definition is going to be provided inline.
55677         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55678         semantics, not the ISO C99 inline semantics.
55679         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55680         'extern' declaration if the function definition is going to be provided
55681         inline.
55682         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55683         the GNU C inline semantics, not the ISO C99 inline semantics. With
55684         GCC 4.2, avoid a warning.
55685
55686 2007-10-13  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/freading.h (freading): Enable the use of __freading for
55689         glibc >= 2.7.
55690         * lib/freading.c (freading): Likewise.
55691
55692 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55693
55694         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55695         "warning: C99 inline functions are not supported; using GNU89".
55696
55697 2007-10-12  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55700         of 2.
55701         * tests/test-ceilf2.c: New file.
55702         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55703
55704         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55705         * modules/ceilf-tests: Update.
55706
55707 2007-10-12  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55710         of 2.
55711         * tests/test-floorf2.c: New file.
55712         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55713
55714         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55715         * modules/floorf-tests: Update.
55716
55717 2007-10-12  Bruno Haible  <bruno@clisp.org>
55718
55719         * tests/test-trunc2.c: New file.
55720         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55721
55722         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55723         * modules/trunc-tests: Update.
55724
55725 2007-10-12  Bruno Haible  <bruno@clisp.org>
55726
55727         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55728         of 2.
55729         * tests/test-truncf2.c: New file.
55730         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55731
55732         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55733         * modules/truncf-tests: Update.
55734
55735 2007-10-11  Eric Blake  <ebb9@byu.net>
55736
55737         Don't claim strerror is broken on Interix.
55738         * doc/functions/strerror.texi (strerror): Known broken systems are
55739         now Solaris 8, and not Interix.
55740         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55741         Interix on cross-compile.
55742         Reported by Martin Koeppe in
55743         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55744
55745 2007-10-11  Bruno Haible  <bruno@clisp.org>
55746
55747         * modules/i-ring-tests: New file.
55748         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55749         instead of assert.
55750
55751 2007-10-11  Bruno Haible  <bruno@clisp.org>
55752
55753         * modules/filenamecat-tests: New file.
55754         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55755         * lib/filenamecat.c: Remove test code.
55756
55757 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55760
55761         * lib/strerror.c: Include <string.h> always, to test interface,
55762         and to remove the need for the dummy.
55763         Include intprops.h to compute width instead of doing it ourselves
55764         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55765         (strerror): Define it to return NULL if there's no system strerror.
55766         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55767         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55768         ancient pre-strerror Unix systems well any more.  Saying "unknown
55769         system error" is enough.
55770         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55771         simpler strerror.c implementation.
55772         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55773         Simplify the tests to reflect the simpler strerror implementation.
55774         * modules/strerror (Depends-on): Add intprops.
55775
55776 2007-10-09  Eric Blake  <ebb9@byu.net>
55777
55778         Silence test-fpending.
55779         * modules/fpending-tests (Files): Add wrapper script.
55780         * tests/test-fpending.sh: New file.
55781
55782 2007-10-09  Bruno Haible  <bruno@clisp.org>
55783
55784         * MODULES.html.sh (func_module): Don't create a hyperlink for
55785         function names like 'printf_frexp'.
55786         (Misc): Add crc, memxor.
55787         (Characteristics of floating types): New section.
55788         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55789         isnanf-nolibm, signbit, trunc, truncf, truncl.
55790         (Enhancements for ISO C 99 functions): New subsection Input/output.
55791         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55792         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55793         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55794         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55795         (Enhancements for POSIX:2001 functions): Add chdir-long.
55796         (File system functions): Add areadlink, chdir-safer, read-file.
55797         Remove cycle-check.
55798         (File system as inode set): New section.
55799         (Date and time): Add gethrxtime.
55800         (Multithreading): Add openmp.
55801         (Internationalization functions): Add localename.
55802         (Unicode string functions): Add unistr/u*-mbsnlen.
55803         (Support for maintaining and releasing projects): Add git-version-gen.
55804         (Lone files): Remove directories.
55805
55806 2007-10-08  Ben Pfaff  <blp@gnu.org>
55807
55808         * lib/xmalloca.h: Fix typo in comment.
55809
55810 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55813         when avoiding problems with integer overflow.  Use a portable test
55814         instead.
55815
55816 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55817
55818         * modules/dummy (License): Change to LGPLv2+.
55819         * modules/float (License): Likewise
55820         * modules/realloc (License): Likewise
55821         * modules/stdlib (License): Likewise
55822
55823 2007-10-07  Bruno Haible  <bruno@clisp.org>
55824
55825         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55826         * floor.c (TWO_MANT_DIG): Likewise.
55827         * ceil.c (TWO_MANT_DIG): Likewise.
55828         Reported by Ben Pfaff.
55829
55830 2007-10-07  Bruno Haible  <bruno@clisp.org>
55831
55832         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55833         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55834         * lib/frexp.c (FUNC): Likewise.
55835         * lib/printf-frexp.h (printf_frexp): Likewise.
55836         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55837         * lib/printf-frexp.c (FUNC): Likewise.
55838         Suggested by Jim Meyering.
55839
55840 2007-10-07  Jim Meyering  <meyering@redhat.com>
55841
55842         Make xnanosleep's integer overflow test more robust.
55843         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55844         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55845
55846 2007-10-07  Bruno Haible  <bruno@clisp.org>
55847
55848         * NEWS: Mention the license change.
55849
55850         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55851         abbreviations in the modules files.
55852
55853         Change copyright notice from GPLv2+ to GPLv3+.
55854         * README: Change copyright notice.
55855         * MODULES.html.sh: Likewise.
55856         * build-aux/bootstrap.conf: Likewise.
55857         * build-aux/config.libpath: Likewise.
55858         * build-aux/csharpcomp.sh.in: Likewise.
55859         * build-aux/csharpexec.sh.in: Likewise.
55860         * build-aux/install-reloc: Likewise.
55861         * build-aux/javacomp.sh.in: Likewise.
55862         * build-aux/javaexec.sh.in: Likewise.
55863         * build-aux/ldd.sh.in: Likewise.
55864         * build-aux/reloc-ldflags: Likewise.
55865         * build-aux/relocatable.sh.in: Likewise.
55866         * build-aux/x-to-1.in: Likewise.
55867         * check-module: Likewise.
55868         * config/srclistvars.sh: Likewise.
55869         * gnulib-tool: Likewise.
55870         * lib/acl-internal.h: Likewise.
55871         * lib/acl.c: Likewise.
55872         * lib/acl.h: Likewise.
55873         * lib/acl_entries.c: Likewise.
55874         * lib/areadlink-with-size.c: Likewise.
55875         * lib/areadlink.c: Likewise.
55876         * lib/areadlink.h: Likewise.
55877         * lib/argmatch.c: Likewise.
55878         * lib/argmatch.h: Likewise.
55879         * lib/argp-ba.c: Likewise.
55880         * lib/argp-eexst.c: Likewise.
55881         * lib/argp-fmtstream.c: Likewise.
55882         * lib/argp-fmtstream.h: Likewise.
55883         * lib/argp-fs-xinl.c: Likewise.
55884         * lib/argp-help.c: Likewise.
55885         * lib/argp-namefrob.h: Likewise.
55886         * lib/argp-parse.c: Likewise.
55887         * lib/argp-pin.c: Likewise.
55888         * lib/argp-pv.c: Likewise.
55889         * lib/argp-pvh.c: Likewise.
55890         * lib/argp-xinl.c: Likewise.
55891         * lib/argp.h: Likewise.
55892         * lib/at-func.c: Likewise.
55893         * lib/atanl.c: Likewise.
55894         * lib/backupfile.c: Likewise.
55895         * lib/backupfile.h: Likewise.
55896         * lib/basename.c: Likewise.
55897         * lib/binary-io.h: Likewise.
55898         * lib/byteswap.in.h: Likewise.
55899         * lib/c-stack.c: Likewise.
55900         * lib/c-stack.h: Likewise.
55901         * lib/c-strcasestr.c: Likewise.
55902         * lib/c-strcasestr.h: Likewise.
55903         * lib/c-strstr.c: Likewise.
55904         * lib/c-strstr.h: Likewise.
55905         * lib/c-strtod.c: Likewise.
55906         * lib/calloc.c: Likewise.
55907         * lib/canon-host.c: Likewise.
55908         * lib/canon-host.h: Likewise.
55909         * lib/canonicalize-lgpl.c: Likewise.
55910         * lib/canonicalize.c: Likewise.
55911         * lib/canonicalize.h: Likewise.
55912         * lib/ceil.c: Likewise.
55913         * lib/ceilf.c: Likewise.
55914         * lib/ceill.c: Likewise.
55915         * lib/chdir-long.c: Likewise.
55916         * lib/chdir-long.h: Likewise.
55917         * lib/chdir-safer.c: Likewise.
55918         * lib/chdir-safer.h: Likewise.
55919         * lib/chown.c: Likewise.
55920         * lib/classpath.c: Likewise.
55921         * lib/classpath.h: Likewise.
55922         * lib/clean-temp.c: Likewise.
55923         * lib/clean-temp.h: Likewise.
55924         * lib/cloexec.c: Likewise.
55925         * lib/close-stream.c: Likewise.
55926         * lib/closein.c: Likewise.
55927         * lib/closein.h: Likewise.
55928         * lib/closeout.c: Likewise.
55929         * lib/closeout.h: Likewise.
55930         * lib/concat-filename.c: Likewise.
55931         * lib/copy-file.c: Likewise.
55932         * lib/copy-file.h: Likewise.
55933         * lib/count-one-bits.h: Likewise.
55934         * lib/crc.c: Likewise.
55935         * lib/crc.h: Likewise.
55936         * lib/creat-safer.c: Likewise.
55937         * lib/csharpcomp.c: Likewise.
55938         * lib/csharpcomp.h: Likewise.
55939         * lib/csharpexec.c: Likewise.
55940         * lib/csharpexec.h: Likewise.
55941         * lib/cycle-check.c: Likewise.
55942         * lib/cycle-check.h: Likewise.
55943         * lib/diacrit.c: Likewise.
55944         * lib/diacrit.h: Likewise.
55945         * lib/diffseq.h: Likewise.
55946         * lib/dirchownmod.c: Likewise.
55947         * lib/dirent.in.h: Likewise.
55948         * lib/dirfd.c: Likewise.
55949         * lib/dirfd.h: Likewise.
55950         * lib/dirname.c: Likewise.
55951         * lib/dirname.h: Likewise.
55952         * lib/dummy.c: Likewise.
55953         * lib/dup-safer.c: Likewise.
55954         * lib/dup2.c: Likewise.
55955         * lib/eealloc.h: Likewise.
55956         * lib/error.c: Likewise.
55957         * lib/error.h: Likewise.
55958         * lib/euidaccess.c: Likewise.
55959         * lib/exclude.c: Likewise.
55960         * lib/exclude.h: Likewise.
55961         * lib/execute.c: Likewise.
55962         * lib/execute.h: Likewise.
55963         * lib/exitfail.c: Likewise.
55964         * lib/exitfail.h: Likewise.
55965         * lib/expl.c: Likewise.
55966         * lib/fatal-signal.c: Likewise.
55967         * lib/fatal-signal.h: Likewise.
55968         * lib/fbufmode.c: Likewise.
55969         * lib/fbufmode.h: Likewise.
55970         * lib/fchdir.c: Likewise.
55971         * lib/fchmodat.c: Likewise.
55972         * lib/fchownat.c: Likewise.
55973         * lib/fcntl--.h: Likewise.
55974         * lib/fcntl-safer.h: Likewise.
55975         * lib/fcntl.in.h: Likewise.
55976         * lib/fd-safer.c: Likewise.
55977         * lib/fflush.c: Likewise.
55978         * lib/file-has-acl.c: Likewise.
55979         * lib/file-set.c: Likewise.
55980         * lib/file-type.c: Likewise.
55981         * lib/file-type.h: Likewise.
55982         * lib/fileblocks.c: Likewise.
55983         * lib/filemode.c: Likewise.
55984         * lib/filemode.h: Likewise.
55985         * lib/filename.h: Likewise.
55986         * lib/filenamecat.c: Likewise.
55987         * lib/filenamecat.h: Likewise.
55988         * lib/findprog.c: Likewise.
55989         * lib/findprog.h: Likewise.
55990         * lib/float.in.h: Likewise.
55991         * lib/floor.c: Likewise.
55992         * lib/floorf.c: Likewise.
55993         * lib/floorl.c: Likewise.
55994         * lib/fopen-safer.c: Likewise.
55995         * lib/fopen.c: Likewise.
55996         * lib/fpending.c: Likewise.
55997         * lib/fpending.h: Likewise.
55998         * lib/fprintf.c: Likewise.
55999         * lib/fprintftime.h: Likewise.
56000         * lib/fpucw.h: Likewise.
56001         * lib/fpurge.c: Likewise.
56002         * lib/fpurge.h: Likewise.
56003         * lib/freadable.c: Likewise.
56004         * lib/freadable.h: Likewise.
56005         * lib/freadahead.c: Likewise.
56006         * lib/freadahead.h: Likewise.
56007         * lib/freading.c: Likewise.
56008         * lib/freading.h: Likewise.
56009         * lib/free.c: Likewise.
56010         * lib/freopen.c: Likewise.
56011         * lib/frexp.c: Likewise.
56012         * lib/frexpl.c: Likewise.
56013         * lib/fseek.c: Likewise.
56014         * lib/fseterr.c: Likewise.
56015         * lib/fseterr.h: Likewise.
56016         * lib/fstatat.c: Likewise.
56017         * lib/fstrcmp.c: Likewise.
56018         * lib/fstrcmp.h: Likewise.
56019         * lib/fsusage.c: Likewise.
56020         * lib/fsusage.h: Likewise.
56021         * lib/ftell.c: Likewise.
56022         * lib/ftello.c: Likewise.
56023         * lib/fts-cycle.c: Likewise.
56024         * lib/fts.c: Likewise.
56025         * lib/fts_.h: Likewise.
56026         * lib/full-read.c: Likewise.
56027         * lib/full-read.h: Likewise.
56028         * lib/full-write.c: Likewise.
56029         * lib/full-write.h: Likewise.
56030         * lib/fwritable.c: Likewise.
56031         * lib/fwritable.h: Likewise.
56032         * lib/fwriteerror.c: Likewise.
56033         * lib/fwriteerror.h: Likewise.
56034         * lib/fwriting.c: Likewise.
56035         * lib/fwriting.h: Likewise.
56036         * lib/gcd.c: Likewise.
56037         * lib/gcd.h: Likewise.
56038         * lib/getcwd.c: Likewise.
56039         * lib/getdate.h: Likewise.
56040         * lib/getdate.y: Likewise.
56041         * lib/getdomainname.c: Likewise.
56042         * lib/getdomainname.h: Likewise.
56043         * lib/getgroups.c: Likewise.
56044         * lib/gethostname.c: Likewise.
56045         * lib/gethrxtime.c: Likewise.
56046         * lib/gethrxtime.h: Likewise.
56047         * lib/getloadavg.c: Likewise.
56048         * lib/getndelim2.c: Likewise.
56049         * lib/getndelim2.h: Likewise.
56050         * lib/getnline.c: Likewise.
56051         * lib/getnline.h: Likewise.
56052         * lib/getopt.c: Likewise.
56053         * lib/getopt.in.h: Likewise.
56054         * lib/getopt1.c: Likewise.
56055         * lib/getopt_int.h: Likewise.
56056         * lib/getpagesize.h: Likewise.
56057         * lib/getsubopt.c: Likewise.
56058         * lib/gettime.c: Likewise.
56059         * lib/getugroups.c: Likewise.
56060         * lib/getugroups.h: Likewise.
56061         * lib/getusershell.c: Likewise.
56062         * lib/gl_anyavltree_list1.h: Likewise.
56063         * lib/gl_anyavltree_list2.h: Likewise.
56064         * lib/gl_anyhash_list1.h: Likewise.
56065         * lib/gl_anyhash_list2.h: Likewise.
56066         * lib/gl_anylinked_list1.h: Likewise.
56067         * lib/gl_anylinked_list2.h: Likewise.
56068         * lib/gl_anyrbtree_list1.h: Likewise.
56069         * lib/gl_anyrbtree_list2.h: Likewise.
56070         * lib/gl_anytree_list1.h: Likewise.
56071         * lib/gl_anytree_list2.h: Likewise.
56072         * lib/gl_anytree_oset.h: Likewise.
56073         * lib/gl_anytreehash_list1.h: Likewise.
56074         * lib/gl_anytreehash_list2.h: Likewise.
56075         * lib/gl_array_list.c: Likewise.
56076         * lib/gl_array_list.h: Likewise.
56077         * lib/gl_array_oset.c: Likewise.
56078         * lib/gl_array_oset.h: Likewise.
56079         * lib/gl_avltree_list.c: Likewise.
56080         * lib/gl_avltree_list.h: Likewise.
56081         * lib/gl_avltree_oset.c: Likewise.
56082         * lib/gl_avltree_oset.h: Likewise.
56083         * lib/gl_avltreehash_list.c: Likewise.
56084         * lib/gl_avltreehash_list.h: Likewise.
56085         * lib/gl_carray_list.c: Likewise.
56086         * lib/gl_carray_list.h: Likewise.
56087         * lib/gl_linked_list.c: Likewise.
56088         * lib/gl_linked_list.h: Likewise.
56089         * lib/gl_linkedhash_list.c: Likewise.
56090         * lib/gl_linkedhash_list.h: Likewise.
56091         * lib/gl_list.c: Likewise.
56092         * lib/gl_list.h: Likewise.
56093         * lib/gl_oset.c: Likewise.
56094         * lib/gl_oset.h: Likewise.
56095         * lib/gl_rbtree_list.c: Likewise.
56096         * lib/gl_rbtree_list.h: Likewise.
56097         * lib/gl_rbtree_oset.c: Likewise.
56098         * lib/gl_rbtree_oset.h: Likewise.
56099         * lib/gl_rbtreehash_list.c: Likewise.
56100         * lib/gl_rbtreehash_list.h: Likewise.
56101         * lib/gl_sublist.c: Likewise.
56102         * lib/gl_sublist.h: Likewise.
56103         * lib/group-member.c: Likewise.
56104         * lib/group-member.h: Likewise.
56105         * lib/hard-locale.c: Likewise.
56106         * lib/hard-locale.h: Likewise.
56107         * lib/hash-pjw.c: Likewise.
56108         * lib/hash-pjw.h: Likewise.
56109         * lib/hash-triple.c: Likewise.
56110         * lib/hash.c: Likewise.
56111         * lib/hash.h: Likewise.
56112         * lib/human.c: Likewise.
56113         * lib/human.h: Likewise.
56114         * lib/i-ring.c: Likewise.
56115         * lib/i-ring.h: Likewise.
56116         * lib/idcache.c: Likewise.
56117         * lib/imaxabs.c: Likewise.
56118         * lib/imaxdiv.c: Likewise.
56119         * lib/inet_pton.c: Likewise.
56120         * lib/inet_pton.h: Likewise.
56121         * lib/intprops.h: Likewise.
56122         * lib/inttostr.c: Likewise.
56123         * lib/inttostr.h: Likewise.
56124         * lib/inttypes.in.h: Likewise.
56125         * lib/isapipe.c: Likewise.
56126         * lib/isdir.c: Likewise.
56127         * lib/isnan.c: Likewise.
56128         * lib/isnan.h: Likewise.
56129         * lib/isnanf.c: Likewise.
56130         * lib/isnanf.h: Likewise.
56131         * lib/isnanl-nolibm.h: Likewise.
56132         * lib/isnanl.c: Likewise.
56133         * lib/isnanl.h: Likewise.
56134         * lib/javacomp.c: Likewise.
56135         * lib/javacomp.h: Likewise.
56136         * lib/javaexec.c: Likewise.
56137         * lib/javaexec.h: Likewise.
56138         * lib/javaversion.c: Likewise.
56139         * lib/javaversion.h: Likewise.
56140         * lib/javaversion.java: Likewise.
56141         * lib/lbrkprop.h: Likewise.
56142         * lib/lchmod.h: Likewise.
56143         * lib/lchown.c: Likewise.
56144         * lib/ldexpl.c: Likewise.
56145         * lib/linebreak.c: Likewise.
56146         * lib/linebreak.h: Likewise.
56147         * lib/linebuffer.c: Likewise.
56148         * lib/linebuffer.h: Likewise.
56149         * lib/locale.in.h: Likewise.
56150         * lib/logl.c: Likewise.
56151         * lib/long-options.c: Likewise.
56152         * lib/long-options.h: Likewise.
56153         * lib/lstat.c: Likewise.
56154         * lib/lstat.h: Likewise.
56155         * lib/math.in.h: Likewise.
56156         * lib/mbchar.c: Likewise.
56157         * lib/mbchar.h: Likewise.
56158         * lib/mbfile.h: Likewise.
56159         * lib/mbiter.h: Likewise.
56160         * lib/mbscasecmp.c: Likewise.
56161         * lib/mbscasestr.c: Likewise.
56162         * lib/mbschr.c: Likewise.
56163         * lib/mbscspn.c: Likewise.
56164         * lib/mbslen.c: Likewise.
56165         * lib/mbsncasecmp.c: Likewise.
56166         * lib/mbsnlen.c: Likewise.
56167         * lib/mbspbrk.c: Likewise.
56168         * lib/mbspcasecmp.c: Likewise.
56169         * lib/mbsrchr.c: Likewise.
56170         * lib/mbssep.c: Likewise.
56171         * lib/mbsspn.c: Likewise.
56172         * lib/mbsstr.c: Likewise.
56173         * lib/mbstok_r.c: Likewise.
56174         * lib/mbswidth.c: Likewise.
56175         * lib/mbswidth.h: Likewise.
56176         * lib/mbuiter.h: Likewise.
56177         * lib/memcasecmp.c: Likewise.
56178         * lib/memcasecmp.h: Likewise.
56179         * lib/memchr.c: Likewise.
56180         * lib/memcmp.c: Likewise.
56181         * lib/memcoll.c: Likewise.
56182         * lib/memcoll.h: Likewise.
56183         * lib/memcpy.c: Likewise.
56184         * lib/memrchr.c: Likewise.
56185         * lib/mkancesdirs.c: Likewise.
56186         * lib/mkdir-p.c: Likewise.
56187         * lib/mkdir-p.h: Likewise.
56188         * lib/mkdir.c: Likewise.
56189         * lib/mkdirat.c: Likewise.
56190         * lib/mkdtemp.c: Likewise.
56191         * lib/mkstemp-safer.c: Likewise.
56192         * lib/mkstemp.c: Likewise.
56193         * lib/modechange.c: Likewise.
56194         * lib/modechange.h: Likewise.
56195         * lib/mountlist.c: Likewise.
56196         * lib/mountlist.h: Likewise.
56197         * lib/mpsort.c: Likewise.
56198         * lib/nanosleep.c: Likewise.
56199         * lib/obstack.c: Likewise.
56200         * lib/obstack.h: Likewise.
56201         * lib/open-safer.c: Likewise.
56202         * lib/open.c: Likewise.
56203         * lib/openat-die.c: Likewise.
56204         * lib/openat-priv.h: Likewise.
56205         * lib/openat-proc.c: Likewise.
56206         * lib/openat.c: Likewise.
56207         * lib/openat.h: Likewise.
56208         * lib/pagealign_alloc.c: Likewise.
56209         * lib/pagealign_alloc.h: Likewise.
56210         * lib/physmem.c: Likewise.
56211         * lib/physmem.h: Likewise.
56212         * lib/pipe-safer.c: Likewise.
56213         * lib/pipe.c: Likewise.
56214         * lib/pipe.h: Likewise.
56215         * lib/posixtm.c: Likewise.
56216         * lib/posixtm.h: Likewise.
56217         * lib/posixver.c: Likewise.
56218         * lib/printf-frexp.c: Likewise.
56219         * lib/printf-frexp.h: Likewise.
56220         * lib/printf-frexpl.c: Likewise.
56221         * lib/printf-frexpl.h: Likewise.
56222         * lib/printf.c: Likewise.
56223         * lib/progname.c: Likewise.
56224         * lib/progname.h: Likewise.
56225         * lib/progreloc.c: Likewise.
56226         * lib/putenv.c: Likewise.
56227         * lib/quote.c: Likewise.
56228         * lib/quote.h: Likewise.
56229         * lib/quotearg.c: Likewise.
56230         * lib/quotearg.h: Likewise.
56231         * lib/raise.c: Likewise.
56232         * lib/readline.c: Likewise.
56233         * lib/readline.h: Likewise.
56234         * lib/readlink.c: Likewise.
56235         * lib/readtokens.c: Likewise.
56236         * lib/readtokens.h: Likewise.
56237         * lib/readtokens0.c: Likewise.
56238         * lib/readtokens0.h: Likewise.
56239         * lib/readutmp.c: Likewise.
56240         * lib/readutmp.h: Likewise.
56241         * lib/realloc.c: Likewise.
56242         * lib/relocwrapper.c: Likewise.
56243         * lib/rename-dest-slash.c: Likewise.
56244         * lib/rename.c: Likewise.
56245         * lib/rmdir.c: Likewise.
56246         * lib/rpmatch.c: Likewise.
56247         * lib/safe-read.c: Likewise.
56248         * lib/safe-read.h: Likewise.
56249         * lib/safe-write.c: Likewise.
56250         * lib/safe-write.h: Likewise.
56251         * lib/same-inode.h: Likewise.
56252         * lib/same.c: Likewise.
56253         * lib/same.h: Likewise.
56254         * lib/save-cwd.c: Likewise.
56255         * lib/save-cwd.h: Likewise.
56256         * lib/savedir.c: Likewise.
56257         * lib/savedir.h: Likewise.
56258         * lib/savewd.c: Likewise.
56259         * lib/savewd.h: Likewise.
56260         * lib/search.in.h: Likewise.
56261         * lib/setenv.c: Likewise.
56262         * lib/setenv.h: Likewise.
56263         * lib/settime.c: Likewise.
56264         * lib/sh-quote.c: Likewise.
56265         * lib/sh-quote.h: Likewise.
56266         * lib/sig2str.c: Likewise.
56267         * lib/sig2str.h: Likewise.
56268         * lib/signal.in.h: Likewise.
56269         * lib/signbitd.c: Likewise.
56270         * lib/signbitf.c: Likewise.
56271         * lib/signbitl.c: Likewise.
56272         * lib/sigprocmask.c: Likewise.
56273         * lib/sincosl.c: Likewise.
56274         * lib/sleep.c: Likewise.
56275         * lib/sprintf.c: Likewise.
56276         * lib/sqrtl.c: Likewise.
56277         * lib/stat-time.h: Likewise.
56278         * lib/stdio--.h: Likewise.
56279         * lib/stdio-safer.h: Likewise.
56280         * lib/stdlib--.h: Likewise.
56281         * lib/stdlib-safer.h: Likewise.
56282         * lib/stdlib.in.h: Likewise.
56283         * lib/stpcpy.c: Likewise.
56284         * lib/stpncpy.c: Likewise.
56285         * lib/strchrnul.c: Likewise.
56286         * lib/strcspn.c: Likewise.
56287         * lib/strerror.c: Likewise.
56288         * lib/strftime.c: Likewise.
56289         * lib/strftime.h: Likewise.
56290         * lib/striconveh.c: Likewise.
56291         * lib/striconveh.h: Likewise.
56292         * lib/striconveha.c: Likewise.
56293         * lib/striconveha.h: Likewise.
56294         * lib/stripslash.c: Likewise.
56295         * lib/strnlen1.c: Likewise.
56296         * lib/strnlen1.h: Likewise.
56297         * lib/strtod.c: Likewise.
56298         * lib/strtoimax.c: Likewise.
56299         * lib/strtok_r.c: Likewise.
56300         * lib/strtol.c: Likewise.
56301         * lib/strtoll.c: Likewise.
56302         * lib/strtoul.c: Likewise.
56303         * lib/strtoull.c: Likewise.
56304         * lib/sysexits.in.h: Likewise.
56305         * lib/tempname.c: Likewise.
56306         * lib/tempname.h: Likewise.
56307         * lib/timespec.h: Likewise.
56308         * lib/tls.c: Likewise.
56309         * lib/tls.h: Likewise.
56310         * lib/tmpdir.c: Likewise.
56311         * lib/tmpdir.h: Likewise.
56312         * lib/tmpfile-safer.c: Likewise.
56313         * lib/tmpfile.c: Likewise.
56314         * lib/trigl.c: Likewise.
56315         * lib/trigl.h: Likewise.
56316         * lib/trim.c: Likewise.
56317         * lib/trim.h: Likewise.
56318         * lib/trunc.c: Likewise.
56319         * lib/truncf.c: Likewise.
56320         * lib/truncl.c: Likewise.
56321         * lib/tsearch.c: Likewise.
56322         * lib/unicodeio.c: Likewise.
56323         * lib/unicodeio.h: Likewise.
56324         * lib/unistd--.h: Likewise.
56325         * lib/unistd-safer.h: Likewise.
56326         * lib/unistdio/ulc-fprintf.c: Likewise.
56327         * lib/unistdio/ulc-vfprintf.c: Likewise.
56328         * lib/unlinkdir.c: Likewise.
56329         * lib/unlinkdir.h: Likewise.
56330         * lib/unlocked-io.h: Likewise.
56331         * lib/unsetenv.c: Likewise.
56332         * lib/userspec.c: Likewise.
56333         * lib/utime.c: Likewise.
56334         * lib/utimecmp.c: Likewise.
56335         * lib/utimecmp.h: Likewise.
56336         * lib/utimens.c: Likewise.
56337         * lib/verify.h: Likewise.
56338         * lib/verror.c: Likewise.
56339         * lib/verror.h: Likewise.
56340         * lib/version-etc-fsf.c: Likewise.
56341         * lib/version-etc.c: Likewise.
56342         * lib/version-etc.h: Likewise.
56343         * lib/vfprintf.c: Likewise.
56344         * lib/vprintf.c: Likewise.
56345         * lib/vsprintf.c: Likewise.
56346         * lib/w32spawn.h: Likewise.
56347         * lib/wait-process.c: Likewise.
56348         * lib/wait-process.h: Likewise.
56349         * lib/wcwidth.c: Likewise.
56350         * lib/write-any-file.c: Likewise.
56351         * lib/xalloc-die.c: Likewise.
56352         * lib/xalloc.h: Likewise.
56353         * lib/xasprintf.c: Likewise.
56354         * lib/xgetcwd.c: Likewise.
56355         * lib/xgetcwd.h: Likewise.
56356         * lib/xgetdomainname.c: Likewise.
56357         * lib/xgetdomainname.h: Likewise.
56358         * lib/xgethostname.c: Likewise.
56359         * lib/xmalloc.c: Likewise.
56360         * lib/xmalloca.c: Likewise.
56361         * lib/xmalloca.h: Likewise.
56362         * lib/xmemcoll.c: Likewise.
56363         * lib/xnanosleep.c: Likewise.
56364         * lib/xreadlink.c: Likewise.
56365         * lib/xreadlink.h: Likewise.
56366         * lib/xsetenv.c: Likewise.
56367         * lib/xsetenv.h: Likewise.
56368         * lib/xstriconv.c: Likewise.
56369         * lib/xstriconv.h: Likewise.
56370         * lib/xstrndup.c: Likewise.
56371         * lib/xstrndup.h: Likewise.
56372         * lib/xstrtod.c: Likewise.
56373         * lib/xstrtod.h: Likewise.
56374         * lib/xstrtol-error.c: Likewise.
56375         * lib/xstrtol.c: Likewise.
56376         * lib/xstrtol.h: Likewise.
56377         * lib/xtime.h: Likewise.
56378         * lib/xvasprintf.c: Likewise.
56379         * lib/xvasprintf.h: Likewise.
56380         * lib/yesno.c: Likewise.
56381         * lib/yesno.h: Likewise.
56382         * posix-modules: Likewise.
56383         * tests/test-alloca-opt.c: Likewise.
56384         * tests/test-arcfour.c: Likewise.
56385         * tests/test-arctwo.c: Likewise.
56386         * tests/test-argmatch.c: Likewise.
56387         * tests/test-argp-2.sh: Likewise.
56388         * tests/test-argp.c: Likewise.
56389         * tests/test-arpa_inet.c: Likewise.
56390         * tests/test-array_list.c: Likewise.
56391         * tests/test-array_oset.c: Likewise.
56392         * tests/test-atexit.c: Likewise.
56393         * tests/test-avltree_list.c: Likewise.
56394         * tests/test-avltree_oset.c: Likewise.
56395         * tests/test-avltreehash_list.c: Likewise.
56396         * tests/test-base64.c: Likewise.
56397         * tests/test-binary-io.c: Likewise.
56398         * tests/test-byteswap.c: Likewise.
56399         * tests/test-c-ctype.c: Likewise.
56400         * tests/test-c-strcasecmp.c: Likewise.
56401         * tests/test-c-strcasestr.c: Likewise.
56402         * tests/test-c-strncasecmp.c: Likewise.
56403         * tests/test-c-strstr.c: Likewise.
56404         * tests/test-canonicalize-lgpl.c: Likewise.
56405         * tests/test-canonicalize.c: Likewise.
56406         * tests/test-carray_list.c: Likewise.
56407         * tests/test-ceilf.c: Likewise.
56408         * tests/test-ceill.c: Likewise.
56409         * tests/test-count-one-bits.c: Likewise.
56410         * tests/test-crc.c: Likewise.
56411         * tests/test-dirname.c: Likewise.
56412         * tests/test-fbufmode.c: Likewise.
56413         * tests/test-fcntl.c: Likewise.
56414         * tests/test-fflush.c: Likewise.
56415         * tests/test-floorf.c: Likewise.
56416         * tests/test-floorl.c: Likewise.
56417         * tests/test-fopen.c: Likewise.
56418         * tests/test-fprintf-posix.c: Likewise.
56419         * tests/test-fprintf-posix.h: Likewise.
56420         * tests/test-fpurge.c: Likewise.
56421         * tests/test-freadable.c: Likewise.
56422         * tests/test-freadahead.c: Likewise.
56423         * tests/test-freading.c: Likewise.
56424         * tests/test-freopen.c: Likewise.
56425         * tests/test-frexp.c: Likewise.
56426         * tests/test-frexpl.c: Likewise.
56427         * tests/test-fseek.c: Likewise.
56428         * tests/test-fseeko.c: Likewise.
56429         * tests/test-fseterr.c: Likewise.
56430         * tests/test-fstrcmp.c: Likewise.
56431         * tests/test-ftell.c: Likewise.
56432         * tests/test-ftello.c: Likewise.
56433         * tests/test-fwritable.c: Likewise.
56434         * tests/test-fwriting.c: Likewise.
56435         * tests/test-getaddrinfo.c: Likewise.
56436         * tests/test-getpass.c: Likewise.
56437         * tests/test-gettimeofday.c: Likewise.
56438         * tests/test-hmac-md5.c: Likewise.
56439         * tests/test-hmac-sha1.c: Likewise.
56440         * tests/test-iconv.c: Likewise.
56441         * tests/test-iconvme.c: Likewise.
56442         * tests/test-inttypes.c: Likewise.
56443         * tests/test-isnan.c: Likewise.
56444         * tests/test-isnanf.c: Likewise.
56445         * tests/test-isnanl-nolibm.c: Likewise.
56446         * tests/test-isnanl.c: Likewise.
56447         * tests/test-isnanl.h: Likewise.
56448         * tests/test-ldexpl.c: Likewise.
56449         * tests/test-linked_list.c: Likewise.
56450         * tests/test-linkedhash_list.c: Likewise.
56451         * tests/test-locale.c: Likewise.
56452         * tests/test-localename.c: Likewise.
56453         * tests/test-lock.c: Likewise.
56454         * tests/test-lseek.c: Likewise.
56455         * tests/test-malloca.c: Likewise.
56456         * tests/test-math.c: Likewise.
56457         * tests/test-mbscasecmp.c: Likewise.
56458         * tests/test-mbscasestr1.c: Likewise.
56459         * tests/test-mbscasestr2.c: Likewise.
56460         * tests/test-mbscasestr3.c: Likewise.
56461         * tests/test-mbscasestr4.c: Likewise.
56462         * tests/test-mbschr.c: Likewise.
56463         * tests/test-mbscspn.c: Likewise.
56464         * tests/test-mbsncasecmp.c: Likewise.
56465         * tests/test-mbspbrk.c: Likewise.
56466         * tests/test-mbspcasecmp.c: Likewise.
56467         * tests/test-mbsrchr.c: Likewise.
56468         * tests/test-mbsspn.c: Likewise.
56469         * tests/test-mbsstr1.c: Likewise.
56470         * tests/test-mbsstr2.c: Likewise.
56471         * tests/test-mbsstr3.c: Likewise.
56472         * tests/test-md5.c: Likewise.
56473         * tests/test-memmem.c: Likewise.
56474         * tests/test-netinet_in.c: Likewise.
56475         * tests/test-open.c: Likewise.
56476         * tests/test-printf-frexp.c: Likewise.
56477         * tests/test-printf-frexpl.c: Likewise.
56478         * tests/test-printf-posix.c: Likewise.
56479         * tests/test-printf-posix.h: Likewise.
56480         * tests/test-rbtree_list.c: Likewise.
56481         * tests/test-rbtree_oset.c: Likewise.
56482         * tests/test-rbtreehash_list.c: Likewise.
56483         * tests/test-read-file.c: Likewise.
56484         * tests/test-rijndael.c: Likewise.
56485         * tests/test-search.c: Likewise.
56486         * tests/test-signbit.c: Likewise.
56487         * tests/test-sleep.c: Likewise.
56488         * tests/test-snprintf-posix.c: Likewise.
56489         * tests/test-snprintf-posix.h: Likewise.
56490         * tests/test-snprintf.c: Likewise.
56491         * tests/test-sprintf-posix.c: Likewise.
56492         * tests/test-sprintf-posix.h: Likewise.
56493         * tests/test-stat-time.c: Likewise.
56494         * tests/test-stdbool.c: Likewise.
56495         * tests/test-stdint.c: Likewise.
56496         * tests/test-stdio.c: Likewise.
56497         * tests/test-stdlib.c: Likewise.
56498         * tests/test-stpncpy.c: Likewise.
56499         * tests/test-strcasestr.c: Likewise.
56500         * tests/test-striconv.c: Likewise.
56501         * tests/test-striconveh.c: Likewise.
56502         * tests/test-striconveha.c: Likewise.
56503         * tests/test-string.c: Likewise.
56504         * tests/test-sys_select.c: Likewise.
56505         * tests/test-sys_socket.c: Likewise.
56506         * tests/test-sys_stat.c: Likewise.
56507         * tests/test-sys_time.c: Likewise.
56508         * tests/test-sysexits.c: Likewise.
56509         * tests/test-time.c: Likewise.
56510         * tests/test-tls.c: Likewise.
56511         * tests/test-trunc.c: Likewise.
56512         * tests/test-truncf.c: Likewise.
56513         * tests/test-truncl.c: Likewise.
56514         * tests/test-unistd.c: Likewise.
56515         * tests/test-vasnprintf-posix.c: Likewise.
56516         * tests/test-vasnprintf-posix2.c: Likewise.
56517         * tests/test-vasnprintf.c: Likewise.
56518         * tests/test-vasprintf-posix.c: Likewise.
56519         * tests/test-vasprintf.c: Likewise.
56520         * tests/test-verify.c: Likewise.
56521         * tests/test-vfprintf-posix.c: Likewise.
56522         * tests/test-vprintf-posix.c: Likewise.
56523         * tests/test-vsnprintf-posix.c: Likewise.
56524         * tests/test-vsnprintf.c: Likewise.
56525         * tests/test-vsprintf-posix.c: Likewise.
56526         * tests/test-wchar.c: Likewise.
56527         * tests/test-wctype.c: Likewise.
56528         * tests/test-wcwidth.c: Likewise.
56529         * tests/test-xstrtol.c: Likewise.
56530         * tests/test-xvasprintf.c: Likewise.
56531         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56532         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56533         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56534         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56535         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56536         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56537         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56538         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56539         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56540         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56541         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56542         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56543         * tests/uniname/test-uninames.c: Likewise.
56544         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56545         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56546         * tests/unistdio/test-u16-printf1.h: Likewise.
56547         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56548         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56549         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56550         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56551         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56552         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56553         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56554         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56555         * tests/unistdio/test-u32-printf1.h: Likewise.
56556         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56557         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56558         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56559         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56560         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56561         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56562         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56563         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56564         * tests/unistdio/test-u8-printf1.h: Likewise.
56565         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56566         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56567         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56568         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56569         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56570         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56571         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56572         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56573         * tests/unistdio/test-ulc-printf1.h: Likewise.
56574         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56575         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56576         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56577         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56578         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56579         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56580         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56581         * tests/uniwidth/test-u16-width.c: Likewise.
56582         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56583         * tests/uniwidth/test-u32-width.c: Likewise.
56584         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56585         * tests/uniwidth/test-u8-width.c: Likewise.
56586         * tests/uniwidth/test-uc_width.c: Likewise.
56587         * config/srclist-update: Likewise.
56588         (fixlicense): Update to GPLv3+.
56589
56590         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56591         * tests/test-tsearch.c: Change copyright notice.
56592
56593         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56594         * lib/c-strcaseeq.h: Change copyright notice.
56595         * lib/streq.h: Likewise.
56596         * lib/uniconv.h: Likewise.
56597         * lib/uniconv/u-conv-from-enc.h: Likewise.
56598         * lib/uniconv/u-conv-to-enc.h: Likewise.
56599         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56600         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56601         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56602         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56603         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56604         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56605         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56606         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56607         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56608         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56609         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56610         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56611         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56612         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56613         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56614         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56615         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56616         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56617         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56618         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56619         * lib/uniname.h: Likewise.
56620         * lib/uniname/uniname.c: Likewise.
56621         * lib/unistdio.h: Likewise.
56622         * lib/unistdio/u-asnprintf.h: Likewise.
56623         * lib/unistdio/u-asprintf.h: Likewise.
56624         * lib/unistdio/u-printf-args.c: Likewise.
56625         * lib/unistdio/u-printf-args.h: Likewise.
56626         * lib/unistdio/u-printf-parse.h: Likewise.
56627         * lib/unistdio/u-snprintf.h: Likewise.
56628         * lib/unistdio/u-sprintf.h: Likewise.
56629         * lib/unistdio/u-vasprintf.h: Likewise.
56630         * lib/unistdio/u-vsnprintf.h: Likewise.
56631         * lib/unistdio/u-vsprintf.h: Likewise.
56632         * lib/unistdio/u16-asnprintf.c: Likewise.
56633         * lib/unistdio/u16-asprintf.c: Likewise.
56634         * lib/unistdio/u16-printf-parse.c: Likewise.
56635         * lib/unistdio/u16-snprintf.c: Likewise.
56636         * lib/unistdio/u16-sprintf.c: Likewise.
56637         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56638         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56639         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56640         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56641         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56642         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56643         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56644         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56645         * lib/unistdio/u16-vasnprintf.c: Likewise.
56646         * lib/unistdio/u16-vasprintf.c: Likewise.
56647         * lib/unistdio/u16-vsnprintf.c: Likewise.
56648         * lib/unistdio/u16-vsprintf.c: Likewise.
56649         * lib/unistdio/u32-asnprintf.c: Likewise.
56650         * lib/unistdio/u32-asprintf.c: Likewise.
56651         * lib/unistdio/u32-printf-parse.c: Likewise.
56652         * lib/unistdio/u32-snprintf.c: Likewise.
56653         * lib/unistdio/u32-sprintf.c: Likewise.
56654         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56655         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56656         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56657         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56658         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56659         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56660         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56661         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56662         * lib/unistdio/u32-vasnprintf.c: Likewise.
56663         * lib/unistdio/u32-vasprintf.c: Likewise.
56664         * lib/unistdio/u32-vsnprintf.c: Likewise.
56665         * lib/unistdio/u32-vsprintf.c: Likewise.
56666         * lib/unistdio/u8-asnprintf.c: Likewise.
56667         * lib/unistdio/u8-asprintf.c: Likewise.
56668         * lib/unistdio/u8-printf-parse.c: Likewise.
56669         * lib/unistdio/u8-snprintf.c: Likewise.
56670         * lib/unistdio/u8-sprintf.c: Likewise.
56671         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56672         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56673         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56674         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56675         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56676         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56677         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56678         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56679         * lib/unistdio/u8-vasnprintf.c: Likewise.
56680         * lib/unistdio/u8-vasprintf.c: Likewise.
56681         * lib/unistdio/u8-vsnprintf.c: Likewise.
56682         * lib/unistdio/u8-vsprintf.c: Likewise.
56683         * lib/unistdio/ulc-asnprintf.c: Likewise.
56684         * lib/unistdio/ulc-asprintf.c: Likewise.
56685         * lib/unistdio/ulc-printf-parse.c: Likewise.
56686         * lib/unistdio/ulc-snprintf.c: Likewise.
56687         * lib/unistdio/ulc-sprintf.c: Likewise.
56688         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56689         * lib/unistdio/ulc-vasprintf.c: Likewise.
56690         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56691         * lib/unistdio/ulc-vsprintf.c: Likewise.
56692         * lib/unistr.h: Likewise.
56693         * lib/unistr/u-cpy-alloc.h: Likewise.
56694         * lib/unistr/u-cpy.h: Likewise.
56695         * lib/unistr/u-endswith.h: Likewise.
56696         * lib/unistr/u-move.h: Likewise.
56697         * lib/unistr/u-set.h: Likewise.
56698         * lib/unistr/u-startswith.h: Likewise.
56699         * lib/unistr/u-stpcpy.h: Likewise.
56700         * lib/unistr/u-stpncpy.h: Likewise.
56701         * lib/unistr/u-strcat.h: Likewise.
56702         * lib/unistr/u-strcpy.h: Likewise.
56703         * lib/unistr/u-strcspn.h: Likewise.
56704         * lib/unistr/u-strdup.h: Likewise.
56705         * lib/unistr/u-strlen.h: Likewise.
56706         * lib/unistr/u-strncat.h: Likewise.
56707         * lib/unistr/u-strncpy.h: Likewise.
56708         * lib/unistr/u-strnlen.h: Likewise.
56709         * lib/unistr/u-strpbrk.h: Likewise.
56710         * lib/unistr/u-strspn.h: Likewise.
56711         * lib/unistr/u-strstr.h: Likewise.
56712         * lib/unistr/u-strtok.h: Likewise.
56713         * lib/unistr/u16-check.c: Likewise.
56714         * lib/unistr/u16-chr.c: Likewise.
56715         * lib/unistr/u16-cmp.c: Likewise.
56716         * lib/unistr/u16-cpy-alloc.c: Likewise.
56717         * lib/unistr/u16-cpy.c: Likewise.
56718         * lib/unistr/u16-endswith.c: Likewise.
56719         * lib/unistr/u16-mblen.c: Likewise.
56720         * lib/unistr/u16-mbsnlen.c: Likewise.
56721         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56722         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56723         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56724         * lib/unistr/u16-mbtouc.c: Likewise.
56725         * lib/unistr/u16-mbtoucr.c: Likewise.
56726         * lib/unistr/u16-move.c: Likewise.
56727         * lib/unistr/u16-next.c: Likewise.
56728         * lib/unistr/u16-prev.c: Likewise.
56729         * lib/unistr/u16-set.c: Likewise.
56730         * lib/unistr/u16-startswith.c: Likewise.
56731         * lib/unistr/u16-stpcpy.c: Likewise.
56732         * lib/unistr/u16-stpncpy.c: Likewise.
56733         * lib/unistr/u16-strcat.c: Likewise.
56734         * lib/unistr/u16-strchr.c: Likewise.
56735         * lib/unistr/u16-strcmp.c: Likewise.
56736         * lib/unistr/u16-strcpy.c: Likewise.
56737         * lib/unistr/u16-strcspn.c: Likewise.
56738         * lib/unistr/u16-strdup.c: Likewise.
56739         * lib/unistr/u16-strlen.c: Likewise.
56740         * lib/unistr/u16-strmblen.c: Likewise.
56741         * lib/unistr/u16-strmbtouc.c: Likewise.
56742         * lib/unistr/u16-strncat.c: Likewise.
56743         * lib/unistr/u16-strncmp.c: Likewise.
56744         * lib/unistr/u16-strncpy.c: Likewise.
56745         * lib/unistr/u16-strnlen.c: Likewise.
56746         * lib/unistr/u16-strpbrk.c: Likewise.
56747         * lib/unistr/u16-strrchr.c: Likewise.
56748         * lib/unistr/u16-strspn.c: Likewise.
56749         * lib/unistr/u16-strstr.c: Likewise.
56750         * lib/unistr/u16-strtok.c: Likewise.
56751         * lib/unistr/u16-to-u32.c: Likewise.
56752         * lib/unistr/u16-to-u8.c: Likewise.
56753         * lib/unistr/u16-uctomb-aux.c: Likewise.
56754         * lib/unistr/u16-uctomb.c: Likewise.
56755         * lib/unistr/u32-check.c: Likewise.
56756         * lib/unistr/u32-chr.c: Likewise.
56757         * lib/unistr/u32-cmp.c: Likewise.
56758         * lib/unistr/u32-cpy-alloc.c: Likewise.
56759         * lib/unistr/u32-cpy.c: Likewise.
56760         * lib/unistr/u32-endswith.c: Likewise.
56761         * lib/unistr/u32-mblen.c: Likewise.
56762         * lib/unistr/u32-mbsnlen.c: Likewise.
56763         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56764         * lib/unistr/u32-mbtouc.c: Likewise.
56765         * lib/unistr/u32-mbtoucr.c: Likewise.
56766         * lib/unistr/u32-move.c: Likewise.
56767         * lib/unistr/u32-next.c: Likewise.
56768         * lib/unistr/u32-prev.c: Likewise.
56769         * lib/unistr/u32-set.c: Likewise.
56770         * lib/unistr/u32-startswith.c: Likewise.
56771         * lib/unistr/u32-stpcpy.c: Likewise.
56772         * lib/unistr/u32-stpncpy.c: Likewise.
56773         * lib/unistr/u32-strcat.c: Likewise.
56774         * lib/unistr/u32-strchr.c: Likewise.
56775         * lib/unistr/u32-strcmp.c: Likewise.
56776         * lib/unistr/u32-strcpy.c: Likewise.
56777         * lib/unistr/u32-strcspn.c: Likewise.
56778         * lib/unistr/u32-strdup.c: Likewise.
56779         * lib/unistr/u32-strlen.c: Likewise.
56780         * lib/unistr/u32-strmblen.c: Likewise.
56781         * lib/unistr/u32-strmbtouc.c: Likewise.
56782         * lib/unistr/u32-strncat.c: Likewise.
56783         * lib/unistr/u32-strncmp.c: Likewise.
56784         * lib/unistr/u32-strncpy.c: Likewise.
56785         * lib/unistr/u32-strnlen.c: Likewise.
56786         * lib/unistr/u32-strpbrk.c: Likewise.
56787         * lib/unistr/u32-strrchr.c: Likewise.
56788         * lib/unistr/u32-strspn.c: Likewise.
56789         * lib/unistr/u32-strstr.c: Likewise.
56790         * lib/unistr/u32-strtok.c: Likewise.
56791         * lib/unistr/u32-to-u16.c: Likewise.
56792         * lib/unistr/u32-to-u8.c: Likewise.
56793         * lib/unistr/u32-uctomb.c: Likewise.
56794         * lib/unistr/u8-check.c: Likewise.
56795         * lib/unistr/u8-chr.c: Likewise.
56796         * lib/unistr/u8-cmp.c: Likewise.
56797         * lib/unistr/u8-cpy-alloc.c: Likewise.
56798         * lib/unistr/u8-cpy.c: Likewise.
56799         * lib/unistr/u8-endswith.c: Likewise.
56800         * lib/unistr/u8-mblen.c: Likewise.
56801         * lib/unistr/u8-mbsnlen.c: Likewise.
56802         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56803         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56804         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56805         * lib/unistr/u8-mbtouc.c: Likewise.
56806         * lib/unistr/u8-mbtoucr.c: Likewise.
56807         * lib/unistr/u8-move.c: Likewise.
56808         * lib/unistr/u8-next.c: Likewise.
56809         * lib/unistr/u8-prev.c: Likewise.
56810         * lib/unistr/u8-set.c: Likewise.
56811         * lib/unistr/u8-startswith.c: Likewise.
56812         * lib/unistr/u8-stpcpy.c: Likewise.
56813         * lib/unistr/u8-stpncpy.c: Likewise.
56814         * lib/unistr/u8-strcat.c: Likewise.
56815         * lib/unistr/u8-strchr.c: Likewise.
56816         * lib/unistr/u8-strcmp.c: Likewise.
56817         * lib/unistr/u8-strcpy.c: Likewise.
56818         * lib/unistr/u8-strcspn.c: Likewise.
56819         * lib/unistr/u8-strdup.c: Likewise.
56820         * lib/unistr/u8-strlen.c: Likewise.
56821         * lib/unistr/u8-strmblen.c: Likewise.
56822         * lib/unistr/u8-strmbtouc.c: Likewise.
56823         * lib/unistr/u8-strncat.c: Likewise.
56824         * lib/unistr/u8-strncmp.c: Likewise.
56825         * lib/unistr/u8-strncpy.c: Likewise.
56826         * lib/unistr/u8-strnlen.c: Likewise.
56827         * lib/unistr/u8-strpbrk.c: Likewise.
56828         * lib/unistr/u8-strrchr.c: Likewise.
56829         * lib/unistr/u8-strspn.c: Likewise.
56830         * lib/unistr/u8-strstr.c: Likewise.
56831         * lib/unistr/u8-strtok.c: Likewise.
56832         * lib/unistr/u8-to-u16.c: Likewise.
56833         * lib/unistr/u8-to-u32.c: Likewise.
56834         * lib/unistr/u8-uctomb-aux.c: Likewise.
56835         * lib/unistr/u8-uctomb.c: Likewise.
56836         * lib/unitypes.h: Likewise.
56837         * lib/uniwidth.h: Likewise.
56838         * lib/uniwidth/cjk.h: Likewise.
56839         * lib/uniwidth/u16-strwidth.c: Likewise.
56840         * lib/uniwidth/u16-width.c: Likewise.
56841         * lib/uniwidth/u32-strwidth.c: Likewise.
56842         * lib/uniwidth/u32-width.c: Likewise.
56843         * lib/uniwidth/u8-strwidth.c: Likewise.
56844         * lib/uniwidth/u8-width.c: Likewise.
56845         * lib/uniwidth/width.c: Likewise.
56846
56847 2007-10-07  Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56850         The file is still under LGPL (see modules/inttypes).
56851
56852 2007-10-06  Bruno Haible  <bruno@clisp.org>
56853
56854         * modules/trunc (Dependencies): Add 'extensions'.
56855         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56856         Reported by Ben Pfaff <blp@gnu.org>.
56857
56858 2007-10-06  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/freopen-tests: New file.
56861         * tests/test-freopen.c: New file.
56862
56863         * modules/fopen-tests: New file.
56864         * tests/test-fopen.c: New file.
56865
56866         * modules/fopen: New file.
56867         * lib/fopen.c: New file.
56868         * m4/fopen.m4: New file.
56869         * modules/freopen: New file.
56870         * lib/freopen.c: New file.
56871         * m4/freopen.m4: New file.
56872         * lib/stdio.in.h (fopen, freopen): New declarations.
56873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56874         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56875         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56876         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56877         * doc/functions/fopen.texi: Mention the 'fopen' module.
56878         * doc/functions/freopen.texi: Mention the 'freopen' module.
56879
56880 2007-10-06  Bruno Haible  <bruno@clisp.org>
56881
56882         * modules/open-tests: New file.
56883         * tests/test-open.c: New file.
56884
56885         * modules/open: New file.
56886         * lib/open.c: New file.
56887         * m4/open.m4: New file.
56888         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56889         lib/open.c does.
56890         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56891         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56892         macros.
56893         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56894         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56895         REPLACE_OPEN.
56896         * doc/functions/open.texi: Mention the 'open' module.
56897
56898 2007-10-04  Bruno Haible  <bruno@clisp.org>
56899
56900         * modules/ceill-tests: New file.
56901         * tests/test-ceill.c: New file.
56902
56903         * modules/ceill: New file.
56904         * lib/ceill.c: Replace entire file.
56905         * m4/ceill.m4: New file.
56906         * lib/math.in.h (ceill): Replace declaration.
56907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56908         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56909         * doc/functions/ceill.texi: Mention the 'ceill' module.
56910         * modules/mathl (Files): Remove lib/ceill.c.
56911         (Depends-on): Add ceill.
56912
56913 2007-10-04  Bruno Haible  <bruno@clisp.org>
56914
56915         * modules/ceilf-tests: New file.
56916         * tests/test-ceilf.c: New file.
56917
56918         * modules/ceilf: New file.
56919         * lib/ceil.c: New file.
56920         * lib/ceilf.c: New file.
56921         * m4/ceilf.m4: New file.
56922         * lib/math.in.h (ceilf): New declaration.
56923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56924         HAVE_DECL_CEILF.
56925         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56926         HAVE_DECL_CEILF.
56927         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56928
56929 2007-10-04  Bruno Haible  <bruno@clisp.org>
56930
56931         * modules/floorl-tests: New file.
56932         * tests/test-floorl.c: New file.
56933
56934         * modules/floorl: New file.
56935         * lib/floorl.c: Replace entire file.
56936         * m4/floorl.m4: New file.
56937         * lib/math.in.h (floorl): Replace declaration.
56938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56939         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56940         * doc/functions/floorl.texi: Mention the 'floorl' module.
56941         * modules/mathl (Files): Remove lib/floorl.c.
56942         (Depends-on): Add floorl.
56943
56944 2007-10-04  Bruno Haible  <bruno@clisp.org>
56945
56946         * modules/floorf-tests: New file.
56947         * tests/test-floorf.c: New file.
56948
56949         * modules/floorf: New file.
56950         * lib/floor.c: New file.
56951         * lib/floorf.c: New file.
56952         * m4/floorf.m4: New file.
56953         * lib/math.in.h (floorf): New declaration.
56954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56955         HAVE_DECL_FLOORF.
56956         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56957         HAVE_DECL_FLOORF.
56958         * doc/functions/floorf.texi: Mention the 'floorf' module.
56959
56960 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56961             Bruno Haible  <bruno@clisp.org>
56962
56963         Advertise for the Git server instead of the CVS server.
56964         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56965         repository instead of the CVS one.
56966         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56967         about all VCS systems generically.
56968         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56969
56970 2007-10-04  Bruno Haible  <bruno@clisp.org>
56971
56972         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56973         means.
56974         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56975
56976 2007-10-04  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/truncl-tests: New file.
56979         * tests/test-truncl.c: New file.
56980
56981         * modules/truncl: New file.
56982         * lib/truncl.c: New file.
56983         * m4/truncl.m4: New file.
56984         * lib/math.in.h (truncl): New declaration.
56985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56986         HAVE_DECL_TRUNCL.
56987         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56988         HAVE_DECL_TRUNCL.
56989         * doc/functions/truncl.texi: Mention the 'truncl' module.
56990
56991 2007-10-04  Bruno Haible  <bruno@clisp.org>
56992
56993         * modules/truncf-tests: New file.
56994         * tests/test-truncf.c: New file.
56995
56996         * modules/truncf: New file.
56997         * lib/trunc.c: Make paramerizable through USE_* macros.
56998         * lib/truncf.c: New file.
56999         * m4/truncf.m4: New file.
57000         * lib/math.in.h (truncf): New declaration.
57001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57002         HAVE_DECL_TRUNCF.
57003         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57004         HAVE_DECL_TRUNCF.
57005         * doc/functions/truncf.texi: Mention the 'truncf' module.
57006
57007 2007-10-03  Bruno Haible  <bruno@clisp.org>
57008
57009         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57010         augmentation also for tests modules.
57011         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57012         * modules/atexit-tests (Makefile.am): Likewise.
57013         * modules/binary-io-tests (Makefile.am): Likewise.
57014         * modules/c-strcase-tests (Makefile.am): Likewise.
57015         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57016         * modules/canonicalize-tests (Makefile.am): Likewise.
57017         * modules/closein-tests (Makefile.am): Likewise.
57018         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57019         * modules/freadahead-tests (Makefile.am): Likewise.
57020         * modules/fseek-tests (Makefile.am): Likewise.
57021         * modules/fseeko-tests (Makefile.am): Likewise.
57022         * modules/ftell-tests (Makefile.am): Likewise.
57023         * modules/ftello-tests (Makefile.am): Likewise.
57024         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57025         * modules/isnanl-tests (Makefile.am): Likewise.
57026         * modules/lseek-tests (Makefile.am): Likewise.
57027         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57028         * modules/mbscasestr-tests (Makefile.am): Likewise.
57029         * modules/mbschr-tests (Makefile.am): Likewise.
57030         * modules/mbscspn-tests (Makefile.am): Likewise.
57031         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57032         * modules/mbspbrk-tests (Makefile.am): Likewise.
57033         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57034         * modules/mbsrchr-tests (Makefile.am): Likewise.
57035         * modules/mbsspn-tests (Makefile.am): Likewise.
57036         * modules/mbsstr-tests (Makefile.am): Likewise.
57037         * modules/printf-posix-tests (Makefile.am): Likewise.
57038         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57039         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57040         * modules/tsearch-tests (Makefile.am): Likewise.
57041         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57042         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57043         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57044         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57045         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57046         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57047         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57048         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57049         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57050         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57051         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57052         * modules/xstrtol-tests (Makefile.am): Likewise.
57053         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57054         * modules/yesno-tests (Makefile.am): Likewise.
57055
57056 2007-10-03  Bruno Haible  <bruno@clisp.org>
57057
57058         * modules/trunc-tests: New file.
57059         * tests/test-trunc.c: New file.
57060
57061         * modules/trunc: New file.
57062         * lib/trunc.c: New file.
57063         * m4/trunc.m4: New file.
57064         * lib/math.in.h (trunc): New declaration.
57065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57066         HAVE_DECL_TRUNC.
57067         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57068         HAVE_DECL_TRUNC.
57069         * doc/functions/trunc.texi: Mention the 'trunc' module.
57070
57071 2007-10-03  Bruno Haible  <bruno@clisp.org>
57072
57073         * tests/test-fpending.c: New file, mostly copied
57074         from coreutils/lib/t-fpending.c.
57075         * modules/fpending-tests: New file.
57076
57077 2007-10-03  Bruno Haible  <bruno@clisp.org>
57078
57079         Port the stdio extensions to QNX (untested).
57080         * lib/fseterr.c (fseterr): Add support for QNX.
57081         * lib/fbufmode.c (fbufmode): Likewise.
57082         * lib/freadable.c (freadable): Likewise.
57083         * lib/fwritable.c (fwritable): Likewise.
57084         * lib/freading.c (freading): Likewise.
57085         * lib/fwriting.c (fwriting): Likewise.
57086         * lib/freadahead.c (freadahed): Likewise.
57087         * lib/fpurge.c (fpurge): Likewise.
57088         * lib/fseeko.c (rpl_fseeko): Likewise.
57089
57090 2007-10-03  Bruno Haible  <bruno@clisp.org>
57091             Jim Meyering  <jim@meyering.net>
57092             Eric Blake  <ebb9@byu.net>
57093
57094         * doc/relocatable.texi: Use @command instead of @program.
57095
57096 2007-10-02  Jim Meyering  <jim@meyering.net>
57097
57098         Perform one more "_.h" -> ".in.h" substitution.
57099         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57100         instead of unistd_.h here, too.
57101
57102 2007-10-01  Bruno Haible  <bruno@clisp.org>
57103
57104         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57105         Needed for the alloca-opt module.
57106
57107 2007-09-30  Bruno Haible  <bruno@clisp.org>
57108
57109         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57110         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57111         alloca_.h.
57112         * lib/argz.in.h: Renamed from lib/argz_.h.
57113         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57114         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57115         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57116         byteswap_.h.
57117         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57118         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57119         dirent_.h.
57120         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57121         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57122         fcntl_.h.
57123         * lib/float.in.h: Renamed from lib/float_.h.
57124         * modules/float (Files, Makefile.am): Use float.in.h instead of
57125         float_.h.
57126         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57127         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57128         fnmatch_.h.
57129         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57130         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57131         getopt_.h.
57132         * lib/glob.in.h: Renamed from lib/glob_.h.
57133         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57134         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57135         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57136         iconv_.h.
57137         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57138         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57139         inttypes_.h.
57140         * lib/locale.in.h: Renamed from lib/locale_.h.
57141         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57142         locale_.h.
57143         * lib/math.in.h: Renamed from lib/math_.h.
57144         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57145         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57146         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57147         of netinet_in_.h. Add dependency.
57148         * lib/poll.in.h: Renamed from lib/poll_.h.
57149         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57150         * lib/search.in.h: Renamed from lib/search_.h.
57151         * modules/search (Files, Makefile.am): Use search.in.h instead of
57152         search_.h.
57153         * lib/signal.in.h: Renamed from lib/signal_.h.
57154         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57155         _signal.h.
57156         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57157         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57158         stdbool_.h.
57159         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57160         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57161         stdint_.h.
57162         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57163         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57164         stdio_.h.
57165         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57166         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57167         stdlib_.h.
57168         * lib/string.in.h: Renamed from lib/string_.h.
57169         * modules/string (Files, Makefile.am): Use string.in.h instead of
57170         string_.h.
57171         * doc/gnulib-tool.texi (Initial import): Update.
57172         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57173         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57174         of sys_select_.h. Add dependency.
57175         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57176         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57177         of sys_socket_.h.
57178         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57179         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57180         sys_stat_.h.
57181         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57182         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57183         sys_time_.h.
57184         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57185         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57186         sysexits_.h.
57187         * lib/time.in.h: Renamed from lib/time_.h.
57188         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57189         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57190         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57191         unistd_.h.
57192         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57193         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57194         wchar_.h.
57195         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57196         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57197         wctype_.h.
57198         * build-aux/bootstrap (slurp): Update.
57199         * lib/.cppi-disable: Update.
57200
57201 2007-09-30  Bruno Haible  <bruno@clisp.org>
57202
57203         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57204         Needed on BeOS.
57205
57206 2007-09-30  Bruno Haible  <bruno@clisp.org>
57207
57208         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57209
57210 2007-09-29  Bruno Haible  <bruno@clisp.org>
57211
57212         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57213
57214 2007-09-29  Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57217         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57218         * build-aux/install-reloc: Compile also areadlink.c.
57219         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57220
57221 2007-09-29  Bruno Haible  <bruno@clisp.org>
57222
57223         * gnulib-tool (func_emit_initmacro_done): Indentation.
57224
57225 2007-09-29  Bruno Haible  <bruno@clisp.org>
57226
57227         * README: Add CVS checkout update instructions.
57228         Info from Bob Proulx <bob@proulx.com>.
57229
57230 2007-09-28  Eric Blake  <ebb9@byu.net>
57231
57232         Provide move-if-change.
57233         * build-aux/move-if-change: New file, based on best practice
57234         rather than any canonical upstream location.
57235
57236 2007-09-28  Jim Meyering  <jim@meyering.net>
57237
57238         Fix canonicalize loop-detection corner case.
57239         Do not attempt to stat the symlink values stored via seen_triple.
57240         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57241         on linux-2.6.18, (but not 2.6.22).
57242         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57243         triple_compare.  The former compares dev,ino,filename, while the latter
57244         would actually stat dirname(filename) when dev and ino were equal.
57245         * lib/hash-triple.c: Install <string.h>.
57246         (STREQ): Define.
57247         (triple_compare_ino_str): New function.
57248         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57249
57250 2007-09-28  Eric Blake  <ebb9@byu.net>
57251
57252         Enforce that AC_REPLACE_FUNCS files exist.
57253         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57254         override check for typos.
57255
57256         Fix test-closein on Solaris 10.
57257         * tests/test-closein.c (main): Don't assume stdin can be inherited
57258         closed on all systems.
57259         * tests/test-closein.sh: Likewise.
57260         Reported by Piotr Tarnowski.
57261
57262 2007-09-28  Jim Meyering  <jim@meyering.net>
57263
57264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57265
57266 2007-09-27  Jim Meyering  <jim@meyering.net>
57267
57268         canonicalize: Avoid a false-positive cycle failure.
57269         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57270         Sort.  Remove cycle-check.
57271         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57272         not cycle-check.h.
57273         (seen_triple): New function.
57274         (canonicalize_filename_mode): Use it instead of cycle-check.
57275         * tests/test-canonicalize.c: Add a test for this bug.
57276         * tests/test-canonicalize.sh: Set up and run the test.
57277
57278         New module, file-set, from coreutils.
57279         * modules/file-set: Define it.
57280         * lib/file-set.c, lib/file-set.h: Implement.
57281
57282         New module, hash-triple, from coreutils.
57283         * modules/hash-triple: Define it.
57284         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57285
57286 2007-09-25  Eric Blake  <ebb9@byu.net>
57287
57288         Fix strerror on Interix.
57289         * lib/string_.h (strerror): Declare replacement.
57290         * doc/functions/strerror.texi (strerror): Document the Interix
57291         shortcoming.
57292         * modules/string (Makefile.am): Support new hooks.
57293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57294         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57295         gl_FUNC_STRERROR_SEPARATE.
57296         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57297         * lib/strerror.c (rpl_strerror): Provide replacement.
57298         * modules/strerror (Depends-on): Add string.
57299         (configure.ac): Detect use of module.
57300         * tests/test-strerror.c: New file.
57301         * modules/strerror-tests: New test module.
57302         * modules/argp (Depends-on): Add strerror.
57303         * modules/error (Depends-on): Likewise.
57304         Reported by Martin Koeppe.
57305
57306 2007-09-24  Bruno Haible  <bruno@clisp.org>
57307
57308         * README: Update git instructions.
57309
57310 2007-09-24  Eric Blake  <ebb9@byu.net>
57311
57312         Revert fpending breakage from 2007-09-08.
57313         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57314         __fpending.c.
57315
57316 2007-09-24  Jim Meyering  <jim@meyering.net>
57317
57318         filenamecat.c: Add a test.
57319         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57320         showing how the function works when DIR is the empty string.
57321
57322 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57323
57324         * tests/test-canonicalize.sh: Turn on executable bit.
57325
57326 2007-09-19  Eric Blake  <ebb9@byu.net>
57327
57328         * README: Update CVS instructions.
57329
57330 2007-09-18  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/areadlink: New file.
57333         * lib/areadlink.h (areadlink): New declaration.
57334         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57335
57336 2007-09-17  Jim Meyering  <jim@meyering.net>
57337
57338         * lib/savewd.c (ESTALE) [!defined]: Define.
57339         Reported to be required on Interix by Martin Koeppe.
57340
57341 2007-09-17  Bruno Haible  <bruno@clisp.org>
57342
57343         * gnulib-tool (func_version): Use $version.
57344
57345 2007-09-16  Bruno Haible  <bruno@clisp.org>
57346
57347         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57348         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57349         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57350         Reported by Greg Schafer <gschafer@zip.com.au>.
57351
57352 2007-09-15  Bruno Haible  <bruno@clisp.org>
57353
57354         * gnulib-tool (sed): Try a little harder to make bash understand the
57355         alias.
57356         Reported by Bruce Korb <bruce.korb@gmail.com>.
57357
57358 2007-09-13  Eric Blake  <ebb9@byu.net>
57359
57360         * ChangeLog: Remove conflict markers.
57361
57362 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57363
57364         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57365         Reported by Bruno Haible <bruno@clisp.org>.
57366
57367 2007-09-12  Bruno Haible  <bruno@clisp.org>
57368
57369         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57370         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57371         is not defined.
57372
57373 2007-09-12  Eric Blake  <ebb9@byu.net>
57374
57375         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57377         Autoconf definition.
57378         * modules/euidaccess (Depends-on): Add extensions, for
57379         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57380         * modules/fnmatch (Depends-on): Likewise.
57381         * modules/getaddrinfo (Depends-on): Likewise.
57382         * modules/getdelim (Depends-on): Likewise.
57383         * modules/getline (Depends-on): Likewise.
57384         * modules/getsubopt (Depends-on): Likewise.
57385         * modules/gettext (Depends-on): Likewise.
57386         * modules/group-member (Depends-on): Likewise.
57387         * modules/mbchar (Depends-on): Likewise.
57388         * modules/memmem (Depends-on): Likewise.
57389         * modules/mempcpy (Depends-on): Likewise.
57390         * modules/memrchr (Depends-on): Likewise.
57391         * modules/pagealign_alloc (Depends-on): Likewise.
57392         * modules/readutmp (Depends-on): Likewise.
57393         * modules/stpcpy (Depends-on): Likewise.
57394         * modules/stpncpy (Depends-on): Likewise.
57395         * modules/strchrnul (Depends-on): Likewise.
57396         * modules/strndup (Depends-on): Likewise.
57397         * modules/strsep (Depends-on): Likewise.
57398         * modules/strverscmp (Depends-on): Likewise.
57399         * modules/vasprintf (Depends-on): Likewise.
57400         * modules/wcwidth (Depends-on): Likewise.
57401         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57402         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57403         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57405         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57406         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57407         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57408         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57409         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57410         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57411         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57412         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57414         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57415         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57416         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57417         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57418         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57421         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57422         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57423         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57424         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57425         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57427         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57428         so that lock.m4 can be used in gettext without extensions module.
57429
57430 2007-09-11  Bruno Haible  <bruno@clisp.org>
57431
57432         * m4/isc-posix.m4: Remove file.
57433         Suggested by Eric Blake.
57434
57435 2007-09-11  Eric Blake  <ebb9@byu.net>
57436
57437         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57438
57439 2007-09-10  Bruno Haible  <bruno@clisp.org>
57440
57441         * posix-modules: Fix typo in error message.
57442         Reported by Matt <mkraai@beckman.com>.
57443
57444 2007-09-09  Bruno Haible  <bruno@clisp.org>
57445
57446         * doc/functions/getdelim.texi: Update list of platforms lacking the
57447         function.
57448         * doc/functions/getline.texi: Likewise.
57449
57450 2007-09-09  Jim Meyering  <jim@meyering.net>
57451
57452         * lib/hash.c (hash_initialize): Detect calloc failure.
57453         Reported by Bruno Haible.
57454
57455 2007-09-09  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57458         malloc or realloc fails.
57459
57460 2007-09-09  Bruno Haible  <bruno@clisp.org>
57461
57462         * modules/getcwd (Depends-on): Add malloc-posix.
57463         * modules/glob (Depends-on): Likewise.
57464         * modules/putenv (Depends-on): Likewise.
57465         * modules/strdup (Depends-on): Likewise.
57466         * modules/getdelim (Depends-on): Add realloc-posix.
57467         * modules/read-file (Depends-on): Likewise.
57468
57469 2007-09-09  Bruno Haible  <bruno@clisp.org>
57470
57471         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57472         (gl_FUNC_MALLOC_POSIX): Require it.
57473         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57474         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57475         * modules/realloc (Files): Add m4/malloc.m4.
57476         * modules/calloc (Files): Likewise.
57477
57478 2007-09-09  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/malloc-posix: New file.
57481         * modules/malloc (Depends-on): Add malloc-posix.
57482         * lib/malloc.c: Include errno.h.
57483         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57484         and a POSIX-compatible malloc into a single function. Set ENOMEM
57485         when returning NULL.
57486         * m4/malloc.m4: New file.
57487         * doc/functions/malloc.texi: Mention the malloc-posix module.
57488         * lib/stdlib_.h (malloc): New declaration.
57489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57490         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57491         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57492         and HAVE_MALLOC_POSIX.
57493
57494 2007-09-09  Bruno Haible  <bruno@clisp.org>
57495
57496         * modules/realloc-posix: New file.
57497         * modules/realloc (Depends-on): Add realloc-posix.
57498         * lib/realloc.c: Include errno.h.
57499         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57500         and a POSIX-compatible realloc into a single function. Set ENOMEM
57501         when returning NULL.
57502         * m4/realloc.m4: New file.
57503         * doc/functions/realloc.texi: Mention the realloc-posix module.
57504         * lib/stdlib_.h (realloc): New declaration.
57505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57506         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57507         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57508         and HAVE_REALLOC_POSIX.
57509
57510 2007-09-09  Bruno Haible  <bruno@clisp.org>
57511
57512         * modules/calloc-posix: New file.
57513         * modules/calloc (Depends-on): Add calloc-posix.
57514         * lib/calloc.c: Include errno.h.
57515         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57516         and a POSIX-compatible calloc into a single function. Set ENOMEM
57517         when returning NULL.
57518         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57519         * doc/functions/calloc.texi: Mention the calloc-posix module.
57520         * lib/stdlib_.h (calloc): New declaration.
57521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57522         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57523         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57524         and HAVE_CALLOC_POSIX.
57525
57526 2007-09-09  Bruno Haible  <bruno@clisp.org>
57527
57528         Allow for modules to show an arbitrary notice.
57529         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57530         * gnulib-tool: New option --extract-notice.
57531         (func_usage): Document it.
57532         (sed_extract_prog): Update.
57533         (func_get_notice): New function.
57534         (func_modules_notice): New function.
57535         (func_import, func_create_testdir): Invoke it.
57536         Suggested by Jim Meyering.
57537
57538 2007-09-09  Bruno Haible  <bruno@clisp.org>
57539
57540         * gnulib-tool: New options --verbose, --quiet.
57541         (func_usage): Document them.
57542         (verbose): New variable.
57543         (func_execute_command): New function.
57544         (func_import): Don't show the module list and the file list if
57545         $verbose < 0.
57546         (func_create_testdir): Likewise. Use func_execute_command.
57547         (func_create_megatestdir): Use func_execute_command.
57548
57549 2007-09-08  Bruno Haible  <bruno@clisp.org>
57550
57551         * gnulib-tool (func_import): Prefer rsync over wget when available,
57552         for fetching the PO files.
57553
57554 2007-09-08  Bruno Haible  <bruno@clisp.org>
57555
57556         * posix-modules: New file. Portions copied from gnulib-tool.
57557         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57558
57559 2007-09-08  Jim Meyering  <jim@meyering.net>
57560
57561         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57562         * lib/fpending.h: Rename from __fpending.h.
57563         * lib/fpending.c: Rename from __fpending.c.
57564         Include "fpending.h", not "__fpending.h".
57565         * lib/__fpending.h, lib/__fpending.c: Remove files.
57566         * modules/fpending (Files): Reflect new file names.
57567         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57568
57569 2007-09-08  Bruno Haible  <bruno@clisp.org>
57570
57571         * m4/inttypes-h.m4: Remove stub file.
57572
57573 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57574
57575         * doc/headers/stdint.texi: Discuss #include_next issue.
57576
57577 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57578
57579         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57580
57581 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57582
57583         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57584         in variable name.
57585
57586 2007-09-03  Jim Meyering  <jim@meyering.net>
57587
57588         New module: git-version-gen.
57589         * modules/git-version-gen: New file.
57590
57591         Import changes from coreutils for bootstrap script.
57592
57593         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57594
57595         bootstrap: uses rsync to download the .po files
57596         * build-aux/bootstrap (po_download_command_format): New global.
57597         (download_po_files): Use rsync.
57598         (update_po_files): Don't remove .po files after download,
57599         so future rsync runs can take advantage of the copies.
57600
57601         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57602
57603         Solve the unnecessary-.po-file-regeneration problem once and for all.
57604         * build-aux/bootstrap (download_po_files): New function, renamed from
57605         get_translations.  Now, downloads, but doesn't update LINGUAS.
57606         (update_po_files): New function.
57607
57608         bootstrap: Ignore more.
57609         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57610         uniwidth to e.g., lib/.gitignore.
57611         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57612
57613         * build-aux/bootstrap: New setting: vc_ignore.
57614         (insert_sorted_if_absent): Create $file if absent.
57615         Adapt to new, possibly empty, list: $vc_ignore.
57616
57617         bootstrap: generate more ignorable names
57618         * build-aux/bootstrap (slurp): When generating ignorable names,
57619         also map .sin to .sed, .gperf to .c, and .y to .c.
57620
57621 2007-09-03  Jim Meyering  <jim@meyering.net>
57622
57623         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57624         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57625
57626 2007-09-02  Bruno Haible  <bruno@clisp.org>
57627
57628         Fix mis-recognition of 'mcs' on QNX 6.
57629         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57630         output contains the string "Mono".
57631         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57632         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57633
57634 2007-09-01  Bruno Haible  <bruno@clisp.org>
57635
57636         Fix collision between uniwidth/* and linebreak modules.
57637         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57638         u32_width): Remove declarations.
57639         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57640         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57641         streq3, streq2, streq1, streq0): Remove functions.
57642         (STREQ): Remove macro.
57643         (is_cjk_encoding): Remove function.
57644         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57645         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57646         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57647         * NEWS: Document the change.
57648
57649 2007-09-01  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/streq.h: Add double-inclusion guard.
57652
57653 2007-09-01  Karl Berry  <karl@gnu.org>
57654
57655         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57656
57657 2007-08-28  Jim Meyering  <jim@meyering.net>
57658
57659         Rename mreadlink_with_size to areadlink_with_size.
57660         * NEWS: Document the change.
57661         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57662         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57663         * lib/mreadlink.h: Rename this to...
57664         * lib/areadlink.h: ...this.
57665         * modules/mreadlink-with-size: Rename this to...
57666         * modules/areadlink-with-size: ...this.
57667         * lib/canonicalize.c: Reflect the renaming.
57668         * modules/canonicalize: Likewise.
57669
57670 2007-08-26  Bruno Haible  <bruno@clisp.org>
57671
57672         * gnulib-tool (func_import): When deciding which files to remove,
57673         consider also dangling symbolic links.
57674         Reported by Eric Blake.
57675
57676 2007-08-26  Bruno Haible  <bruno@clisp.org>
57677
57678         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57679
57680 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57681
57682         * lib/readline.c: Don't include getline.h, the prototype is now
57683         found in stdio.h.
57684
57685 2007-08-23  Jim Meyering  <jim@meyering.net>
57686
57687         Getdelim touchup.
57688         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57689         around the funlockfile call, since funlockfile never sets errno.
57690         Don't set errno upon failed realloc.
57691
57692 2007-08-22  Eric Blake  <ebb9@byu.net>
57693
57694         Getline touchups.
57695         * lib/getdelim.c (getdelim): Revert regression that required *n to
57696         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57698         getdelim, rather than whether implementation is missing.
57699         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57700         * lib/stdio_.h (getline): Also declare if replacement is
57701         required.
57702         * doc/functions/getdelim.texi: New file.
57703         * doc/functions/getline.texi: Likewise.
57704         * doc/gnulib.texi (Function Substitutes): Add new files.
57705         Reported by Bruno Haible.
57706
57707 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57708
57709         * users.txt: Add Guile.
57710
57711 2007-08-22  Eric Blake  <ebb9@byu.net>
57712
57713         * tests/test-getdelim.c (main): Use remove, not unlink.
57714         * tests/test-getline.c (main): Likewise.
57715
57716         Move getline and getdelim into stdio.h, per POSIX 200x.
57717         * modules/getline (Files): Remove getline.h.
57718         (Depends-on): Add stdio.
57719         (configure.ac): Add module indicator.
57720         * modules/getdelim (Files): Remove getdelim.h.
57721         (Depends-on): Add stdio.
57722         (configure.ac): Add module indicator.
57723         * modules/stdio (Makefile.am): Work with new indicators.
57724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57725         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57726         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57727         * lib/getdelim.h: Delete.
57728         * lib/getline.h: Delete.
57729         * lib/stdio_.h (getdelim, getline): Declare.
57730         * modules/getdelim-tests: New module.
57731         * modules/getline-tests: Likewise.
57732         * tests/test-getdelim.c: New file.
57733         * tests/test-getline.c: Likewise.
57734         * NEWS: Document the change.
57735         * lib/getline.c: Update choice of header.
57736         * lib/csharpcomp.c: Likewise.
57737         * lib/getpass.c: Likewise.
57738         * lib/javacomp.c: Likewise.
57739         * lib/javaversion.c: Likewise.
57740         * lib/yesno.c: Likewise.
57741         * lib/getdelim.c: Likewise.
57742         (getdelim): Set errno on failure, and avoid memory leak.
57743
57744 2007-08-19  Bruno Haible  <bruno@clisp.org>
57745
57746         * modules/closein (Depends-on): Add freadahead.
57747         * lib/closein.c: Include freadahead.h.
57748         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57749         is zero.
57750
57751 2007-08-19  Bruno Haible  <bruno@clisp.org>
57752
57753         * modules/freadahead-tests: New file.
57754         * tests/test-freadahead.sh: New file.
57755         * tests/test-freadahead.c: New file.
57756
57757         * modules/freadahead: New file.
57758         * lib/freadahead.h: New file.
57759         * lib/freadahead.c: New file.
57760         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57761         fbufmode, fpurge, freadable, fwritable.
57762
57763 2007-08-19  Eric Blake  <ebb9@byu.net>
57764
57765         Test yesno in combination with closein.
57766         * lib/yesno.c (yesno): Document use of stdin.
57767         * modules/yesno-tests (Files): New module.
57768         * tests/test-yesno.c (main): New file.
57769         * tests/test-yesno.sh: Likewise.
57770
57771 2007-08-19  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57774         * lib/fseeko.c (rpl_fseeko): Likewise.
57775         * lib/fseterr.c (fseterr): Likewise.
57776
57777 2007-08-19  Bruno Haible  <bruno@clisp.org>
57778
57779         * tests/test-lseek.c (main): Disable a test for BeOS.
57780         * doc/functions/lseek.texi: Document the BeOS bug.
57781
57782 2007-08-19  Bruno Haible  <bruno@clisp.org>
57783             Eric Blake  <ebb9@byu.net>
57784
57785         * lib/lseek.c: Include <sys/stat.h>.
57786         (rpl_lseek): Add workaround code also for Unix platforms.
57787         Needed for BeOS.
57788         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57789         * doc/functions/lseek.texi: Document BeOS definiency.
57790
57791 2007-08-18  Bruno Haible  <bruno@clisp.org>
57792
57793         * modules/fstrcmp-tests: New file.
57794         * tests/test-fstrcmp.c: New file.
57795
57796 2007-08-18  Bruno Haible  <bruno@clisp.org>
57797
57798         * modules/fstrcmp: New file, from GNU gettext with modifications.
57799         * lib/fstrcmp.h: New file, from GNU gettext.
57800         * lib/fstrcmp.c: New file, from GNU gettext.
57801         * MODULES.html.sh (String handling): Add fstrcmp.
57802
57803 2007-08-18  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57806         'bool'.
57807         (diag, compareseq): Remove const from the ctxt argument.
57808         (USE_HEURISTIC): Undefine at the end.
57809
57810 2007-08-18  Jim Meyering  <jim@meyering.net>
57811
57812         New file: lib/idcache.h
57813         * NEWS: Mention the addition.
57814         * modules/idcache (Files): Add lib/idcache.h
57815         * lib/idcache.c: Include "idcache.h".
57816         Don't include <sys/types.h>.
57817         Add a FIXME comment.
57818         Move file-scoped "static" declarations to the top.
57819         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57820
57821 2007-08-17  Bruno Haible  <bruno@clisp.org>
57822         and Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * MODULES.html.sh: Add diffseq.
57825         * modules/diffseq: New file.
57826         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57827         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57828
57829 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         Import changes from coreutils for bootstrap script.
57832
57833         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57834
57835         * build-aux/bootstrap (slurp): Work even in environments where
57836         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57837         current code does not slurp files whose names start with ".", and
57838         this looks like it might be a troublesome area.
57839
57840         2007-07-11  Jim Meyering  <jim@meyering.net>
57841
57842         If there's a GPL vN copyright comment, require that N == 3.
57843
57844         2007-07-08  Jim Meyering  <jim@meyering.net>
57845
57846         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57847         * build-aux/bootstrap (mam_template): Move definition out of loop.
57848
57849         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57850
57851         * build-aux/bootstrap (symlink_to_dir): Rename function from
57852         symlink_to_gnulib.  Add a directory parameter.  Update all
57853         callers.
57854         (cp_mark_as_generated): Also check for -- and link to -- files in
57855         gl/.
57856
57857         2007-07-08  Jim Meyering  <jim@meyering.net>
57858
57859         Adapt to deeper hierarchy in gnulib.
57860         * build-aux/bootstrap (symlink_to_dir): If the destination
57861         directory doesn't exist, create it. This is required at least for
57862         "lib/uniwidth/cjk.h".
57863
57864         2007-05-15  Jim Meyering  <jim@meyering.net>
57865
57866         * build-aux/bootstrap: Now that generated Makefile.am files
57867         are no longer under version control, they must be created at
57868         bootstrap time.
57869
57870 2007-08-14  Ben Pfaff  <blp@gnu.org>
57871
57872         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57873
57874 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57875
57876         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57877         given the changes below.
57878         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57879         even on hosts that have padding bits beyond the supported 64.
57880
57881 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57884         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57885         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57886         depends on it.
57887         (xstrtol_error): Remove.
57888         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57889         but with a different signature.
57890         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57891         * lib/xstrtol-error.c: Include exitfail.h.
57892         (xstrtol_fatal): New function, with a different signature from the
57893         old xstrtol_error, so that the caller need not worry about passing
57894         in an exit status, or about storage management of the option argument.
57895         (xstrtol_error): Now a static function.  Redo signature to
57896         implement xstrtol_fatal.  Output the correct number of hyphens in
57897         front of the option so that the caller need not worry about
57898         storage management.
57899         (N_): New macro.
57900         (_): Remove; not used now.
57901         * modules/xstrtol: Depend on getopt.
57902         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57903         of old STRTOL_FATAL_ERROR macro.
57904         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57905         of test program.
57906         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57907         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57908
57909 2007-08-08  Eric Blake  <ebb9@byu.net>
57910
57911         * lib/xstrtol-error.c: Add missing include.
57912
57913         Move xstrtol messages into gnulib domain, when --pobase is used.
57914         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57915         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57916         * modules/xstrtol (Files): Distribute new file.
57917         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57918         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57919         * tests/test-xstrtol.c: ...into new file.
57920         * tests/test-xstrtoul.c: Also test xstrtoul.
57921         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57922         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57923         * tests/test-xstrtol.sh: Drive the tests.
57924         * tests/test-xstrtoimax.sh: Likewise.
57925         * tests/test-xstrtoumax.sh: Likewise.
57926         * modules/xstrtol-tests: New module.
57927         * modules/xstrtoimax-tests: Likewise.
57928         * modules/xstrtoumax-tests: Likewise.
57929
57930 2007-08-08  Jim Meyering  <jim@meyering.net>
57931
57932         New function: mfile_name_concat.
57933         * lib/filenamecat.c (mfile_name_concat): New function, just like
57934         file_name_concat, but return NULL upon failure rather than exiting
57935         with a diagnostic.
57936         * lib/filenamecat.h: Declare it.
57937
57938 2007-08-07  Bruno Haible  <bruno@clisp.org>
57939
57940         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57941         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57942         warning from gcc.
57943         Reported by Eric Blake.
57944
57945 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57946
57947         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57948         * modules/crypto/arcfour (License): Likewise.
57949         * modules/crypto/des-tests (License): Likewise.
57950         * modules/crypto/gc-arctwo-tests (License): Likewise.
57951         * modules/crypto/gc-des-tests (License): Likewise.
57952         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57953         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57954         * modules/crypto/gc-md2-tests (License): Likewise.
57955         * modules/crypto/gc-md4-tests (License): Likewise.
57956         * modules/crypto/gc-md5-tests (License): Likewise.
57957         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57958         * modules/crypto/gc-rijndael-tests (License): Likewise.
57959         * modules/crypto/gc-sha1-tests (License): Likewise.
57960         * modules/crypto/gc-tests (License): Likewise.
57961         * modules/crypto/hmac-md5 (License): Likewise.
57962         * modules/crypto/hmac-sha1 (License): Likewise.
57963         * modules/crypto/md2-tests (License): Likewise.
57964         * modules/crypto/md4-tests (License): Likewise.
57965         * modules/crypto/md5 (License): Likewise.
57966         * modules/crypto/rijndael (License): Likewise.
57967         * modules/crypto/sha1 (License): Likewise.
57968         * modules/memxor (License): Likewise.
57969
57970 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57971         and Bruno Haible  <bruno@clisp.org>
57972
57973         * NEWS: Describe interface changes to human, xstrtol.
57974         * lib/human.h: Include <xstrtol.h>.
57975         (human_options): Return enum strtol_error, not int.  Remove
57976         bool arg; take int * instead.
57977         * lib/human.c: Don't include "gettext.h".
57978         (_): Remove; no longer used.
57979         Don't include <xstrtol.h>, since human.h does it.
57980         (human_options): Adjust to abovementioned interface changes.
57981         Do not report error to stderr; that's now the caller's
57982         responsibility.
57983         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57984         interface change.
57985         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57986         Str, Argument_type_string.  All uses changed.  Put " argument"
57987         in diagnostics to make them clearer.  Change wording of suffix
57988         message for clarity.
57989         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57990         Argument_type_string.
57991         (STRTOL_FATAL_WARN): Remove; no longer used.
57992         * modules/human (Depends-on): Remove gettext-h.
57993
57994 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57995
57996         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57997
57998 2007-07-31  Bruno Haible  <bruno@clisp.org>
57999
58000         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58001         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58002         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58003
58004 2007-07-31  Bruno Haible  <bruno@clisp.org>
58005
58006         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58007         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58008
58009 2007-07-30  Bruno Haible  <bruno@clisp.org>
58010
58011         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58012         * modules/c-ctype (License): Likewise.
58013         * modules/c-strcase (License): Likewise.
58014         * modules/check-version (License): Likewise.
58015         * modules/iconv (License): Likewise.
58016         * modules/iconv_open (License): Likewise.
58017         * modules/read-file (License): Likewise.
58018         * modules/striconv (License): Likewise.
58019         * modules/strverscmp (License): Likewise.
58020         * modules/vasprintf (License): Likewise.
58021         * modules/crypto/des (License): Likewise.
58022         * modules/crypto/gc (License): Likewise.
58023         * modules/crypto/gc-arcfour (License): Likewise.
58024         * modules/crypto/gc-arctwo (License): Likewise.
58025         * modules/crypto/gc-des (License): Likewise.
58026         * modules/crypto/gc-hmac-md5 (License): Likewise.
58027         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58028         * modules/crypto/gc-md2 (License): Likewise.
58029         * modules/crypto/gc-md4 (License): Likewise.
58030         * modules/crypto/gc-md5 (License): Likewise.
58031         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58032         * modules/crypto/gc-random (License): Likewise.
58033         * modules/crypto/gc-rijndael (License): Likewise.
58034         * modules/crypto/gc-sha1 (License): Likewise.
58035         * modules/crypto/md2 (License): Likewise.
58036         * modules/crypto/md4 (License): Likewise.
58037
58038 2007-07-30  Jim Meyering  <jim@meyering.net>
58039
58040         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58041         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58042         it has valid stat data.  This bug would cause du not to count the
58043         sizes of inaccessible directories.
58044         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58045         in <http://bugzilla.redhat.com/250077>.
58046
58047 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58048             Bruno Haible  <bruno@clisp.org>
58049
58050         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58051         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58052         #include_next, gives a diagnostic about it, but reports no error in
58053         the exit code.
58054         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58055
58056 2007-07-24  Ben Pfaff  <blp@gnu.org>
58057
58058         Improve name: "count-one-bits" is better than "popcount".
58059         * MODULES.html.sh: Update name.
58060         * lib/popcount.h: Renamed lib/count-one-bits.h.
58061         (popcount): Renamed count_one_bits.
58062         (popcountl): Renamed count_one_bits_l.
58063         (popcountll): Renamed count_one_bits_ll.
58064         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58065         * modules/popcount: Renamed module/count-one-bits.
58066         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58067         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58068
58069 2007-07-23  Ben Pfaff  <blp@gnu.org>
58070
58071         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58072         better code generation, and add U to large constants to avoid
58073         warnings, in non-GCC case.
58074         Suggested by Bruno Haible.
58075
58076 2007-07-23  Ben Pfaff  <blp@gnu.org>
58077
58078         * lib/popcount.h: Use verify_true instead of if...abort.
58079         * modules/popcount: Depend on verify module.
58080         Suggested by Jim Meyering.
58081
58082 2007-07-23  Bruno Haible  <bruno@clisp.org>
58083
58084         * gnulib-tool (func_import): Create a .cvsignore file also when the
58085         directory is not yet in CVS but the toplevel directory is. When
58086         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58087         Reported by Karl Berry.
58088
58089 2007-07-22  Ben Pfaff  <blp@gnu.org>
58090
58091         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58092         case.
58093         Suggested by Eric Blake.
58094
58095 2007-07-22  Ben Pfaff  <blp@gnu.org>
58096
58097         New module: popcount.
58098         * MODULES.html.sh: Add popcount.
58099         * modules/popcount: New file.
58100         * modules/popcount-tests: New file.
58101         * tests/test-popcount.c: New file.
58102         * lib/popcount.h: New file.
58103         * m4/popcount.m4: New file.
58104
58105 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * build-aux/announce-gen: Update to GPLv3.
58108
58109         * build-aux/config.guess: Update from config.
58110
58111 2007-07-21  Bruno Haible  <bruno@clisp.org>
58112
58113         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58114         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58115
58116 2007-07-20  Jim Meyering  <jim@meyering.net>
58117
58118         * check-module: Diagnose a self-dependency.
58119
58120 2007-07-19  Bruno Haible  <bruno@clisp.org>
58121
58122         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58123         empty.
58124         Reported by Eric Blake.
58125
58126 2007-07-18  Bruno Haible  <bruno@clisp.org>
58127
58128         * gnulib-tool: New options --po-base, --po-domain.
58129         (func_usage): Document them.
58130         (pobase, po_domain): New variables.
58131         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58132         DEFAULT_TEXT_DOMAIN.
58133         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58134         (func_import): Consider pobase and po_domain. Create a po/ directory.
58135         (func_create_testdir): Set pobase and po_domain to empty.
58136         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58137         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58138
58139 2007-07-18  Bruno Haible  <bruno@clisp.org>
58140
58141         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58142         EXTRA_DIST augmentation for files in build-aux/.
58143
58144 2007-07-16  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58147         * modules/getdelim (License): Likewise.
58148
58149 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58150
58151         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58152         * modules/d-type (License): Likewise.
58153         * modules/extensions (License): Likewise.
58154         * modules/fnmatch (License): Likewise.
58155         * modules/fseeko (License): Likewise.
58156         * modules/getaddrinfo (License): Likewise.
58157         * modules/getline (License): Likewise.
58158         * modules/getlogin_r (License): Likewise.
58159         * modules/getpass (License): Likewise.
58160         * modules/gettimeofday (License): Likewise.
58161         * modules/glob (License): Likewise.
58162         * modules/inet_ntop (License): Likewise.
58163         * modules/malloc (License): Likewise.
58164         * modules/malloca (License): Likewise.
58165         * modules/memmem (License): Likewise.
58166         * modules/mempcpy (License): Likewise.
58167         * modules/memset (License): Likewise.
58168         * modules/minmax (License): Likewise.
58169         * modules/mktime (License): Likewise.
58170         * modules/netinet_in (License): Likewise.
58171         * modules/pathmax (License): Likewise.
58172         * modules/poll (License): Likewise.
58173         * modules/regex (License): Likewise.
58174         * modules/snprintf (License): Likewise.
58175         * modules/stdbool (License): Likewise.
58176         * modules/stdint (License): Likewise.
58177         * modules/stdio (License): Likewise.
58178         * modules/strcase (License): Likewise.
58179         * modules/strcasestr (License): Likewise.
58180         * modules/strdup (License): Likewise.
58181         * modules/string (License): Likewise.
58182         * modules/strndup (License): Likewise.
58183         * modules/strnlen (License): Likewise.
58184         * modules/strpbrk (License): Likewise.
58185         * modules/strptime (License): Likewise.
58186         * modules/strsep (License): Likewise.
58187         * modules/sys_select (License): Likewise.
58188         * modules/sys_socket (License): Likewise.
58189         * modules/sys_stat (License): Likewise.
58190         * modules/sys_time (License): Likewise.
58191         * modules/time (License): Likewise.
58192         * modules/time_r (License): Likewise.
58193         * modules/timegm (License): Likewise.
58194         * modules/unistd (License): Likewise.
58195         * modules/vsnprintf (License): Likewise.
58196         * modules/wctype (License): Likewise.
58197
58198 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58199
58200         * modules/argz (License): LGPLv2+.
58201
58202 2007-07-15  Karl Berry  <karl@gnu.org>
58203
58204         * doc/gnulib.texi: revise node structure per new fdl.texi.
58205
58206 2007-07-14  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58209         the output file.
58210         * lib/uniname/uninames.h: Regenerated.
58211
58212 2007-07-14  Karl Berry  <karl@gnu.org>
58213
58214         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58215         omitting sectioning and index commands.
58216
58217 2007-07-13  Bruno Haible  <bruno@clisp.org>
58218
58219         New gnulib-tool option --more-symlinks.
58220         * gnulib-tool (func_usage): Document --more-symlinks.
58221         (do_copyrights): New variable.
58222         Recognize option --more-symlinks.
58223         (func_import): Don't add a copyright notice transform to
58224         sed_transform_lib_file if do_copyrights is empty.
58225
58226 2007-07-13  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/vasnprintf.c (decimal_point_char): Define also if
58229         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58230         && !NEED_PRINTF_DIRECTIVE_A.
58231         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58232         Gary V. Vaughan <gary@gnu.org>.
58233
58234 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58235
58236         * lib/inttypes_.h: Undo previous change, since it was fixed
58237         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58238
58239 2007-07-13  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58242         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58243
58244 2007-07-13  Jim Meyering  <jim@meyering.net>
58245
58246         df: Don't fail for Tru64's "file-on-file mount".
58247         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58248         so we fall through and use statfs instead.  Details here:
58249         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58250         Reported by Albert Chin.
58251
58252 2007-07-13  Bruno Haible  <bruno@clisp.org>
58253
58254         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58255         * modules/configmake (License): Likewise.
58256         * modules/gettext (License): Likewise.
58257         * modules/gettext-h (License): Likewise.
58258         * modules/include_next (License): Likewise.
58259         * modules/link-warning (License): Likewise.
58260         * modules/localcharset (License): Likewise.
58261         * modules/localename (License): Likewise.
58262         * modules/lock (License): Likewise.
58263         * modules/relocatable-lib-lgpl (License): Likewise.
58264         * modules/size_max (License): Likewise.
58265         * modules/vasnprintf (License): Likewise.
58266         * modules/wchar (License): Likewise.
58267         * modules/xsize (License): Likewise.
58268
58269 2007-07-13  Bruno Haible  <bruno@clisp.org>
58270
58271         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58272         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58273
58274 2007-07-12  Bruno Haible  <bruno@clisp.org>
58275
58276         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58277         in the modules files.
58278
58279 2007-07-11  Karl Berry  <karl@gnu.org>
58280
58281         * MODULES.html.sh (func_module): use
58282          sed -e '\|^'"${includefile}"'$|d'
58283          instead of /.../d, to avoid errors on $includefile's containing /.
58284
58285 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58286
58287         * gnulib-tool (func_import): Avoid duplication of --avoid
58288         statements
58289         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58290         names to `_' in variable names.
58291
58292 2007-07-10  Eric Blake  <ebb9@byu.net>
58293
58294         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58295         * NEWS: Document this change.
58296
58297 2007-07-08  Bruno Haible  <bruno@clisp.org>
58298
58299         Update to Unicode 5.0.
58300         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58301         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58302         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58303         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58304         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58305         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58306         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58307         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58308         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58309         U+10A3F, U+1D242..U+1D244.
58310         (nonspacing_table_ind): Update.
58311         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58312         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58313
58314 2007-07-08  Bruno Haible  <bruno@clisp.org>
58315
58316         Update to Unicode 5.0.
58317         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58318         code transform. Extend the name index field of unicode_name_to_code and
58319         unicode_code_to_name from 16 to 24 bits.
58320         * lib/uniname/uniname.c (unicode_character_name,
58321         unicode_name_character): Add the range 0x12xxx to the code transform.
58322         * lib/uniname/uninames.h: Regenerated.
58323         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58324
58325 2007-07-07  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/wcwidth-tests: New file.
58328         * tests/test-wcwidth.c: New file.
58329
58330         Work around MacOS X wcwidth() bug.
58331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58332         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58333         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58334         original wcwidth in non-UTF-8 locales.
58335         * modules/wcwidth (Depends-on): Add localcharset, streq,
58336         uniwidth/width.
58337         * doc/functions/wcwidth.texi: Update.
58338
58339 2007-07-07  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58342         (wcwidth): New declaration.
58343         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58344         macros.
58345         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58346         here. Prepare for creating <wchar.h> unconditionally.
58347         * modules/wchar (Depends-on): Add link-warning.
58348         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58349         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58350         * lib/wcwidth.h: Remove file.
58351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58352         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58353         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58354         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58355         (Include): Replace wcwidth.h with <wchar.h>.
58356         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58357         * lib/mbchar.h: Don't include wcwidth.h.
58358         * lib/mbswidth.c: Likewise.
58359         * NEWS: Mention the change.
58360
58361 2007-07-07  Bruno Haible  <bruno@clisp.org>
58362
58363         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58364         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58365         definition with an external declaration.
58366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58367         defined as a function. Remove AC_C_INLINE requirement.
58368         * modules/wcwidth (Files): Add lib/wcwidth.c.
58369         (Makefile.am): Remove redundant statement.
58370
58371 2007-07-07  Bruno Haible  <bruno@clisp.org>
58372
58373         * MODULES.html.sh (Unicode string functions): Add the new modules.
58374
58375         * tests/uniwidth/test-u32-strwidth.c: New file.
58376         * modules/uniwidth/u32-strwidth-tests: New file.
58377
58378         * lib/uniwidth/u32-strwidth.c: New file.
58379         * modules/uniwidth/u32-strwidth: New file.
58380
58381         * tests/uniwidth/test-u16-strwidth.c: New file.
58382         * modules/uniwidth/u16-strwidth-tests: New file.
58383
58384         * lib/uniwidth/u16-strwidth.c: New file.
58385         * modules/uniwidth/u16-strwidth: New file.
58386
58387         * tests/uniwidth/test-u8-strwidth.c: New file.
58388         * modules/uniwidth/u8-strwidth-tests: New file.
58389
58390         * lib/uniwidth/u8-strwidth.c: New file.
58391         * modules/uniwidth/u8-strwidth: New file.
58392
58393         * tests/uniwidth/test-u32-width.c: New file.
58394         * modules/uniwidth/u32-width-tests: New file.
58395
58396         * lib/uniwidth/u32-width.c: New file.
58397         * modules/uniwidth/u32-width: New file.
58398
58399         * tests/uniwidth/test-u16-width.c: New file.
58400         * modules/uniwidth/u16-width-tests: New file.
58401
58402         * lib/uniwidth/u16-width.c: New file.
58403         * modules/uniwidth/u16-width: New file.
58404
58405         * tests/uniwidth/test-u8-width.c: New file.
58406         * modules/uniwidth/u8-width-tests: New file.
58407
58408         * lib/uniwidth/u8-width.c: New file.
58409         * modules/uniwidth/u8-width: New file.
58410
58411         * tests/uniwidth/test-uc_width.c: New file.
58412         * modules/uniwidth/width-tests: New file.
58413
58414         * lib/uniwidth/width.c: New file, from GNU libiconv.
58415         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58416         * modules/uniwidth/width: New file.
58417
58418         * lib/uniwidth.h: New file, from GNU libiconv.
58419         * modules/uniwidth/base: New file.
58420
58421 2007-07-07  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/uniname.h: New file, from GNU gettext.
58424         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58425         * lib/uniname/uninames.h: New file, from GNU gettext.
58426         * lib/uniname/uniname.c: New file, from GNU gettext.
58427         * tests/uniname/test-uninames.sh: New file.
58428         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58429         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58430         * modules/uniname/base: New file.
58431         * modules/uniname/uniname: New file.
58432         * modules/uniname/uniname-tests: New file.
58433         * MODULES.html.sh (Unicode string functions): Add the new modules.
58434
58435 2007-07-06  Bruno Haible  <bruno@clisp.org>
58436
58437         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58438
58439 2007-07-06  Bruno Haible  <bruno@clisp.org>
58440
58441         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58442         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58443         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58444         include <sys/time.h>.
58445         Reported by Eric Blake.
58446
58447 2007-07-06  Eric Blake  <ebb9@byu.net>
58448
58449         Fix testing canonicalize on cygwin.
58450         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58451         Revert patch from 2007-06-19.
58452         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58453         canonicalize module is also in use.
58454         * tests/test-canonicalize.c: New file.
58455         * tests/test-canonicalize.sh: Likewise.
58456         * modules/canonicalize-tests: Likewise.
58457
58458 2007-07-06  Jim Meyering  <jim@meyering.net>
58459
58460         * lib/getugroups.c (getugroups): Detect getgrent failure.
58461         Adjust comment to reflect reality: this function may return -1.
58462
58463 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58464
58465         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58466         the new TP address.
58467         (usage): Fix typo
58468         (gnulib_mk): New variable.
58469
58470 2007-07-05  Jim Meyering  <jim@meyering.net>
58471
58472         Don't let endgrent clobber errno, no matter how improbable.
58473         * lib/getugroups.c (getugroups): Save and restore errno around
58474         endgrent call.
58475
58476         Close the group DB even when failing with 2^31 or more members.
58477         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58478
58479 2007-07-04  Jim Meyering  <jim@meyering.net>
58480
58481         * lib/getugroups.h: New file.
58482         * lib/getugroups.c: Include "getugroups.h".
58483         Remove uses of "register" keyword.
58484         Move local variable, "cp", down into scope where used.
58485         Give "username" parameter the "const" attribute.
58486         * modules/getugroups (Files): Add lib/getugroups.h
58487
58488 2007-07-04  Karl Berry  <karl@gnu.org>
58489
58490         * MODULES.html.sh (func_all_modules): Complete rename of
58491         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58492
58493 2007-07-02  Bruno Haible  <bruno@clisp.org>
58494
58495         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58496         mode, when inttypes.h comes from gnulib.
58497         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58498
58499 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58500
58501         * NEWS: Mention lgpl module name change.
58502
58503         * modules/lgpl-2.1: Renamed from lgpl.
58504
58505         * NEWS: Mention gpl module name change.
58506
58507         * modules/gpl-3.0: New file, based on gpl-2.0.
58508
58509         * modules/gpl-2.0: Renamed from gpl.
58510
58511         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58512         doc/gpl-2.0.texi.
58513
58514 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58515
58516         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58517         #define __STDC_LIMIT_MACROS temporarily while including
58518         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58519         Problem reported by Joel E. Denny in
58520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58521
58522 2007-07-01  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/unistdio.h: New file.
58525         * lib/unistdio/u-asnprintf.h: New file.
58526         * lib/unistdio/u-asprintf.h: New file.
58527         * lib/unistdio/u-printf-args.c: New file.
58528         * lib/unistdio/u-printf-args.h: New file.
58529         * lib/unistdio/u-printf-parse.h: New file.
58530         * lib/unistdio/u-snprintf.h: New file.
58531         * lib/unistdio/u-sprintf.h: New file.
58532         * lib/unistdio/u-vasprintf.h: New file.
58533         * lib/unistdio/u-vsnprintf.h: New file.
58534         * lib/unistdio/u-vsprintf.h: New file.
58535         * lib/unistdio/ulc-asnprintf.c: New file.
58536         * lib/unistdio/ulc-asprintf.c: New file.
58537         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58538         * lib/unistdio/ulc-printf-parse.c: New file.
58539         * lib/unistdio/ulc-snprintf.c: New file.
58540         * lib/unistdio/ulc-sprintf.c: New file.
58541         * lib/unistdio/ulc-vasnprintf.c: New file.
58542         * lib/unistdio/ulc-vasprintf.c: New file.
58543         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58544         * lib/unistdio/ulc-vsnprintf.c: New file.
58545         * lib/unistdio/ulc-vsprintf.c: New file.
58546         * lib/unistdio/u8-asnprintf.c: New file.
58547         * lib/unistdio/u8-asprintf.c: New file.
58548         * lib/unistdio/u8-printf-parse.c: New file.
58549         * lib/unistdio/u8-snprintf.c: New file.
58550         * lib/unistdio/u8-sprintf.c: New file.
58551         * lib/unistdio/u8-vasnprintf.c: New file.
58552         * lib/unistdio/u8-vasprintf.c: New file.
58553         * lib/unistdio/u8-vsnprintf.c: New file.
58554         * lib/unistdio/u8-vsprintf.c: New file.
58555         * lib/unistdio/u8-u8-asnprintf.c: New file.
58556         * lib/unistdio/u8-u8-asprintf.c: New file.
58557         * lib/unistdio/u8-u8-snprintf.c: New file.
58558         * lib/unistdio/u8-u8-sprintf.c: New file.
58559         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58560         * lib/unistdio/u8-u8-vasprintf.c: New file.
58561         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58562         * lib/unistdio/u8-u8-vsprintf.c: New file.
58563         * lib/unistdio/u16-asnprintf.c: New file.
58564         * lib/unistdio/u16-asprintf.c: New file.
58565         * lib/unistdio/u16-printf-parse.c: New file.
58566         * lib/unistdio/u16-snprintf.c: New file.
58567         * lib/unistdio/u16-sprintf.c: New file.
58568         * lib/unistdio/u16-vasnprintf.c: New file.
58569         * lib/unistdio/u16-vasprintf.c: New file.
58570         * lib/unistdio/u16-vsnprintf.c: New file.
58571         * lib/unistdio/u16-vsprintf.c: New file.
58572         * lib/unistdio/u16-u16-asnprintf.c: New file.
58573         * lib/unistdio/u16-u16-asprintf.c: New file.
58574         * lib/unistdio/u16-u16-snprintf.c: New file.
58575         * lib/unistdio/u16-u16-sprintf.c: New file.
58576         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58577         * lib/unistdio/u16-u16-vasprintf.c: New file.
58578         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58579         * lib/unistdio/u16-u16-vsprintf.c: New file.
58580         * lib/unistdio/u32-asnprintf.c: New file.
58581         * lib/unistdio/u32-asprintf.c: New file.
58582         * lib/unistdio/u32-printf-parse.c: New file.
58583         * lib/unistdio/u32-snprintf.c: New file.
58584         * lib/unistdio/u32-sprintf.c: New file.
58585         * lib/unistdio/u32-vasnprintf.c: New file.
58586         * lib/unistdio/u32-vasprintf.c: New file.
58587         * lib/unistdio/u32-vsnprintf.c: New file.
58588         * lib/unistdio/u32-vsprintf.c: New file.
58589         * lib/unistdio/u32-u32-asnprintf.c: New file.
58590         * lib/unistdio/u32-u32-asprintf.c: New file.
58591         * lib/unistdio/u32-u32-snprintf.c: New file.
58592         * lib/unistdio/u32-u32-sprintf.c: New file.
58593         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58594         * lib/unistdio/u32-u32-vasprintf.c: New file.
58595         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58596         * lib/unistdio/u32-u32-vsprintf.c: New file.
58597         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58598         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58599         * tests/unistdio/test-ulc-printf1.h: New file.
58600         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58601         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58602         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58603         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58604         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58605         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58606         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58607         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58608         * tests/unistdio/test-u8-asnprintf1.c: New file.
58609         * tests/unistdio/test-u8-asnprintf1.h: New file.
58610         * tests/unistdio/test-u8-printf1.h: New file.
58611         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58612         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58613         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58614         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58615         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58616         * tests/unistdio/test-u8-vasprintf1.c: New file.
58617         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58618         * tests/unistdio/test-u8-vsprintf1.c: New file.
58619         * tests/unistdio/test-u16-asnprintf1.c: New file.
58620         * tests/unistdio/test-u16-asnprintf1.h: New file.
58621         * tests/unistdio/test-u16-printf1.h: New file.
58622         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58623         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58624         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58625         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58626         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58627         * tests/unistdio/test-u16-vasprintf1.c: New file.
58628         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58629         * tests/unistdio/test-u16-vsprintf1.c: New file.
58630         * tests/unistdio/test-u32-asnprintf1.c: New file.
58631         * tests/unistdio/test-u32-asnprintf1.h: New file.
58632         * tests/unistdio/test-u32-printf1.h: New file.
58633         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58634         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58635         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58636         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58637         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58638         * tests/unistdio/test-u32-vasprintf1.c: New file.
58639         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58640         * tests/unistdio/test-u32-vsprintf1.c: New file.
58641         * modules/unistdio/base: New file.
58642         * modules/unistdio/u-printf-args: New file.
58643         * modules/unistdio/ulc-asnprintf: New file.
58644         * modules/unistdio/ulc-asprintf: New file.
58645         * modules/unistdio/ulc-fprintf: New file.
58646         * modules/unistdio/ulc-printf-parse: New file.
58647         * modules/unistdio/ulc-snprintf: New file.
58648         * modules/unistdio/ulc-sprintf: New file.
58649         * modules/unistdio/ulc-vasnprintf: New file.
58650         * modules/unistdio/ulc-vasprintf: New file.
58651         * modules/unistdio/ulc-vfprintf: New file.
58652         * modules/unistdio/ulc-vsnprintf: New file.
58653         * modules/unistdio/ulc-vsprintf: New file.
58654         * modules/unistdio/u8-asnprintf: New file.
58655         * modules/unistdio/u8-asprintf: New file.
58656         * modules/unistdio/u8-printf-parse: New file.
58657         * modules/unistdio/u8-snprintf: New file.
58658         * modules/unistdio/u8-sprintf: New file.
58659         * modules/unistdio/u8-vasnprintf: New file.
58660         * modules/unistdio/u8-vasprintf: New file.
58661         * modules/unistdio/u8-vsnprintf: New file.
58662         * modules/unistdio/u8-vsprintf: New file.
58663         * modules/unistdio/u8-u8-asnprintf: New file.
58664         * modules/unistdio/u8-u8-asprintf: New file.
58665         * modules/unistdio/u8-u8-snprintf: New file.
58666         * modules/unistdio/u8-u8-sprintf: New file.
58667         * modules/unistdio/u8-u8-vasnprintf: New file.
58668         * modules/unistdio/u8-u8-vasprintf: New file.
58669         * modules/unistdio/u8-u8-vsnprintf: New file.
58670         * modules/unistdio/u8-u8-vsprintf: New file.
58671         * modules/unistdio/u16-asnprintf: New file.
58672         * modules/unistdio/u16-asprintf: New file.
58673         * modules/unistdio/u16-printf-parse: New file.
58674         * modules/unistdio/u16-snprintf: New file.
58675         * modules/unistdio/u16-sprintf: New file.
58676         * modules/unistdio/u16-vasnprintf: New file.
58677         * modules/unistdio/u16-vasprintf: New file.
58678         * modules/unistdio/u16-vsnprintf: New file.
58679         * modules/unistdio/u16-vsprintf: New file.
58680         * modules/unistdio/u16-u16-asnprintf: New file.
58681         * modules/unistdio/u16-u16-asprintf: New file.
58682         * modules/unistdio/u16-u16-snprintf: New file.
58683         * modules/unistdio/u16-u16-sprintf: New file.
58684         * modules/unistdio/u16-u16-vasnprintf: New file.
58685         * modules/unistdio/u16-u16-vasprintf: New file.
58686         * modules/unistdio/u16-u16-vsnprintf: New file.
58687         * modules/unistdio/u16-u16-vsprintf: New file.
58688         * modules/unistdio/u32-asnprintf: New file.
58689         * modules/unistdio/u32-asprintf: New file.
58690         * modules/unistdio/u32-printf-parse: New file.
58691         * modules/unistdio/u32-snprintf: New file.
58692         * modules/unistdio/u32-sprintf: New file.
58693         * modules/unistdio/u32-vasnprintf: New file.
58694         * modules/unistdio/u32-vasprintf: New file.
58695         * modules/unistdio/u32-vsnprintf: New file.
58696         * modules/unistdio/u32-vsprintf: New file.
58697         * modules/unistdio/u32-u32-asnprintf: New file.
58698         * modules/unistdio/u32-u32-asprintf: New file.
58699         * modules/unistdio/u32-u32-snprintf: New file.
58700         * modules/unistdio/u32-u32-sprintf: New file.
58701         * modules/unistdio/u32-u32-vasnprintf: New file.
58702         * modules/unistdio/u32-u32-vasprintf: New file.
58703         * modules/unistdio/u32-u32-vsnprintf: New file.
58704         * modules/unistdio/u32-u32-vsprintf: New file.
58705         * modules/unistdio/ulc-asnprintf-tests: New file.
58706         * modules/unistdio/ulc-vasnprintf-tests: New file.
58707         * modules/unistdio/ulc-vasprintf-tests: New file.
58708         * modules/unistdio/ulc-vsnprintf-tests: New file.
58709         * modules/unistdio/ulc-vsprintf-tests: New file.
58710         * modules/unistdio/u8-asnprintf-tests: New file.
58711         * modules/unistdio/u8-vasnprintf-tests: New file.
58712         * modules/unistdio/u8-vasprintf-tests: New file.
58713         * modules/unistdio/u8-vsnprintf-tests: New file.
58714         * modules/unistdio/u8-vsprintf-tests: New file.
58715         * modules/unistdio/u16-asnprintf-tests: New file.
58716         * modules/unistdio/u16-vasnprintf-tests: New file.
58717         * modules/unistdio/u16-vasprintf-tests: New file.
58718         * modules/unistdio/u16-vsnprintf-tests: New file.
58719         * modules/unistdio/u16-vsprintf-tests: New file.
58720         * modules/unistdio/u32-asnprintf-tests: New file.
58721         * modules/unistdio/u32-vasnprintf-tests: New file.
58722         * modules/unistdio/u32-vasprintf-tests: New file.
58723         * modules/unistdio/u32-vsnprintf-tests: New file.
58724         * modules/unistdio/u32-vsprintf-tests: New file.
58725         * MODULES.html.sh (Unicode string functions): Add the new modules.
58726
58727 2007-07-01  Bruno Haible  <bruno@clisp.org>
58728
58729         * lib/sprintf.c (sprintf): Limit the available length estimation,
58730         to avoid address wraparound.
58731         * lib/vsprintf.c (vsprintf): Likewise.
58732         * modules/sprintf-posix (Dependencies): Add stdint.
58733         * modules/vsprintf-posix (Dependencies): Likewise.
58734
58735 2007-07-01  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58738         Windows PATH as well. Conservative double-quoting. Comments.
58739
58740 2007-07-01  Bruno Haible  <bruno@clisp.org>
58741             Eric Blake  <ebb9@byu.net>
58742             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58743
58744         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58745         empty components in $PATH, denoting '.'.
58746
58747 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58748
58749         * gnulib-tool: Fix indentation.
58750         (func_create_megatestdir): Likewise.
58751         Report by Bruno Haible.
58752
58753 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58754
58755         Sync from Automake.
58756         * build-aux/gnupload: Fix shell portability issues with for loops.
58757         Report by Karl Berry.
58758
58759 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58760
58761         * build-aux/maint.mk (POURL): Use translationproject.org.
58762
58763 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58764             Bruno Haible  <bruno@clisp.org>
58765
58766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58767         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58768         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58769         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58770         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58771
58772 2007-06-27  Bruno Haible  <bruno@clisp.org>
58773
58774         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58775         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58776
58777 2007-06-26  Karl Berry  <karl@gnu.org>
58778
58779         * MODULES.html.sh: remove xreadlink-with-size.
58780
58781 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58784         method that I hope also handles the double-include problem noted
58785         by Bruno Haible in
58786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58787
58788 2007-06-23  Bruno Haible  <bruno@clisp.org>
58789
58790         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58791         Don't let the 'mostlyclean' target fail if the last subdirectory could
58792         not be removed.
58793         Reported by Karl Berry.
58794
58795 2007-06-23  Bruno Haible  <bruno@clisp.org>
58796
58797         * gnulib-tool (echo): Add a speedier workaround for ksh.
58798         * tests/test-echo.sh: Likewise.
58799
58800 2007-06-23  Bruno Haible  <bruno@clisp.org>
58801
58802         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58803         * tests/test-echo.sh: Likewise.
58804
58805 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58806
58807         * gnulib-tool (IFS): Initialize early, so we don't set it to
58808         empty later.
58809         (self_abspathname): Rewrite algorithm to set it, reindent.
58810         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58811         (func_create_megatestdir): Merge some sed scripts.
58812
58813 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58816         exposed by Sun Studio 11 cc on Solaris 8.
58817
58818 2007-06-22  Bruno Haible  <bruno@clisp.org>
58819
58820         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58821         backslashes.
58822         * tests/test-echo.sh: New file.
58823
58824 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58825
58826         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58827         simplify `sed_replace_build_aux' scripts, they are portable but
58828         echoing them with `echo' is not.
58829         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58830
58831 2007-06-21  Karl Berry  <karl@gnu.org>
58832
58833         * config/srclist.txt: guess we can't handle the licenses via
58834         srclist at the moment.
58835
58836 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * MODULES.html.sh: Add include_next.
58839         * modules/include_next: New file.
58840
58841 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58844         INCLUDE_NEXT.
58845         (gl_CHECK_NEXT_HEADERS): New macro.
58846         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58847         the obsolescent gl_ABSOLUTE_HEADER.
58848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58849         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58850         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58851         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58852         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58853         * m4/math_h.m4 (gl_MATH_H): Likewise.
58854         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58855         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58856         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58857         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58858         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58859         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58860         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58862         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58864         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58865         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58866         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58867         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58868         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58869         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58870         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58871         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58872         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58873         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58874         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58875         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58876         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58877         * lib/float_.h: Likewise.
58878         * lib/inttypes_.h: Likewise.
58879         * lib/math_.h: Likewise.
58880         * lib/search_.h: Likewise.
58881         * lib/signal_.h: Likewise.
58882         * lib/stdint_.h: Likewise.
58883         * lib/stdio_.h: Likewise.
58884         * lib/stdlib_.h: Likewise.
58885         * lib/string_.h: Likewise.
58886         * lib/sys_stat_.h: Likewise.
58887         * lib/sys_time_.h: Likewise.
58888         * lib/time_.h: Likewise.
58889         * lib/unistd_.h: Likewise.
58890         * lib/wchar_.h: Likewise.
58891         * lib/wctype_.h: Likewise.
58892         * lib/dirent_.h: Likewise.
58893         * lib/iconv_.h: Likewise.
58894         * lib/locale_.h: Likewise.
58895         * lib/netinet_in_.h: Likewise.
58896         * lib/sys_select_.h: Likewise.
58897         * lib/sys_socket_.h: Likewise.
58898         * lib/sysexits_.h: Likewise.
58899         * modules/fcntl (Depends-on): Depend on include_next, not
58900         absolute_header.
58901         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58902         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58903         * modules/fchdir: Likewise.
58904         * modules/float: Likewise.
58905         * modules/iconv_open: Likewise.
58906         * modules/inttypes: Likewise.
58907         * modules/locale: Likewise.
58908         * modules/math: Likewise.
58909         * modules/netinet_in: Likewise.
58910         * modules/search: Likewise.
58911         * modules/signal: Likewise.
58912         * modules/stdint: Likewise.
58913         * modules/stdio: Likewise.
58914         * modules/stdlib: Likewise.
58915         * modules/string: Likewise.
58916         * modules/sys_select: Likewise.
58917         * modules/sys_socket: Likewise.
58918         * modules/sys_stat: Likewise.
58919         * modules/sys_time: Likewise.
58920         * modules/sysexits: Likewise.
58921         * modules/time: Likewise.
58922         * modules/unistd: Likewise.
58923         * modules/wchar: Likewise.
58924         * modules/wctype: Likewise.
58925         * modules/sys_stat: Change maintainer to "all".
58926         * modules/unistd: Likewise.
58927
58928 2007-06-20  Karl Berry  <karl@gnu.org>
58929
58930         * config/srclist.txt: track www changes in license files.
58931
58932 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58933
58934         * build-aux/bootstrap: Remove stray dot.
58935         Make sure build_aux settings are honored when linking
58936         gnulib_extra_files.
58937
58938 2007-06-19  Eric Blake  <ebb9@byu.net>
58939
58940         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58941         Allow compilation on cygwin.
58942
58943 2007-06-19  Jim Meyering  <jim@meyering.net>
58944
58945         xreadlink-with-size: Remove module.  No longer used.
58946         Ex-callers now use xreadlink or mreadlink-with-size.
58947         * modules/xreadlink-with-size: Remove module.
58948         * lib/xreadlink-with-size.c: Remove file.
58949         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58950         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58951         just before the function definition *is* accurate.
58952
58953         Eliminate one way canonicalize_filename_mode could exit.
58954         * lib/canonicalize.c (canonicalize_filename_mode):
58955         Use mreadlink_with_size, not xreadlink_with_size.
58956
58957 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58958
58959         Detect porting problems to FreeBSD/arm, which has time_t wider than
58960         long int.  Original problem reported for GNU diff by Xin Li in
58961         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58962         * modules/getdate (Depends-on): Add intprops, verify.
58963         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58964         is an integer type no wider than long int.
58965
58966 2007-06-18  Jim Meyering  <jim@meyering.net>
58967
58968         New module: mreadlink-with-size.
58969         * MODULES.html.sh: Add mreadlink-with-size.
58970         * modules/mreadlink-with-size: New module
58971         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58972         not xreadlink-with-size.
58973         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58974
58975 2007-06-16  Bruno Haible  <bruno@clisp.org>
58976
58977         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58978         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58979         Reported by Gary V. Vaughan <gary@gnu.org>.
58980
58981 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58982
58983         Revamp lchown so that it lives in unistd.h where it belongs.
58984         * lib/lchown.h: Remove.
58985         * lib/dirchownmod.c: Don't include lib/lchown.h.
58986         * lib/fchownat.c: Likewise.
58987         * lib/openat.c: Likewise.
58988         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58989         does not follow symlinks.
58990         (EOPNOTSUPP): Define if not defined.
58991         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58992         is defined to 0.
58993         (lchown): New decl.
58994         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58995         Do not check for lchown decl.
58996         Set REPLACE_LCHOWN.
58997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58998         REPLACE_LCHOWN.
58999         * modules/chown: Make it clear it follows symlinks.
59000         * modules/lchown: Make it clear it doesn't follow symlinks.
59001         (Files): Remove lib/lchown.h
59002         (Depends-on): Add unistd.
59003         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59004         (Include): Include <unistd.h>, not "lchown.h".
59005         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59006         REPLACE_LCHOWN.
59007
59008 2007-06-15  Jim Meyering  <jim@meyering.net>
59009
59010         Change license (GPL to LGPL) of fsusage and dependents.
59011         * modules/fsusage (License): Change to LGPL.
59012         * modules/full-read (License): Likewise.
59013         * modules/full-write (License): Likewise.
59014         * modules/safe-read (License): Likewise.
59015         * modules/safe-write (License): Likewise.
59016
59017 2007-06-14  Ben Pfaff  <blp@gnu.org>
59018
59019         Missing part of allocsa -> malloca transition.
59020         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59021         gl_MALLOCA.
59022
59023 2007-06-12  Bruno Haible  <bruno@clisp.org>
59024
59025         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59026         to ia64, x86_64, i386.
59027         Reported by Eric Blake.
59028
59029 2007-06-12  Bruno Haible  <bruno@clisp.org>
59030
59031         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59032         cross-compiling to x86_64.
59033
59034 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59037         glitch reported by Ralf Wildenhues in
59038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59039
59040         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59041         Vin Shelton.
59042
59043 2007-06-11  Bruno Haible  <bruno@clisp.org>
59044
59045         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59046         replacement string.
59047         Reported by Eric Blake.
59048
59049 2007-06-10  Bruno Haible  <bruno@clisp.org>
59050
59051         Prepare vasnprintf code for use with Unicode strings.
59052         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59053         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59054         TYPE_U32_STRING.
59055         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59056         a_u32_string variants.
59057         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59058         * lib/printf-args.c: Don't include config.h and the specification
59059         header if PRINTF_FETCHARGS is already defined.
59060         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59061         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59062         TYPE_U16_STRING, TYPE_U32_STRING.
59063         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59064         u16_directive, u16_directives, u32_directive, u32_directives): New
59065         types.
59066         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59067         New declarations.
59068         * lib/printf-parse.c: Don't include config.h and the specification
59069         header if PRINTF_PARSE is already defined. Eliminate the set of
59070         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59071         them now. Include c-ctype.h.
59072         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59073         directive and CHAR_T_ONLY_ASCII.
59074         * lib/vasnprintf.c: Don't include config.h and the specification header
59075         if VASNPRINTF is already defined.
59076         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59077         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59078         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59079         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59080         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59081         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59082         code accordingly.
59083         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59084         pad_ourselves also in this case, with the 'c' and 's' directives, and
59085         with a different notion of "width".
59086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59087
59088 2007-06-10  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/unistr/u32-mbsnlen: New file.
59091         * lib/unistr/u32-mbsnlen.c: New file.
59092
59093         * modules/unistr/u16-mbsnlen: New file.
59094         * lib/unistr/u16-mbsnlen.c: New file.
59095
59096         * modules/unistr/u8-mbsnlen: New file.
59097         * lib/unistr/u8-mbsnlen.c: New file.
59098
59099         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59100         declarations.
59101
59102 2007-06-10  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/string_.h (mbsnlen): New declaration.
59105         * lib/mbsnlen.c: New file.
59106         * m4/mbsnlen.m4: New file.
59107         * modules/mbsnlen: New file.
59108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59109         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59110         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59111
59112 2007-06-10  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59115
59116 2007-06-10  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59119         * lib/mbuiter.h: Likewise.
59120
59121 2007-06-10  Bruno Haible  <bruno@clisp.org>
59122
59123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59124         declaration.
59125
59126 2007-06-10  Karl Berry  <karl@gnu.org>
59127
59128         * config/srclist.txt: remove gettext entries, Bruno prefers
59129         to update individually.
59130
59131 2007-06-10  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59134         'maxlen'. Ensure only length + width bytes are allocated, not
59135         length + 1 + width.
59136
59137 2007-06-09  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59140         (CHAR_T): Remove macro.
59141         (VASNPRINTF): Update.
59142
59143 2007-06-09  Bruno Haible  <bruno@clisp.org>
59144
59145         * MODULES.html.sh (Unicode string functions): Add the new modules.
59146
59147         * modules/uniconv/u32-conv-to-enc: New file.
59148         * lib/uniconv/u32-conv-to-enc.c: New file.
59149         * modules/uniconv/u32-conv-to-enc-tests: New file.
59150         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59151
59152         * modules/uniconv/u16-conv-to-enc: New file.
59153         * lib/uniconv/u16-conv-to-enc.c: New file.
59154         * lib/uniconv/u-conv-to-enc.h: New file.
59155         * modules/uniconv/u16-conv-to-enc-tests: New file.
59156         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59157
59158         * modules/uniconv/u8-conv-to-enc: New file.
59159         * lib/uniconv/u8-conv-to-enc.c: New file.
59160         * modules/uniconv/u8-conv-to-enc-tests: New file.
59161         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59162
59163         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59164         u32_conv_to_encoding): New declarations.
59165
59166 2007-06-09  Bruno Haible  <bruno@clisp.org>
59167
59168         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59169
59170 2007-06-09  Bruno Haible  <bruno@clisp.org>
59171
59172         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59173         * modules/malloca: Renamed from modules/allocsa, updated.
59174         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59175         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59176         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59177         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59178         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59179         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59180         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59181         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59182         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59183         * modules/c-strcasestr (Depends-on): Update.
59184         * lib/c-strcasestr.c: Update.
59185         * modules/c-strstr (Depends-on): Update.
59186         * lib/c-strstr.c: Update.
59187         * modules/canonicalize-lgpl (Depends-on): Update.
59188         * lib/canonicalize-lgpl.c: Update.
59189         * modules/clean-temp (Depends-on): Update.
59190         * lib/clean-temp.c: Update.
59191         * modules/csharpcomp (Depends-on): Update.
59192         * lib/csharpcomp.c: Update.
59193         * modules/csharpexec (Depends-on): Update.
59194         * lib/csharpexec.c: Update.
59195         * modules/javacomp (Depends-on): Update.
59196         * lib/javacomp.c: Update.
59197         * modules/javaexec (Depends-on): Update.
59198         * lib/javaexec.c: Update.
59199         * modules/mbscasestr (Depends-on): Update.
59200         * lib/mbscasestr.c: Update.
59201         * modules/mbsstr (Depends-on): Update.
59202         * lib/mbsstr.c: Update.
59203         * modules/setenv (Depends-on): Update.
59204         * lib/setenv.c: Update.
59205         * modules/strcasestr (Depends-on): Update.
59206         * lib/strcasestr.c: Update.
59207         * modules/striconveha (Depends-on): Update.
59208         * lib/striconveha.c: Update.
59209         * modules/relocatable-prog-wrapper (Files): Update.
59210         * lib/relocwrapper.c: Update.
59211         * build-aux/install-reloc: Update.
59212         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59213
59214 2007-06-08  Bruno Haible  <bruno@clisp.org>
59215
59216         Port to uClibc.
59217         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59218         * lib/fpurge.c (fpurge): Likewise.
59219         * lib/freading.c (freading): Likewise.
59220         * lib/fseeko.c (rpl_fseeko): Likewise.
59221         * lib/fseterr.c (fseterr): Likewise.
59222         * lib/fwriting.c (fwriting): Likewise.
59223         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59224
59225 2007-06-08  Bruno Haible  <bruno@clisp.org>
59226
59227         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59228         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59229         * modules/gettext (Files): Add m4/intlmacosx.m4.
59230
59231 2007-06-07  Bruno Haible  <bruno@clisp.org>
59232
59233         * modules/localename-tests: New file.
59234         * tests/test-localename.c: New file.
59235
59236         New module 'localename'.
59237         * lib/localename.h: New file.
59238         * lib/localename.c: New file, from GNU gettext.
59239         * m4/localename.m4: New file.
59240         * modules/localename: New file.
59241
59242 2007-06-07  Bruno Haible  <bruno@clisp.org>
59243
59244         Work around the lack of <wchar.h> on some builds of uClibc.
59245         * doc/headers/wchar.texi: Update.
59246         * lib/wchar_.h: Include <wchar.h> only if it exists.
59247         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59248         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59249         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59250         doesn't exist.
59251         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59252         * modules/mbfile (Depends-on): Add wchar.
59253         * modules/mbiter (Depends-on): Likewise.
59254         * modules/mbuiter (Depends-on): Likewise.
59255         Reported by Simon Josefsson.
59256
59257 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         Work around problem reported by Steven M. Schweda in
59260         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59261         Tru64 5.1B with the Compaq compiler environment installed declares
59262         an 'isblank' function but does not define it in the C library.
59263         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59264         * lib/regex_internal.h (isblank): Likewise.
59265         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59266         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59267
59268 2007-06-05  Bruno Haible  <bruno@clisp.org>
59269
59270         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59271         ia64.
59272         * modules/printf-safe: New file.
59273         * modules/fprintf-posix (Depends-on): Add printf-safe.
59274         * modules/printf-posix (Depends-on): Likewise.
59275         * modules/snprintf-posix (Depends-on): Likewise.
59276         * modules/sprintf-posix (Depends-on): Likewise.
59277         * modules/vasnprintf-posix (Depends-on): Likewise.
59278         * modules/vasprintf-posix (Depends-on): Likewise.
59279         * modules/vfprintf-posix (Depends-on): Likewise.
59280         * modules/vprintf-posix (Depends-on): Likewise.
59281         * modules/vsnprintf-posix (Depends-on): Likewise.
59282         * modules/vsprintf-posix (Depends-on): Likewise.
59283         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59284         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59285         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59286         "no" on i386, x86_64, ia64.
59287         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59288         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59289         on i386, x86_64, ia64.
59290         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59291         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59292         on i386, x86_64, ia64.
59293         * tests/test-vasnprintf-posix.c: Include float.h.
59294         (LDBL80_WORDS): New macro.
59295         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59296         on i386, x86_64, ia64.
59297         * tests/test-vasprintf-posix.c: Include float.h.
59298         (LDBL80_WORDS): New macro.
59299         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59300         on i386, x86_64, ia64.
59301         * tests/test-snprintf-posix.c: Include float.h.
59302         * tests/test-sprintf-posix.c: Likewise.
59303         * tests/test-vsnprintf-posix.c: Likewise.
59304         * tests/test-vsprintf-posix.c: Likewise.
59305
59306 2007-06-05  Bruno Haible  <bruno@clisp.org>
59307
59308         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59309         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59310         non-IEEE numbers on i386, x86_64, ia64.
59311         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59312         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59313         * tests/test-isnanl.h: Include float.h.
59314         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59315
59316 2007-06-05  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59319         also the %a / %A. Handle the %a / %A code before this extra handling.
59320
59321 2007-06-05  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59324         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59325
59326 2007-06-05  Bruno Haible  <bruno@clisp.org>
59327
59328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59329         typo in variable name.
59330
59331 2007-06-05  Eric Blake  <ebb9@byu.net>
59332
59333         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59334         Reported by Simon Josefsson.
59335
59336 2007-06-04  Bruno Haible  <bruno@clisp.org>
59337
59338         Avoid test failures on some PowerPC platforms.
59339         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59340         Define differently for PowerPC.
59341         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59342         Reported by Gary V. Vaughan <gary@gnu.org>.
59343
59344 2007-06-02  Bruno Haible  <bruno@clisp.org>
59345
59346         Fix test-stdint failure on FreeBSD/ia64.
59347         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59348         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59349         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59350         * doc/headers/stdint.texi: Update.
59351
59352 2007-06-01  Bruno Haible  <bruno@clisp.org>
59353
59354         * tests/test-binary-io.c (main): Pass a third argument to open().
59355         Reported by Gary V. Vaughan <gary@gnu.org>.
59356
59357 2007-06-01  Bruno Haible  <bruno@clisp.org>
59358
59359         * doc/functions/frexpl.texi: Update for mingw.
59360
59361 2007-06-01  Bruno Haible  <bruno@clisp.org>
59362
59363         * tests/test-lseek.c (main): Disable test of errno for invalid third
59364         argument.
59365         * doc/functions/lseek.texi: Update.
59366         Reported by Gary V. Vaughan <gary@gnu.org>.
59367
59368 2007-05-28  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59371
59372 2007-05-31  Eric Blake  <ebb9@byu.net>
59373
59374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59375         cross compiling.
59376
59377 2007-05-30  Eric Blake  <ebb9@byu.net>
59378         and Bruno Haible  <bruno@clisp.org>
59379
59380         Work around mingw test failures exposed by m4-1.4.9b.
59381         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59382         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59383         moment.
59384
59385 2007-05-30  Bruno Haible  <bruno@clisp.org>
59386
59387         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59388         assuming that they are closed. Needed on HP-UX 11.
59389
59390 2007-05-29  Bruno Haible  <bruno@clisp.org>
59391
59392         Fix a problem with #include_next.
59393         * lib/dirent_.h: Split the double-inclusion guard.
59394         * lib/fcntl_.h: Likewise.
59395         * lib/float_.h: Likewise.
59396         * lib/iconv_.h: Likewise.
59397         * lib/inttypes_.h: Likewise.
59398         * lib/locale_.h: Likewise.
59399         * lib/math_.h: Likewise.
59400         * lib/netinet_in_.h: Likewise.
59401         * lib/search_.h: Likewise.
59402         * lib/signal_.h: Likewise.
59403         * lib/stdint_.h: Likewise.
59404         * lib/stdio_.h: Likewise.
59405         * lib/stdlib_.h: Likewise.
59406         * lib/string_.h: Likewise.
59407         * lib/sys_select_.h: Likewise.
59408         * lib/sys_socket_.h: Likewise.
59409         * lib/sys_stat_.h: Likewise.
59410         * lib/sys_time_.h: Likewise.
59411         * lib/sysexits_.h: Likewise.
59412         * lib/time_.h: Likewise.
59413         * lib/unistd_.h: Likewise.
59414         * lib/wchar_.h: Likewise.
59415         * lib/wctype_.h: Likewise.
59416
59417 2007-05-29  Bruno Haible  <bruno@clisp.org>
59418
59419         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59420         for the moment.
59421
59422 2007-05-29  Bruno Haible  <bruno@clisp.org>
59423
59424         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59425         invocation.
59426         Reported by Eric Blake.
59427
59428 2007-05-29  Bruno Haible  <bruno@clisp.org>
59429
59430         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59431         compiling case.
59432
59433 2007-05-29  Eric Blake  <ebb9@byu.net>
59434             Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59437         cross compiles.
59438
59439 2007-05-28  Eric Blake  <ebb9@byu.net>
59440
59441         * modules/closein-tests (test_closein_LDADD): Support test on
59442         cygwin with libtool.
59443
59444 2007-05-28  Bruno Haible  <bruno@clisp.org>
59445
59446         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59447         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59448         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59449         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59450         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59451         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59452         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59453         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59454         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59455
59456 2007-05-28  Eric Blake  <ebb9@byu.net>
59457
59458         Unconditionally include <config.h> in unit tests.
59459         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59460         * tests/test-allocsa.c, tests/test-arcfour.c,
59461         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59462         tests/test-array_list.c, tests/test-array_oset.c,
59463         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59464         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59465         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59466         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59467         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59468         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59469         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59470         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59471         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59472         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59473         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59474         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59475         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59476         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59477         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59478         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59479         test-md5.c, test-memmem.c, test-printf-posix.c,
59480         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59481         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59482         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59483         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59484         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59485         test-vasnprintf-posix2.c, test-vasnprintf.c,
59486         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59487         test-vfprintf-posix.c, test-vprintf-posix.c,
59488         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59489         test-xvasprintf.c: Likewise.
59490
59491 2007-05-28  Bruno Haible  <bruno@clisp.org>
59492
59493         * gnulib-tool (func_import): Remember the --with-tests command-line
59494         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59495         Reported by Eric Blake.
59496
59497 2007-05-28  Bruno Haible  <bruno@clisp.org>
59498
59499         * modules/ftell-tests: New file.
59500         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59501         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59502
59503         * lib/ftell.c: New file.
59504         * modules/ftell: New file.
59505         * m4/ftell.m4: New file.
59506         * doc/functions/ftell.texi: Update.
59507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59508         REPLACE_FTELL.
59509         * lib/stdio_.h (rpl_ftell): New declaration.
59510         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59511         REPLACE_FTELL.
59512
59513 2007-05-28  Eric Blake  <ebb9@byu.net>
59514
59515         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59516
59517 2007-05-28  Bruno Haible  <bruno@clisp.org>
59518
59519         * modules/fseek-tests: New file.
59520         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59521         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59522
59523         * lib/fseek.c: New file.
59524         * modules/fseek: New file.
59525         * m4/fseek.m4: New file.
59526         * doc/functions/fseek.texi: Update.
59527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59528         REPLACE_FSEEK.
59529         * lib/stdio_.h (rpl_fseek): New declaration.
59530         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59531         REPLACE_FSEEK.
59532
59533 2007-05-28  Bruno Haible  <bruno@clisp.org>
59534
59535         * lib/stdio_.h (fflush): More comments.
59536
59537 2007-05-28  Bruno Haible  <bruno@clisp.org>
59538
59539         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59540         runtime test.
59541
59542 2007-05-28  Eric Blake  <ebb9@byu.net>
59543
59544         Improve lseek module.
59545         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59546         * lib/unistd_.h (lseek): Scale back link warning message.
59547         * tests/test-lseek.c: Beef up test.
59548         * tests/test-lseek.sh: Exercise more facets of lseek.
59549         Reported by Bruno Haible.
59550
59551 2007-05-28  Bruno Haible  <bruno@clisp.org>
59552
59553         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59554         to define.
59555
59556 2007-05-27  Bruno Haible  <bruno@clisp.org>
59557
59558         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59559
59560 2007-05-27  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/openmp: New file.
59563         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59564         Noah Misch.
59565
59566 2007-05-26  Bruno Haible  <bruno@clisp.org>
59567
59568         * modules/chdir-long (Depends-on): Add fchdir.
59569         * modules/chdir-safer (Depends-on): Likewise.
59570         * modules/fts (Depends-on): Likewise.
59571         * modules/fts-lgpl (Depends-on): Likewise.
59572         * modules/openat (Depends-on): Likewise.
59573         * modules/savewd (Depends-on): Likewise.
59574
59575 2007-05-24  Eric Blake  <ebb9@byu.net>
59576
59577         Fix lseek on mingw.
59578         * modules/lseek: New module.
59579         * m4/lseek.m4: New file.
59580         * lib/lseek.c: New file.
59581         * modules/lseek-tests: New file.
59582         * tests/test-lseek.c: New file.
59583         * tests/test-lseek.sh: New file.
59584         * MODULES.html.sh: Document lseek module.
59585         * modules/fflush (Depends-on): Add lseek, fseeko.
59586         * modules/fseeko (Depends-on): Likewise.
59587         * modules/ftello (Depends-on): Likewise.
59588         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59589         broken.
59590         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59591         broken.
59592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59593         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59594         * lib/ftello.c (rpl_ftello): Likewise.
59595         * tests/test-fseeko.c (main): Test this.
59596         * tests/test-fseeko.sh: Likewise.
59597         * tests/test-ftello.c (main): Likewise.
59598         * tests/test-ftello.sh: Likewise.
59599         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59600         implies replacing fseek.
59601         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59602         HAVE_FTELLO.
59603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59604         * modules/unistd (Makefile.am): Likewise.
59605         * lib/unistd_.h (lseek): Declare a replacement.
59606         * doc/functions/lseek.texi (lseek): Document this fix.
59607         * doc/functions/fseek.texi (fseek): Likewise.
59608         * doc/functions/ftell.texi (ftell): Likewise.
59609
59610 2007-05-24  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59613         in the printed representation of a NaN.
59614         * tests/test-vasprintf-posix.c (test_function): Likewise.
59615         * tests/test-snprintf-posix.h (test_function): Likewise.
59616         * tests/test-sprintf-posix.h (test_function): Likewise.
59617         Reported by Eric Blake.
59618
59619 2007-05-23  Eric Blake  <ebb9@byu.net>
59620
59621         Fix fseeko/ftello on cygwin 1.5.24.
59622         * doc/functions/fseeko.texi (fseeko): Document the fix.
59623         * doc/functions/ftello.texi (ftello): Document the fix.
59624         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59625         * doc/functions/stdout.text (stdout): New file.
59626         * doc/functions/stderr.text (stderr): New file.
59627         * doc/gnulib.texi (Function Substitutes): Use new files.
59628         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59629         prior to 1.7.0.
59630         * tests/test-ftello.c (main): Likewise for ftello.
59631         * tests/test-fseeko.sh: New file.
59632         * tests/test-ftello.sh: New file.
59633         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59634         with seekable stdin.
59635         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59637         (gl_REPLACE_FSEEKO): New macro.
59638         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59639         * modules/fseeko (Files): Distribute fseeko.c.
59640         * modules/ftello (Files): Distribute ftello.c.
59641         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59642         mode.
59643         * lib/ftello.c (rpl_ftello): New file.
59644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59645         fseeko, ftello.
59646         (gl_STDIN_LARGE_OFFSET): New macro.
59647         * modules/stdio (Makefile.am): Perform the replacement.
59648         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59649
59650 2007-05-23  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59653         GNULIB_POSIXCHECK is defined.
59654
59655 2007-05-21  Bruno Haible  <bruno@clisp.org>
59656
59657         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59658         Check also the output for NaN arguments. When cross-compiling, guess
59659         no on IRIX.
59660         * lib/vasnprintf.c: Update comments.
59661         * tests/test-vasnprintf-posix.c (strisnan): New function.
59662         (test_function): Use it.
59663         * tests/test-vasprintf-posix.c (strisnan): New function.
59664         (test_function): Use it.
59665         * tests/test-snprintf-posix.h (strisnan): New function.
59666         (test_function): Use it.
59667         * tests/test-sprintf-posix.h (strisnan): New function.
59668         (test_function): Use it.
59669         Reported by Eric Blake.
59670
59671 2007-05-20  Bruno Haible  <bruno@clisp.org>
59672
59673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59674         numbers that fails on BeOS.
59675         * doc/functions/frexpl.texi: Update.
59676
59677 2007-05-20  Jim Meyering  <jim@meyering.net>
59678
59679         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59680         forced upon us by glibc-2.6.
59681
59682 2007-05-20  Bruno Haible  <bruno@clisp.org>
59683
59684         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59685         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59686         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59687         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59688         NEED_PRINTF_INFINITE.
59689         (is_infinitel): New function.
59690         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59692         gl_PREREQ_VASNPRINTF_INFINITE.
59693         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59695         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59696         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59697         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59698         gl_PREREQ_VASNPRINTF_INFINITE.
59699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59706         * doc/functions/fprintf.texi: Update.
59707         * doc/functions/printf.texi: Update.
59708         * doc/functions/snprintf.texi: Update.
59709         * doc/functions/sprintf.texi: Update.
59710         * doc/functions/vfprintf.texi: Update.
59711         * doc/functions/vprintf.texi: Update.
59712         * doc/functions/vsnprintf.texi: Update.
59713         * doc/functions/vsprintf.texi: Update.
59714
59715 2007-05-20  Bruno Haible  <bruno@clisp.org>
59716
59717         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59718         was not found in libc.
59719         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59720
59721 2007-05-20  Bruno Haible  <bruno@clisp.org>
59722
59723         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59724         printed as "-nan" instead of "nan".
59725         * tests/test-vasprintf-posix.c (test_function): Likewise.
59726         * tests/test-snprintf-posix.h (test_function): Likewise.
59727         * tests/test-sprintf-posix.h (test_function): Likewise.
59728         Needed for HP-UX 11.
59729
59730 2007-05-20  Jim Meyering  <jim@meyering.net>
59731
59732         Fix buggy test for the fchownat-deref bug.
59733         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59734         symlink required for the run-test.  Without it, this test would
59735         always declare that fchownat doesn't work, and client code would
59736         unnecessarily use the replacement function with fixed libc.
59737         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59738         Reported by Greg Schafer.
59739
59740 2007-05-19  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59743         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59744         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59745         Needed for IRIX 6.5 and Solaris 2.5.1.
59746
59747 2007-05-19  Bruno Haible  <bruno@clisp.org>
59748
59749         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59750         (test_function): Skip tests involving -0.0 on platforms where
59751         -0.0 = 0.0.
59752         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59753         (test_function): Skip tests involving -0.0 on platforms where
59754         -0.0 = 0.0.
59755         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59756         (test_function): Skip tests involving -0.0 on platforms where
59757         -0.0 = 0.0.
59758         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59759         (test_function): Skip tests involving -0.0 on platforms where
59760         -0.0 = 0.0.
59761         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59762         tests.
59763         * tests/test-printf-posix.h (test_function): Likewise.
59764         * tests/test-printf-posix.output: Remove all -0.0 related results.
59765         Needed for IRIX 6.5.
59766
59767 2007-05-19  Bruno Haible  <bruno@clisp.org>
59768
59769         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59770         printed as "nan0x7fffffff" instead of "nan".
59771         * tests/test-vasprintf-posix.c (test_function): Likewise.
59772         * tests/test-snprintf-posix.h (test_function): Likewise.
59773         * tests/test-sprintf-posix.h (test_function): Likewise.
59774         * tests/test-fprintf-posix.h (NaN): Remove macro.
59775         (test_function): Remove all NaN related tests.
59776         * tests/test-printf-posix.h (NaN): Remove macro.
59777         (test_function): Remove all NaN related tests.
59778         * tests/test-printf-posix.output: Remove all NaN related results.
59779         Needed for IRIX 6.5.
59780
59781 2007-05-19  Bruno Haible  <bruno@clisp.org>
59782
59783         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59784         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59785
59786 2007-05-19  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/float_.h: New file.
59789         * m4/float_h.m4: New file.
59790         * modules/float: New file.
59791         * modules/isnanl (Dependencies): Add float.
59792         * modules/isnanl-nolibm (Dependencies): Likewise.
59793         * modules/mathl (Dependencies): Likewise.
59794         * modules/printf-frexpl (Dependencies): Likewise.
59795         * modules/signbit (Dependencies): Likewise.
59796         * modules/vasnprintf (Dependencies): Likewise.
59797         * doc/headers/float.texi: Update.
59798
59799 2007-05-19  Jim Meyering  <jim@meyering.net>
59800
59801         * lib/utimens.c (gl_futimens): Rename from futimens,
59802         now that glibc-2.6 declares futimens.
59803         * lib/utimens.h: Likewise.
59804
59805 2007-05-19  Bruno Haible  <bruno@clisp.org>
59806
59807         Avoid test failures on mingw.
59808         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59809         * tests/test-printf-posix.sh: Likewise.
59810         * tests/test-vfprintf-posix.sh: Likewise.
59811         * tests/test-vprintf-posix.sh: Likewise.
59812
59813 2007-05-19  Bruno Haible  <bruno@clisp.org>
59814
59815         Fix *printf result for NaN, Inf, -0.0 on mingw.
59816         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59817         * lib/vasnprintf.c: Include math.h and isnan.h.
59818         (is_infinite_or_zero): New function.
59819         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59820         values in the %f, %F, %e, %E, %g, %G directives.
59821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59823         gl_PRINTF_INFINITE and test its result. Invoke
59824         gl_PREREQ_VASNPRINTF_INFINITE.
59825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59827         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59828         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59829         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59831         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59832         * doc/functions/fprintf.texi: Update.
59833         * doc/functions/printf.texi: Update.
59834         * doc/functions/snprintf.texi: Update.
59835         * doc/functions/sprintf.texi: Update.
59836         * doc/functions/vfprintf.texi: Update.
59837         * doc/functions/vprintf.texi: Update.
59838         * doc/functions/vsnprintf.texi: Update.
59839         * doc/functions/vsprintf.texi: Update.
59840
59841 2007-05-19  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59844         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59845         Instead of multiplying with 10^k, set extra_zeroes to k.
59846         (scale10_round_long_double): Remove function.
59847
59848 2007-05-18  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59851         introduced on 2007-05-06.
59852
59853 2007-05-18  Bruno Haible  <bruno@clisp.org>
59854
59855         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59856         %g directives.
59857         * tests/test-vasprintf-posix.c (test_function): Likewise.
59858         * tests/test-snprintf-posix.h (test_function): Likewise.
59859         * tests/test-sprintf-posix.h (test_function): Likewise.
59860
59861 2007-05-18  Bruno Haible  <bruno@clisp.org>
59862
59863         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59864         (strmatch): New function.
59865         (test_function): Test the %f directive on numbers of various exponents.
59866         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59867         (strmatch): New function.
59868         (test_function): Test the %f directive on numbers of various exponents.
59869         * tests/test-snprintf-posix.h (strmatch): New function.
59870         (test_function): Test the %f directive on numbers of various exponents.
59871         * tests/test-sprintf-posix.h (strmatch): New function.
59872         (test_function): Test the %f directive on numbers of various exponents.
59873         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59874         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59875         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59876         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59877
59878 2007-05-18  Bruno Haible  <bruno@clisp.org>
59879
59880         Add support for 'long double' number output.
59881         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59882         * lib/vasnprintf.c: Include math.h and float+.h.
59883         (mp_limb_t): New type.
59884         (GMP_LIMB_BITS): New macro.
59885         (mp_twolimb_t): New type.
59886         (GMP_TWOLIMB_BITS): New macro.
59887         (mpn_t): New type.
59888         (multiply, divide, convert_to_decimal, decode_long_double,
59889         scale10_round_long_double, scale10_round_decimal_long_double,
59890         floorlog10l): New functions.
59891         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59892         for the %f, %F, %e, %E, %g, %G directives.
59893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59895         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59896         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59904         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59905         * modules/snprintf-posix (Depends-on): Likewise.
59906         * modules/sprintf-posix (Depends-on): Likewise.
59907         * modules/vasnprintf-posix (Depends-on): Likewise.
59908         * modules/vasprintf-posix (Depends-on): Likewise.
59909         * modules/vfprintf-posix (Depends-on): Likewise.
59910         * modules/vsnprintf-posix (Depends-on): Likewise.
59911         * modules/vsprintf-posix (Depends-on): Likewise.
59912         * modules/vasnprintf (Files): Add lib/float+.h.
59913         * doc/functions/fprintf.texi: Update.
59914         * doc/functions/printf.texi: Update.
59915         * doc/functions/snprintf.texi: Update.
59916         * doc/functions/sprintf.texi: Update.
59917         * doc/functions/vfprintf.texi: Update.
59918         * doc/functions/vprintf.texi: Update.
59919         * doc/functions/vsnprintf.texi: Update.
59920         * doc/functions/vsprintf.texi: Update.
59921
59922 2007-05-18  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59925
59926 2007-05-18  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59929         for printing 64-bit integers. Needed for mingw.
59930
59931 2007-05-18  Bruno Haible  <bruno@clisp.org>
59932
59933         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59934         gl_FUNC_FREXPL_WORKS.
59935         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59936
59937 2007-05-18  Bruno Haible  <bruno@clisp.org>
59938
59939         * modules/frexpl-nolibm-tests: New file.
59940
59941         * modules/frexpl-nolibm: New file.
59942         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59943
59944 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59947         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59948         GCC 4.2, which otherwise issues a lot of warnings.
59949         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59950         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59951         Likewise.
59952         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59953         * modules/iconv_open (iconv.h): Likewise.
59954         * modules/locale (locale.h): Likewise.
59955         * modules/netinet_in (netinet/in.h): Likewise.
59956         * modules/sys_select (sys_select.h): Likewise.
59957         * modules/sys_socket (sys/socket.h): Likewise.
59958         * modules/sys_stat (sys/stat.h): Likewise.
59959         * modules/sysexits (sysexits.h): Likewise.
59960         * modules/unistd (unistd.h): Likewise.
59961
59962 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59963
59964         * modules/closein-tests (Makefile.am): Distribute
59965         `test-closein.sh'.
59966
59967 2007-05-17  Bruno Haible  <bruno@clisp.org>
59968
59969         * tests/test-printf-posix.output: Renamed from
59970         tests/test-fprintf-posix.out.
59971         * modules/fprintf-posix-tests: Update.
59972         * modules/printf-posix-tests: Update.
59973         * modules/vfprintf-posix-tests: Update.
59974         * modules/vprintf-posix-tests: Update.
59975         * tests/test-fprintf-posix.sh: Update.
59976         * tests/test-printf-posix.sh: Update.
59977         * tests/test-vfprintf-posix.sh: Update.
59978         * tests/test-vprintf-posix.sh: Update.
59979         Reported by Ralf Wildenhues.
59980
59981 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59984         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59985         GCC 4.2, which otherwise issues a lot of warnings.
59986         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59987         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59988         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59989         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59990         it should no longer be needed.
59991         * lib/string_.h: Likewise.
59992         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59993         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59994         * modules/inttypes (inttypes.h): Likewise.
59995         * modules/math (math.h): Likewise.
59996         * modules/search (search.h): Likewise.
59997         * modules/signal (signal.h): Likewise.
59998         * modules/stdint (stdint.h): Likewise.
59999         * modules/stdio (stdio.h): Likewise.
60000         * modules/stdlib (stdlib.h): Likewise.
60001         * modules/string (string.h): Likewise.
60002         * modules/sys_time (sys/time.h): Likewise.
60003         * modules/time (time.h): Likewise.
60004         * modules/wchar (wchar.h): Likewise.
60005         * modules/wctype (wtype.h): Likewise.
60006
60007 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60008
60009         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60010
60011 2007-05-13  Bruno Haible  <bruno@clisp.org>
60012
60013         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60014         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60015         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60016         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60017         (gl_PREREQ_STRTOK_R): Don't require it here.
60018
60019 2007-05-13  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60022         when used in C++ mode.
60023
60024 2007-05-12  Bruno Haible  <bruno@clisp.org>
60025
60026         * lib/linebuffer.h: Tweak doc.
60027         * lib/linebuffer.c: Likewise.
60028
60029 2007-05-12  James Youngman  <jay@gnu.org>
60030
60031         * lib/linebuffer.c (readlinebuffer_delim): New function,
60032         like readlinebuffer, but use a caller-specified delimiter.
60033         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60034         as the delimiter.
60035         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60036
60037 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60038
60039         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60040         * modules/openat (Files): Remove openat-die.c.
60041         (Depends-on): Add openat-die.
60042         * modules/openat-die: New module.
60043
60044 2007-05-06  Bruno Haible  <bruno@clisp.org>
60045
60046         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60047         Update with info about Cygwin.
60048         * doc/functions/fprintf.texi: Update.
60049         * doc/functions/printf.texi: Update.
60050         * doc/functions/snprintf.texi: Update.
60051         * doc/functions/sprintf.texi: Update.
60052         * doc/functions/vfprintf.texi: Update.
60053         * doc/functions/vprintf.texi: Update.
60054         * doc/functions/vsnprintf.texi: Update.
60055         * doc/functions/vsprintf.texi: Update.
60056         Reported by Eric Blake.
60057
60058 2007-05-06  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60061         padding ourselves for the floating-point directives.
60062         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60065         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60066         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60071         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60073         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60074         * tests/test-snprintf-posix.h (test_function): Also check the width
60075         and some flags in the %f directive.
60076         * tests/test-sprintf-posix.h (test_function): Likewise.
60077         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60078         * tests/test-vasprintf-posix.c (test_function): Likewise.
60079         * doc/functions/fprintf.texi: Update.
60080         * doc/functions/printf.texi: Update.
60081         * doc/functions/snprintf.texi: Update.
60082         * doc/functions/sprintf.texi: Update.
60083         * doc/functions/vfprintf.texi: Update.
60084         * doc/functions/vprintf.texi: Update.
60085         * doc/functions/vsnprintf.texi: Update.
60086         * doc/functions/vsprintf.texi: Update.
60087
60088 2007-05-06  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60091         pass the ' flag character to sprintf or snprintf.
60092         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60095         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60096         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60104         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60105         flag.
60106         * tests/test-sprintf-posix.h (test_function): Likewise.
60107         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60108         * tests/test-vasprintf-posix.c (test_function): Likewise.
60109         * doc/functions/fprintf.texi: Update.
60110         * doc/functions/printf.texi: Update.
60111         * doc/functions/snprintf.texi: Update.
60112         * doc/functions/sprintf.texi: Update.
60113         * doc/functions/vfprintf.texi: Update.
60114         * doc/functions/vprintf.texi: Update.
60115         * doc/functions/vsnprintf.texi: Update.
60116         * doc/functions/vsprintf.texi: Update.
60117
60118 2007-05-01  Bruno Haible  <bruno@clisp.org>
60119
60120         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60121
60122 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60123
60124         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60125         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60126
60127 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60130         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60132
60133 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60134
60135         * lib/argp-help.c (struct hol_entry): New member `ord'.
60136         (HOL_ENTRY_PTRCMP): Use ord for comparison
60137         (hol_sort): Initialize ord.
60138
60139 2007-05-01  Bruno Haible  <bruno@clisp.org>
60140
60141         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60142         Reported by Eric Blake.
60143         * doc/gnulib.texi (Function Substitutes): Update.
60144
60145 2007-05-01  Bruno Haible  <bruno@clisp.org>
60146
60147         * doc/functions.texi: Remove file, now redundant through
60148         doc/functions/*.texi.
60149
60150 2007-05-01  Bruno Haible  <bruno@clisp.org>
60151
60152         * modules/argp (Depends-on): Add sleep.
60153
60154 2007-05-01  Bruno Haible  <bruno@clisp.org>
60155
60156         * modules/sleep-tests: New file.
60157         * tests/test-sleep.c: New file.
60158
60159         * modules/sleep: New file.
60160         * lib/sleep.c: New file.
60161         * m4/sleep.m4: New file.
60162         * lib/unistd_.h (sleep): New declaration.
60163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60164         HAVE_SLEEP.
60165         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60166         * doc/functions/sleep.texi: Document the sleep module.
60167
60168 2007-05-01  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/sigprocmask.h: Remove file.
60171         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60172         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60173         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60174         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60175         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60176         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60177         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60178         HAVE_SIGSET_T as a shell variable.
60179         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60180         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60181         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60182         (Depends-on): Add signal. Remove verify.
60183         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60184         (Include): Mention <signal.h> instead of sigprocmask.h.
60185         * NEWS: Mention the change.
60186         * lib/fatal-signal.c: Don't include sigprocmask.h.
60187
60188 2007-05-01  Bruno Haible  <bruno@clisp.org>
60189
60190         * modules/signal: New file.
60191         * lib/signal_.h: New file.
60192         * m4/signal_h.m4: New file.
60193
60194 2007-05-01  Bruno Haible  <bruno@clisp.org>
60195
60196         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60197         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60198         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60199         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60200
60201 2007-05-01  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60204         configure time.
60205         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60206         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60207         * modules/sys_stat (Makefile.am): Substitute their values into
60208         sys/stat.h.
60209
60210 2007-05-01  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60213         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60214         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60215
60216 2007-05-01  Bruno Haible  <bruno@clisp.org>
60217
60218         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60219         'assert' module here.
60220
60221 2007-05-01  Bruno Haible  <bruno@clisp.org>
60222
60223         * doc/functions/*.texi: New files.
60224         * doc/functions/google-ranking.txt: New file.
60225         * doc/gnulib.texi (Function Substitutes): New chapter.
60226         (ctime, inet_ntoa): Remove sections.
60227         * doc/ctime.texi: Remove file.
60228         * doc/inet_ntoa.texi: Remove file.
60229         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60230         dependencies.
60231         (%.info): New rule, specifying a --reference-limit.
60232
60233 2007-05-01  Bruno Haible  <bruno@clisp.org>
60234
60235         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60236
60237 2007-05-01  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60240         the portability of 'mkdir' to mingw systems.
60241
60242 2007-05-01  Bruno Haible  <bruno@clisp.org>
60243
60244         * doc/headers/google-ranking.txt: New file.
60245
60246 2007-04-30  Eric Blake  <ebb9@byu.net>
60247
60248         Prefer fseeko to fseek.
60249         * modules/getpass (Depends-on): Add fseeko.
60250         * lib/getpass.c (getpass): Use fseeko, not fseek.
60251
60252 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60253
60254         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60255         assumes the sorting is stable, while most qsort implementations
60256         are not.  Use argument addresses to ensure they never compare as
60257         equal.
60258
60259         * tests/test-argp-2.sh (usage-indent test): Fix output
60260         (func_compare): Restore diff options
60261         * tests/test-argp.c: Restore #include "progname.h"
60262
60263 2007-04-29  Bruno Haible  <bruno@clisp.org>
60264
60265         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60267         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60269         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60270         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60271         (TESTS, check_PROGRAMS): Add test-snprintf.
60272         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60273         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60274         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60275         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60276         assertions that fail on HP-UX, OSF/1, or IRIX.
60277         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60278
60279 2007-04-29  Bruno Haible  <bruno@clisp.org>
60280
60281         * MODULES.html.sh (posix_functions): Remove 'contents'.
60282
60283 2007-04-29  Karl Berry  <karl@gnu.org>
60284
60285         * config/srclist.txt (gendocs_template_min): new entry.
60286
60287 2007-04-29  Bruno Haible  <bruno@clisp.org>
60288
60289         Work around fpurge bug on BSD systems.
60290         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60291         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60292         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60293         fpurge to rpl_fpurge if the system already has this function.
60294         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60295         the case where the system already has this function. Correct invariants
60296         on BSD systems.
60297         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60298         BSD systems.
60299
60300 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60301
60302         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60303         proposed by Sven Verdoolaege.
60304
60305         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60306         options.
60307         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60308         (usage and help tests): Update
60309
60310 2007-04-29  Bruno Haible  <bruno@clisp.org>
60311
60312         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60313         Print more information in case of failure. Disable a test on BeOS.
60314
60315 2007-04-29  Bruno Haible  <bruno@clisp.org>
60316
60317         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60318         This helps debugging on systems on which no gdb is available.
60319
60320 2007-04-29  Bruno Haible  <bruno@clisp.org>
60321
60322         * lib/freading.h: Improve comments.
60323         * lib/fwriting.h: Likewise.
60324         * tests/test-freading.c (main): Don't check freading immediately after
60325         repositioning. Needed for glibc.
60326
60327 2007-04-29  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/freading.c (freading): Trivial simplification.
60330
60331 2007-04-28  Bruno Haible  <bruno@clisp.org>
60332
60333         * tests/test-fwriting.c (main): Also test the interaction between
60334         fflush and fwriting.
60335         * modules/fwriting-tests (Depends-on): Add fflush.
60336
60337         * tests/test-freading.c (main): Also test the interaction between
60338         fflush and freading.
60339         * modules/freading-tests (Depends-on): Add fflush.
60340
60341 2007-04-28  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60344         fseeko and ftello.
60345         Suggested by Eric Blake.
60346
60347 2007-04-28  Jim Meyering  <jim@meyering.net>
60348
60349         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60350         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60351         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60352
60353 2007-04-27  Eric Blake  <ebb9@byu.net>
60354
60355         * doc/headers/assert.texi (assert.h): Document assert module use.
60356
60357 2007-04-27  Bruno Haible  <bruno@clisp.org>
60358
60359         * doc/headers/*.texi: New files.
60360         * doc/gnulib.texi (Header File Substitutes): New chapter.
60361         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60362         dependencies.
60363         (standards.info ,standards.html, standards.dvi): Update dependencies.
60364         (mostlyclean, clean): New targets.
60365
60366 2007-04-27  Bruno Haible  <bruno@clisp.org>
60367
60368         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60369         * modules/sysexits (Files, Makefile.am): Update.
60370
60371         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60372         * modules/sys_socket (Files, Makefile.am): Update.
60373
60374         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60375         * modules/sys_stat (Files, Makefile.am): Update.
60376
60377 2007-04-27  Eric Blake  <ebb9@byu.net>
60378
60379         * lib/freading.h: Improve comments.
60380         * lib/fwriting.h: Likewise.
60381         * lib/fflush.c: Likewise.
60382
60383         Fix closein for mingw.
60384         * modules/closein-tests: Add tests for closein.
60385         * tests/test-closein.c: New file.
60386         * tests/test-closein.sh: Likewise.
60387         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60388         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60389
60390 2007-04-27  Bruno Haible  <bruno@clisp.org>
60391
60392         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60393         version is < 6.
60394         * lib/math_.h [__DECC]: Likewise.
60395         * lib/stdio_.h [__DECC]: Likewise.
60396         * lib/stdlib_.h [__DECC]: Likewise.
60397         * lib/string_.h [__DECC]: Likewise.
60398         * lib/time_.h [__DECC]: Likewise.
60399         * lib/wchar_.h [__DECC]: Likewise.
60400         * lib/wctype_.h [__DECC]: Likewise.
60401
60402 2007-04-27  Bruno Haible  <bruno@clisp.org>
60403
60404         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60405
60406 2007-04-27  Bruno Haible  <bruno@clisp.org>
60407
60408         * lib/fflush.c: Add comments.
60409         * modules/fpurge-tests (Depends-on): Add fflush.
60410         * modules/freadable-tests (Depends-on): Likewise.
60411         * modules/fwritable-tests (Depends-on): Likewise.
60412
60413 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60414
60415         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60416         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60417         Report by Bruno Haible <bruno@clisp.org>.
60418
60419 2007-04-26  Eric Blake  <ebb9@byu.net>
60420
60421         Fix fflush on mingw.
60422         * modules/fflush (Depends-on): Add freading.
60423         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60424         but unread data.
60425
60426 2007-04-26  Eric Blake  <ebb9@byu.net>
60427         and Bruno Haible  <bruno@clisp.org>
60428
60429         Implement freading and fwriting.
60430         * lib/freading.c: New file.
60431         * lib/freading.h: Likewise.
60432         * m4/freading.m4: Likewise.
60433         * modules/freading: Likewise.
60434         * modules/freading-tests: Likewise.
60435         * tests/test-freading.c: Likewise.
60436         * lib/fwriting.c: New file.
60437         * lib/fwriting.h: Likewise.
60438         * m4/fwriting.m4: Likewise.
60439         * modules/fwriting: Likewise.
60440         * modules/fwriting-tests: Likewise.
60441         * tests/test-fwriting.c: Likewise.
60442         * MODULES.html.sh (File stream based Input/Output): Mention them.
60443
60444 2007-04-26  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60447         'long' when we assume it.
60448         Suggested by Eric Blake.
60449
60450 2007-04-26  Bruno Haible  <bruno@clisp.org>
60451
60452         Ensure fseeko, ftello are declared on glibc systems.
60453         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60454         * modules/fseeko (configure.ac-early): Likewise.
60455         * modules/ftello (configure.ac-early): Likewise.
60456         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60457         AC_FUNC_FSEEKO for this.
60458         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60459         (gl_CHECK_FSEEKO): Remove macro.
60460
60461 2007-04-26  Bruno Haible  <bruno@clisp.org>
60462
60463         * tests/test-fflush.c (main): Also check the ftell result after
60464         fflush and fseek/fseeko.
60465         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60466         file descriptor position cache in the stream.
60467         * lib/fseeko.c (rpl_fseeko): Likewise.
60468
60469 2007-04-26  Bruno Haible  <bruno@clisp.org>
60470
60471         * modules/fflush-tests (Depends-on): Add fseeko.
60472
60473 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60474             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60475
60476         * lib/argz_.h: ensure error_t definition is obtained in same
60477         mechanism system argz.h would have.
60478         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60479         argz facilities are known bad.  Err on the side of caution if
60480         cross-compiling.
60481
60482 2007-04-25  Eric Blake  <ebb9@byu.net>
60483
60484         * lib/fpurge.c (includes): Use stdlib.h for free.
60485         * tests/test-fflush.c (main): Also test fflush-fseeko.
60486
60487 2007-04-25  Bruno Haible  <bruno@clisp.org>
60488
60489         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60490         * lib/fseeko.c: New file.
60491         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60492         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60493         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60494         gl_FUNC_FSEEKO.
60495         (gl_FUNC_FSEEKO): Invoke it.
60496         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60497         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60498         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60499
60500 2007-04-25  Bruno Haible  <bruno@clisp.org>
60501
60502         * modules/fflush (Depends-on): Add ftello.
60503
60504 2007-04-25  Bruno Haible  <bruno@clisp.org>
60505
60506         * modules/ftello-tests: New file.
60507         * tests/test-ftello.c: New file.
60508
60509         * modules/ftello: New file.
60510         * m4/ftello.m4: New file.
60511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60512         HAVE_FTELLO.
60513         * lib/stdio_.h (ftello): New declaration.
60514         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60515         HAVE_FTELLO.
60516
60517 2007-04-25  Bruno Haible  <bruno@clisp.org>
60518
60519         * modules/fseeko-tests: New file.
60520         * tests/test-fseeko.c: New file.
60521
60522         * modules/fseeko: New file.
60523         * m4/fseeko.m4: New file.
60524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60525         HAVE_FSEEKO.
60526         * lib/stdio_.h (fseeko): New declaration.
60527         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60528         HAVE_FSEEKO.
60529
60530 2007-04-25  Bruno Haible  <bruno@clisp.org>
60531
60532         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60533
60534 2007-04-25  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60537         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60538         * tests/test-unistd.c: Likewise.
60539         * tests/test-fcntl.c: Likewise.
60540
60541 2007-04-23  Eric Blake  <ebb9@byu.net>
60542
60543         * lib/fflush.c: Fix missing include.
60544         Reported by Bruno Haible.
60545
60546 2007-04-23  Bruno Haible  <bruno@clisp.org>
60547
60548         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60549         Reported by Eric Blake.
60550
60551 2007-04-23  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60554
60555 2007-04-23  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60558
60559 2007-04-23  Bruno Haible  <bruno@clisp.org>
60560
60561         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60562         Needed on HP-UX 11.
60563
60564 2007-04-16  Eric Blake  <ebb9@byu.net>
60565
60566         Make fflush rely on fpurge.
60567         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60568         open coding all variants.
60569         * modules/fflush (Depends-on): Add fpurge and unistd.
60570         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60571         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60572
60573         Fix --with-tests compilation on cygwin.
60574         * modules/argmatch-tests (Makefile.am): List gnulib library first
60575         in LDADD.
60576         * modules/argp-tests (Makefile.am): Likewise.
60577         * modules/array-list-tests (Makefile.am): Likewise.
60578         * modules/array-oset-tests (Makefile.am): Likewise.
60579         * modules/avltree-list-tests (Makefile.am): Likewise.
60580         * modules/avltree-oset-tests (Makefile.am): Likewise.
60581         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60582         * modules/carray-list-tests (Makefile.am): Likewise.
60583         * modules/dirname-tests (Makefile.am): Likewise.
60584         * modules/frexp-tests (Makefile.am): Likewise.
60585         * modules/isnanl-tests (Makefile.am): Likewise.
60586         * modules/linked-list-tests (Makefile.am): Likewise.
60587         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60588         * modules/lock-tests (Makefile.am): Likewise.
60589         * modules/rbtree-list-tests (Makefile.am): Likewise.
60590         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60591         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60592         * modules/tls-tests (Makefile.am): Likewise.
60593         * modules/tsearch-tests (Makefile.am): Likewise.
60594         * modules/xvasprintf-tests (Makefile.am): Likewise.
60595
60596         Fix fpurge for cygwin.
60597         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60598         value.
60599         * modules/fpurge-tests (Depends-on): Clean up trash.
60600
60601 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60602
60603         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60604
60605         * m4/autobuild.m4: Re-indent.
60606
60607 2007-04-13  Bruno Haible  <bruno@clisp.org>
60608
60609         * modules/fpurge-tests: New file.
60610         * tests/test-fpurge.c: New file.
60611
60612         * modules/fpurge: New file.
60613         * lib/fpurge.h: New file.
60614         * lib/fpurge.c: New file.
60615         * m4/fpurge.m4: New file.
60616
60617 2007-04-13  Bruno Haible  <bruno@clisp.org>
60618
60619         * modules/fbufmode-tests: New file.
60620         * tests/test-fbufmode.c: New file.
60621
60622         * modules/fbufmode: New file.
60623         * lib/fbufmode.h: New file.
60624         * lib/fbufmode.c: New file.
60625         * m4/fbufmode.m4: New file.
60626
60627 2007-04-13  Bruno Haible  <bruno@clisp.org>
60628
60629         * modules/fwritable-tests: New file.
60630         * tests/test-fwritable.c: New file.
60631
60632         * modules/fwritable: New file.
60633         * lib/fwritable.h: New file.
60634         * lib/fwritable.c: New file.
60635         * m4/fwritable.m4: New file.
60636
60637 2007-04-13  Bruno Haible  <bruno@clisp.org>
60638
60639         * modules/freadable-tests: New file.
60640         * tests/test-freadable.c: New file.
60641
60642         * modules/freadable: New file.
60643         * lib/freadable.h: New file.
60644         * lib/freadable.c: New file.
60645         * m4/freadable.m4: New file.
60646
60647 2007-04-13  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60650         MOSTLYCLEANFILES.
60651
60652 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60653
60654         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60655         gzip bootstrap.conf to avoid dragging in i18n machinery.
60656         (gnulib_tool_option): Use it.
60657
60658 2007-04-13  Bruno Haible  <bruno@clisp.org>
60659
60660         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60661         %F directives.
60662         * tests/test-vasprintf-posix.c (test_function): Likewise.
60663         * tests/test-snprintf-posix.h (test_function): Likewise.
60664         * tests/test-sprintf-posix.h (test_function): Likewise.
60665         * tests/test-fprintf-posix.h (test_function): Likewise.
60666         * tests/test-printf-posix.h (test_function): Likewise.
60667         * tests/test-fprintf-posix.out: Likewise.
60668
60669 2007-04-13  Bruno Haible  <bruno@clisp.org>
60670
60671         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60672         * modules/tls-tests (configure.ac): Likewise.
60673         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60674
60675 2007-04-13  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/tls.c (glthread_tls_get): Fix return type.
60678         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60679
60680 2007-04-12  Eric Blake  <ebb9@byu.net>
60681
60682         * modules/gettime (Depends-on): Remove gettime.
60683         Reported by Dmitry V. Levin.
60684
60685 2007-04-12  Bruno Haible  <bruno@clisp.org>
60686
60687         * modules/fflush (Include): Mention <stdio.h>.
60688         * modules/strtoimax (Include): Mention <inttypes.h>.
60689         * modules/strtoumax (Include): Likewise.
60690
60691 2007-04-12  Eric Blake  <ebb9@byu.net>
60692
60693         * .cvsignore: New file.
60694         * .gitignore: Likewise.
60695
60696 2007-04-12  Bruno Haible  <bruno@clisp.org>
60697
60698         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60699         not before, since $(LDADD) often contains libgnu.a.
60700         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60701         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60702         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60703         Needed on Cygwin.
60704
60705 2007-04-12  Eric Blake  <ebb9@byu.net>
60706
60707         Work around glibc's failure to flush stdin on fclose.
60708         * lib/closein.c (close_stdin): Flush stdin before closing.
60709
60710         Work around glibc's failure to reset seekable stdin on exit.
60711         * modules/closein: New module.
60712         * lib/closein.c: New file.
60713         * lib/closein.h: Likewise.
60714         * m4/closein.m4: Likewise.
60715         * MODULES.html.sh (File stream based Input/Output): Document it.
60716
60717 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60718
60719         * gnulib-tool: Rename generated 'autobuild' script to
60720         'do-autobuild' in --create-megatestdir output.
60721
60722         * doc/gnulib.texi (Build robot for gnulib): Fix.
60723
60724 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60725
60726         * modules/sysexits (Depends-on): Add absolute-header.
60727
60728 2007-04-12  Eric Blake  <ebb9@byu.net>
60729
60730         No need to preserve errno on success.
60731         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60732         Reported by Bruno Haible.
60733
60734 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60735
60736         * MODULES.html.sh (Support for maintaining and releasing
60737         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60738
60739 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60740
60741         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60742
60743 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60744
60745         * modules/autobuild: New module.
60746
60747         * m4/autobuild.m4: New file.
60748
60749 2007-04-11  Bruno Haible  <bruno@clisp.org>
60750
60751         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60752         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60753         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60756         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60757         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60759         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60760         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60762         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60763         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60764         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60765         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60766         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60774         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60775         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60779         Reported by Eric Blake.
60780
60781 2007-04-11  Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60784
60785 2007-04-10  Bruno Haible  <bruno@clisp.org>
60786
60787         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60788         for NaN and Infinity. Needed on FreeBSD 6.1.
60789         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60790         regarding results for "%010a" of Infinity and NaN.
60791         * tests/test-vasprintf-posix.c (test_function): Likewise.
60792         * tests/test-snprintf-posix.h (test_function): Likewise.
60793         * tests/test-sprintf-posix.h (test_function): Likewise.
60794         * tests/test-fprintf-posix.h (test_function): Likewise.
60795         * tests/test-printf-posix.h (test_function): Likewise.
60796         * tests/test-fprintf-posix.out: Likewise.
60797
60798 2007-04-10  Bruno Haible  <bruno@clisp.org>
60799
60800         * modules/locale-tests: New file.
60801         * tests/test-locale.c: New file.
60802
60803         * modules/locale: New file.
60804         * lib/locale_.h: New file.
60805         * m4/locale_h.m4: New file.
60806
60807 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60808             Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60811         be determined, test for availability of the copysignf, copysign,
60812         copysignl functions.
60813         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60814         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60815         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60816
60817 2007-04-09  Eric Blake  <ebb9@byu.net>
60818
60819         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60820         * modules/stdio (Makefile.am): Support fflush.
60821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60822         * modules/fflush: New file.
60823         * lib/fflush.c: Likewise.
60824         * m4/fflush.m4: Likewise.
60825         * modules/fflush-tests: New test.
60826         * tests/test-fflush.c: Likewise.
60827         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60828
60829 2007-04-06  Bruno Haible  <bruno@clisp.org>
60830
60831         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60832         (VASNPRINTF): Use signbit for faster determination whether to print a
60833         minus sign.
60834         * modules/vasnprintf (Files): Remove lib/float+.h.
60835         * modules/fprintf-posix (Depends-on): Add signbit.
60836         * modules/snprintf-posix (Depends-on): Likewise.
60837         * modules/sprintf-posix (Depends-on): Likewise.
60838         * modules/vasnprintf-posix (Depends-on): Likewise.
60839         * modules/vasprintf-posix (Depends-on): Likewise.
60840         * modules/vfprintf-posix (Depends-on): Likewise.
60841         * modules/vsnprintf-posix (Depends-on): Likewise.
60842         * modules/vsprintf-posix (Depends-on): Likewise.
60843
60844 2007-04-06  Bruno Haible  <bruno@clisp.org>
60845
60846         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60847         * tests/test-frexpl.c (main): Likewise.
60848         * tests/test-ldexpl.c (main): Likewise.
60849         * modules/frexp-tests (Depends-on): Add signbit.
60850         * modules/frexpl-tests (Depdends-on): Likewise.
60851         * modules/ldexpl-tests (Depdends-on): Likewise.
60852
60853 2007-04-06  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/signbit-tests: New file.
60856         * tests/test-signbit.c: New file.
60857
60858         * modules/signbit: New file.
60859         * lib/signbitf.c: New file.
60860         * lib/signbitd.c: New file.
60861         * lib/signbitl.c: New file.
60862         * m4/signbit.m4: New file.
60863         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60864         (signbit): New macro.
60865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60866         REPLACE_SIGNBIT.
60867         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60868         REPLACE_FREXPL into math.h.
60869
60870 2007-04-06  Bruno Haible  <bruno@clisp.org>
60871
60872         * modules/isnanf-nolibm-tests: New file.
60873         * tests/test-isnanf.c: New file.
60874
60875         * modules/isnanf-nolibm: New file.
60876         * lib/isnanf.h: New file.
60877         * lib/isnanf.c: New file.
60878         * lib/isnan.c: Consider the USE_FLOAT macro.
60879         * m4/isnanf.m4: New file.
60880
60881 2007-04-06  Bruno Haible  <bruno@clisp.org>
60882
60883         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60884         (Link): New section.
60885
60886         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60887
60888 2007-04-06  Bruno Haible  <bruno@clisp.org>
60889
60890         Assume the 'long double' type.
60891         * m4/longdouble.m4: Remove file.
60892         * config/srclist.txt: Don't mention longdouble.m4.
60893         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60894         * lib/float+.h: Likewise.
60895         * lib/frexp.c: Likewise.
60896         * lib/printf-args.h: Likewise.
60897         * lib/printf-args.c: Likewise.
60898         * lib/printf-frexp.c: Likewise.
60899         * lib/printf-parse.c: Likewise.
60900         * lib/vasnprintf.c: Likewise.
60901         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60902         * m4/intl.m4: Likewise.
60903         * m4/isnanl.m4: Likewise.
60904         * m4/printf.m4: Likewise.
60905         * m4/printf-frexpl.m4: Likewise.
60906         * m4/vasnprintf.m4: Likewise.
60907         * modules/allocsa (Files): Remove m4/longdouble.m4.
60908         * modules/gettext (Files): Likewise.
60909         * modules/relocatable-prog-wrapper (Files): Likewise.
60910         * modules/vasnprintf (Files): Likewise.
60911         * modules/isnanl (Files): Likewise.
60912         (Include): Simplify.
60913         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60914         (Include): Simplify.
60915         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60916         (Include): Simplify.
60917         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60918         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60919         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60920         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60921         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60922         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60923         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60924         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60925         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60926         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60927         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60928         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60929         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60930         * tests/test-isnanl.c: Likewise.
60931         * tests/test-snprintf-posix.h: Likewise.
60932         * tests/test-sprintf-posix.h: Likewise.
60933         * tests/test-vasnprintf-posix.c: Likewise.
60934         * tests/test-vasnprintf-posix2.c: Likewise.
60935         * tests/test-vasprintf-posix.c: Likewise.
60936
60937 2007-04-06  Bruno Haible  <bruno@clisp.org>
60938
60939         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60940         * lib/math_.h [__DECC]: Include the overridden include file through
60941         #include_next, outside the double-inclusion guard.
60942         * lib/stdio_.h [__DECC]: Likewise.
60943         * lib/stdlib_.h [__DECC]: Likewise.
60944         * lib/string_.h [__DECC]: Likewise.
60945         * lib/time_.h [__DECC]: Likewise.
60946         * lib/wchar_.h [__DECC]: Likewise.
60947         * lib/wctype_.h [__DECC]: Likewise.
60948         * lib/inttypes_.h [__DECC]: Likewise.
60949         Reported by Albert Chin <china@thewrittenword.com> in
60950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60951
60952 2007-04-04  Eric Blake  <ebb9@byu.net>
60953
60954         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60955         1.5.x.
60956
60957 2007-04-04  Bruno Haible  <bruno@clisp.org>
60958
60959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60960         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60961
60962 2007-04-04  Bruno Haible  <bruno@clisp.org>
60963
60964         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60965         results for "%010a" of Infinity and NaN.
60966         * tests/test-vasprintf-posix.c (test_function): Likewise.
60967         * tests/test-snprintf-posix.h (test_function): Likewise.
60968         * tests/test-sprintf-posix.h (test_function): Likewise.
60969         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60970         * tests/test-printf-posix.h (test_function): Likewise.
60971         * tests/test-fprintf-posix.out: Update.
60972         Needed for FreeBSD 6.1.
60973
60974 2007-04-04  Bruno Haible  <bruno@clisp.org>
60975
60976         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60977         directly used by the gnulib modules nor by gnulib-tool.
60978
60979 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * DEPENDENCIES: Give overall description of version dependency
60982         desirability.  Use more-typical names for apps.
60983         Add shell, coreutils, diffutils, grep, tar, gzip.
60984
60985 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60986
60987         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60988
60989 2007-04-04  Karl Berry  <karl@gnu.org>
60990
60991         * MODULES.html.sh (func_module): missing '.
60992
60993 2007-04-03  Bruno Haible  <bruno@clisp.org>
60994
60995         * modules/argmatch-tests (Makefile.am): New variable
60996         test_argmatch_LDADD.
60997         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60998         * modules/array-list-tests (Makefile.am): New variable
60999         test_array_list_LDADD.
61000         * modules/array-oset-tests (Makefile.am): New variable
61001         test_array_oset_LDADD.
61002         * modules/avltree-list-tests (Makefile.am): New variable
61003         test_avltree_list_LDADD.
61004         * modules/avltree-oset-tests (Makefile.am): New variable
61005         test_avltree_oset_LDADD.
61006         * modules/avltreehash-list-tests (Makefile.am): New variable
61007         test_avltreehash_list_LDADD.
61008         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61009         test_canonicalize_lgpl_LDADD.
61010         * modules/carray-list-tests (Makefile.am): New variable
61011         test_carray_list_LDADD.
61012         * modules/dirname-tests (Makefile.am): New variable
61013         test_dirname_LDADD.
61014         * modules/linked-list-tests (Makefile.am): New variable
61015         test_linked_list_LDADD.
61016         * modules/linkedhash-list-tests (Makefile.am): New variable
61017         test_linkedhash_list_LDADD.
61018         * modules/rbtree-list-tests (Makefile.am): New variable
61019         test_rbtree_list_LDADD.
61020         * modules/rbtree-oset-tests (Makefile.am): New variable
61021         test_rbtree_oset_LDADD.
61022         * modules/rbtreehash-list-tests (Makefile.am): New variable
61023         test_rbtreehash_list_LDADD.
61024         * modules/xvasprintf-tests (Makefile.am): New variable
61025         test_xvasprintf_LDADD.
61026         Reported by Eric Blake.
61027
61028 2007-04-03  Eric Blake  <ebb9@byu.net>
61029
61030         * DEPENDENCIES: Weaken m4 requirements.
61031
61032 2007-04-03  Bruno Haible  <bruno@clisp.org>
61033
61034         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61035         * modules/isnanl-tests (configure.ac): Likewise.
61036
61037 2007-04-03  Ben Pfaff  <blp@gnu.org>
61038
61039         * modules/iconv_open: Add $(srcdir)/ to source directory
61040         references in Makefile fragments that call gperf, to fix VPATH
61041         builds.
61042
61043 2007-04-03  Bruno Haible  <bruno@clisp.org>
61044
61045         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61046         * lib/ldexpl.c: Undo last change.
61047
61048 2007-04-03  Bruno Haible  <bruno@clisp.org>
61049
61050         * modules/printf-frexpl (Depends-on): Undo last change.
61051         (Files): Add m4/ldexpl.m4.
61052
61053 2007-04-03  Bruno Haible  <bruno@clisp.org>
61054
61055         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61056         * modules/isnanl (Link): New section.
61057
61058         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61059         * modules/frexp (Link): New section.
61060
61061         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61062         * modules/frexpl (Link): New section.
61063
61064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61065         * modules/ldexpl (Link): New section.
61066
61067 2007-04-03  Bruno Haible  <bruno@clisp.org>
61068
61069         * modules/TEMPLATE-EXTENDED: New file.
61070         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61071
61072 2007-04-03  Bruno Haible  <bruno@clisp.org>
61073
61074         * DEPENDENCIES: New file.
61075         Suggested by Simon Josefsson.
61076
61077 2007-04-03  Bruno Haible  <bruno@clisp.org>
61078
61079         * doc/gnulib.texi: Escape @.
61080
61081 2007-04-03  James Youngman  <jay@gnu.org>
61082         and Paul Eggert  <eggert@cs.ucla.edu>
61083
61084         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61085         birthtime on all systems that have birthtime, not just those which
61086         use st_birthtimensec rather than st_birthtim.  Putting zero in
61087         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61088         that the birth time is not available for files on an NFS mount.
61089
61090 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61091
61092         * modules/memxor: Move back from crypto/, suggested by Bruno.
61093         * modules/crypto/hmac-sha1: Fix memxor dependency.
61094
61095         * modules/crypto/gc: Moved from ../.
61096
61097 2007-04-02  Eric Blake  <ebb9@byu.net>
61098
61099         * lib/ldexpl.c (includes): Avoid libm.
61100
61101         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61102
61103 2007-04-02  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61106         on IRIX.
61107
61108 2007-04-02  Bruno Haible  <bruno@clisp.org>
61109
61110         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61111         x86 or x86_64 platforms running MacOS X.
61112         Reported by Ryan Schmidt <@ryandesign.com>.
61113
61114 2007-04-02  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61117         i386.
61118
61119 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61120
61121         * modules/crypto/arcfour: Moved from ../.
61122         * modules/crypto/arcfour-tests: Moved from ../.
61123         * modules/crypto/arctwo: Moved from ../.
61124         * modules/crypto/arctwo-tests: Moved from ../.
61125         * modules/crypto/des: Moved from ../.
61126         * modules/crypto/des-tests: Moved from ../.
61127         * modules/crypto/gc-arcfour: Moved from ../.
61128         * modules/crypto/gc-arcfour-tests: Moved from ../.
61129         * modules/crypto/gc-arctwo: Moved from ../.
61130         * modules/crypto/gc-arctwo-tests: Moved from ../.
61131         * modules/crypto/gc-des: Moved from ../.
61132         * modules/crypto/gc-des-tests: Moved from ../.
61133         * modules/crypto/gc-hmac-md5: Moved from ../.
61134         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61135         * modules/crypto/gc-hmac-sha1: Moved from ../.
61136         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61137         * modules/crypto/gc-md2: Moved from ../.
61138         * modules/crypto/gc-md2-tests: Moved from ../.
61139         * modules/crypto/gc-md4: Moved from ../.
61140         * modules/crypto/gc-md4-tests: Moved from ../.
61141         * modules/crypto/gc-md5: Moved from ../.
61142         * modules/crypto/gc-md5-tests: Moved from ../.
61143         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61144         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61145         * modules/crypto/gc-random: Moved from ../.
61146         * modules/crypto/gc-rijndael: Moved from ../.
61147         * modules/crypto/gc-rijndael-tests: Moved from ../.
61148         * modules/crypto/gc-sha1: Moved from ../.
61149         * modules/crypto/gc-sha1-tests: Moved from ../.
61150         * modules/crypto/gc-tests: Moved from ../.
61151         * modules/crypto/hmac-md5: Moved from ../.
61152         * modules/crypto/hmac-md5-tests: Moved from ../.
61153         * modules/crypto/hmac-sha1: Moved from ../.
61154         * modules/crypto/hmac-sha1-tests: Moved from ../.
61155         * modules/crypto/md2: Moved from ../.
61156         * modules/crypto/md2-tests: Moved from ../.
61157         * modules/crypto/md4: Moved from ../.
61158         * modules/crypto/md4-tests: Moved from ../.
61159         * modules/crypto/md5: Moved from ../.
61160         * modules/crypto/md5-tests: Moved from ../.
61161         * modules/crypto/memxor: Moved from ../.
61162         * modules/crypto/rijndael: Moved from ../.
61163         * modules/crypto/rijndael-tests: Moved from ../.
61164         * modules/crypto/sha1: Moved from ../.
61165
61166 2007-03-30  James Youngman  <jay@gnu.org>
61167
61168         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61169         rename() to change the ctime of a file (because ctime is unaffected
61170         by rename on jfs2 on AIX 5.1).
61171         (main): Start by doing cleanup, in case a previous run failed leaving
61172         test files behind.
61173
61174 2007-03-31  Bruno Haible  <bruno@clisp.org>
61175
61176         Support old proprietary implementations of iconv.
61177         * modules/iconv_open: New file.
61178         * lib/iconv_.h: New file.
61179         * m4/iconv_h.m4: New file.
61180         * lib/iconv_open.c: New file.
61181         * lib/iconv_open-aix.gperf: New file.
61182         * lib/iconv_open-hpux.gperf: New file.
61183         * lib/iconv_open-irix.gperf: New file.
61184         * lib/iconv_open-osf.gperf: New file.
61185         * m4/iconv_open.m4: New file.
61186         * modules/linebreak (Depends-on): Add iconv_open.
61187         * modules/striconv (Depends-on): Likewise.
61188         * modules/striconveh (Depends-on): Likewise.
61189         * modules/unicodeio (Depends-on): Likewise.
61190         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61191         (iconv_t)(-1).
61192         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61193         conversion if cd is (iconv_t)(-1).
61194         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61195         is not possible.
61196
61197 2007-03-31  Bruno Haible  <bruno@clisp.org>
61198
61199         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61200         work on Solaris either. Protect also second use of "autodetect_jp".
61201
61202 2007-03-31  Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61205         the function is not present.
61206
61207 2007-03-31  Bruno Haible  <bruno@clisp.org>
61208
61209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61210         the function is not present.
61211
61212 2007-03-31  Bruno Haible  <bruno@clisp.org>
61213
61214         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61215         a bug in HP-UX iconv_open().
61216
61217 2007-03-31  Bruno Haible  <bruno@clisp.org>
61218
61219         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61220         (Mathematics <math.h>): New section, add fpieee.
61221         (Input/output <stdio.h>): Add fseterr.
61222         (Mathematics <math.h>): New section, add printf-frexp.
61223         (Container data structures): Add sublist.
61224         (Core language properties): Add fpucw, inline.
61225         (Functions for greatest-width integer types <inttypes.h>): Add
61226         imaxabs, imaxdiv, inttypes.
61227         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61228         isnanl-nolibm, ldexp.
61229         (Mathematics <math.h>): New section, add printf-frexpl.
61230         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61231         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61232         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61233         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61234         (Unicode string functions): Add unistr/u*-mbtoucr.
61235         (Java): Add javacomp-script, javaexec-script.
61236         (C#): Add csharpcomp-script, csharpexec-script.
61237         (Support for building libraries and executables): Add havelib,
61238         relocatable-*.
61239         (Support for maintaining and releasing projects): Renamed from
61240         'Support for maintaining and release projects'. Add announce-gen.
61241
61242 2007-03-31  Bruno Haible  <bruno@clisp.org>
61243
61244         * README: Talk primarily about git.
61245         (git and CVS): Renamed from CVS.
61246         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61247         gnulib is available through git.
61248         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61249
61250 2007-03-30  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61253         * lib/poll_.h: Likewise.
61254         * lib/stat_.h: Likewise.
61255         * lib/sys_time_.h: Likewise.
61256         * lib/sysexit_.h: Likewise.
61257         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61258         * lib/stdbool_.h: Likewise.
61259         * lib/byteswap_.h: Add double-inclusion guard.
61260
61261 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61262
61263         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61264
61265 2007-03-30  Karl Berry  <karl@gnu.org>
61266
61267         * config/srclist-update: double space after USA in the license
61268         substitution, since that's how it's usually (?) written.
61269
61270 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61273         reported by Bruno Haible.
61274
61275 2007-03-29  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61278         a bug in AIX iconv().
61279
61280 2007-03-29  Bruno Haible  <bruno@clisp.org>
61281
61282         * modules/ldexpl-tests: New file.
61283         * tests/test-ldexpl.c: New file.
61284
61285 2007-03-29  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/ldexpl.c: Include fpucw.h.
61288         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61289         multiplication.
61290         * modules/ldexpl (Depends-on): Add fpucw.
61291
61292 2007-03-29  Bruno Haible  <bruno@clisp.org>
61293
61294         * modules/ldexpl: New file.
61295         * m4/ldexpl.m4: New file.
61296         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61297         set.
61298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61299         REPLACE_LDEXPL.
61300         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61301         REPLACE_LDEXPL.
61302         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61303         gl_FUNC_LDEXPL_WORKS.
61304         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61305         * modules/mathl (Files): Remove lib/ldexpl.c.
61306         (Depends-on): Add ldexpl.
61307
61308 2007-03-29  Bruno Haible  <bruno@clisp.org>
61309
61310         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61311
61312 2007-03-29  Bruno Haible  <bruno@clisp.org>
61313
61314         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61315         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61316         and possibly also HP-UX.
61317         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61318         work on AIX, IRIX, HP-UX, OSF/1.
61319         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61320         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61321         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61322         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61323         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61324         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61325
61326 2007-03-29  Bruno Haible  <bruno@clisp.org>
61327
61328         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61329
61330 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61331
61332         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61333         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61334
61335 2007-03-29  Eric Blake  <ebb9@byu.net>
61336
61337         * lib/acl-internal.h: Remove redundant include.
61338         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61339         Cygwin when a file is locked.
61340
61341 2007-03-29  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61344         file.
61345         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61346
61347 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61350         try to remove a parent directory if the child couldn't be removed
61351         (except for the first rmdir, which could fail because the child
61352         doesn't exist).  Problem reported by Jeff Blaine in
61353         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61354
61355 2007-03-28  Bruno Haible  <bruno@clisp.org>
61356
61357         * lib/striconveh.c (utf8conv_carefully): New function.
61358         (mem_cd_iconveh_internal): Invoke it.
61359
61360 2007-03-28  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61363         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61364         input.
61365         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61366         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61367         unistr/u8-uctomb.
61368
61369 2007-03-28  Bruno Haible  <bruno@clisp.org>
61370
61371         * modules/unistr/u8-mbtoucr: New file.
61372         * lib/unistr/u8-mbtoucr.c: New file.
61373         * modules/unistr/u16-mbtoucr: New file.
61374         * lib/unistr/u16-mbtoucr.c: New file.
61375         * modules/unistr/u16-mbtoucr: New file.
61376         * lib/unistr/u16-mbtoucr.c: New file.
61377         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61378
61379 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61380             Bruno Haible  <bruno@clisp.org>
61381
61382         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61383         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61384         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61385
61386         * m4/stdio_h.m4: Add stubs for vasprintf too.
61387
61388         * modules/stdio: Support vasprintf in sed command.
61389
61390         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61391         vasprintf.h.  Add stdio module indicator.
61392
61393         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61394         vasprintf.h.
61395
61396         * lib/vasprintf.h: File removed.
61397
61398         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61399         * lib/vasprintf.c: Ditto.
61400         * lib/xvasprintf.c: Ditto.
61401         * tests/test-vasprintf-posix.c: Ditto.
61402         * tests/test-vasprintf.c: Ditto.
61403
61404 2007-03-27  Bruno Haible  <bruno@clisp.org>
61405
61406         Make vasnprintf multithread-safe.
61407         * lib/vasnprintf.c (decimal_point_char): New function.
61408         (VASNPRINTF): Use it.
61409         Suggested by Simon Josefsson.
61410
61411 2007-03-27  Eric Blake  <ebb9@byu.net>
61412
61413         Support sub-second birthtime on cygwin.
61414         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61415         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61416         (get_stat_birthtime): Also work with st_birthtim.
61417
61418 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61421         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61422         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61423         (get_stat_birthtime_ns): Simplify compile-time tests.
61424         (get_stat_birthtime): Change the API to look like
61425         get_stat_mtime etc., except return a negative tv_nsec on error.
61426         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61427         Don't check for "spare" fields.
61428         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61429         or for struct stat.st_birthtime, as these tests aren't used.
61430         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61431
61432 2007-03-27  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/stat-time.h: Include <sys/stat.h>.
61435
61436 2007-03-27  James Youngman  <jay@gnu.org>
61437
61438         * lib/stat-time.h (get_stat_birthtime): New function for
61439           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61440         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61441           and its variants.
61442         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61443         * modules/stat-time-test: New file.
61444         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61445
61446 2007-03-26  Bruno Haible  <bruno@clisp.org>
61447
61448         Better support of signalling NaNs.
61449         * lib/atanl.c: Include isnanl.h.
61450         (atanl): Perform test for NaN at the beginning of the function and
61451         through a call to isnanl.
61452         * lib/cosl.c: Include isnanl.h.
61453         (cosl): Perform test for NaN at the beginning of the function and
61454         through a call to isnanl.
61455         * lib/ldexpl.c: Include isnanl.h.
61456         (ldexpl): Perform test for NaN through a call to isnanl.
61457         * lib/logl.c: Include isnanl.h.
61458         (logl): Perform test for NaN at the beginning of the function and
61459         through a call to isnanl.
61460         * lib/sinl.c: Include isnanl.h.
61461         (sinl): Perform test for NaN at the beginning of the function and
61462         through a call to isnanl.
61463         * lib/sqrtl.c: Include isnanl.h.
61464         (sqrtl): Perform test for NaN at the beginning of the function and
61465         through a call to isnanl.
61466         * lib/tanl.c: Include isnanl.h.
61467         (tanl): Perform test for NaN at the beginning of the function and
61468         through a call to isnanl.
61469         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61470         * modules/mathl (Depends-on): Add isnanl.
61471
61472 2007-03-26  Eric Blake  <ebb9@byu.net>
61473
61474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61475         regression in logic sense of previous patch.
61476
61477 2007-03-26  Bruno Haible  <bruno@clisp.org>
61478
61479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61480         unportable shell command "if ! ...".
61481         Reported by Ralf Wildenhues.
61482
61483 2007-03-25  Bruno Haible  <bruno@clisp.org>
61484
61485         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61486         <sysexits.h> file, and only add EX_CONFIG.
61487         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61488         absolute file name and whether it is sufficient. Substitute also
61489         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61490         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61491         ABSOLUTE_SYSEXITS_H into sysexits.h.
61492
61493 2007-03-25  Bruno Haible  <bruno@clisp.org>
61494
61495         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61496         hints is NULL.
61497
61498 2007-03-25  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61501         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61502
61503 2007-03-25  Bruno Haible  <bruno@clisp.org>
61504
61505         * lib/vasnprintf.c: Include langinfo.h.
61506         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61507         multithread-safe.
61508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61511         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61512         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61514         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61516         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61517         Reported by Simon Josefsson.
61518
61519 2007-03-25  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61522         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61523         * modules/vasnprintf (Depends-on): Add stdint.
61524
61525 2007-03-25  Bruno Haible  <bruno@clisp.org>
61526
61527         * modules/fpieee: New file.
61528         * m4/fpieee.m4: New file.
61529         * modules/isnan-nolibm (Depends-on): Add fpieee.
61530         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61531         * modules/isnanl (Depends-on): Add fpieee.
61532
61533 2007-03-25  Bruno Haible  <bruno@clisp.org>
61534
61535         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61536
61537 2007-03-25  Bruno Haible  <bruno@clisp.org>
61538
61539         Avoid test failures on IRIX 6.5.
61540         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61541         (main): Use it.
61542         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61543         macros.
61544         (main): Use them.
61545
61546 2007-03-25  Bruno Haible  <bruno@clisp.org>
61547
61548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61549         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61550         exists but doesn't work.
61551         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61552         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61554         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61555         math.h.
61556
61557 2007-03-25  Bruno Haible  <bruno@clisp.org>
61558
61559         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61560         returns inf. Needed on IRIX 6.5.
61561
61562 2007-03-25  Bruno Haible  <bruno@clisp.org>
61563
61564         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61565         (main): Use isnanl instead of x != x idiom.
61566         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61567
61568         * tests/test-frexp.c: Include isnan.h.
61569         (main): Use isnan instead of x != x idiom.
61570         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61571
61572 2007-03-25  Bruno Haible  <bruno@clisp.org>
61573
61574         * tests/test-frexp.c (NaN): New function/macro.
61575         (main): Use it instead of 0.0 / 0.0.
61576         * tests/test-isnan.c (NaN): New function/macro.
61577         (main): Use it instead of 0.0 / 0.0.
61578         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61579         (test_function): Use it instead of 0.0 / 0.0.
61580         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61581         (test_function): Use it instead of 0.0 / 0.0.
61582         * tests/test-snprintf-posix.h (NaN): New function/macro.
61583         (test_function): Use it instead of 0.0 / 0.0.
61584         * tests/test-sprintf-posix.h (NaN): New function/macro.
61585         (test_function): Use it instead of 0.0 / 0.0.
61586         * tests/test-fprintf-posix.h (NaN): New function/macro.
61587         (test_function): Use it instead of 0.0 / 0.0.
61588         * tests/test-printf-posix.h (NaN): New function/macro.
61589         (test_function): Use it instead of 0.0 / 0.0.
61590
61591         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61592
61593 2007-03-25  Bruno Haible  <bruno@clisp.org>
61594
61595         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61596
61597 2007-03-25  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/regexec.c (merge_state_with_log): Make static.
61600
61601 2007-03-25  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/trigl.c (kernel_rem_pio2): Make static.
61604
61605 2007-03-25  Bruno Haible  <bruno@clisp.org>
61606
61607         * lib/sincosl.c (sincosl_table): Make static.
61608
61609 2007-03-25  Bruno Haible  <bruno@clisp.org>
61610
61611         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61612         if the compiler does not support C99.
61613
61614 2007-03-25  Bruno Haible  <bruno@clisp.org>
61615
61616         * modules/time (Makefile.am): Ensure all rule action lines start with a
61617         tab.
61618
61619 2007-03-24  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/tsearch-tests: New file.
61622         * tests/test-tsearch.sh: New file.
61623         * tests/test-tsearch.c: New file, mostly copied from glibc.
61624
61625         * modules/search-tests: New file.
61626         * tests/test-search.c: New file.
61627
61628         * modules/search: New file.
61629         * lib/search_.h: New file, incorporating lib/tsearch.h.
61630         * m4/search_h.m4: New file.
61631         * lib/tsearch.h: Remove file.
61632         * lib/tsearch.c: Include search.h instead of tsearch.h.
61633         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61634         HAVE_TSEARCH.
61635         * modules/tsearch (Files): Remove lib/tsearch.h.
61636         (Depends-on): Add search.
61637         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61638         (Include): Change tsearch.h into search.h.
61639
61640 2007-03-24  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/fpucw: New file.
61643         * lib/fpucw.h: New file.
61644         * lib/frexp.c: Include fpucw.h.
61645         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61646         (FUNC): Use them.
61647         * lib/printf-frexp.c: Include fpucw.h.
61648         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61649         (FUNC): Use them.
61650         * lib/vasnprintf.c: Include fpucw.h.
61651         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61652         'long double' calculations.
61653         * tests/test-frexpl.c: Include fpucw.h.
61654         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61655         * tests/test-printf-frexpl.c: Include fpucw.h.
61656         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61657         * modules/frexpl (Depends-on): Add fpucw.
61658         * modules/printf-frexpl (Depends-on): Likewise.
61659         * modules/fprintf-posix (Depends-on): Likewise.
61660         * modules/snprintf-posix (Depends-on): Likewise.
61661         * modules/sprintf-posix (Depends-on): Likewise.
61662         * modules/vasnprintf-posix (Depends-on): Likewise.
61663         * modules/vasprintf-posix (Depends-on): Likewise.
61664         * modules/vfprintf-posix (Depends-on): Likewise.
61665         * modules/vsnprintf-posix (Depends-on): Likewise.
61666         * modules/vsprintf-posix (Depends-on): Likewise.
61667         * modules/frexpl-tests (Depends-on): Likewise.
61668         * modules/printf-frexpl-tests (Depends-on): Likewise.
61669
61670 2007-03-24  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/float+.h: New file.
61673         * lib/isnan.c: Include float+.h.
61674         (SIZE): New macro.
61675         (FUNC): Compare only SIZE bytes of the value.
61676         * lib/vasnprintf.c: Include float+.h.
61677         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61678         SIZEOF_LDBL or SIZEOF_DBL bytes.
61679         * modules/isnan-nolibm (Files): Add lib/float+.h.
61680         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61681         * modules/isnanl (Files): Add lib/float+.h.
61682         * modules/vasnprintf (Files): Add lib/float+.h.
61683
61684 2007-03-24  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61687         include isnanl-nolibm.h.
61688
61689 2007-03-24  Bruno Haible  <bruno@clisp.org>
61690
61691         * tests/test-read-file.c (main): Don't produce spurious output for
61692         expected situations. Make the test fail if it encountered unexpected
61693         results.
61694
61695 2007-03-24  Bruno Haible  <bruno@clisp.org>
61696
61697         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61698         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61699
61700 2007-03-24  Bruno Haible  <bruno@clisp.org>
61701
61702         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61703
61704 2007-03-24  Bruno Haible  <bruno@clisp.org>
61705
61706         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61707         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61708
61709         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61710         * modules/utf8-ucs4: Turn into a symbolic link to module
61711         unistr/u8-mbtouc.
61712
61713         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61714         utf8-ucs4-unsafe.
61715         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61716         unistr/u8-mbtouc-unsafe.
61717
61718         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61719         * modules/utf16-ucs4: Turn into a symbolic link to module
61720         unistr/u16-mbtouc.
61721
61722         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61723         utf16-ucs4-unsafe.
61724         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61725         unistr/u16-mbtouc-unsafe.
61726
61727         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61728         * modules/ucs4-utf8: Turn into a symbolic link to module
61729         unistr/u8-ubtomb.
61730
61731         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61732         * modules/ucs4-utf16: Turn into a symbolic link to module
61733         unistr/u16-ubtomb.
61734
61735 2007-03-24  Bruno Haible  <bruno@clisp.org>
61736
61737         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61738         Enable the function only if HAVE_INLINE.
61739         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61740         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61741         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61742         Enable the function only if HAVE_INLINE.
61743         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61744         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61745         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61746         Enable the function only if HAVE_INLINE.
61747         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61748         Enable the function only if HAVE_INLINE.
61749         * modules/utf8-ucs4: Update.
61750         * modules/utf8-ucs4-unsafe: Update.
61751         * modules/utf16-ucs4: Update.
61752         * modules/utf16-ucs4-unsafe: Update.
61753         * modules/ucs4-utf8: Update.
61754         * modules/ucs4-utf16: Update.
61755
61756 2007-03-24  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/utf8-ucs4.h: Remove file.
61759         * lib/utf8-ucs4-unsafe.h: Remove file.
61760         * lib/utf16-ucs4.h: Remove file.
61761         * lib/utf16-ucs4-unsafe.h: Remove file.
61762         * lib/ucs4-utf8.h: Remove file.
61763         * lib/ucs4-utf16.h: Remove file.
61764         * lib/unistr.h: Include their previous contents.
61765         * m4/utf-ucs4.m4: Remove file.
61766         * m4/ucs4-utf.m4: Remove file.
61767         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61768         (Depends-on): Add unistr/base.
61769         (configure.ac): Remove gl_UTF_UCS4.
61770         (Makefile.am): Update.
61771         (Include): Change to unistr.h.
61772         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61773         (Depends-on): Add unistr/base.
61774         (configure.ac): Remove gl_UTF_UCS4.
61775         (Makefile.am): Update.
61776         (Include): Change to unistr.h.
61777         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61778         (Depends-on): Add unistr/base.
61779         (configure.ac): Remove gl_UTF_UCS4.
61780         (Makefile.am): Update.
61781         (Include): Change to unistr.h.
61782         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61783         (Depends-on): Add unistr/base.
61784         (configure.ac): Remove gl_UTF_UCS4.
61785         (Makefile.am): Update.
61786         (Include): Change to unistr.h.
61787         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61788         (Depends-on): Add unistr/base.
61789         (configure.ac): Remove gl_UCS4_UTF.
61790         (Makefile.am): Update.
61791         (Include): Change to unistr.h.
61792         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61793         (Depends-on): Add unistr/base.
61794         (configure.ac): Remove gl_UCS4_UTF.
61795         (Makefile.am): Update.
61796         (Include): Change to unistr.h.
61797         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61798         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61799         utf8-ucs4-unsafe.h.
61800         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61801         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61802         utf16-ucs4-unsafe.h.
61803         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61804         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61805         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61806         * lib/unistr/u8-strchr.c: Likewise.
61807         * lib/unistr/u8-strrchr.c: Likewise.
61808         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61809         * lib/unistr/u16-strchr.c: Likewise.
61810         * lib/unistr/u16-strrchr.c: Likewise.
61811         * lib/striconveh.c: Update.
61812         * lib/linebreak.c: Update.
61813
61814 2007-03-24  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61817         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61818
61819 2007-03-22  Bruno Haible  <bruno@clisp.org>
61820
61821         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61822
61823 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * MODULES.html.sh (File system functions): New module write-any-file.
61826         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61827         * m4/write-any-file.m4: New files.
61828
61829 2007-03-23  Eric Blake  <ebb9@byu.net>
61830
61831         * gnulib-tool: Rearrange space-tab sequences, since some editors
61832         like to eat them.
61833
61834 2007-03-23  Eric Blake  <ebb9@byu.net>
61835
61836         * lib/version-etc.c (version_etc_va): Update license wording to
61837         be more concise.  Recommended by Richard Stallman.
61838
61839 2007-03-22  Bruno Haible  <bruno@clisp.org>
61840
61841         * lib/poll.c (MSG_PEEK): New fallback definition.
61842
61843 2007-03-22  Bruno Haible  <bruno@clisp.org>
61844
61845         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61846         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61847         (main): Update.
61848         Fixes a compilation error on BeOS.
61849
61850 2007-03-22  Bruno Haible  <bruno@clisp.org>
61851
61852         * modules/frexpl-tests: New file.
61853         * tests/test-frexpl.c: New file.
61854
61855         * modules/frexpl: New file.
61856         * m4/frexpl.m4: New file.
61857         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61858         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61860         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61861         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61862         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61863
61864 2007-03-22  Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/frexpl.c: Share code with lib/frexp.c.
61867         * modules/mathl (Files): Add lib/frexp.c.
61868         (Depends-on): Add isnanl-nolibm.
61869
61870 2007-03-22  Bruno Haible  <bruno@clisp.org>
61871
61872         * modules/printf-frexp (Files): Add m4/frexp.m4.
61873         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61874         only if the found frexp function actually works.
61875
61876 2007-03-22  Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/frexp.c: Remove older implementation that uses divisions.
61879
61880 2007-03-21  Bruno Haible  <bruno@clisp.org>
61881
61882         * modules/frexp-tests: New file.
61883         * tests/test-frexp.c: New file.
61884
61885         * modules/frexp: New file.
61886         * lib/frexp.c: New file.
61887         * m4/frexp.m4: New file.
61888         * lib/math_.h (frexp): New declaration.
61889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61890         REPLACE_FREXP.
61891         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61892
61893 2007-03-21  Bruno Haible  <bruno@clisp.org>
61894
61895         * modules/isnanl-tests: New file.
61896         * tests/test-isnanl.c: New file.
61897
61898         * modules/isnanl: New file.
61899         * lib/isnanl.h: New file.
61900         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61901         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61902         gl_FUNC_ISNANL_WORKS.
61903         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61904         New macros.
61905
61906 2007-03-21  Bruno Haible  <bruno@clisp.org>
61907
61908         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61909         lib/isnanl.h.
61910         (Include): Update.
61911         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61912         * lib/vasnprintf.c: Update.
61913         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61914         tests/test-isnanl.h, remove tests/test-isnanl.c.
61915         (Makefile.am): Update.
61916         * tests/test-isnanl-nolibm.c: New file.
61917         * tests/test-isnanl.h: New file.
61918         * tests/test-isnanl.c: Remove file.
61919
61920 2007-03-21  Jim Meyering  <jim@meyering.net>
61921
61922         When trying to open ".", treat ESTALE like EACCES.
61923         * lib/savewd.c (savewd_save): Resort to forking not just upon
61924         failure with EACCES, but also when errno is ESTALE.
61925
61926 2007-03-20  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61929         Needed on AIX 5.1. Reported by Matthew Woehlke.
61930
61931 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         Suggestions by Bruno Haible:
61934         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61935         our own.
61936         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61937         * modules/acl (Depends-on): Add gettext.
61938
61939 2007-03-19  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/iconvme: Remove file.
61942         * lib/iconvme.h: Remove file.
61943         * lib/iconvme.c: Remove file.
61944         * m4/iconvme.m4: Remove file.
61945
61946 2007-03-19  Bruno Haible  <bruno@clisp.org>
61947
61948         * doc/relocatable-maint.texi: Break long shell script line.
61949         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61950
61951 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61954         handle file_has_acl.
61955         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61956         * lib/acl.c: Move header inclusions and related macro defns into
61957         lib/acl-internal.h.
61958         (S_ISLNK): Remove defn, since that's now done for us.
61959         (file_has_acl): Move to lib/file-has-acl.c.
61960         Call acl_trivial if available.  This is the crucial part of the fix.
61961         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61962         shared within the library.  Rewrite a bit, partly to make it compatible
61963         with the GNU coding style.
61964         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61965         Remove unnecessary double-quotes.
61966         Don't test for acl_to_text; the build will catch that.
61967         Replace acl_entries if it doesn't exist and it is needed.
61968         Check for -lsec and acl_trivial (as used on Solaris 10).
61969         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61970         lib/file-has-acl.c.
61971         (Depends-on): Add sys_stat, for S_ISLNK.
61972
61973 2007-03-19  Ben Pfaff  <blp@gnu.org>
61974
61975         * doc/gnulib.texi: Fix typos.
61976         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61977
61978 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61981         If size is zero here, buf must be zero.
61982
61983 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61984
61985         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61986         <bruno@clisp.org>.
61987
61988 2007-03-18  Bruno Haible  <bruno@clisp.org>
61989
61990         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61991         Suggested by Eric Blake.
61992
61993 2007-03-18  Ben Pfaff  <blp@gnu.org>
61994
61995         * doc/relocatable.texi: Recommend using as prefix a directory
61996         that does not exist and will never be created.  Based on
61997         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61998         and others.
61999
62000 2007-03-17  Bruno Haible  <bruno@clisp.org>
62001
62002         * lib/fchownat.c: Include lchown.h.
62003
62004 2007-03-17  Bruno Haible  <bruno@clisp.org>
62005
62006         Fix endless loop when the given allocated size was > INT_MAX.
62007         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62008         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62009         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62010         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62011         * lib/sprintf.c (sprintf): Likewise.
62012
62013 2007-03-17  Bruno Haible  <bruno@clisp.org>
62014
62015         * tests/test-argp-2.sh (func_compare): Output a context diff.
62016
62017 2007-03-17  Bruno Haible  <bruno@clisp.org>
62018
62019         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62020         locale's decimal-point character.
62021
62022 2007-03-17  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62025         before comparing it. Needed because on some platforms (e.g. x86) a
62026         'long double' occupies less bytes than sizeof (long double).
62027
62028 2007-03-17  Bruno Haible  <bruno@clisp.org>
62029
62030         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62031         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62032         * tests/test-getaddrinfo.c (simple): Likewise.
62033         * tests/test-read-file.c (main): Likewise.
62034
62035 2007-03-17  Bruno Haible  <bruno@clisp.org>
62036
62037         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62038
62039 2007-03-17  Bruno Haible  <bruno@clisp.org>
62040
62041         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62042         unused variable.
62043
62044 2007-03-17  Bruno Haible  <bruno@clisp.org>
62045
62046         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62047         * tests/test-c-strncasecmp.c: Likewise.
62048
62049 2007-03-17  Bruno Haible  <bruno@clisp.org>
62050
62051         * modules/stdlib (Depends-on): Add unistd.
62052         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62053         Needed for MacOS X 10.3.
62054
62055 2007-03-17  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62058
62059 2007-03-17  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62062
62063 2007-03-17  Bruno Haible  <bruno@clisp.org>
62064
62065         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62066         to reflect files copied from gnulib (with or without modifications).
62067         Suggested by Jim Meyering.
62068
62069 2007-03-17  Eric Blake  <ebb9@byu.net>
62070
62071         * NEWS: Document stdlib change from 2007-02-18.
62072
62073 2007-03-17  Jim Meyering  <jim@meyering.net>
62074
62075         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62076         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62077         someone uses a name containing shell meta-characters.
62078         Reported by Alfred M. Szmidt.
62079
62080         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62081
62082 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62083
62084         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62085         and copy gettext configuration files only if configure.ac contains
62086         a use of AM_GNU_GETTEXT_VERSION.
62087
62088 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62089
62090         * build-aux/bootstrap (gnulib_name): New variable.
62091         (gnulib_tool_options): Use it.
62092
62093 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62094
62095         * tests/test-des.c: Use new namespace.
62096
62097 2007-03-15  Bruno Haible  <bruno@clisp.org>
62098
62099         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62100         Reported by James Youngman <jay@gnu.org>.
62101
62102 2007-03-15  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62105         declared prototype. Needed with cc on OSF/1 5.1.
62106
62107 2007-03-15  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62110         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62111         (struct gl_list_implementation): Add dispose_fn argument to the
62112         'create_empty', 'create' methods.
62113         (struct gl_list_impl_base): Add field 'dispose_fn'.
62114         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62115         argument.
62116         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62117         dispose_fn argument.
62118         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62119         dispose_fn on the dropped values.
62120         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62121         dispose_fn argument.
62122         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62123         dropped values.
62124         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62125         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62126         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62127         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62128         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62129         argument.
62130         (gl_tree_list_free): Call dispose_fn on the dropped values.
62131         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62132         the dropped values.
62133         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62134         Add dispose_fn argument.
62135         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62136         Call dispose_fn on the dropped values.
62137         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62138         Add dispose_fn argument.
62139         (gl_sublist_create): Initialize the 'dispose_fn' field.
62140         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62141         * tests/test-array_list.c (main): Update.
62142         * tests/test-carray_list.c (main): Update.
62143         * tests/test-avltree_list.c (main): Update.
62144         * tests/test-rbtree_list.c (main): Update.
62145         * tests/test-avltreehash_list.c (main): Update.
62146         * tests/test-rbtreehash_list.c (main): Update.
62147         * tests/test-linked_list.c (main): Update.
62148         * tests/test-linkedhash_list.c (main): Update.
62149         * tests/test-array_oset.c (main): Update.
62150
62151 2007-03-15  Bruno Haible  <bruno@clisp.org>
62152
62153         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62154         (gl_oset_create_empty): Add dispose_fn argument.
62155         (struct gl_oset_implementation): Add dispose_fn argument to
62156         'create_empty' method.
62157         (struct gl_oset_impl_base): Add dispose_fn field.
62158         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62159         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62160         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62161         values.
62162         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62163         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62164         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62165         dropped value.
62166         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62167         dropped value.
62168         * tests/test-array_oset.c (main): Update.
62169         * tests/test-avltree_oset.c (main): Update.
62170         * tests/test-rbtree_oset.c (main): Update.
62171         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62172
62173 2007-03-13  Bruno Haible  <bruno@clisp.org>
62174
62175         * tests/test-stdbool.c (i): Update after last patch.
62176
62177 2007-03-12  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62180         the iswprint macro. Needed on Solaris 2.5.1.
62181
62182 2007-03-12  Bruno Haible  <bruno@clisp.org>
62183
62184         * tests/test-printf-frexp.c (main): Declare x as volatile.
62185
62186 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62187
62188         * doc/gnulib.texi (Build robot for gnulib): New section.
62189
62190 2007-03-12  Jim Meyering  <jim@meyering.net>
62191
62192         * build-aux/bootstrap: New file.
62193         * build-aux/bootstrap.conf: New file, from coreutils.
62194
62195 2007-03-11  Bruno Haible  <bruno@clisp.org>
62196
62197         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62198
62199 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62200
62201         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62202         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62203         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62204
62205 2007-03-11  Bruno Haible  <bruno@clisp.org>
62206
62207         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62208         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62209
62210 2007-03-11  Bruno Haible  <bruno@clisp.org>
62211
62212         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62213         formula. Needed for SunPRO C 5.0.
62214
62215 2007-03-11  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/long-options (Depends-on): Add getopt.
62218
62219 2007-03-11  Bruno Haible  <bruno@clisp.org>
62220
62221         * modules/modechange (Depends-on): Add stdbool.
62222
62223 2007-03-11  Bruno Haible  <bruno@clisp.org>
62224
62225         * modules/i-ring (Depends-on): Add stdbool.
62226
62227 2007-03-11  Bruno Haible  <bruno@clisp.org>
62228
62229         * modules/gc-des (Depends-on): Add stdbool.
62230
62231 2007-03-11  Bruno Haible  <bruno@clisp.org>
62232
62233         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62234
62235 2007-03-11  Bruno Haible  <bruno@clisp.org>
62236
62237         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62238
62239 2007-03-11  Bruno Haible  <bruno@clisp.org>
62240
62241         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62242
62243 2007-03-11  Bruno Haible  <bruno@clisp.org>
62244
62245         * lib/vasnprintf.c (sprintf): Undefine.
62246
62247 2007-03-11  Bruno Haible  <bruno@clisp.org>
62248
62249         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62250         initializers in SunPRO C and Compaq C compilers.
62251
62252 2007-03-11  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62255         decrementing code ANSI C compliant.
62256
62257 2007-03-11  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62260         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62261
62262 2007-03-11  Bruno Haible  <bruno@clisp.org>
62263
62264         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62265         <stdbool.h> substitute doesn't pass.
62266
62267 2007-03-11  Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62270
62271 2007-03-11  Bruno Haible  <bruno@clisp.org>
62272
62273         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62274         script, for submission to autobuild.josefsson.org.
62275
62276 2007-03-10  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/canonicalize-lgpl-tests: New file.
62279         * tests/test-canonicalize-lgpl.sh: New file.
62280         * tests/test-canonicalize-lgpl.c: New file.
62281
62282         * modules/c-strcase-tests: New file.
62283         * tests/test-c-strcase.sh: New file.
62284         * tests/test-c-strcasecmp.c: New file.
62285         * tests/test-c-strncasecmp.c: New file.
62286
62287         * modules/atexit-tests: New file.
62288         * tests/test-atexit.sh: New file.
62289         * tests/test-atexit.c: New file.
62290
62291 2007-03-10  Bruno Haible  <bruno@clisp.org>
62292
62293         * tests/test-binary-io.sh: Use temporary filenames that are not so
62294         likely to clash with those of other tests (in a parallel make).
62295         * tests/test-binary-io.c: Likewise.
62296
62297 2007-03-10  Bruno Haible  <bruno@clisp.org>
62298
62299         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62300         fallback; use #error instead.
62301         Suggested by Simon Josefsson.
62302
62303 2007-03-10  Bruno Haible  <bruno@clisp.org>
62304
62305         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62306         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62307         first and the last.
62308
62309 2007-03-10  Bruno Haible  <bruno@clisp.org>
62310
62311         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62312
62313 2007-03-10  Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62316         "make distcheck".
62317         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62318         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62319         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62320
62321 2007-03-10  Bruno Haible  <bruno@clisp.org>
62322
62323         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62324         variable.
62325         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62326         variable.
62327
62328 2007-03-09  Eric Blake  <ebb9@byu.net>
62329         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62330
62331         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62332         types are not being provided by gnulib.
62333         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62334         types are supported.
62335
62336 2007-03-10  Bruno Haible  <bruno@clisp.org>
62337
62338         * lib/stdio_.h (__attribute__): New macro.
62339         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62340         vsprintf): Specify __attribute__ __format__ for GCC.
62341         Suggested by Eric Blake.
62342
62343 2007-03-09  Bruno Haible  <bruno@clisp.org>
62344
62345         * modules/printf-posix-tests: New file.
62346         * tests/test-printf-posix.sh: New file.
62347         * tests/test-printf-posix.c: New file.
62348
62349         * modules/printf-posix: New file.
62350         * lib/printf.c: New file.
62351         * m4/printf-posix-rpl.m4: New file.
62352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62353         REPLACE_PRINTF.
62354         * lib/stdio_.h (printf): New declaration.
62355         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62356         ____strfmon____): New macros.
62357         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62358         REPLACE_PRINTF.
62359
62360 2007-03-09  Bruno Haible  <bruno@clisp.org>
62361
62362         * tests/test-vasnprintf-posix2.sh: New file.
62363         * tests/test-vasnprintf-posix2.c: New file.
62364         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62365         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62366         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62367
62368         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62369         a locale dependent decimal point, rather than always '.'.
62370
62371 2007-03-09  Eric Blake  <ebb9@byu.net>
62372
62373         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62374         spite of platforms like Tandem/NSK that define it to -1.
62375
62376 2007-03-08  Bruno Haible  <bruno@clisp.org>
62377
62378         * modules/vprintf-posix-tests: New file.
62379         * tests/test-vprintf-posix.sh: New file.
62380         * tests/test-vprintf-posix.c: New file.
62381         * tests/test-printf-posix.h: New file.
62382
62383         * modules/vprintf-posix: New file.
62384         * lib/vprintf.c: New file.
62385         * m4/vprintf-posix.m4: New file.
62386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62387         REPLACE_VPRINTF.
62388         * lib/stdio_.h (vprintf): New declaration.
62389         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62390         REPLACE_VPRINTF.
62391
62392 2007-03-08  Bruno Haible  <bruno@clisp.org>
62393
62394         * modules/fprintf-posix-tests: New file.
62395         * tests/test-fprintf-posix.sh: New file.
62396         * tests/test-fprintf-posix.c: New file.
62397
62398         * modules/fprintf-posix: New file.
62399         * lib/fprintf.c: New file.
62400         * m4/fprintf-posix.m4: New file.
62401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62402         REPLACE_FPRINTF.
62403         * lib/stdio_.h (fprintf): New declaration.
62404         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62405         REPLACE_FPRINTF.
62406
62407 2007-03-08  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/vfprintf-posix-tests: New file.
62410         * tests/test-vfprintf-posix.sh: New file.
62411         * tests/test-vfprintf-posix.c: New file.
62412         * tests/test-fprintf-posix.h: New file.
62413         * tests/test-fprintf-posix.out: New file.
62414
62415         * modules/vfprintf-posix: New file.
62416         * lib/vfprintf.c: New file.
62417         * m4/vfprintf-posix.m4: New file.
62418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62419         REPLACE_VFPRINTF.
62420         * lib/stdio_.h (vfprintf): New declaration.
62421         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62422         REPLACE_VFPRINTF.
62423
62424 2007-03-08  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62427
62428 2007-03-08  Bruno Haible  <bruno@clisp.org>
62429
62430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62431         instead of 'expr' invocations.
62432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62437         Suggested by Paul Eggert.
62438
62439 2007-03-08  Bruno Haible  <bruno@clisp.org>
62440
62441         * modules/fseterr-tests: New file.
62442         * tests/test-fseterr.c: New file.
62443
62444         * modules/fseterr: New file.
62445         * lib/fseterr.h: New file.
62446         * lib/fseterr.c: New file.
62447
62448 2007-03-08  Bruno Haible  <bruno@clisp.org>
62449
62450         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62451         * lib/getopt_.h: Likewise.
62452         * lib/mbswidth.h: Likewise.
62453         * lib/setenv.h: Likewise.
62454         * lib/vasnprintf.h: Likewise.
62455         * lib/vasprintf.h: Likewise.
62456         * lib/verror.h: Likewise.
62457         * lib/xsetenv.h: Likewise.
62458         * lib/xvasprintf.h: Likewise.
62459
62460 2007-03-08  Jim Meyering  <jim@meyering.net>
62461
62462         * users.txt: Add parted.
62463
62464         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62465
62466 2007-03-07  Bruno Haible  <bruno@clisp.org>
62467
62468         * m4/printf.m4: Make the shell script snippets copy&pastable.
62469
62470 2007-03-02  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/netinet_in_.h: New file.
62473         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62474         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62475         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62476         (Depends-on): Add absolute-header.
62477         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62478         into netinet/in.h.
62479
62480 2007-03-03  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/sys_select_.h: New file.
62483         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62484         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62485         * modules/sys_select (Files): Add lib/sys_select_.h.
62486         (Depends-on): Add absolute-header.
62487         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62488         into sys/select.h.
62489
62490 2007-03-02  Bruno Haible  <bruno@clisp.org>
62491
62492         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62493         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62494         values.
62495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62496         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62497         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62498         * modules/sys_socket (Depends-on): Add absolute-header.
62499         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62500         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62501         (Include): Remove requirement of inclusion of <sys/types.h>.
62502
62503 2007-03-02  Bruno Haible  <bruno@clisp.org>
62504
62505         * lib/byteswap_.h (bswap_32): Fix formula.
62506
62507 2007-03-06  Bruno Haible  <bruno@clisp.org>
62508
62509         * modules/sprintf-posix-tests: New file.
62510         * tests/test-sprintf-posix.c: New file.
62511
62512         * modules/sprintf-posix: New file.
62513         * lib/sprintf.c: New file.
62514         * m4/sprintf-posix.m4: New file.
62515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62516         REPLACE_SPRINTF.
62517         * lib/stdio_.h (sprintf): New declaration.
62518         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62519         REPLACE_SPRINTF.
62520
62521 2007-03-06  Bruno Haible  <bruno@clisp.org>
62522
62523         * modules/vsprintf-posix-tests: New file.
62524         * tests/test-vsprintf-posix.c: New file.
62525         * tests/test-sprintf-posix.h: New file.
62526
62527         * modules/vsprintf-posix: New file.
62528         * lib/vsprintf.c: New file.
62529         * m4/vsprintf-posix.m4: New file.
62530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62531         REPLACE_VSPRINTF.
62532         * lib/stdio_.h (vsprintf): New declaration.
62533         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62534         REPLACE_VSPRINTF.
62535
62536 2007-03-06  Bruno Haible  <bruno@clisp.org>
62537
62538         * modules/vsnprintf (Depend-on): Remove minmax.
62539
62540 2007-03-06  Bruno Haible  <bruno@clisp.org>
62541
62542         * modules/snprintf-posix-tests: New file.
62543         * tests/test-snprintf-posix.c: New file.
62544
62545         * modules/snprintf-posix: New file.
62546         * m4/snprintf-posix.m4: New file.
62547         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62548         gl_FUNC_SNPRINTF.
62549         (gl_FUNC_SNPRINTF): Invoke it.
62550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62551         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62552         is set.
62553         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62554
62555 2007-03-06  Bruno Haible  <bruno@clisp.org>
62556
62557         * modules/vsnprintf-posix-tests: New file.
62558         * tests/test-vsnprintf-posix.c: New file.
62559         * tests/test-snprintf-posix.h: New file.
62560
62561         * modules/vsnprintf-posix: New file.
62562         * m4/vsnprintf-posix.m4: New file.
62563         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62564         gl_FUNC_VSNPRINTF.
62565         (gl_FUNC_VSNPRINTF): Invoke it.
62566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62567         * lib/stdio_.h (vsnprintf): Define as a replacement if
62568         REPLACE_VSNPRINTF is set.
62569         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62570
62571 2007-03-06  Bruno Haible  <bruno@clisp.org>
62572
62573         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62575
62576 2007-03-06  Bruno Haible  <bruno@clisp.org>
62577
62578         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62579         (asinl): Declare also if HAVE_DECL_ASINL is set.
62580         (atanl): Declare also if HAVE_DECL_ATANL is set.
62581         (ceill): Declare also if HAVE_DECL_CEILL is set.
62582         (cosl): Declare also if HAVE_DECL_COSL is set.
62583         (expl): Declare also if HAVE_DECL_EXPL is set.
62584         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62585         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62586         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62587         (logl): Declare also if HAVE_DECL_LOGL is set.
62588         (sinl): Declare also if HAVE_DECL_SINL is set.
62589         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62590         (tanl): Declare also if HAVE_DECL_TANL is set.
62591         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62593         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62594         declaration of frexpl, ldexpl.
62595         * modules/printf-frexpl (Depends-on): Add math.
62596         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62597
62598 2007-03-05  Bruno Haible  <bruno@clisp.org>
62599
62600         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62601         frexpl and ldexpl are declared.
62602         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62603
62604 2007-03-05  Bruno Haible  <bruno@clisp.org>
62605
62606         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62607         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62608
62609 2007-03-05  Bruno Haible  <bruno@clisp.org>
62610
62611         * lib/stdio_.h: Include <stddef.h>.
62612
62613 2007-03-05  Bruno Haible  <bruno@clisp.org>
62614
62615         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62616
62617 2007-03-05  Bruno Haible  <bruno@clisp.org>
62618
62619         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62620         NetBSD 4, from Ralf Wildenhues.
62621
62622 2007-03-04  Bruno Haible  <bruno@clisp.org>
62623
62624         * lib/vasprintf.h: Update #if logic for the case when the functions
62625         exist but are overridden.
62626
62627 2007-03-04  Bruno Haible  <bruno@clisp.org>
62628
62629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62630         implementations: glibc-2.4 and MacOS X 10.3.
62631         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62632         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62633         * tests/test-vasprintf-posix.c (test_function): Likewise.
62634
62635 2007-03-04  Bruno Haible  <bruno@clisp.org>
62636
62637         * modules/vasprintf-posix-tests: New file.
62638         * tests/test-vasprintf-posix.c: New file.
62639
62640         * modules/vasprintf-posix: New file.
62641         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62642         defined.
62643         * m4/vasprintf-posix.m4: New file.
62644         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62645         gl_FUNC_VASPRINTF.
62646         (gl_FUNC_VASPRINTF): Invoke it.
62647         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62648         here.
62649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62650
62651 2007-03-04  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62654         REPLACE_GETTIMEOFDAY.
62655         * modules/sys_time (Makefile.am): Likewise.
62656         * m4/sys_time_h.m4: Likewise.
62657         * m4/gettimeofday.m4: Likewise.
62658
62659 2007-03-04  Bruno Haible  <bruno@clisp.org>
62660
62661         * modules/vasnprintf-posix-tests: New file.
62662         * tests/test-vasnprintf-posix.c: New file.
62663
62664         * modules/vasnprintf-posix: New file.
62665         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62666         printf-frexpl.h.
62667         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62668         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62669         REPLACE_VASNPRINTF is defined.
62670         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62671         gl_FUNC_VASNPRINTF.
62672         (gl_FUNC_VASNPRINTF): Invoke it.
62673         * m4/vasnprintf-posix.m4: New file.
62674         * m4/printf.m4: New file.
62675
62676 2007-03-04  Bruno Haible  <bruno@clisp.org>
62677
62678         Compile progreloc.c only if --enable-relocatable is specified.
62679         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62680         if --enable-relocatable was specified.
62681         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62682         lib_SOURCES.
62683
62684 2007-03-04  Jim Meyering  <jim@meyering.net>
62685
62686         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62687         Use it consistently, rather than enumerating errno constants.
62688
62689 2007-03-04  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/xvasprintf-tests: New file.
62692         * tests/test-xvasprintf.c: New file.
62693
62694         * modules/vasprintf-tests: New file.
62695         * tests/test-vasprintf.c: New file.
62696
62697         * modules/vasnprintf-tests: New file.
62698         * tests/test-vasnprintf.c: New file.
62699
62700         * modules/vsnprintf-tests: New file.
62701         * tests/test-vsnprintf.c: New file.
62702
62703         * modules/snprintf-tests: New file.
62704         * tests/test-snprintf.c: New file.
62705
62706 2007-03-04  Bruno Haible  <bruno@clisp.org>
62707
62708         Compile relocatable.c only if --enable-relocatable is specified.
62709         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62710         gl_RELOCATABLE_LIBRARY.
62711         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62712         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62713         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62714         gl_RELOCATABLE_LIBRARY.
62715         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62716         (Makefile.am): Remove lib_SOURCES.
62717         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62718         gl_RELOCATABLE_LIBRARY.
62719         (Makefile.am): Remove lib_SOURCES.
62720         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62721         always.
62722         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62723         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62724
62725 2007-03-04  Bruno Haible  <bruno@clisp.org>
62726
62727         * modules/argmatch-tests: New file.
62728         * tests/test-argmatch.c: New file.
62729
62730         * tests/test-allocsa.c (main): Halve the number of loop runs.
62731
62732         * modules/alloca-opt-tests: New file.
62733         * tests/test-alloca-opt.c: New file.
62734
62735 2007-03-04  Jim Meyering  <jim@meyering.net>
62736
62737         Work around difference between Linux ACLs and Solaris 10 ZFS.
62738         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62739         for EINVAL.
62740
62741 2007-03-03  Bruno Haible  <bruno@clisp.org>
62742
62743         * modules/relocatable-prog (Depends-on): Add back progreloc's
62744         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62745
62746 2007-03-03  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62749         * modules/relocatable-lib: New file.
62750
62751 2007-03-03  Bruno Haible  <bruno@clisp.org>
62752
62753         * modules/relocatable-prog: Renamed from modules/relocatable.
62754         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62755
62756 2007-03-03  Bruno Haible  <bruno@clisp.org>
62757
62758         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62759         m4/relocatable-lib.m4.
62760         (Depends-on): Remove 'relocatable'.
62761         (configure.ac): Add gl_RELOCATABLE_NOP.
62762
62763 2007-03-03  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/relocatable-prog-wrapper: New file.
62766         * modules/relocatable (Depends-on): Add it. Remove all other
62767         dependencies except progname.
62768         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62769
62770         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62771         (gl_FUNC_STRERROR): Nop.
62772         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62773
62774         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62775         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62776
62777         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62778         (gl_FUNC_READLINK): Update.
62779
62780         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62781
62782 2007-03-03  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62785         * modules/xreadlink (Depends-on): Add unistd.
62786         * modules/xreadlink-with-size (Depends-on): Likewise.
62787
62788 2007-03-03  Bruno Haible  <bruno@clisp.org>
62789
62790         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62791         extracted from gt_FUNC_SETENV.
62792         (gt_FUNC_SETENV): Remove macro.
62793         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62794         remove gt_FUNC_SETENV.
62795
62796 2007-03-03  Bruno Haible  <bruno@clisp.org>
62797
62798         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62799         ENABLE_RELOCATABLE here.
62800         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62801
62802 2007-03-03  Bruno Haible  <bruno@clisp.org>
62803
62804         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62805         * tests/test-rbtreehash_list.c: Include progname.h.
62806         (main): Call set_program_name.
62807
62808         * modules/rbtree-oset-tests (Depends-on): Add progname.
62809         * tests/test-rbtree_oset.c: Include progname.h.
62810         (main): Call set_program_name.
62811
62812         * modules/rbtree-list-tests (Depends-on): Add progname.
62813         * tests/test-rbtree_list.c: Include progname.h.
62814         (main): Call set_program_name.
62815
62816         * modules/linked-list-tests (Depends-on): Add progname.
62817         * tests/test-linked_list.c: Include progname.h.
62818         (main): Call set_program_name.
62819
62820 2007-03-03  Bruno Haible  <bruno@clisp.org>
62821
62822         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62823         All uses of __restrict changed to _Restrict_.
62824         * lib/glob_.h (__restrict): Remove macro.
62825
62826 2007-03-02  Bruno Haible  <bruno@clisp.org>
62827
62828         * modules/gettext (configure.ac): Require gettext infrastructure
62829         from version 0.16.1.
62830
62831 2007-03-02  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/linkedhash-list-tests (Depends-on): Add progname.
62834         * tests/test-linkedhash_list.c: Include progname.h.
62835         (main): Call set_program_name.
62836
62837         * modules/carray-list-tests (Depends-on): Add progname.
62838         * tests/test-carray_list.c: Include progname.h.
62839         (main): Call set_program_name.
62840
62841         * modules/avltreehash-list-tests (Depends-on): Add progname.
62842         * tests/test-avltreehash_list.c: Include progname.h.
62843         (main): Call set_program_name.
62844
62845         * modules/avltree-oset-tests (Depends-on): Add progname.
62846         * tests/test-avltree_oset.c: Include progname.h.
62847         (main): Call set_program_name.
62848
62849         * modules/avltree-list-tests (Depends-on): Add progname.
62850         * tests/test-avltree_list.c: Include progname.h.
62851         (main): Call set_program_name.
62852
62853         * modules/array-oset-tests (Depends-on): Add progname.
62854         * tests/test-array_oset.c: Include progname.h.
62855         (main): Call set_program_name.
62856
62857         * modules/array-list-tests (Depends-on): Add progname.
62858         * tests/test-array_list.c: Include progname.h.
62859         (main): Call set_program_name.
62860
62861         * modules/argp-tests (Depends-on): Add progname.
62862         * tests/test-argp.c: Include argp.h first. Include progname.h.
62863         (main): Call set_program_name.
62864
62865 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * doc/gnulib-tool.texi (Initial import): Reword description of
62868         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62869         limited effect even if defined after the first system include.
62870
62871 2007-03-01  Bruno Haible  <bruno@clisp.org>
62872
62873         * build-aux/config.libpath: Update to libtool-1.5.22.
62874         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62875
62876 2007-03-01  Bruno Haible  <bruno@clisp.org>
62877
62878         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62879         foo_CFLAGS.
62880         Reported by Ralf Wildenhues.
62881
62882 2007-03-01  Bruno Haible  <bruno@clisp.org>
62883
62884         * build-aux/install-reloc: Remove object files left over by some
62885         compilers.
62886         Reported by Ralf Wildenhues.
62887
62888 2007-03-01  Bruno Haible  <bruno@clisp.org>
62889
62890         * build-aux/install-reloc: Break long lines.
62891
62892 2007-03-01  Bruno Haible  <bruno@clisp.org>
62893
62894         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62895         Reported by Ralf Wildenhues.
62896
62897 2007-03-01  Bruno Haible  <bruno@clisp.org>
62898
62899         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62900         include ordering constraints.
62901
62902 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62903
62904         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62906         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62907         as another example.
62908         * lib/time_.h: Fix misspelling.
62909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62910         Require gl_HEADER_TIME_H_DEFAULTS.
62911         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62912         * m4/time_r.m4 (gl_TIME_R): Likewise.
62913         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62914
62915 2007-03-01  Bruno Haible  <bruno@clisp.org>
62916
62917         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62918         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62919
62920 2007-03-01  Jim Meyering  <jim@meyering.net>
62921
62922         * modules/xreadlink (Maintainer): Add my name.
62923         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62924
62925 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62926             Bruno Haible  <bruno@clisp.org>
62927
62928         * build-aux/install-reloc: Compile also c-ctype.c.
62929         * build-aux/relocatable.sh.in: New file.
62930         * doc/relocatable.texi: New file.
62931         * doc/relocatable-maint.texi: New file.
62932         * doc/gnulib.texi: Include relocatable-maint.texi.
62933         * lib/progreloc.c: Include unistd.h unconditionally.
62934         * lib/relocwrapper.c: Include unistd.h unconditionally.
62935         Include c-ctype.h.
62936         (add_dotbin): Use c_tolower.
62937         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62938         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62939         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62940         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62941         to m4/relocatable-lib.m4.
62942         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62943         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62944         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62945         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62946         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62947         * modules/relocatable: New file.
62948         * modules/relocatable-lib: New file.
62949         * modules/relocatable-script: New file.
62950
62951 2007-02-28  Bruno Haible  <bruno@clisp.org>
62952
62953         Import --enable-relocatable infrastructure.
62954         * build-aux/config.libpath: New file, from GNU gettext.
62955         * build-aux/install-reloc: New file, from GNU gettext.
62956         * build-aux/reloc-ldflags: New file, from GNU gettext.
62957         * lib/relocatable.h: New file, from GNU gettext.
62958         * lib/relocatable.c: New file, from GNU gettext.
62959         * lib/relocwrapper.c: New file, from GNU gettext.
62960         * m4/relocatable.m4: New file, from GNU gettext.
62961
62962 2007-02-28  Bruno Haible  <bruno@clisp.org>
62963
62964         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62965
62966         * modules/xreadlink: New file, from GNU gettext with modifications.
62967         * lib/xreadlink.c: New file, from GNU gettext.
62968         * lib/xreadlink.h: Add comments.
62969         (xreadlink): New declaration.
62970
62971         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62972         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62973         lib/xreadlink-with-size.c.
62974         (configure.ac): Remove gl_XREADLINK invocation.
62975         (Makefile.am): Augment lib_SOURCES.
62976         * m4/xreadlink.m4: Remove file.
62977         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62978         (xreadlink_with_size): Renamed from xreadink.
62979         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62980         * modules/canonicalize (Depends-on): Replace xreadlink with
62981         xreadlink-with-size.
62982         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62983
62984 2007-02-25  Jim Meyering  <jim@meyering.net>
62985
62986         * build-aux/announce-gen: When complaining about excess arguments,
62987         list them.
62988
62989 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62990
62991         * README: Document signed integer overflow situation more
62992         accurately.
62993
62994 2007-02-25  Bruno Haible  <bruno@clisp.org>
62995
62996         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62997         'a' or 'A' conversion.
62998
62999 2007-02-25  Bruno Haible  <bruno@clisp.org>
63000
63001         * modules/filename: Renamed from modules/pathname.
63002         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63003         lib/concatpath.c with lib/concat-filename.c.
63004         (Makefile.am): Update.
63005         (Include): Replace pathname.h with filename.h.
63006         * lib/filename.h: Renamed from lib/pathname.h.
63007         (concatenated_filename): Renamed from concatenated_pathname.
63008         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63009         (concatenated_filename): Renamed from concatenated_pathname.
63010         * lib/findprog.c: Include filename.h instead of pathname.h.
63011         (find_in_path): Update.
63012         * lib/javacomp.c: Include filename.h instead of pathname.h.
63013         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63014         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63015         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63016         is_oldgcj_14_13_usable, is_javac_usable): Update.
63017         * lib/javaexec.c: Include filename.h instead of pathname.h.
63018         (execute_java_class): Update.
63019         * modules/findprog: Update.
63020         * modules/javacomp: Update.
63021         * modules/javaexec: Update.
63022         * MODULES.html.sh (File system functions): Add 'filename', remove
63023         'pathname'.
63024
63025 2007-02-25  Bruno Haible  <bruno@clisp.org>
63026
63027         * modules/printf-frexpl-tests: New file.
63028         * tests/test-printf-frexpl.c: New file.
63029
63030         * modules/printf-frexpl: New file.
63031         * lib/printf-frexpl.h: New file.
63032         * lib/printf-frexpl.c: New file.
63033         * m4/printf-frexpl.m4: New file.
63034
63035 2007-02-25  Bruno Haible  <bruno@clisp.org>
63036
63037         * modules/printf-frexp-tests: New file.
63038         * tests/test-printf-frexp.c: New file.
63039
63040         * modules/printf-frexp: New file.
63041         * lib/printf-frexp.h: New file.
63042         * lib/printf-frexp.c: New file.
63043         * m4/printf-frexp.m4: New file.
63044
63045 2007-02-25  Bruno Haible  <bruno@clisp.org>
63046
63047         Assume automake >= 1.10 for the tests.
63048         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63049         * modules/arctwo-tests: Likewise.
63050         * modules/argp-tests: Likewise.
63051         * modules/avltree-list-tests: Likewise.
63052         * modules/avltree-oset-tests: Likewise.
63053         * modules/avltreehash-list-tests: Likewise.
63054         * modules/carray-list-tests: Likewise.
63055         * modules/crc-tests: Likewise.
63056         * modules/des-tests: Likewise.
63057         * modules/gc-arcfour-tests: Likewise.
63058         * modules/gc-arctwo-tests: Likewise.
63059         * modules/gc-des-tests: Likewise.
63060         * modules/gc-hmac-md5-tests: Likewise.
63061         * modules/gc-hmac-sha1-tests: Likewise.
63062         * modules/gc-md2-tests: Likewise.
63063         * modules/gc-md4-tests: Likewise.
63064         * modules/gc-md5-tests: Likewise.
63065         * modules/gc-pbkdf2-sha1-tests: Likewise.
63066         * modules/gc-rijndael-tests: Likewise.
63067         * modules/gc-sha1-tests: Likewise.
63068         * modules/gc-tests: Likewise.
63069         * modules/getaddrinfo-tests: Likewise.
63070         * modules/hmac-md5-tests: Likewise.
63071         * modules/hmac-sha1-tests: Likewise.
63072         * modules/linked-list-tests: Likewise.
63073         * modules/linkedhash-list-tests: Likewise.
63074         * modules/lock-tests: Likewise.
63075         * modules/md2-tests: Likewise.
63076         * modules/md4-tests: Likewise.
63077         * modules/md5-tests: Likewise.
63078         * modules/rbtree-list-tests: Likewise.
63079         * modules/rbtree-oset-tests: Likewise.
63080         * modules/rbtreehash-list-tests: Likewise.
63081         * modules/read-file-tests: Likewise.
63082         * modules/rijndael-tests: Likewise.
63083         * modules/stdint-tests: Likewise.
63084         * modules/tls-tests: Likewise.
63085
63086 2007-02-24  Bruno Haible  <bruno@clisp.org>
63087
63088         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63089         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63090         function; instead check whether isnan with a double argument links.
63091         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63092         function; instead check whether isnan with a 'long double' argument
63093         links.
63094         Reported by Eric Blake <ebb9@byu.net>.
63095
63096 2007-02-24  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63099         defined.
63100         * lib/isnanl.c: Remove all code. Just include isnan.c.
63101         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63102
63103 2007-02-25  Jim Meyering  <jim@meyering.net>
63104
63105         Avoid conflicting types for 'unsetenv' on FreeBSD.
63106         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63107         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63108         in stdlib.h.
63109
63110 2007-02-24  Bruno Haible  <bruno@clisp.org>
63111
63112         * modules/isnanl-nolibm-tests: New file.
63113         * tests/test-isnanl.c: New file.
63114
63115         * modules/isnanl-nolibm: New file.
63116         * lib/isnanl.h: New file.
63117         * lib/isnanl.c: New file.
63118         * m4/isnanl.m4: New file.
63119
63120 2007-02-24  Bruno Haible  <bruno@clisp.org>
63121
63122         * modules/isnan-nolibm-tests: New file.
63123         * tests/test-isnan.c: New file.
63124
63125         * modules/isnan-nolibm: New file.
63126         * lib/isnan.h: New file.
63127         * lib/isnan.c: New file.
63128         * m4/isnan.m4: New file.
63129
63130 2007-02-24  Bruno Haible  <bruno@clisp.org>
63131
63132         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63133         assume that an exponent fits in 20 bits.
63134
63135 2007-02-24  Jim Meyering  <jim@meyering.net>
63136
63137         * m4/regex.m4: Update the description of the configure-time option,
63138         --without-included-regex, to state accurately what the defaults are,
63139         and perhaps to give people an idea why using this option is risky.
63140
63141 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63144         loops on small arguments.  This attempts to avoid the problem
63145         Bruno Haible reported for AIX 4.3.2 in
63146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63147
63148 2007-02-23  Bruno Haible  <bruno@clisp.org>
63149
63150         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63151         Needed for help2man.
63152
63153 2007-02-23  Karl Berry  <karl@gnu.org>
63154
63155         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63156         exists, foo.h should be cvs-ignored, not committed.
63157
63158 2007-02-23  Eric Blake  <ebb9@byu.net>
63159
63160         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63161         * lib/stat-time.h (includes): Likewise.
63162         * lib/utimecmp.c (includes): Likewise.
63163         * lib/utimens.h (includes): Likewise.
63164         * lib/getdate.y (includes): Also include "timespec.h" for use
63165         internal to the module.
63166         * modules/utimens (Depends-on): Revert yesterday's patch.
63167         * modules/nanosleep (Depends-on): Add missing dependency.
63168
63169 2007-02-22  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/glob.c: Don't include getlogin_r.h.
63172
63173 2007-02-22  Jim Meyering  <jim@meyering.net>
63174
63175         * modules/utimens (Depends-on): Add timespec, required for
63176         utimens.h's inclusion of timespec.h.
63177
63178 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63181         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63182         Schwab in
63183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63184         I'll try to think of a better way to fix the Solaris problem.
63185
63186         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63187         like glibc; on Solaris 10, it fails with errno == EINVAL.
63188         POSIX says the behavior is unspecified if the first argument is NULL,
63189         so play it safe and never pass NULL to the system getcwd.
63190
63191 2007-02-21  Jim Meyering  <jim@meyering.net>
63192
63193         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63194         of gettimeofday.  It would conflict with the one now always
63195         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63196         an IRIX 6.5 build failure.
63197
63198 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         Minor fixups to port to Solaris 10 with Sun C 5.8.
63201         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63202         * modules/getcwd (Depends-on): Add dirfd.
63203         * lib/putenv.c (putenv): #undef it.
63204         (rpl_putenv): New decl.
63205         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63206
63207 2007-02-20  Bruno Haible  <bruno@clisp.org>
63208
63209         * modules/stdio-tests: New file.
63210         * tests/test-stdio.c: New file.
63211
63212         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63213         (Depends-on): Add stdio.
63214         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63215         (Include): Use <stdio.h> instead of vsnprintf.h.
63216         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63217         HAVE_DECL_VSNPRINTF.
63218         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63219
63220         * modules/snprintf (Files): Remove lib/snprintf.h.
63221         (Depends-on): Add stdio.
63222         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63223         (Include): Use <stdio.h> instead of snprintf.h.
63224         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63225         HAVE_DECL_SNPRINTF.
63226         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63227         * lib/getaddrinfo.c: Likewise.
63228
63229         * modules/stdio: New file.
63230         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63231         * lib/snprintf.h: Remove file.
63232         * lib/vsnprintf.h: Remove file.
63233         * lib/.cppi-disable: Remove snprintf.h.
63234         * m4/stdio_h.m4: New file.
63235         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63236
63237 2007-02-20  Jim Meyering  <jim@meyering.net>
63238
63239         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63240         used by e.g., mingw.  From Bruno Haible.
63241
63242 2007-02-19  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63245         warnings.
63246         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63247
63248 2007-02-19  Bruno Haible  <bruno@clisp.org>
63249
63250         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63251         from mingw users.
63252
63253 2007-02-19  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63256         warnings.
63257         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63258
63259 2007-02-19  Jim Meyering  <jim@meyering.net>
63260
63261         Don't use FD after a successful "fdopendir (fd)".
63262         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63263         Reset it by calling dirfd on the just-obtained DIR*.
63264
63265         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63266         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63267
63268 2007-02-18  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/readlink.c: Include <unistd.h>.
63271         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63272         HAVE_READLINK.
63273         * modules/readlink (Depends-on): Add unistd.
63274         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63275         (Include): Add <unistd.h>.
63276
63277         * lib/getlogin_r.h: Remove file.
63278         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63279         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63280         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63281         HAVE_DECL_GETLOGIN_R.
63282         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63284         (Include): Use <unistd.h> instead of getlogin_r.h.
63285
63286         * lib/getcwd.h: Remove file.
63287         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63288         * lib/xgetcwd.c: Likewise.
63289         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63290         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63291         * modules/getcwd (Files): Remove lib/getcwd.h.
63292         (Depends-on): Add unistd.
63293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63294         (Include): Use <unistd.h> instad of getcwd.h.
63295
63296         * lib/ftruncate.c: Include <unistd.h> first.
63297         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63298         Set HAVE_FTRUNCATE.
63299         * modules/ftruncate (Depends-on): Add unistd.
63300         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63301
63302         * lib/fchdir.c: Include <unistd.h> first.
63303         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63305         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63306         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63307         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63308
63309         * lib/dup2.c: Include <unistd.h> first.
63310         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63311         HAVE_DUP2.
63312         * modules/dup2 (Depends-on): Add unistd.
63313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63314
63315         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63316         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63317         REPLACE_CHOWN. Don't define chown as a macro here.
63318         * modules/chown (Depends-on): Add unistd.
63319         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63320
63321         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63322         Add definition for GL_LINK_WARNING.
63323         (chown, dup2): New declarations.
63324         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63325         link warning.
63326         (ftruncate): New declaration.
63327         (getcwd): New declaration, taken from old getcwd.h.
63328         (getlogin_r): New declaration, taken from old getlogin_r.h.
63329         (readlink): New declaration.
63330         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63331         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63332         (gl_PREREQ_UNISTD): Remove macro.
63333         (gl_UNISTD_MODULE_INDICATOR): New macro.
63334         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63335         many new variables. Don't set UNISTD_H.
63336         * modules/unistd (Description): Change.
63337         (Depends-on): Add link-warning.
63338         (configure.ac): Update.
63339         (Makefile.am): Create unistd.h always. Substitute many new variables
63340         into it.
63341
63342 2007-02-18  Bruno Haible  <bruno@clisp.org>
63343
63344         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63345         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63346         HAVE_GETSUBOPT.
63347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63348         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63349         * lib/getsubopt.h: Remove file.
63350         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63351         (Depends-on): Add stdlib.
63352         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63353         (Includes): Use <stdlib.h> instead of getsubopt.h.
63354         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63355         Set HAVE_GETSUBOPT.
63356         * lib/getsubopt.c: Don't include getsubopt.h.
63357
63358 2007-02-18  Bruno Haible  <bruno@clisp.org>
63359
63360         * modules/fchdir (Depends-on): Add dup2.
63361
63362 2007-02-18  Bruno Haible  <bruno@clisp.org>
63363
63364         * lib/stdlib_.h: Handle glibc's special invocation convention
63365         specially.
63366
63367 2007-02-18  Bruno Haible  <bruno@clisp.org>
63368
63369         * modules/stdlib-tests: New file.
63370         * tests/test-stdlib.c: New file.
63371
63372         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63373         (Depends-on): Add stdlib.
63374         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63375         (Includes): Use <stdlib.h> instead of mkstemp.h.
63376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63377         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63378         * lib/mkstemp.c: Don't include mkstemp.h.
63379         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63380         * lib/stdlib--.h: Don't include mkstemp.h.
63381
63382         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63383         (Depends-on): Add stdlib.
63384         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63385         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63386         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63387         HAVE_MKDTEMP.
63388         * lib/mkdtemp.c: Don't include mkdtemp.h.
63389         * lib/clean-temp.c: Don't include mkdtemp.h.
63390
63391         * modules/exit (Files): Remove lib/exit.h.
63392         (Depends-on): Add stdlib.
63393         (Makefile.am): Remove lib_SOURCES.
63394         (Include): Use <stdlib.h> instead of exit.h.
63395         * lib/argmatch.c: Don't include exit.h.
63396         * lib/execute.c: Likewise.
63397         * lib/pagealign_alloc.c: Likewise.
63398         * lib/pipe.c: Likewise.
63399         * lib/wait-process.c: Likewise.
63400         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63401         * lib/exitfail.c: Likewise.
63402         * lib/savewd.c: Likewise.
63403         * lib/xsetenv.c: Likewise.
63404
63405         * modules/stdlib: New file.
63406         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63407         and extra comments about mkstemp().
63408         * lib/exit.h: Remove file.
63409         * lib/mkdtemp.h: Remove file.
63410         * lib/mkstemp.h: Remove file.
63411         * m4/stdlib_h.m4: New file.
63412         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63413
63414 2007-02-18  Bruno Haible  <bruno@clisp.org>
63415
63416         * modules/math-tests: New file.
63417         * tests/test-math.c: New file.
63418
63419         * modules/math: New file.
63420         * modules/mathl (Files): Remove lib/mathl.h.
63421         (Depends-on): Add math.
63422         (Makefile.am): Don't mention mathl.h.
63423         (Include): Use <math.h> instead of mathl.h.
63424         * lib/math_.h: New file.
63425         * lib/mathl.h: Remove file.
63426         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63427         mathl.h.
63428         * lib/asinl.c: Likewise.
63429         * lib/atanl.c: Likewise.
63430         * lib/ceill.c: Likewise.
63431         * lib/cosl.c: Likewise.
63432         * lib/expl.c: Likewise.
63433         * lib/floorl.c: Likewise.
63434         * lib/frexpl.c: Likewise.
63435         * lib/ldexpl.c: Likewise.
63436         * lib/logl.c: Likewise.
63437         * lib/sincosl.c: Likewise.
63438         * lib/sinl.c: Likewise.
63439         * lib/sqrtl.c: Likewise.
63440         * lib/tanl.c: Likewise.
63441         * lib/trigl.c: Likewise.
63442         * m4/math_h.m4: New file.
63443         * MODULES.html.sh (Mathematics): Add math.
63444
63445 2007-02-17  Bruno Haible  <bruno@clisp.org>
63446
63447         * modules/wctype-tests: New file.
63448         * tests/test-wctype.c: New file.
63449
63450         * modules/wchar-tests: New file.
63451         * tests/test-wchar.c: New file.
63452
63453         * modules/unistd-tests: New file.
63454         * tests/test-unistd.c: New file.
63455
63456         * modules/time-tests: New file.
63457         * tests/test-time.c: New file.
63458
63459         * modules/sysexits-tests: New file.
63460         * tests/test-sysexits.c: New file.
63461
63462         * modules/sys_time-tests: New file.
63463         * tests/test-sys_time.c: New file.
63464
63465         * modules/sys_stat-tests: New file.
63466         * tests/test-sys_stat.c: New file.
63467
63468         * modules/sys_socket-tests: New file.
63469         * tests/test-sys_socket.c: New file.
63470
63471         * modules/sys_select-tests: New file.
63472         * tests/test-sys_select.c: New file.
63473
63474         * modules/string-tests: New file.
63475         * tests/test-string.c: New file.
63476
63477         * modules/stdbool-tests: New file.
63478         * tests/test-stdbool.c: New file.
63479
63480         * modules/netinet_in-tests: New file.
63481         * tests/test-netinet_in.c: New file.
63482
63483         * modules/inttypes-tests: New file.
63484         * tests/test-inttypes.c: New file.
63485
63486         * modules/fcntl-tests: New file.
63487         * tests/test-fcntl.c: New file.
63488
63489         * modules/byteswap-tests: New file.
63490         * tests/test-byteswap.c: New file.
63491
63492         * modules/arpa_inet-tests: New file.
63493         * tests/test-arpa_inet.c: New file.
63494
63495 2007-02-17  Bruno Haible  <bruno@clisp.org>
63496
63497         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63498         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63499         if the corresponding module is not enabled. Emit link warnings if
63500         the function is used nevertheless.
63501         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63502         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63503         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63504         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63505         * modules/inttypes (Depends-on): Add link-warning.
63506         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63507         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63508         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63509         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63510         * modules/imaxdiv (configure.ac): Likewise.
63511         * modules/strtoimax (configure.ac): Likewise.
63512         * modules/strtoumax (configure.ac): Likewise.
63513
63514 2007-02-17  Bruno Haible  <bruno@clisp.org>
63515
63516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63517         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63518         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63519         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63520
63521 2007-02-17  Bruno Haible  <bruno@clisp.org>
63522
63523         * modules/link-warning: New file.
63524         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63525         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63526         * modules/string (Depends-on): Add link-warning.
63527         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63528         string.h.
63529         * MODULES.html.sh (Support for building libraries and executables): Add
63530         link-warning.
63531
63532 2007-02-17  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63535         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63536         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63537         long lines.
63538
63539 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63540             Bruno Haible  <bruno@clisp.org>
63541
63542         * modules/tmpfile: New file.
63543         * lib/tmpfile.c: New file.
63544         * m4/tmpfile.m4: New file.
63545         * MODULES.html.sh (func_all_modules): New section "Input/output".
63546
63547 2007-02-15  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63550         (supports_delete_on_close): New function.
63551         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63552
63553 2007-02-14  Bruno Haible  <bruno@clisp.org>
63554
63555         * modules/mbspcasecmp-tests: New file.
63556         * tests/test-mbspcasecmp.sh: New file.
63557         * tests/test-mbspcasecmp.c: New file.
63558
63559         New module mbspcasecmp.
63560         * modules/mbspcasecmp: New file.
63561         * lib/mbspcasecmp.c: New file.
63562         * lib/string_.h (strncasecmp): Change warning message.
63563         (mbspcasecmp): New declaration.
63564         * m4/mbspcasecmp.m4: New file.
63565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63566         GNULIB_MBSPCASECMP.
63567         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63568         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63569
63570 2007-02-14  Bruno Haible  <bruno@clisp.org>
63571
63572         * modules/mbsncasecmp-tests: New file.
63573         * tests/test-mbsncasecmp.sh: New file.
63574         * tests/test-mbsncasecmp.c: New file.
63575
63576         New module mbsncasecmp.
63577         * modules/mbsncasecmp: New file.
63578         * lib/mbsncasecmp.c: New file.
63579         * lib/string_.h (mbsncasecmp): New declaration.
63580         * m4/mbsncasecmp.m4: New file.
63581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63582         GNULIB_MBSNCASECMP.
63583         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63584         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63585
63586 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63587
63588         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63589         Verify that it doesn't overlap with our flags.
63590         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63591         do not have the desired effect in multibyte locales; instead, use
63592         mbscasecmp.
63593         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63594         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63595         we don't require GNU fnmatch ourselves (if our users require it, they
63596         should do so explicitly).
63597
63598         Fix regex code so it doesn't rely on strcasecmp.
63599         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63600         Otherwise, include gnulib's langinfo.h.
63601         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63602         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63603         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63604         * modules/regex (FILES): Remove m4/codeset.m4.
63605         (Depends-on): Add localcharset.  Remove strcase.
63606
63607 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63608
63609         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63610         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63611
63612 2007-02-13  Bruno Haible  <bruno@clisp.org>
63613
63614         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63615         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63616
63617 2007-02-12  Bruno Haible  <bruno@clisp.org>
63618
63619         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63620         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63621         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63622         time warning rather than a link error.
63623
63624 2007-02-12  Bruno Haible  <bruno@clisp.org>
63625
63626         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63627         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63629
63630 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63631
63632         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63633         args, not 2.
63634
63635 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         New module 'time', so that apps can include <time.h> as per
63638         POSIX and GNU instead of separate include files like time_r.h
63639         and timegm.h.  This implementation tries out a simpler approach
63640         for replacing decls in standard include files (as compared to
63641         the string module), somewhat as an experiment.
63642
63643         * config/srclist.txt: Comment out mktime.c for now.
63644         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63645         since it doesn't apply any more.  Use generic wording instead.
63646         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63647         'time'.
63648         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63649         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63650         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63651         Don't include <sys/types.h>; no longer needed since we assume C89.
63652         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63653         * lib/strftime.c: Likewise.
63654         * lib/time_r.c: Likewise.
63655         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63656         * lib/nanosleep.c: Include <time.h> first, to check interface.
63657         * lib/strptime.c: Likewise.
63658         * lib/time_r.c: Likewise.
63659         * lib/timegm.c: Likewise.
63660         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63661         needed.
63662         * lib/timegm.c: Don't include timegm.h; no longer needed.
63663         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63664         time.h now handles any problems in that area.
63665         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63666         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63667         that time.h defines struct timespec.
63668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63669         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63670         handles that.
63671         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63672         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63673         needed.  Set REPLACE_LOCALTIME.
63674         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63675         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63676         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63677         nanosleep; time_h.m4 now does that.  Don't require
63678         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63679         module handles this now.
63680         * modules/getdate (Depends-on): Remove timespec.  Add time.
63681         * modules/nanosleep (Depends-on): Likewise.
63682         * modules/stat-time (Depends-on): Likewise.
63683         * modules/nanosleep (Include): Include time.h, not timespec.h.
63684         * modules/strptime (Files): Remove lib/strptime.h.
63685         (Depends-on): Add extensions, time.
63686         (Include): Include time.h, not strptime.h.
63687         * modules/time_r (Files): Remove lib/time_r.h.
63688         (Depends-on): Add time.
63689         (Include): Include time.h, not time_r.h.
63690         * modules/timegm: Likewise.
63691         * modules/timespec (Description): Now does timespec-related decls
63692         of our own, instead of struct timespec itself.
63693         (Depends-on): Add time; remove extensions.
63694         (Maintainer): Add self.
63695         * modules/utimecmp (Depends-on): Add time; remove timespec.
63696         * modules/utimens (Depends-on): Likewise.
63697         * modules/xnanosleep (Depends-on): Likewise.
63698
63699 2007-02-11  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/c-strstr.c: Include allocsa.h.
63702         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63703         * lib/c-strcasestr.c: Include allocsa.h.
63704         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63705         * lib/strcasestr.c: Include allocsa.h.
63706         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63707         * lib/mbsstr.c: Include allocsa.h.
63708         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63709         allocsa/freesa instead of malloc/free.
63710         * lib/mbscasestr.c: Include allocsa.h.
63711         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63712         allocsa/freesa instead of malloc/free.
63713         * modules/c-strstr (Depends-on): Add allocsa.
63714         * modules/c-strcasestr (Depends-on): Likewise.
63715         * modules/strcasestr (Depends-on): Likewise.
63716         * modules/mbsstr (Depends-on): Likewise.
63717         * modules/mbscasestr (Depends-on): Likewise.
63718
63719 2007-02-11  Bruno Haible  <bruno@clisp.org>
63720
63721         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63722
63723         * modules/mbsspn-tests: New file.
63724         * tests/test-mbsspn.sh: New file.
63725         * tests/test-mbsspn.c: New file.
63726
63727 2007-02-11  Bruno Haible  <bruno@clisp.org>
63728
63729         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63730
63731         * modules/mbspbrk-tests: New file.
63732         * tests/test-mbspbrk.sh: New file.
63733         * tests/test-mbspbrk.c: New file.
63734
63735 2007-02-11  Bruno Haible  <bruno@clisp.org>
63736
63737         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63738         unneeded cast.
63739
63740         * modules/mbscspn-tests: New file.
63741         * tests/test-mbscspn.sh: New file.
63742         * tests/test-mbscspn.c: New file.
63743
63744 2007-02-11  Bruno Haible  <bruno@clisp.org>
63745
63746         * modules/mbscasecmp-tests: New file.
63747         * tests/test-mbscasecmp.sh: New file.
63748         * tests/test-mbscasecmp.c: New file.
63749
63750 2007-02-11  Bruno Haible  <bruno@clisp.org>
63751
63752         Ensure O(n) worst-case complexity of mbscasestr.
63753         * lib/mbscasestr.c: Include stdbool.h.
63754         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63755         functions.
63756         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63757         the bookkeeping indicates that it's worth it.
63758         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63759
63760         * modules/mbscasestr-tests: New file.
63761         * tests/test-mbscasestr1.c: New file.
63762         * tests/test-mbscasestr2.sh: New file.
63763         * tests/test-mbscasestr2.c: New file.
63764         * tests/test-mbscasestr3.sh: New file.
63765         * tests/test-mbscasestr3.c: New file.
63766         * tests/test-mbscasestr4.sh: New file.
63767         * tests/test-mbscasestr4.c: New file.
63768         * m4/locale-tr.m4: New file.
63769
63770 2007-02-11  Bruno Haible  <bruno@clisp.org>
63771
63772         Ensure O(n) worst-case complexity of mbsstr.
63773         * lib/mbsstr.c: Include stdbool.h.
63774         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63775         functions.
63776         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63777         bookkeeping indicates that it's worth it.
63778         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63779
63780         * modules/mbsstr-tests: New file.
63781         * tests/test-mbsstr1.c: New file.
63782         * tests/test-mbsstr2.sh: New file.
63783         * tests/test-mbsstr2.c: New file.
63784         * tests/test-mbsstr3.sh: New file.
63785         * tests/test-mbsstr3.c: New file.
63786         * m4/locale-fr.m4: New file.
63787
63788 2007-02-11  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/mbsrchr.c (mbsrchr): Fix bug.
63791
63792         * modules/mbsrchr-tests: New file.
63793         * tests/test-mbsrchr.sh: New file.
63794         * tests/test-mbsrchr.c: New file.
63795
63796 2007-02-11  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/mbschr.c (mbschr): Fix bug.
63799
63800         * modules/mbschr-tests: New file.
63801         * tests/test-mbschr.sh: New file.
63802         * tests/test-mbschr.c: New file.
63803         * m4/locale-zh.m4: New file.
63804
63805 2007-02-11  Bruno Haible  <bruno@clisp.org>
63806
63807         Support for copying multibyte string iterators.
63808         * lib/mbiter.h: Include <string.h>.
63809         (mbiter_multi_copy): New function.
63810         (mbi_copy): New macro.
63811         * lib/mbuiter.h: Include <string.h>.
63812         (mbuiter_multi_copy): New function.
63813         (mbui_copy): New macro.
63814
63815 2007-02-11  Bruno Haible  <bruno@clisp.org>
63816
63817         New module mbslen.
63818         * modules/mbslen: New file.
63819         * lib/mbslen.c: New file.
63820         * lib/string_.h (mbslen): New declaration.
63821         * m4/mbslen.m4: New file.
63822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63823         GNULIB_MBSLEN.
63824         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63825         * MODULES.html.sh (Internationalization functions): Add mbslen.
63826
63827 2007-02-11  Bruno Haible  <bruno@clisp.org>
63828
63829         Ensure O(n) worst-case complexity of strcasestr substitute.
63830         * lib/strcasestr.c: Include stdbool.h.
63831         (knuth_morris_pratt): New function.
63832         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63833         bookkeeping indicates that it's worth it.
63834         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63835
63836         * modules/strcasestr-tests: New file.
63837         * tests/test-strcasestr.c: New file.
63838
63839 2007-02-11  Bruno Haible  <bruno@clisp.org>
63840
63841         Ensure O(n) worst-case complexity of c_strcasestr.
63842         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63843         (knuth_morris_pratt): New function.
63844         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63845         the bookkeeping indicates that it's worth it.
63846         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63847
63848         * modules/c-strcasestr-tests: New file.
63849         * tests/test-c-strcasestr.c: New file.
63850
63851 2007-02-11  Bruno Haible  <bruno@clisp.org>
63852
63853         Ensure O(n) worst-case complexity of c_strstr.
63854         * lib/c-strstr.c: Include stdbool.h, string.h.
63855         (knuth_morris_pratt): New function.
63856         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63857         bookkeeping indicates that it's worth it.
63858         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63859
63860         * lib/c-strstr.c: Complete rewrite for maintainability.
63861
63862         * modules/c-strstr-tests: New file.
63863         * tests/test-c-strstr.c: New file.
63864
63865 2007-02-11  Bruno Haible  <bruno@clisp.org>
63866
63867         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63868         5.2.1 and earlier, whereby \055 was treated just like the range
63869         delimiter '-'.
63870         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63871
63872 2007-02-08  Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/regex (Depends-on): Add stdbool.
63875         Reported by Dalibor Topic <robilad@kaffe.org>.
63876
63877 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63880         Prefer returning from main to exiting from it.
63881         Remove unnecessary parens after sizeof.
63882
63883 2007-02-05  Bruno Haible  <bruno@clisp.org>
63884
63885         New module mbssep.
63886         * modules/mbssep: New file.
63887         * lib/mbssep.c: New file.
63888         * lib/string_.h (strsep): Add a conditional link warning.
63889         (mbssep): New declaration.
63890         * m4/mbssep.m4: New file.
63891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63892         GNULIB_MBSSEP.
63893         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63894         * MODULES.html.sh (Internationalization functions): Add mbssep.
63895
63896 2007-02-05  Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63899         Optimize search in case of 1 delimiter.
63900
63901 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63902
63903         * lib/acl.h: Include sys/types.h before sys/acl.h.
63904
63905 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63906
63907         Merge upstream fix for glibc bugzilla #3957:
63908
63909         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63910
63911         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63912         bit for RE_HAT_LISTS_NOT_NEWLINE.
63913         (build_charclass_op): Remove bogus comment.
63914
63915 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63916
63917         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63918
63919 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63920
63921         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63922         * lib/memmem.c [!defined _LIBC]: Include config.h.
63923
63924 2007-02-04  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63927         warning message.
63928
63929 2007-02-04  Bruno Haible  <bruno@clisp.org>
63930
63931         New module mbstok_r.
63932         * modules/mbstok_r: New file.
63933         * lib/mbstok_r.c: New file.
63934         * lib/string_.h (strtok_r): Change argument names to match the
63935         comments. Add a conditional link warning.
63936         (mbstok_r): New declaration.
63937         * m4/mbstok_r.m4: New file.
63938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63939         GNULIB_MBSTOK_R.
63940         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63941         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63942
63943 2007-02-04  Bruno Haible  <bruno@clisp.org>
63944
63945         New module mbsspn.
63946         * modules/mbsspn: New file.
63947         * lib/mbsspn.c: New file.
63948         * lib/string_.h (strspn): Add a conditional link warning.
63949         (mbsspn): New declaration.
63950         * m4/mbsspn.m4: New file.
63951         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63952         GNULIB_MBSSPN.
63953         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63954         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63955
63956 2007-02-04  Bruno Haible  <bruno@clisp.org>
63957
63958         New module mbspbrk.
63959         * modules/mbspbrk: New file.
63960         * lib/mbspbrk.c: New file.
63961         * lib/string_.h (strpbrk): Add a conditional link warning.
63962         (mbspbrk): New declaration.
63963         * m4/mbspbrk.m4: New file.
63964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63965         GNULIB_MBSPBRK.
63966         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63967         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63968
63969 2007-02-04  Bruno Haible  <bruno@clisp.org>
63970
63971         New module mbscspn.
63972         * modules/mbscspn: New file.
63973         * lib/mbscspn.c: New file.
63974         * lib/string_.h (strcspn): Add a conditional link warning.
63975         (mbscspn): New declaration.
63976         * m4/mbscspn.m4: New file.
63977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63978         GNULIB_MBSCSPN.
63979         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63980         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63981
63982 2007-02-04  Bruno Haible  <bruno@clisp.org>
63983
63984         New module mbscasestr, reduced goal of strcasestr.
63985         * modules/mbscasestr: New file.
63986         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63987         (mbscasestr): Renamed from strcasestr.
63988         * lib/strcasestr.c: Don't include mbuiter.h.
63989         (strcasestr): Remove support for multibyte locales.
63990         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63991         Change the conditional link warning.
63992         (mbscasestr): New declaration.
63993         * m4/mbscasestr.m4: New file.
63994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63995         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63996         REPLACE_STRCASESTR.
63997         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63999         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64001         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64002         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64003         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64004         (Depends-on): Remove mbuiter.
64005         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64006
64007 2007-02-04  Bruno Haible  <bruno@clisp.org>
64008
64009         Simplify handling of strncasecmp.
64010         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64011         the conditional link warning.
64012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64013         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64014         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64015         * modules/strcase (configure.ac): Don't invoke
64016         gl_STRING_MODULE_INDICATOR.
64017         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64018
64019 2007-02-04  Bruno Haible  <bruno@clisp.org>
64020
64021         New module mbscasecmp, reduced goal of strcasecmp.
64022         * modules/mbscasecmp: New file.
64023         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64024         (mbscasecmp): Renamed from strcasecmp.
64025         * lib/strcasecmp.c: Don't include mbuiter.h.
64026         (strcasecmp): Remove support for multibyte locales.
64027         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64028         Change the conditional link warning.
64029         (mbscasecmp): New declaration.
64030         * m4/mbscasecmp.m4: New file.
64031         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64032         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64033         REPLACE_STRCASECMP.
64034         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64036         GNULIB_MBSCASECMP.
64037         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64038         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64039         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64040         (Depends-on): Remove mbuiter.
64041         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64042
64043 2007-02-04  Bruno Haible  <bruno@clisp.org>
64044
64045         New module mbsstr. Remove module strstr.
64046         * modules/mbsstr: New file.
64047         * modules/strstr: Remove file.
64048         * lib/mbsstr.c: Renamed from lib/strstr.c.
64049         (mbsstr): Renamed from strstr.
64050         * lib/string_.h (strstr): Remove declaration. Change the conditional
64051         link warning.
64052         (mbsstr): New declaration.
64053         * m4/mbsstr.m4: New file.
64054         * m4/strstr.m4: Remove file.
64055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64056         REPLACE_STRSTR.
64057         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64058         Don't initialize GNULIB_STRSTR.
64059         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64060         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64061         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64062         (Support for systems lacking ANSI C 89): Remove strstr.
64063
64064 2007-02-04  Bruno Haible  <bruno@clisp.org>
64065
64066         New module mbsrchr.
64067         * modules/mbsrchr: New file.
64068         * lib/mbsrchr.c: New file.
64069         * lib/string_.h (strrchr): Add a conditional link warning.
64070         (mbsrchr): New declaration.
64071         * m4/mbsrchr.m4: New file.
64072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64073         GNULIB_MBSRCHR.
64074         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64075         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64076
64077 2007-02-04  Bruno Haible  <bruno@clisp.org>
64078
64079         New module mbschr.
64080         * modules/mbschr: New file.
64081         * lib/mbschr.c: New file.
64082         * lib/string_.h (strchr): Add a conditional link warning.
64083         (mbschr): New declaration.
64084         * m4/mbschr.m4: New file.
64085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64086         GNULIB_MBSCHR.
64087         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64088         * MODULES.html.sh (Internationalization functions): Add mbschr.
64089
64090 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64093
64094         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64095
64096 2007-02-04  Bruno Haible  <bruno@clisp.org>
64097
64098         New module description section 'configure.ac-early'.
64099         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64100         (func_get_autoconf_early_snippet): New function.
64101         (func_import, func_create_testdir): Use it. Remove special cases for
64102         modules 'extensions' and 'lock'.
64103         * modules/extensions (configure.ac-early): Require
64104         gl_USE_SYSTEM_EXTENSIONS.
64105         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64106
64107 2007-02-04  Bruno Haible  <bruno@clisp.org>
64108
64109         Make use of gcj-4.3's -fsource and -ftarget option.
64110         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64111         and if so try the options -fsource and -ftarget.
64112         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64113         source_version, ftarget_option, target_version arguments.
64114         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64115         (is_envjavac_oldgcj_14_14_usable): Renamed from
64116         is_envjavac_gcj_14_14_usable.
64117         (is_envjavac_oldgcj_14_13_usable): Renamed from
64118         is_envjavac_gcj_14_13_usable.
64119         (is_gcj_present): Update.
64120         (is_gcj_43, is_gcj43_usable): New functions.
64121         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64122         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64123         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64124         try the options -fsource and -ftarget.
64125
64126 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64129         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64130         larger value.
64131
64132 2007-02-03  Jim Meyering  <jim@meyering.net>
64133
64134         Give tools a better chance to allocate space for very large buffers.
64135         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64136
64137         Make pwd and readlink work also when run with an unreadable parent dir
64138         on systems with openat support.
64139         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64140         provided getcwd function, even when we have openat support.
64141         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64142
64143 2007-02-02  Bruno Haible  <bruno@clisp.org>
64144
64145         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64146         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64147         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64148         portability problems if one of these functions is only used on specific
64149         platforms.
64150         Reported by Paul Eggert.
64151
64152 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64155         is causing more trouble than it's curing.
64156         * lib/regex_internal.h (__mempcpy): Remove.
64157         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64158         (and make the code a tad smaller to boot).
64159         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64160
64161 2007-02-02  Jim Meyering  <jim@meyering.net>
64162
64163         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64164         section, not in the Makefile.am: one.
64165
64166 2007-02-02  Eric Blake  <ebb9@byu.net>
64167
64168         * lib/strchrnul.c: Always include config.h first.
64169
64170         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64171         gnulib strstr is not necessary here.
64172
64173 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64174
64175         * m4/socklen.m4: Fix typo.
64176
64177 2007-02-02  Eric Blake  <ebb9@byu.net>
64178
64179         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64180         * modules/netinet_in (Makefile.am): Likewise.
64181
64182 2007-02-01  Bruno Haible  <bruno@clisp.org>
64183
64184         * lib/string_.h (GL_LINK_WARNING): New macro.
64185         (strcasecmp, strstr, strcasestr): If provided by the system,
64186         conditionally define as a macro that leads to a warning instead of to
64187         an error.
64188         (strncasecmp): Conditionally define as a macro that leads to a warning.
64189
64190 2007-02-01  Karl Berry  <karl@gnu.org>
64191
64192         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64193
64194 2007-02-01  Bruno Haible  <bruno@clisp.org>
64195
64196         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64197         renamings.
64198
64199 2007-02-01  Eric Blake  <ebb9@byu.net>
64200
64201         * modules/regex (Depends-on): Revert dependence on mempcpy.
64202         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64203         module's definition of mempcpy.
64204         Reported by Paul Eggert.
64205
64206 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64209         the symbol XYZ before redefining it.  This fixes a problem with
64210         programs that don't use XYZ, when compiled on systems that define
64211         XYZ to something else.
64212
64213 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64214
64215         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64216         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64217         writeable to group or other and (2) is intended to have a special
64218         mode bit that is set or cleared.  In such a case, the directory
64219         should be neither group- nor other-writeable until the special
64220         mode bits are right.
64221
64222 2007-01-31  Eric Blake  <ebb9@byu.net>
64223
64224         * modules/mountlist (Depends-on): Add strstr.
64225
64226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64227         bug.
64228         * modules/string (Makefile.am): Remove redundant replacement.
64229         * modules/regex (Depends-on): Add mempcpy.
64230
64231 2007-01-31  Bruno Haible  <bruno@clisp.org>
64232
64233         New module description field 'Link'.
64234         * gnulib-tool (func_usage): Document --extract-link-directive.
64235         (sed_extract_prog): Recognize 'Link' directive.
64236         (func_get_link_directive): New function.
64237         (func_import): Show summary of link directives.
64238         Handle --extract-link-directive option.
64239         * modules/acl (Link): New section.
64240         * modules/clock-time (Link): New section.
64241         * modules/euidaccess (Link): New section.
64242         * modules/gettext (Link): New section.
64243         * modules/iconv (Link): New section.
64244         * modules/lock (Link): New section.
64245         * modules/nanosleep (Link): New section.
64246         * modules/readline (Link): New section.
64247
64248 2007-01-27  Bruno Haible  <bruno@clisp.org>
64249
64250         Enforce the use of gnulib modules for unportable <string.h> functions.
64251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64252         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64253         (gl_HEADER_STRING_H_BODY): Require it.
64254         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64255         the symbol XYZ to one that gives a link error.
64256         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64257         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64258         * modules/mempcpy (configure.ac): Likewise.
64259         * modules/memrchr (configure.ac): Likewise.
64260         * modules/stpcpy (configure.ac): Likewise.
64261         * modules/stpncpy (configure.ac): Likewise.
64262         * modules/strcase (configure.ac): Likewise.
64263         * modules/strcasestr (configure.ac): Likewise.
64264         * modules/strchrnul (configure.ac): Likewise.
64265         * modules/strdup (configure.ac): Likewise.
64266         * modules/strndup (configure.ac): Likewise.
64267         * modules/strnlen (configure.ac): Likewise.
64268         * modules/strpbrk (configure.ac): Likewise.
64269         * modules/strsep (configure.ac): Likewise.
64270         * modules/strstr (configure.ac): Likewise.
64271         * modules/strtok_r (configure.ac): Likewise.
64272
64273 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64274
64275         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64276
64277 2007-01-30  Jim Meyering  <jim@meyering.net>
64278
64279         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64280
64281 2007-01-29  Bruno Haible  <bruno@clisp.org>
64282
64283         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64284         * lib/execute.c: Likewise.
64285         * lib/pipe.c: Likewise.
64286         * lib/printf-args.h: Likewise.
64287         * lib/printf-args.c: Likewise.
64288         * lib/printf-parse.c: Likewise.
64289         * lib/vasnprintf.c: Likewise.
64290
64291 2007-01-29  Eric Blake  <ebb9@byu.net>
64292
64293         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64294         declaration.
64295
64296 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * lib/strptime.h (strptime): Use 'restrict' for args where
64299         POSIX requires this.
64300         * lib/strptime.c (strptime): Likewise.
64301         Change license notice from LGPL to GPL, since gnulib-tool will
64302         change this as needed.
64303         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64304         defined.
64305         Include "strptime.h" first, to check interface.
64306         Do not #undef _LIBC and _NL_CURRENT.
64307         Do not include <stdlib.h>; no longer needed.
64308         Include "time_r.h" and declare ptime_locale_status
64309         only if _LIBC is not defined.
64310         (__P): Remove unused macro.
64311         (match_string): Bring back glibc version, but use it only if _LIBC
64312         is defined.
64313         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64314         Remove unnecessary assertion and abort() call.
64315         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64316         * m4/strptime.m4: Fix serial number comment.
64317         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64318         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64319         (Depends-on): Add time_r.
64320
64321 2007-01-29  Bruno Haible  <bruno@clisp.org>
64322
64323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64324         strptime.
64325         * modules/strptime (Depends-on): Add stdbool.
64326         * lib/strptime.h: Include <time.h> always. Add comments.
64327
64328 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64329
64330         * modules/strptime: New file.
64331         * lib/strptime.h: New file.
64332         * lib/strptime.c: New file.
64333         * m4/strptime.m4: New file.
64334
64335 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * MODULES.html.sh: New module mpsort.
64338         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64339
64340         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64341         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64343         All uses changed.
64344         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64345         All uses changed.
64346         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64347         to _Restrict_.
64348         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64349         the parameter matches the prototype.
64350
64351 2007-01-28  Jim Meyering  <jim@meyering.net>
64352
64353         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64354         sys/time.h here, reverting that part of the previous patch:
64355         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64356
64357 2007-01-28  Bruno Haible  <bruno@clisp.org>
64358
64359         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64360         value of $(SYS_TIME_H).
64361         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64362         remove it conditionally, too. [added by Jim Meyering]
64363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64365         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64366         GETTIMEOFDAY_REPLACEMENT to 1.
64367
64368 2007-01-28  Bruno Haible  <bruno@clisp.org>
64369
64370         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64371         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64373         Set UNISTD_H instead of UNISTD_H2.
64374         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64375
64376 2007-01-28  Bruno Haible  <bruno@clisp.org>
64377
64378         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64379         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64380
64381 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64382
64383         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64384         (func_create_testdir): Ensure C locale for `grep' and `tr'
64385         character ranges.
64386         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64387         ACLOCAL_AMFLAGS parsing state machine.
64388
64389 2007-01-27  Bruno Haible  <bruno@clisp.org>
64390
64391         * modules/unistr/base: Update.
64392
64393 2007-01-27  Bruno Haible  <bruno@clisp.org>
64394
64395         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64396         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64397         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64398         modules/unistr/u32-mbtouc.
64399         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64400         * lib/unistr.h: Update.
64401         * lib/linebreak.c: Update.
64402         * modules/unistr/u32-mbtouc: Renamed from
64403         modules/unistr/u32-mbtouc-safe.
64404         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64405         * lib/unistr.h: Update.
64406         * lib/unistr/u32-to-u8.c: Update.
64407         * lib/unistr/u32-to-u16.c: Update.
64408
64409 2007-01-27  Bruno Haible  <bruno@clisp.org>
64410
64411         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64412         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64413         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64414         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64415         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64416         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64417         modules/unistr/u16-mbtouc.
64418         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64419         * lib/unistr.h: Update.
64420         * lib/linebreak.c: Update.
64421         * modules/linebreak: Update.
64422         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64423         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64424         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64425         * modules/unistr/u16-mbtouc: Renamed from
64426         modules/unistr/u16-mbtouc-safe.
64427         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64428         * lib/unistr.h: Update.
64429         * lib/unistr/u16-to-u8.c: Update.
64430         * modules/unistr/u16-to-u8: Update.
64431         * lib/unistr/u16-to-u32.c: Update.
64432         * modules/unistr/u16-to-u32: Update.
64433
64434 2007-01-27  Bruno Haible  <bruno@clisp.org>
64435
64436         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64437         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64438         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64439         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64440         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64441         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64442         modules/unistr/u8-mbtouc.
64443         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64444         * lib/unistr.h: Update.
64445         * lib/striconveh.c: Update.
64446         * modules/striconveh: Update.
64447         * lib/linebreak.c: Update.
64448         * modules/linebreak: Update.
64449         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64450         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64451         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64452         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64453         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64454         * lib/unistr.h: Update.
64455         * lib/striconveh.c: Update.
64456         * modules/striconveh: Update.
64457         * lib/unistr/u8-to-u16.c: Update.
64458         * modules/unistr/u8-to-u16: Update.
64459         * lib/unistr/u8-to-u32.c: Update.
64460         * modules/unistr/u8-to-u32: Update.
64461
64462 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64463
64464         Sync from Libtool.
64465         * lib/argz.c: Do not include strings.h nor memory.h, include
64466         string.h unconditionally.  Patch by Simon Josefsson.
64467
64468 2007-01-27  Bruno Haible  <bruno@clisp.org>
64469
64470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64471         from gl_HEADER_STRING_H_BODY.
64472         (gl_HEADER_STRING_H_BODY): Require it.
64473         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64474         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64476         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64477         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64478         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64480         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64481         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64482         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64483         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64484         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64485         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64486         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64487         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64488
64489 2007-01-27  Bruno Haible  <bruno@clisp.org>
64490
64491         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64492         check_PROGRAMS into noinst_PROGRAMS.
64493         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64494         check_PROGRAMS in this case.
64495         (func_import): Set for_test to false.
64496         (func_create_testdir): Set for_test to true.
64497
64498 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64499             Bruno Haible  <bruno@clisp.org>
64500
64501         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64502         (Depends-on): Add string.
64503         (Includes): Use <string.h> instead of strcasestr.h.
64504         * modules/string (Makefile.am): Also substitute the value of
64505         REPLACE_STRCASESTR.
64506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64507         assume strcasestr is declared in <string.h> not <strings.h>. Also
64508         set REPLACE_STRCASESTR.
64509         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64510         REPLACE_STRCASESTR.
64511         * lib/strcasestr.h: Remove file.
64512         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64513         * lib/string_.h (strcasestr): New declaration.
64514
64515 2007-01-27  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/string_.h: Use 'extern'.
64518
64519 2007-01-27  Jim Meyering  <jim@meyering.net>
64520
64521         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64522         of set-but-not-used local, "q".
64523
64524         * lib/mempcpy.c: Include <config.h> before <string.h>.
64525         This fixes a compilation error on HP-UX, due to the system's
64526         "restrict"-using mempcpy prototype.
64527
64528 2007-01-26  Bruno Haible  <bruno@clisp.org>
64529
64530         Small optimization.
64531         * lib/javacomp.c: Include c-strstr.h.
64532          (is_envjavac_gcj): Use c_strstr instead of strstr.
64533         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64534
64535 2007-01-26  Bruno Haible  <bruno@clisp.org>
64536
64537         * MODULES.html.sh (Unicode string functions): Add the new modules.
64538
64539         * modules/uniconv/u32-strconv-to-locale: New file.
64540         * lib/uniconv/u32-strconv-to-locale.c: New file.
64541
64542         * modules/uniconv/u16-strconv-to-locale: New file.
64543         * lib/uniconv/u16-strconv-to-locale.c: New file.
64544
64545         * modules/uniconv/u8-strconv-to-locale: New file.
64546         * lib/uniconv/u8-strconv-to-locale.c: New file.
64547
64548         * modules/uniconv/u32-strconv-from-locale: New file.
64549         * lib/uniconv/u32-strconv-from-locale.c: New file.
64550
64551         * modules/uniconv/u16-strconv-from-locale: New file.
64552         * lib/uniconv/u16-strconv-from-locale.c: New file.
64553
64554         * modules/uniconv/u8-strconv-from-locale: New file.
64555         * lib/uniconv/u8-strconv-from-locale.c: New file.
64556
64557         * modules/uniconv/u32-strconv-to-enc: New file.
64558         * lib/uniconv/u32-strconv-to-enc.c: New file.
64559         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64560         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64561
64562         * modules/uniconv/u16-strconv-to-enc: New file.
64563         * lib/uniconv/u16-strconv-to-enc.c: New file.
64564         * lib/uniconv/u-strconv-to-enc.h: New file.
64565         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64566         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64567
64568         * modules/uniconv/u8-strconv-to-enc: New file.
64569         * lib/uniconv/u8-strconv-to-enc.c: New file.
64570         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64571         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64572
64573         * modules/uniconv/u32-strconv-from-enc: New file.
64574         * lib/uniconv/u32-strconv-from-enc.c: New file.
64575         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64576         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64577
64578         * modules/uniconv/u16-strconv-from-enc: New file.
64579         * lib/uniconv/u16-strconv-from-enc.c: New file.
64580         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64581         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64582
64583         * modules/uniconv/u8-strconv-from-enc: New file.
64584         * lib/uniconv/u8-strconv-from-enc.c: New file.
64585         * lib/uniconv/u-strconv-from-enc.h: New file.
64586         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64587         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64588
64589         * modules/uniconv/u32-conv-from-enc: New file.
64590         * lib/uniconv/u32-conv-from-enc.c: New file.
64591         * modules/uniconv/u32-conv-from-enc-tests: New file.
64592         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64593
64594         * modules/uniconv/u16-conv-from-enc: New file.
64595         * lib/uniconv/u16-conv-from-enc.c: New file.
64596         * lib/uniconv/u-conv-from-enc.h: New file.
64597         * modules/uniconv/u16-conv-from-enc-tests: New file.
64598         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64599
64600         * modules/uniconv/u8-conv-from-enc: New file.
64601         * lib/uniconv/u8-conv-from-enc.c: New file.
64602         * modules/uniconv/u8-conv-from-enc-tests: New file.
64603         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64604
64605         * modules/uniconv/base: New file.
64606         * lib/uniconv.h: New file.
64607
64608 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64609
64610         * doc/gnulib-tool.texi (Initial import): Update to match current
64611         behavior with strdup module.
64612         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64613         * lib/memmem.h: Remove; all uses removed.  This is now done
64614         by <string.h>.
64615         * lib/mempcpy.h: Likewise.
64616         * lib/memrchr.h: Likewise.
64617         * lib/stpcpy.h: Likewise.
64618         * lib/stpncpy.h: Likewise.
64619         * lib/strcase.h: Likewise.
64620         * lib/strchrnul.h: Likewise.
64621         * lib/strdup.h: Likewise.
64622         * lib/strndup.h: Likewise.
64623         * lib/strnlen.h: Likewise.
64624         * lib/strpbrk.h: Likewise.
64625         * lib/strsep.h: Likewise.
64626         * lib/strstr.h: Likewise.
64627         * lib/strtok_r.h: Likewise.
64628         * lib/string_.h: New file.
64629         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64630         Rely on <string.h> instead.
64631         * lib/canon-host.c: Likewise.
64632         * lib/chdir-long.c: Likewise.
64633         * lib/concatpath.c: Likewise.
64634         * lib/exclude.c: Likewise.
64635         * lib/fchdir.c: Likewise.
64636         * lib/getaddrinfo.c: Likewise.
64637         * lib/getcwd.c: Likewise.
64638         * lib/getsubopt.c: Likewise.
64639         * lib/glob.c: Likewise.
64640         * lib/hard-locale.c: Likewise.
64641         * lib/iconvme.c: Likewise.
64642         * lib/javacomp.c: Likewise.
64643         * lib/mempcpy.c: Likewise.
64644         * lib/memrchr.c: Likewise.
64645         * lib/regex_internal.h: Likewise.
64646         * lib/stpncpy.c: Likewise.
64647         * lib/strcasecmp.c: Likewise.
64648         * lib/strchrnul.c: Likewise.
64649         * lib/strdup.c: Likewise.
64650         * lib/striconv.c: Likewise.
64651         * lib/striconveh.c: Likewise.
64652         * lib/striconveha.c: Likewise.
64653         * lib/strncasecmp.c: Likewise.
64654         * lib/strndup.c: Likewise.
64655         * lib/strnlen.c: Likewise.
64656         * lib/strsep.c: Likewise.
64657         * lib/strstr.c: Likewise.
64658         * lib/strtok_r.c: Likewise.
64659         * lib/userspec.c: Likewise.
64660         * lib/w32spawn.h: Likewise.
64661         * lib/xstrndup.c: Likewise.
64662         * lib/mountlist.c (strstr): Remove decl.
64663         * m4/string_h.m4: New file.
64664         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64665         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64666         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64667         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64668         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64669         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64670         Set REPLACE_STRCASECMP if necessary.
64671         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64672         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64673         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64674         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64675         HAVE_DECL_STRDUP if necessary.
64676         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64677         since gl_FUNC_STRNDUP does that now.
64678         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64679         Check for decl here...
64680         (gl_PREREQ_STRNLEN): ... not here.
64681         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64682         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64683         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64684         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64685         necessary.
64686         * modules/string: New file.
64687         * modules/memmem (Files): Remove special-purpose include file.
64688         (Depends-on): Add string.
64689         (Include): Include <string.h>, not the removed file.
64690         * modules/mempcpy: Likewise.
64691         * modules/memrchr: Likewise.
64692         * modules/stpcpy: Likewise.
64693         * modules/stpncpy: Likewise.
64694         * modules/strcase: Likewise.
64695         * modules/strchrnul: Likewise.
64696         * modules/strdup: Likewise.
64697         * modules/strndup: Likewise.
64698         * modules/strnlen: Likewise.
64699         * modules/strpbrk: Likewise.
64700         * modules/strsep: Likewise.
64701         * modules/strstr: Likewise.
64702         * modules/strtok_r: Likewise.
64703         * tests/test-dirname.c: Don't include "strdup.h", since
64704         <string.h> now suffices.
64705         * tests/test-memmem.c: Don't include "memmem.h", since
64706         <string.h> now suffices.
64707
64708 2007-01-25  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64711         *resultp is 0.
64712
64713         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64714         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64715         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64716         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64717
64718         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64719         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64720         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64721         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64722         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64723         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64724
64725 2007-01-24  Bruno Haible  <bruno@clisp.org>
64726
64727         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64729         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64730         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64731         gl_FUNC_FTS_CORE.
64732         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64733         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64734         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64735         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64736         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64737         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64738         gl_FUNC_FCHOWNAT.
64739         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64740         gl_FUNC_STRFTIME.
64741         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64742         Reported by Ralf Wildenhues.
64743
64744 2007-01-24  Bruno Haible  <bruno@clisp.org>
64745
64746         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64747         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64748         gl_GETADDRINFO.
64749         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64750         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64751         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64752
64753 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64754
64755         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64756         Don't use 'exit'; just return from 'main'.
64757         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64758
64759         * lib/fnmatch_.h: Readjust white space and comments to match
64760         glibc, to avoid spurious diffs.
64761
64762 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64765         2004-12-01 change by Jakub Jelinek, since this code won't compile
64766         if !LIBC.  Problem reported by Bob Proulx.
64767
64768 2007-01-23  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/striconveh.c: Include c-strcaseeq.h.
64771         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64772         * modules/striconveh (Depends-on): Add c-strcaseeq.
64773
64774 2007-01-23  Bruno Haible  <bruno@clisp.org>
64775
64776         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64777
64778         * modules/c-strcaseeq: New file.
64779         * lib/c-strcaseeq.h: New file.
64780
64781         * modules/streq: New file.
64782         * lib/streq.h: New file.
64783
64784 2007-01-23  Bruno Haible  <bruno@clisp.org>
64785
64786         * modules/striconveha-tests: New file.
64787         * tests/test-striconveha.c: New file.
64788
64789         * lib/striconveha.h: Include <stdbool.h>.
64790         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64791         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64792         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64793         (mem_iconveha): New function.
64794         (str_iconveha_notranslit): Renamed from str_iconveha.
64795         (str_iconveha): New function.
64796         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64797         c-strcase.
64798
64799 2007-01-23  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64802         encodings without forgiving before trying any encoding with handler.
64803         (str_iconveha): Try all encodings without forgiving before trying any
64804         encoding with handler.
64805
64806 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         Import the following changes from libc.
64809
64810         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64811
64812         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64813
64814         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64815
64816         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64817         normal_bracket label.
64818
64819         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64820
64821         [BZ #361]
64822         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64823         to normal_bracket after fetching the next character.
64824
64825 2007-01-22  Bruno Haible  <bruno@clisp.org>
64826
64827         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64828         argument.
64829         * lib/striconveh.c (iconv_carefully_1): New function.
64830         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64831         argument.
64832         (str_cd_iconveh): Update.
64833         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64834         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64835         * tests/test-striconveh.c (MAGIC): New macro.
64836         (new_offsets): New function.
64837         (main): Test call with and without offsets.
64838
64839 2007-01-22  Bruno Haible  <bruno@clisp.org>
64840
64841         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64842         * modules/sys_select (Makefile.am): Likewise.
64843         * modules/sys_socket (Makefile.am): Likewise.
64844         * modules/sys_time (Makefile.am): Likewise.
64845
64846 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * modules/gettimeofday (License): Change from GPL to LGPL, since
64849         gettimeofday is a library function.
64850
64851 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64852
64853         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64854
64855 2007-01-21  Bruno Haible  <bruno@clisp.org>
64856
64857         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64858
64859 2007-01-21  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/striconveha: New file.
64862         * lib/striconveha.h: New file.
64863         * lib/striconveha.c: New file.
64864         * MODULES.html.sh (Internationalization functions): Add striconveha.
64865         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64866         string.
64867         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64868
64869 2007-01-21  Bruno Haible  <bruno@clisp.org>
64870
64871         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64872         * lib/striconveh.c (str_iconveh): Likewise.
64873
64874 2007-01-21  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/striconveh.h (mem_iconveh): New declaration.
64877         * lib/striconveh.c (mem_iconveh): New function.
64878         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64879
64880 2007-01-21  Bruno Haible  <bruno@clisp.org>
64881
64882         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64883
64884         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64885         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64886         original result buffer.
64887         (str_cd_iconveh): Update.
64888         * tests/test-striconveh.c (main): Update.
64889
64890         * lib/striconv.h (mem_cd_iconv): Change specification.
64891         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64892         result buffer.
64893         (str_cd_iconv): Update.
64894         * tests/test-striconv.c (main): Update.
64895
64896 2007-01-21  Bruno Haible  <bruno@clisp.org>
64897
64898         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64899
64900 2007-01-20  Jim Meyering  <jim@meyering.net>
64901
64902         * lib/userspec.c (parse_with_separator): If a user or group string
64903         starts with "+", skip the corresponding name-to-ID look-up, since
64904         such a look-up must fail: user and group names may not include "+".
64905
64906 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64907
64908         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64909         since we now assume the sys_time module.
64910         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64911         check for sys/time.h; no longer needed.
64912         * modules/poll (Depends-on): Depend on sys_time.
64913
64914 2007-01-18  Bruno Haible  <bruno@clisp.org>
64915
64916         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64917         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64918
64919         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64920         gettimeofday.
64921
64922         * tests/test-gettimeofday.c: Include <time.h>.
64923         (dummy): Remove variable.
64924
64925         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64926         gl_HEADER_SYS_TIME_H.
64927         (gl_HEADER_SYS_TIME_H): New macro.
64928
64929         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64930         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64932         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64933         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64935         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64936         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64937         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64938         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64939         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64940
64941         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64942         last change; it caused a compilation error when cross-compiling to
64943         Cygwin.
64944
64945 2007-01-18  Jim Meyering  <jim@meyering.net>
64946
64947         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64948         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64949         than the race-prone "test -d sys || mkdir sys".
64950         (configure.ac): Use AC_PROG_MKDIR_P.
64951         * modules/sys_select: Likewise.
64952         * modules/sys_socket: Likewise.
64953         * modules/sys_time: Likewise.
64954
64955 2007-01-18  Eric Blake  <ebb9@byu.net>
64956
64957         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64958         replace gettimeofday.
64959         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64960         name, to avoid infinite recursion.
64961
64962 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64965         module sys_time.
64966         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64967         assume timespec.h defines struct timeval.
64968         * lib/settime.c: Likewise.
64969         * lib/utimens.c: Likewise.
64970         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64971         since we now assume the gettimeofday module.
64972         * lib/tempname.c (__gen_tempname): Likewise.
64973         * lib/gettimeofday.h: Remove.
64974         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64975         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64976         Include <time.h>, for 'time()'.
64977         (localtime_buffer_addr): Also use this workaround if
64978         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64979         to simplify the uses.  All uses changed.
64980         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64981         that #undef is inside {}, and 'const' follows type name consistently.
64982         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64983         (gettimeofday): Do not use the maximum possible value for
64984         tv->tv_usec, since that might break usages other than ls.c.
64985         Instead, we'll leave ls.c alone.  This undoes today's patch
64986         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64987         we've never observed the problem but might as well keep the
64988         canary.
64989         * lib/nanosleep.c: Include timespec.h first, for interface check.
64990         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64991         now assume the sys_time module.
64992         * lib/tempname.c: Likewise.
64993         * lib/timespec.h: Likewise.
64994         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64995         needed.
64996         * lib/strftime.c: Likewise.
64997         * lib/timespec.h: Likewise.
64998         * lib/posixtm.c: Include posixtm.h first, for interface check.
64999         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65000         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65001         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65002         * lib/sys_time_.h: New file.
65003         * lib/timespec.h (struct timespec): Use long int, not long.
65004         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65005         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65006         Remove obsolescent call to AC_HEADER_TIME.
65007         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65010         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65011         Likewise.
65012         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65013         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65014         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65015         into the sys_time module.  Check for gettimeofday just once.
65016         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65017         for gettimeofday signature to just check the signature.  Merely
65018         compile it, since linking doesn't test signature.  Improve test for
65019         whether gettimeofday.o is actually needed.
65020         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65021         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65022         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65023         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65024         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65025         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65026         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65027         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65028         than worrying about sys/time.h.
65029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65030         Don't bother worrying about TIME_WITH_SYS_TIME.
65031         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65032         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65033         * m4/sys_time_h.m4: New file.
65034         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65035         Don't include sys/time.h.  Return from main rather than exiting.
65036         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65037         all uses changed.
65038         * modules/gethrxtime (Depends-on): Add sys_time.
65039         * modules/gettime (Depends-on): Likewise.
65040         * modules/gettimeofday (Depends-on): Likewise.
65041         * modules/nanosleep (Depends-on): Likewise.
65042         * modules/settime (Depends-on): Likewise.
65043         * modules/tempname (Depends-on): Likewise.
65044         * modules/utimens (Depends-on): Likewise.
65045         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65046         (Include): Change back to <sys/time.h>.
65047         (Maintainer): Add self.
65048         * modules/sys_time: New file.
65049         * modules/tempname (Depends-on): Add gettimeofday.
65050         * tests/test-gettimeofday.c: Include <sys/time.h>
65051         rather than gettimeofday.h.
65052
65053 2007-01-17  Bruno Haible  <bruno@clisp.org>
65054
65055         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65056         the license default to GPL.
65057         (func_create_testdir): Don't complain if a module is LGPL and its
65058         tests module depends on GPLed modules.
65059
65060 2007-01-17  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/gettimeofday.c (gettimeofday): Add code for the case
65063         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65064         maximum possible value for tv->tv_usec, rather than the minimum one.
65065
65066 2005-10-08  Martin Lambers  <marlam@marlam.de>
65067 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65068 2007-01-16  Bruno Haible  <bruno@clisp.org>
65069
65070         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65071         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65072         gl_FUNC_GETTIMEOFDAY.
65073         (Include): Add gettimeofday.h.
65074         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65075         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65076         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65077         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65078         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65079         * lib/gettimeofday.h: New file.
65080         * lib/gettimeofday.c: Include <sys/timeb.h>.
65081         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65082         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65083         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65084         fall back on time().
65085
65086         * tests/test-gettimeofday.c: New file.
65087         * modules/gettimeofday-tests: New file.
65088
65089 2007-01-16  Eric Blake  <ebb9@byu.net>
65090
65091         * modules/fnmatch (Depends-on): Depend on wchar.
65092         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65093         * m4/fnmatch.m4: Likewise.
65094         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65095         * m4/mbchar.m4: Likewise.
65096         * modules/mbswidth (Depends-on): Depend on wchar.
65097         * lib/mbswidth.c: Assume <wchar.h>.
65098         * m4/mbswidth.m4: Likewise.
65099         * modules/quotearg (Depends-on): Depend on wchar.
65100         * lib/quotearg.c: Assume <wchar.h>.
65101         * m4/quotearg.m4: Likewise.
65102         * modules/regex (Depends-on): Depend on wchar.
65103         * lib/regex_internal.h: Assume <wchar.h>.
65104         * m4/regex.m4: Likewise.
65105         * modules/stdint (Depends-on): Depend on wchar.
65106         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65107         * m4/stdint.m4: Likewise.
65108         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65109         * modules/strftime (Depends-on): Depend on wchar.
65110         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65111         * modules/strtol (Depends-on): Depend on wchar.
65112         * lib/strtol.c: Assume <wchar.h>.
65113         * modules/wcwidth (Depends-on): Depend on wchar.
65114         * lib/wcwidth.h: Assume <wchar.h>.
65115         * m4/wcwidth.m4: Likewise.
65116
65117 2007-01-16  Bruno Haible  <bruno@clisp.org>
65118
65119         * modules/csharpexec-script: New, created from...
65120         * modules/csharpexec: ... this.
65121
65122 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65123
65124         * modules/javaexec-script: New, created from...
65125         * modules/javaexec: ... this.
65126
65127 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65128
65129         * modules/poll (Dependencies): Add sys_select.
65130
65131 2007-01-15  Jim Meyering  <jim@meyering.net>
65132
65133         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65134         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65135         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65136         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65137
65138 2007-01-15  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/striconveh: New file.
65141         * lib/striconveh.h: New file.
65142         * lib/striconveh.c: New file.
65143         * MODULES.html.sh (Internationalization functions): Add striconveh.
65144
65145         * modules/striconveh-tests: New file.
65146         * tests/test-striconveh.c: New file.
65147
65148 2007-01-15  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65151         not from GNU libiconv or GNU libc.
65152
65153 2007-01-15  Bruno Haible  <bruno@clisp.org>
65154
65155         * doc/gnulib-intro.texi (Copyright): Explain the different license
65156         terms for module descriptions, autoconf macros, tests, documentation.
65157
65158 2007-01-14  Bruno Haible  <bruno@clisp.org>
65159
65160         * modules/striconv-tests: New file.
65161         * tests/test-striconv.c: New file.
65162
65163 2007-01-14  Bruno Haible  <bruno@clisp.org>
65164
65165         * modules/iconv-tests: New file.
65166         * tests/test-iconv.c: New file.
65167
65168 2007-01-14  Bruno Haible  <bruno@clisp.org>
65169
65170         * gnulib-tool (func_get_license): For test modules, use the license of
65171         the main module.
65172
65173 2007-01-14  Bruno Haible  <bruno@clisp.org>
65174
65175         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65176         if iconv is found to exist.
65177
65178 2007-01-14  Bruno Haible  <bruno@clisp.org>
65179
65180         * modules/c-ctype-tests: New file.
65181         * tests/test-c-ctype.c: New file.
65182
65183 2007-01-14  Bruno Haible  <bruno@clisp.org>
65184
65185         * modules/binary-io-tests: New file.
65186         * tests/test-binary-io.sh: New file.
65187         * tests/test-binary-io.c: New file.
65188
65189 2007-01-14  Bruno Haible  <bruno@clisp.org>
65190
65191         * modules/array-oset-tests: New file.
65192         * tests/test-array_oset.c: New file.
65193
65194 2007-01-14  Bruno Haible  <bruno@clisp.org>
65195
65196         * modules/array-list-tests: New file.
65197         * tests/test-array_list.c: New file.
65198
65199 2007-01-14  Bruno Haible  <bruno@clisp.org>
65200
65201         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65202         and make.
65203         Reported by Simon Josefsson in
65204         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65205
65206 2007-01-14  Bruno Haible  <bruno@clisp.org>
65207
65208         * modules/allocsa-tests: New file.
65209         * tests/test-allocsa.c: New file.
65210
65211 2007-01-14  Bruno Haible  <bruno@clisp.org>
65212
65213         * modules/fchdir (Depends-on): Add absolute-header.
65214         * modules/unistd (Depends-on): Likewise.
65215
65216 2006-12-30  Bruno Haible  <bruno@clisp.org>
65217
65218         * modules/fchdir: New file.
65219         * modules/unistd (Files): Add lib/unistd_.h.
65220         (Makefile.am): Generate unistd.h from unistd_.h.
65221         * lib/fchdir.c: New file.
65222         * lib/dirent_.h: New file.
65223         * lib/unistd_.h: New file.
65224         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65225         * m4/fchdir.m4: New file.
65226         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65227         (gl_HEADER_UNISTD): Invoke it.
65228         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65229         function.
65230         * lib/backupfile.c (opendir, closedir): Undefine.
65231         * lib/chown.c (open, close): Undefine.
65232         * lib/clean-temp.c (open, close): Undefine.
65233         * lib/copy-file.c (open, close): Undefine.
65234         * lib/execute.c (open, close): Undefine.
65235         * lib/fsusage.c (open, close): Undefine.
65236         * lib/gc-gnulib.c (open, close): Undefine.
65237         * lib/getcwd.c (opendir, closedir): Undefine.
65238         * lib/glob.c (opendir, closedir): Undefine.
65239         * lib/javacomp.c (open, close): Undefine.
65240         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65241         * lib/openat-proc.c (open, close): Undefine.
65242         * lib/pagealign_alloc.c (open, close): Undefine.
65243         * lib/pipe.c (open, close): Undefine.
65244         * lib/progreloc.c (open, close): Undefine.
65245         * lib/savedir.c (opendir, closedir): Undefine.
65246         * lib/utime.c (open, close): Undefine.
65247         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65248
65249 2007-01-10  Bruno Haible  <bruno@clisp.org>
65250
65251         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65252
65253 2007-01-12  Eric Blake  <ebb9@byu.net>
65254
65255         Provide a robust <wchar.h>.  Further simplifications are now
65256         possible in other modules, but not included here.
65257         * modules/wchar: New module.
65258         * m4/wchar.m4: New file.
65259         * lib/wchar_.h: Likewise.
65260         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65261         of the new module.
65262         * MODULES.html.sh (Extended multibyte and wide character utilities):
65263         New section.
65264
65265 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65266
65267         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65268         to a reasonable default for memory allocation.
65269         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65270         file system that reports garbage st_size values for symlinks.
65271         Problem reported by Liyang Hu.
65272
65273 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65274
65275         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65276         Emacs .#* auto-save files).
65277
65278 2007-01-11  Bruno Haible  <bruno@clisp.org>
65279
65280         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65281         directory.
65282
65283 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         Use @...@ consistently in lib/wctype_.h.
65286         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65287         on it being set to 1 or 0.
65288         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65289         go back to AC_SUBSTing it.
65290         * modules/wctype (Makefile.am): Undo previous change.
65291
65292 2007-01-10  Eric Blake  <ebb9@byu.net>
65293
65294         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65295         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65296         * modules/wctype (Makefile.am): Likewise.
65297         Reported by Chris McGuire.
65298
65299 2007-01-10  Jim Meyering  <jim@meyering.net>
65300
65301         fts.c: a small readability/maintainability improvement
65302         * lib/fts.c (fts_read): Make this code slightly more readable and
65303         maintainable by hoisting the "sp->fts_cur = p" assignments to
65304         immediately follow the statements that set P.  Derived from
65305         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65306
65307 2007-01-10  Eric Blake  <ebb9@byu.net>
65308
65309         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65310         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65312         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65313         Reported by Chris McGuire.
65314
65315 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65316
65317         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65318         in sed script.
65319
65320 2007-01-09  Bruno Haible  <bruno@clisp.org>
65321
65322         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65323         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65324         variables.
65325         (func_module): Use them.
65326
65327 2007-01-09  Bruno Haible  <bruno@clisp.org>
65328
65329         * modules/unistr/base: New file.
65330         * lib/unistr.h: New file.
65331
65332         * modules/unistr/u8-to-u16: New file.
65333         * lib/unistr/u8-to-u16.c: New file.
65334
65335         * modules/unistr/u8-to-u32: New file.
65336         * lib/unistr/u8-to-u32.c: New file.
65337
65338         * modules/unistr/u16-to-u8: New file.
65339         * lib/unistr/u16-to-u8.c: New file.
65340
65341         * modules/unistr/u16-to-u32: New file.
65342         * lib/unistr/u16-to-u32.c: New file.
65343
65344         * modules/unistr/u32-to-u8: New file.
65345         * lib/unistr/u32-to-u8.c: New file.
65346
65347         * modules/unistr/u32-to-u16: New file.
65348         * lib/unistr/u32-to-u16.c: New file.
65349
65350         * modules/unistr/u8-check: New file.
65351         * modules/unistr/u16-check: New file.
65352         * modules/unistr/u32-check: New file.
65353         * lib/unistr/u8-check.c: New file.
65354         * lib/unistr/u16-check.c: New file.
65355         * lib/unistr/u32-check.c: New file.
65356
65357         * modules/unistr/u8-chr: New file.
65358         * modules/unistr/u16-chr: New file.
65359         * modules/unistr/u32-chr: New file.
65360         * lib/unistr/u8-chr.c: New file.
65361         * lib/unistr/u16-chr.c: New file.
65362         * lib/unistr/u32-chr.c: New file.
65363
65364         * modules/unistr/u8-cmp: New file.
65365         * modules/unistr/u16-cmp: New file.
65366         * modules/unistr/u32-cmp: New file.
65367         * lib/unistr/u8-cmp.c: New file.
65368         * lib/unistr/u16-cmp.c: New file.
65369         * lib/unistr/u32-cmp.c: New file.
65370
65371         * modules/unistr/u8-cpy: New file.
65372         * modules/unistr/u16-cpy: New file.
65373         * modules/unistr/u32-cpy: New file.
65374         * lib/unistr/u8-cpy.c: New file.
65375         * lib/unistr/u16-cpy.c: New file.
65376         * lib/unistr/u32-cpy.c: New file.
65377         * lib/unistr/u-cpy.h: New file.
65378
65379         * modules/unistr/u8-cpy-alloc: New file.
65380         * modules/unistr/u16-cpy-alloc: New file.
65381         * modules/unistr/u32-cpy-alloc: New file.
65382         * lib/unistr/u8-cpy-alloc.c: New file.
65383         * lib/unistr/u16-cpy-alloc.c: New file.
65384         * lib/unistr/u32-cpy-alloc.c: New file.
65385         * lib/unistr/u-cpy-alloc.h: New file.
65386
65387         * modules/unistr/u8-endswith: New file.
65388         * modules/unistr/u16-endswith: New file.
65389         * modules/unistr/u32-endswith: New file.
65390         * lib/unistr/u8-endswith.c: New file.
65391         * lib/unistr/u16-endswith.c: New file.
65392         * lib/unistr/u32-endswith.c: New file.
65393         * lib/unistr/u-endswith.h: New file.
65394
65395         * modules/unistr/u8-mblen: New file.
65396         * modules/unistr/u16-mblen: New file.
65397         * modules/unistr/u32-mblen: New file.
65398         * lib/unistr/u8-mblen.c: New file.
65399         * lib/unistr/u16-mblen.c: New file.
65400         * lib/unistr/u32-mblen.c: New file.
65401
65402         * modules/unistr/u8-mbtouc: New file.
65403         * modules/unistr/u16-mbtouc: New file.
65404         * modules/unistr/u32-mbtouc: New file.
65405         * lib/unistr/u8-mbtouc.c: New file.
65406         * lib/unistr/u16-mbtouc.c: New file.
65407         * lib/unistr/u32-mbtouc.c: New file.
65408
65409         * modules/unistr/u8-mbtouc-safe: New file.
65410         * modules/unistr/u16-mbtouc-safe: New file.
65411         * modules/unistr/u32-mbtouc-safe: New file.
65412         * lib/unistr/u8-mbtouc-safe.c: New file.
65413         * lib/unistr/u16-mbtouc-safe.c: New file.
65414         * lib/unistr/u32-mbtouc-safe.c: New file.
65415
65416         * modules/unistr/u8-move: New file.
65417         * modules/unistr/u16-move: New file.
65418         * modules/unistr/u32-move: New file.
65419         * lib/unistr/u8-move.c: New file.
65420         * lib/unistr/u16-move.c: New file.
65421         * lib/unistr/u32-move.c: New file.
65422         * lib/unistr/u-move.h: New file.
65423
65424         * modules/unistr/u8-next: New file.
65425         * modules/unistr/u16-next: New file.
65426         * modules/unistr/u32-next: New file.
65427         * lib/unistr/u8-next.c: New file.
65428         * lib/unistr/u16-next.c: New file.
65429         * lib/unistr/u32-next.c: New file.
65430
65431         * modules/unistr/u8-prev: New file.
65432         * modules/unistr/u16-prev: New file.
65433         * modules/unistr/u32-prev: New file.
65434         * lib/unistr/u8-prev.c: New file.
65435         * lib/unistr/u16-prev.c: New file.
65436         * lib/unistr/u32-prev.c: New file.
65437
65438         * modules/unistr/u8-set: New file.
65439         * modules/unistr/u16-set: New file.
65440         * modules/unistr/u32-set: New file.
65441         * lib/unistr/u8-set.c: New file.
65442         * lib/unistr/u16-set.c: New file.
65443         * lib/unistr/u32-set.c: New file.
65444         * lib/unistr/u-set.h: New file.
65445
65446         * modules/unistr/u8-startswith: New file.
65447         * modules/unistr/u16-startswith: New file.
65448         * modules/unistr/u32-startswith: New file.
65449         * lib/unistr/u8-startswith.c: New file.
65450         * lib/unistr/u16-startswith.c: New file.
65451         * lib/unistr/u32-startswith.c: New file.
65452         * lib/unistr/u-startswith.h: New file.
65453
65454         * modules/unistr/u8-stpcpy: New file.
65455         * modules/unistr/u16-stpcpy: New file.
65456         * modules/unistr/u32-stpcpy: New file.
65457         * lib/unistr/u8-stpcpy.c: New file.
65458         * lib/unistr/u16-stpcpy.c: New file.
65459         * lib/unistr/u32-stpcpy.c: New file.
65460         * lib/unistr/u-stpcpy.h: New file.
65461
65462         * modules/unistr/u8-stpncpy: New file.
65463         * modules/unistr/u16-stpncpy: New file.
65464         * modules/unistr/u32-stpncpy: New file.
65465         * lib/unistr/u8-stpncpy.c: New file.
65466         * lib/unistr/u16-stpncpy.c: New file.
65467         * lib/unistr/u32-stpncpy.c: New file.
65468         * lib/unistr/u-stpncpy.h: New file.
65469
65470         * modules/unistr/u8-strcat: New file.
65471         * modules/unistr/u16-strcat: New file.
65472         * modules/unistr/u32-strcat: New file.
65473         * lib/unistr/u8-strcat.c: New file.
65474         * lib/unistr/u16-strcat.c: New file.
65475         * lib/unistr/u32-strcat.c: New file.
65476         * lib/unistr/u-strcat.h: New file.
65477
65478         * modules/unistr/u8-strchr: New file.
65479         * modules/unistr/u16-strchr: New file.
65480         * modules/unistr/u32-strchr: New file.
65481         * lib/unistr/u8-strchr.c: New file.
65482         * lib/unistr/u16-strchr.c: New file.
65483         * lib/unistr/u32-strchr.c: New file.
65484
65485         * modules/unistr/u8-strcmp: New file.
65486         * modules/unistr/u16-strcmp: New file.
65487         * modules/unistr/u32-strcmp: New file.
65488         * lib/unistr/u8-strcmp.c: New file.
65489         * lib/unistr/u16-strcmp.c: New file.
65490         * lib/unistr/u32-strcmp.c: New file.
65491
65492         * modules/unistr/u8-strcpy: New file.
65493         * modules/unistr/u16-strcpy: New file.
65494         * modules/unistr/u32-strcpy: New file.
65495         * lib/unistr/u8-strcpy.c: New file.
65496         * lib/unistr/u16-strcpy.c: New file.
65497         * lib/unistr/u32-strcpy.c: New file.
65498         * lib/unistr/u-strcpy.h: New file.
65499
65500         * modules/unistr/u8-strcspn: New file.
65501         * modules/unistr/u16-strcspn: New file.
65502         * modules/unistr/u32-strcspn: New file.
65503         * lib/unistr/u8-strcspn.c: New file.
65504         * lib/unistr/u16-strcspn.c: New file.
65505         * lib/unistr/u32-strcspn.c: New file.
65506         * lib/unistr/u-strcspn.h: New file.
65507
65508         * modules/unistr/u8-strdup: New file.
65509         * modules/unistr/u16-strdup: New file.
65510         * modules/unistr/u32-strdup: New file.
65511         * lib/unistr/u8-strdup.c: New file.
65512         * lib/unistr/u16-strdup.c: New file.
65513         * lib/unistr/u32-strdup.c: New file.
65514         * lib/unistr/u-strdup.h: New file.
65515
65516         * modules/unistr/u8-strlen: New file.
65517         * modules/unistr/u16-strlen: New file.
65518         * modules/unistr/u32-strlen: New file.
65519         * lib/unistr/u8-strlen.c: New file.
65520         * lib/unistr/u16-strlen.c: New file.
65521         * lib/unistr/u32-strlen.c: New file.
65522         * lib/unistr/u-strlen.h: New file.
65523
65524         * modules/unistr/u8-strmblen: New file.
65525         * modules/unistr/u16-strmblen: New file.
65526         * modules/unistr/u32-strmblen: New file.
65527         * lib/unistr/u8-strmblen.c: New file.
65528         * lib/unistr/u16-strmblen.c: New file.
65529         * lib/unistr/u32-strmblen.c: New file.
65530
65531         * modules/unistr/u8-strmbtouc: New file.
65532         * modules/unistr/u16-strmbtouc: New file.
65533         * modules/unistr/u32-strmbtouc: New file.
65534         * lib/unistr/u8-strmbtouc.c: New file.
65535         * lib/unistr/u16-strmbtouc.c: New file.
65536         * lib/unistr/u32-strmbtouc.c: New file.
65537
65538         * modules/unistr/u8-strncat: New file.
65539         * modules/unistr/u16-strncat: New file.
65540         * modules/unistr/u32-strncat: New file.
65541         * lib/unistr/u8-strncat.c: New file.
65542         * lib/unistr/u16-strncat.c: New file.
65543         * lib/unistr/u32-strncat.c: New file.
65544         * lib/unistr/u-strncat.h: New file.
65545
65546         * modules/unistr/u8-strncmp: New file.
65547         * modules/unistr/u16-strncmp: New file.
65548         * modules/unistr/u32-strncmp: New file.
65549         * lib/unistr/u8-strncmp.c: New file.
65550         * lib/unistr/u16-strncmp.c: New file.
65551         * lib/unistr/u32-strncmp.c: New file.
65552
65553         * modules/unistr/u8-strncpy: New file.
65554         * modules/unistr/u16-strncpy: New file.
65555         * modules/unistr/u32-strncpy: New file.
65556         * lib/unistr/u8-strncpy.c: New file.
65557         * lib/unistr/u16-strncpy.c: New file.
65558         * lib/unistr/u32-strncpy.c: New file.
65559         * lib/unistr/u-strncpy.h: New file.
65560
65561         * modules/unistr/u8-strnlen: New file.
65562         * modules/unistr/u16-strnlen: New file.
65563         * modules/unistr/u32-strnlen: New file.
65564         * lib/unistr/u8-strnlen.c: New file.
65565         * lib/unistr/u16-strnlen.c: New file.
65566         * lib/unistr/u32-strnlen.c: New file.
65567         * lib/unistr/u-strnlen.h: New file.
65568
65569         * modules/unistr/u8-strpbrk: New file.
65570         * modules/unistr/u16-strpbrk: New file.
65571         * modules/unistr/u32-strpbrk: New file.
65572         * lib/unistr/u8-strpbrk.c: New file.
65573         * lib/unistr/u16-strpbrk.c: New file.
65574         * lib/unistr/u32-strpbrk.c: New file.
65575         * lib/unistr/u-strpbrk.h: New file.
65576
65577         * modules/unistr/u8-strrchr: New file.
65578         * modules/unistr/u16-strrchr: New file.
65579         * modules/unistr/u32-strrchr: New file.
65580         * lib/unistr/u8-strrchr.c: New file.
65581         * lib/unistr/u16-strrchr.c: New file.
65582         * lib/unistr/u32-strrchr.c: New file.
65583
65584         * modules/unistr/u8-strspn: New file.
65585         * modules/unistr/u16-strspn: New file.
65586         * modules/unistr/u32-strspn: New file.
65587         * lib/unistr/u8-strspn.c: New file.
65588         * lib/unistr/u16-strspn.c: New file.
65589         * lib/unistr/u32-strspn.c: New file.
65590         * lib/unistr/u-strspn.h: New file.
65591
65592         * modules/unistr/u8-strstr: New file.
65593         * modules/unistr/u16-strstr: New file.
65594         * modules/unistr/u32-strstr: New file.
65595         * lib/unistr/u8-strstr.c: New file.
65596         * lib/unistr/u16-strstr.c: New file.
65597         * lib/unistr/u32-strstr.c: New file.
65598         * lib/unistr/u-strstr.h: New file.
65599
65600         * modules/unistr/u8-strtok: New file.
65601         * modules/unistr/u16-strtok: New file.
65602         * modules/unistr/u32-strtok: New file.
65603         * lib/unistr/u8-strtok.c: New file.
65604         * lib/unistr/u16-strtok.c: New file.
65605         * lib/unistr/u32-strtok.c: New file.
65606         * lib/unistr/u-strtok.h: New file.
65607
65608         * modules/unistr/u8-uctomb: New file.
65609         * modules/unistr/u16-uctomb: New file.
65610         * modules/unistr/u32-uctomb: New file.
65611         * lib/unistr/u8-uctomb.c: New file.
65612         * lib/unistr/u16-uctomb.c: New file.
65613         * lib/unistr/u32-uctomb.c: New file.
65614
65615         * MODULES.html.sh (Unicode string functions): Add the new modules.
65616
65617 2007-01-08  Bruno Haible  <bruno@clisp.org>
65618
65619         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65620         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65621         subdirectories.
65622
65623 2007-01-08  Karl Berry  <karl@gnu.org>
65624
65625         * doc/error.texi: mention that main() fns must set program_name
65626         when progname is used.
65627
65628 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65631         WCTYPE_H is empty, for the benefit of builds from non-distclean
65632         directories.  Problem reported by Eric Blake in
65633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65634
65635 2007-01-08  Bruno Haible  <bruno@clisp.org>
65636
65637         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65638         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65639         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65640         PROVIDE_CANONICALIZE_FILENAME_MODE.
65641         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65642
65643 2007-01-08  Bruno Haible  <bruno@clisp.org>
65644
65645         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65646         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65647         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65648         * lib/fts.c: Likewise.
65649         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65650
65651 2006-12-25  Bruno Haible  <bruno@clisp.org>
65652
65653         * modules/utf8-ucs4-safe: New file.
65654         * lib/utf8-ucs4-safe.h: New file.
65655         * lib/unistr/utf8-ucs4-safe.c: New file.
65656
65657         * modules/utf16-ucs4-safe: New file.
65658         * lib/utf16-ucs4-safe.h: New file.
65659         * lib/unistr/utf16-ucs4-safe.c: New file.
65660
65661         * MODULES.html.sh (Unicode string functions): Add the new modules.
65662
65663 2007-01-08  Bruno Haible  <bruno@clisp.org>
65664
65665         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65666         (Depends-on): Add unitypes.
65667         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65668         (u8_mbtouc_aux): Move out to separate file.
65669         (u8_mbtouc): Use ucs4_t, uint8_t types.
65670         * lib/unistr/utf8-ucs4.c: New file.
65671
65672         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65673         (Depends-on): Add unitypes.
65674         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65675         (u16_mbtouc_aux): Move out to separate file.
65676         (u16_mbtouc): Use ucs4_t, uint16_t types.
65677         * lib/unistr/utf16-ucs4.c: New file.
65678
65679         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65680         (Depends-on): Add unitypes.
65681         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65682         (u8_uctomb_aux): Move out to separate file.
65683         (u8_uctomb): Use ucs4_t, uint8_t types.
65684         * lib/unistr/ucs4-utf8.c: New file.
65685
65686         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65687         (Depends-on): Add unitypes.
65688         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65689         (u16_uctomb_aux): Move out to separate file.
65690         (u16_uctomb): Use ucs4_t, uint16_t types.
65691         * lib/unistr/ucs4-utf16.c: New file.
65692
65693 2006-12-25  Bruno Haible  <bruno@clisp.org>
65694
65695         * modules/unitypes: New file.
65696         * lib/unitypes.h: New file.
65697         * MODULES.html.sh (func_all_modules): New section "Unicode string
65698         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65699         this section. Add unitypes.
65700
65701 2007-01-08  Bruno Haible  <bruno@clisp.org>
65702
65703         Avoid variable names that conflict with those from libtool.
65704         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65705         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65706         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65707         library_names_spec to acl_library_names_spec, hardcode_* to
65708         acl_hardcode_*.
65709         Reported by Ralf Wildenhues.
65710
65711 2007-01-08  Bruno Haible  <bruno@clisp.org>
65712
65713         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65714         definition.
65715         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65716         definition.
65717         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65718         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65719         definition.
65720         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65721         definition.
65722         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65723         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65724         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65725         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65726         definition.
65727         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65728         definition.
65729         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65730         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65731         GC_USE_<algorithm>.
65732         * lib/gc-libgcrypt.c: Likewise.
65733         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65734         * modules/gc-arctwo (configure.ac): Likewise.
65735         * modules/gc-des (configure.ac): Likewise.
65736         * modules/gc-hmac-md5 (configure.ac): Likewise.
65737         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65738         * modules/gc-md2 (configure.ac): Likewise.
65739         * modules/gc-md4 (configure.ac): Likewise.
65740         * modules/gc-md5 (configure.ac): Likewise.
65741         * modules/gc-random (configure.ac): Likewise.
65742         * modules/gc-rijndael (configure.ac): Likewise.
65743         * modules/gc-sha1 (configure.ac): Likewise.
65744
65745 2007-01-08  Bruno Haible  <bruno@clisp.org>
65746
65747         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65748         macro definition.
65749         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65750         definition.
65751         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65752         definition.
65753         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65754         * modules/fcntl-safer (configure.ac): Likewise.
65755         * modules/fopen-safer (configure.ac): Likewise.
65756         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65757         GNULIB_FWRITEERROR macro definition.
65758
65759 2007-01-08  Bruno Haible  <bruno@clisp.org>
65760
65761         * m4/gnulib-common.m4: New file.
65762         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65763         (func_get_filelist): Add m4/gnulib-common.m4.
65764
65765 2007-01-08  Bruno Haible  <bruno@clisp.org>
65766
65767         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65768         command.
65769
65770 2007-01-08  Jim Meyering  <jim@meyering.net>
65771
65772         Use a more robust test for a "can't happen" condition.
65773         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65774         narrowed the st_size value.  Presuming the "can't happen" condition
65775         is true, that narrowing could conceivably convert an invalid st_size
65776         value into a valid one.  Instead, use a change based on Matthew
65777         Woehlke's original patch.
65778
65779         Slight readability improvement: use an assert-like macro
65780         in place of literal "abort ()" uses.
65781         * lib/fts.c (fts_assert): Define.
65782         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65783         Use this macro instead of a bare 'abort'.
65784
65785 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65786
65787         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65788         simply work around them.
65789         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65790         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65791         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65792         declaring.
65793         Don't bother to define as macros, since the standard doesn't require it.
65794         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65795         longer worry about IRIX 5.3.
65796         (HAVE_WCTYPE_CTMP_BUG): Remove.
65797
65798 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65799
65800         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65801         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65802         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65803         Problems reported by Georg Schwarz for IRIX 5.3.
65804
65805         * gnulib-tool (autoconf_minversion): Take the maximum version number
65806         found, not the minimum.  Problem reported by James Youngman.
65807
65808 2007-01-03  Karl Berry  <karl@gnu.org>
65809
65810         * doc/error.texi: new file, explaining interaction with progname.
65811         * doc/gnulib.texi: include it.  Update copyright.
65812
65813 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65814
65815         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65816         AC_CANONICAL_HOST, to improve autobuild outputs.
65817
65818 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65819             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65820
65821         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65822         sockets, server sockets, and other file descriptors.  Count errors
65823         to compute the return value.  Reorder the code a bit to be easier
65824         to follow.  Don't set event bits that were not requested (except
65825         POLLERR and POLLHUP).
65826
65827 2007-01-01  Bruno Haible  <bruno@clisp.org>
65828
65829         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65830
65831 2007-01-03  Jim Meyering  <jim@meyering.net>
65832
65833         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65834
65835 2007-01-02  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/settime (Include): Require timespec.h.
65838         * modules/nanosleep (Include): Likewise.
65839
65840 2007-01-01  Bruno Haible  <bruno@clisp.org>
65841
65842         * gnulib-tool (func_emit_copyright_notice): Bump year.
65843         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65844
65845 2007-01-01  Bruno Haible  <bruno@clisp.org>
65846
65847         Improve support for OpenBSD.
65848         * build-aux/config.rpath (libname_spec): Export.
65849         (library_names_spec): New variable. Export.
65850         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65851         library_names_spec from the config.rpath output. Locate shared library
65852         through the name pattern in library_names_spec.
65853
65854 2007-01-01  Eric Blake  <ebb9@byu.net>
65855
65856         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65857
65858 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65861         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65862         assume the C locale, and avoid an "eval" that could cause trouble.
65863         Problem with SORT reported by Bob Proulx.
65864
65865         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65866         Define.  Trivial patch from Henning Nielsen Lund, originally
65867         sent to bug-grep@gnu.org today.
65868
65869 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65870
65871         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65872         struct stat.  Problem reported by Henning Nielsen Lund.
65873         * lib/acl.c: Include acl.h first, to check interface.  Don't
65874         bother to include sys/types.h and sys/stat.h again.
65875
65876 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         Import the following change from libc; problem reported by
65879         Sven Verdoolaege.
65880
65881         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65882
65883         [BZ #1373]
65884         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65885
65886 2006-12-28  Jim Meyering  <jim@meyering.net>
65887
65888         * build-aux/announce-gen: Do not assume that the package
65889         builds any of tar.gz, tar.bz2, and .xdelta files.
65890         Suggestion from Simon Josefsson.
65891
65892 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65893
65894         * modules/announce-gen: New file.
65895
65896 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65899         handles its gotchas now.
65900         * lib/mbswidth.c: Likewise.
65901         * lib/wcwidth.h: Likewise.
65902         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65903         and iswcntrl; the wctype module does this stuff now.
65904         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65906         * modules/mbchar (Depends-on): Add wctype.
65907         * modules/mbswidth (Depends-on): Likewise.
65908         * modules/wcwidth (Depends-on): Likewise.
65909
65910 2006-12-27  Eric Blake  <ebb9@byu.net>
65911
65912         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65913         module uses more than what <wctype.h> is required to provide.
65914
65915 2006-12-26  Eric Blake  <ebb9@byu.net>
65916
65917         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65918
65919 2006-12-26  Eric Blake  <ebb9@byu.net>
65920
65921         * modules/absolute-header: New module.
65922         * modules/fcntl (Depends-on): Depend on it.
65923         * modules/inttypes (Depends-on): Likewise.
65924         * modules/stdint (Depends-on): Likewise.
65925         * modules/sys_stat (Depends-on): Likewise.
65926         * modules/wctype (Depends-on): Likewise.
65927         * MODULES.html.sh (Support for building libraries and
65928         executables): Document it.
65929
65930 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * gnulib-tool (SED): Remove, undoing previous change.
65933         The problem was that it broke coreutils on Solaris, because
65934         "sed --posix" leaked into a makefile.
65935         (sed): New alias, if 'alias' and GNU sed.
65936
65937 2006-12-24  Jim Meyering  <jim@meyering.net>
65938
65939         Work around an fchownat bug in glibc-2.4:
65940         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65941         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65942         in spite of the -P option.
65943         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65944         New macros.
65945         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65946         * modules/openat (Files): Add lib/fchownat.c.
65947         * lib/openat.c (fchownat): Don't define here.  Move to...
65948         * lib/fchownat.c: ...this new file.
65949
65950 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65951
65952         Fix bug reported by Bruno Haible in
65953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65954         where quotearg.c didn't compile on Mac OS X 10.2 because it
65955         lacks <wchar.h> and wint_t.
65956         * lib/wctype_.h (__wctype_wint_t): New type.
65957         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65958         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65959         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65960         Arg is now of type __wctype_wint_t, not wint_t.
65961         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65962         substitute HAVE_WINT_T.
65963         * modules/wctype (Files): Add m4/wint_t.m4.
65964         (wctype.h): Substitute HAVE_WINT_T.
65965
65966 2006-12-23  Bruno Haible  <bruno@clisp.org>
65967
65968         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65969
65970 2006-12-23  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65973         S_ISLNK.
65974         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65975         mingw.
65976
65977 2006-12-22  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/copy-file.c: Include acl.h.
65980         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65981         Close the file descriptors only after being done with copy_acl.
65982         * modules/copy-file (Depends-on): Add acl.
65983
65984 2006-12-22  Bruno Haible  <bruno@clisp.org>
65985
65986         * gnulib-tool (SED): New variable.
65987         Use $SED instead of sed everywhere.
65988
65989 2006-12-22  Bruno Haible  <bruno@clisp.org>
65990
65991         * modules/no-c++: New file.
65992         * m4/no-c++.m4: New file.
65993         * MODULES.html.sh (Support for building libraries and executables):
65994         Add no-c++.
65995
65996 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65999         Include <limits.h>, and use its INT_MAX to rewrite the
66000         j loop so that it does not overflow 'int'.  Problem reported by
66001         Ralf Wildenhues in
66002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66003         Play it safe by shifting left by 1 rather than multiplying by 2,
66004         as GCC is less likely to optimize this away when the value
66005         is signed (when it assumes overflow leads to undefined behavior).
66006         Also, don't assume time_t uses two's complement.
66007
66008 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * MODULES.html.sh: New module wctype.
66011         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66012         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66013         <wctype.h>, since the new wctype module should fix this.
66014         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66015         the wctype module should arrange for it.
66016         * lib/regex_internal.h: Likewise.
66017         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66018         since the wctype module should handle this now.
66019         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66020         * modules/fnmatch (Depends-on): Add wctype.
66021         * modules/quotearg (Depends-on): Likewise.
66022         * modules/regex (Depends-on): Likewise.
66023
66024 2006-12-19  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66027         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66028
66029 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66030
66031         * modules/savewd (Depends-on): Fix dependency on fcntl.
66032
66033 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66036         conforms to C99, rather than relying on the user's environment
66037         setting of STDINT_H.
66038
66039 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66040         and Eric Blake  <ebb9@byu.net>
66041
66042         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66043         This is more consistent with the other defines here.
66044         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66045         Port to z/OS.  Problem reported by Paul Gilmartin.
66046         Change local vars to use gl_ prefix rather than ac_.
66047         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66048         with other defines.
66049         * modules/double-slash-root: New module.
66050         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66051         (Depends-on): Add double-slash-root.
66052         * MODULES.html.sh (File system functions): Mention new module.
66053
66054 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66057         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66058         This is for the benefit of gzip, which doesn't do i18n.
66059
66060 2006-12-12  Jim Meyering  <jim@meyering.net>
66061
66062         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66063         Reported by Andreas Schwab <schwab@suse.de>.
66064
66065 2006-12-12  Bruno Haible  <bruno@clisp.org>
66066
66067         Merge these changes.
66068         2006-09-05  Bruno Haible  <bruno@clisp.org>
66069         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66070         iconv_alloc succeeded.
66071         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66072         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66073         test for " && dest " at the end - dest is always != NULL there. Call
66074         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66075         with 2xNULL arguments, also to flush the state storage. Handle the
66076         IRIX iconv behaviour. Realloc the final result, to throw away unused
66077         memory.
66078
66079 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66082         and fchmodat unconditionally, since glibc 2.4 has them.
66083         Problem reported by Arkadiusz Miskiewicz.
66084
66085 2006-12-10  Bruno Haible  <bruno@clisp.org>
66086
66087         * gnulib-tool (func_import): Show the include files only for those
66088         modules that are copied and specified.
66089         Reported by Karl Berry.
66090
66091 2006-12-08  Jim Meyering  <jim@meyering.net>
66092
66093         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66094         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66095
66096         * build-aux/announce-gen: Add two new options, both optional:
66097         --bootstrap-tools=TOOL_LIST
66098               a comma-separated list of tools, e.g.,
66099               autoconf,automake,bison,gnulib
66100         --gnulib-snapshot-date=DATE
66101               if gnulib is in the bootstrap tool list,
66102               then report this as the snapshot date.
66103               If not specified, use the current date/time.
66104               If you specify a date here, be sure it's UTC.
66105
66106 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66107
66108         * tests/test-argp-2.sh: Fix test to match actual output.
66109         (func_compare): Fix sed script to be portable.
66110
66111 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66112
66113         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66114         workaround for this case.  It is not autoconfigured now; offhand
66115         it's hard to see how to autoconfigure it.
66116
66117 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66118
66119         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66120         a directory that is about to be chowned.  Such a directory's
66121         initial file permissions should permit the owner only and this
66122         should not be changed until after the chown, since the group and
66123         other bits would be incorrect if they granted permission before
66124         the chown.
66125
66126         Fix porting problem for iswctype reported by Georg Schwarz in:
66127         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66128         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66129         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66131         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66132
66133 2006-12-03  Jim Meyering  <jim@meyering.net>
66134
66135         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66136         p->fts_statp may not yet be defined.
66137         (fts_read): Instead, set it in the caller, once p->fts_statp is
66138         sure to be defined, and corresponds to a top-level directory.
66139         This bug made du -x fail.  Here's the coreutils test case:
66140         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66141         Reported by Mike Frysinger.
66142
66143 2006-12-01  Jim Meyering  <jim@meyering.net>
66144
66145         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66146         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66147         Reported by Simon Josefsson.
66148
66149 2006-11-30  Jim Meyering  <jim@meyering.net>
66150
66151         * m4/warning.m4: Use the all-permissive copyright notice
66152         recommended by RMS (rather than LGPL).
66153         * m4/vararrays.m4: Likewise.
66154         * m4/flexmember.m4: Likewise.
66155
66156 2006-11-29  Bruno Haible  <bruno@clisp.org>
66157
66158         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66159         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66160         using +=.
66161         Reported by Simon Josefsson <simon@josefsson.org>.
66162
66163 2006-11-28  James Youngman <jay@gnu.org>
66164
66165         * README: Advise users that they might find the bug-gnulib@gnu.org
66166         and autotools-announce@gnu.org mailing lists useful.
66167
66168 2006-11-28  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/ptrdiff_max.m4: Remove file.
66171
66172 2006-11-21  Bruno Haible  <bruno@clisp.org>
66173
66174         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66175         _AC_COMPUTE_INT.
66176         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66177         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66178         _AC_COMPUTE_INT.
66179         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66180         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66181         _AC_COMPUTE_INT.
66182         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66183
66184 2006-11-28  Jim Meyering  <jim@meyering.net>
66185
66186         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66187         warning from "gcc -Wshadow" about shadowing the builtin.
66188
66189 2006-11-27  Bruno Haible  <bruno@clisp.org>
66190
66191         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66192         _AC_COMPUTE_INT.
66193         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66194
66195 2006-11-27  Bruno Haible  <bruno@clisp.org>
66196             Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66199
66200 2006-11-26  Bruno Haible  <bruno@clisp.org>
66201
66202         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66203         noinst_LTLIBRARIES.
66204
66205 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66206             Bruno Haible  <bruno@clisp.org>
66207
66208         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66209         if compiling with "gcc -ansi".
66210
66211 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66212
66213         Fix some incompatibilities with gcc -ansi -pedantic.
66214         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66215         if compiling pedantically with GCC, unless it's C99 or later.
66216         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66217         it mishandles gcc -ansi -pedantic as well.
66218         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66219         if gcc -pedantic.
66220         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66221         initializers for struct if -pedantic, unless it's C99 or later.
66222
66223 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66224
66225         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66226         Don't close an fd more than once. Identical atimes indicate
66227         success, not failure.
66228
66229 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66230
66231         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66232
66233 2006-11-23  Jim Meyering  <jim@meyering.net>
66234
66235         * build-aux/announce-gen: New file.  From coreutils.
66236
66237 2006-11-22  Jim Meyering  <jim@meyering.net>
66238
66239         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66240         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66241         (fts_read): Use a temporary to narrow the overused st_size member
66242         before using it in a switch statement.  Reported by Matthew Woehlke.
66243
66244         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66245         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66246
66247 2006-11-20  Bruno Haible  <bruno@clisp.org>
66248
66249         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66250         changequote instead of pairs of brackets.
66251         Reported by Andreas Schwab <schwab@suse.de>.
66252
66253 2006-11-21  Jim Meyering  <jim@meyering.net>
66254
66255         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66256         so as to remain compatible with older compilers.
66257         Patch from Michael Deutschmann.
66258
66259 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * MODULES.html.sh (File system functions): Add openat.
66262
66263         * lib/openat.h (rpl_fstatat): New macro, if
66264         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66265         (fstatat): Define to rpl_fstatat under the same conditions,
66266         unless COMPILING_FSTATAT.
66267         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66268         seems to have the bug.
66269         * lib/fstatat.c: New file.
66270         * modules/openat (Files): Add it.
66271
66272 2006-11-20  Bruno Haible  <bruno@clisp.org>
66273
66274         * Makefile: New file.
66275
66276 2006-11-20  Jim Meyering  <jim@meyering.net>
66277
66278         The beginnings of syntax-related checks for gnulib.
66279         * lib/Makefile: New file.
66280         * lib/t-idcache: New script.  Ensure that the two halves of
66281         idcache.c stay in sync.
66282
66283         * lib/idcache.c: Adjust comments in user- and group- portions to
66284         be more accurate, and to be consistent with one another.
66285
66286 2006-11-20  Jim Meyering  <jim@meyering.net>
66287
66288         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66289         continue using the flexible array member (thus, this module performs
66290         half as many malloc calls), with the addition that...
66291         (getgroup, getuser): Consistently record a non-match via an empty
66292         "name" string, and map an empty string match to a NULL return value.
66293         * modules/idcache (Depends-on): Re-add flexmember.
66294
66295         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66296         (getuidbyname, getgroup, getgidbyname): Likewise.
66297
66298         Use cleaner syntax: NULL rather than 0.
66299         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66300
66301 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66304         It mishandled the case where the group was missing.
66305         Problem reported by Greg Schafer.
66306         * modules/idcache: Likewise.
66307
66308 2006-11-18  Jim Meyering  <jim@meyering.net>
66309
66310         * check-module (%exempt_header): Add exception for some
66311         conditionally-included headers.
66312
66313         * modules/i-ring (Depends-on): Add verify.
66314         (License): Change to LGPL.
66315
66316 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66319         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66320         and inttostr.h.  Use snprintf rather than uinttostr, so that
66321         LGPLed code doesn't depend on GPLed.
66322
66323 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * modules/inline (License): Change from GPL to LGPL.
66326
66327 2006-11-17  Jim Meyering  <jim@meyering.net>
66328
66329         * modules/d-type (License): Switch to LGPL.
66330
66331 2006-11-15  Bruno Haible  <bruno@clisp.org>
66332
66333         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66334
66335 2006-11-15  Eric Blake  <ebb9@byu.net>
66336
66337         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66338         the module dependency.
66339
66340 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66341             Bruno Haible  <bruno@clisp.org>
66342
66343         * gnulib-tool (func_create_testdir): Add license consistency check.
66344
66345 2006-11-15  Eric Blake  <ebb9@byu.net>
66346
66347         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66348         random "(cached)" in configure output.
66349
66350 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66351
66352         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66353         test for conforming inttypes.h is both announced and cached.
66354
66355         * MODULES.html.sh (seen_modules, seen_files): New variables.
66356         (func_module): Rewrite to use a few less gnulib-tool and sed
66357         invocations.  Avoid a couple of quadratic algorithms for ...
66358         (missed_modules, missed_files): ... these, with ...
66359         (func_append, func_tmpdir): ... these new functions, from
66360         gnulib-tool.  Analogously, install traps for cleanup.
66361
66362         * tests/test-gc.c (main): Remove unused variables.
66363         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66364
66365 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * modules/inttostr (License): Change to LGPL.
66368
66369 2006-11-14  Eric Blake  <ebb9@byu.net>
66370
66371         * modules/tempname (License): Change to LGPL.
66372
66373 2006-11-14  Eric Blake  <ebb9@byu.net>
66374
66375         * doc/functions.texi (Function Portability): *printf functions on
66376         Cygwin now understand all POSIX size specifiers.
66377
66378 2006-11-14  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/c-ctype (License): Change to LGPL.
66381
66382 2006-11-12  Bruno Haible  <bruno@clisp.org>
66383
66384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66385         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66386         for GNOME libraries, for which the include files are installed in
66387         subdirectories of $prefix/include.
66388
66389 2006-11-12  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/lib-link.m4: Require at least autoconf-2.54.
66392         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66393         name to underscores for the --with option.
66394
66395 2006-11-13  Bruno Haible  <bruno@clisp.org>
66396
66397         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66398         the tests directory.
66399         Reported by Ralf Wildenhues.
66400
66401 2006-11-13  Bruno Haible  <bruno@clisp.org>
66402
66403         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66404         (func_emit_initmacro_end): Undo the override here.
66405         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66406         Works around the famous automake error in coreutils.
66407
66408 2006-11-13  Eric Blake  <ebb9@byu.net>
66409
66410         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66411         element, not its node.
66412
66413 2006-11-12  Bruno Haible  <bruno@clisp.org>
66414
66415         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66416         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66417
66418 2006-11-12  Bruno Haible  <bruno@clisp.org>
66419
66420         * gnulib-tool: New option --local-symlink.
66421         (func_usage): Document it.
66422         (lsymbolic): New variable.
66423         (func_import, func_create_testdir): If --symlink was not specified,
66424         test whether --local-symlink was specified and the file comes from
66425         the local_gnulib_dir.
66426
66427 2006-11-12  Bruno Haible  <bruno@clisp.org>
66428
66429         * gnulib-tool (func_ln): New function.
66430         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66431
66432 2006-11-12  Bruno Haible  <bruno@clisp.org>
66433
66434         Finish support for source files in subdirectories.
66435         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66436         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66437         AUTOMAKE_OPTIONS.
66438         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66439
66440 2006-11-12  Bruno Haible  <bruno@clisp.org>
66441
66442         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66443         EXTRA_lib_SOURCES augmentation.
66444         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66445
66446 2006-11-12  Jim Meyering  <jim@meyering.net>
66447
66448         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66449         file descriptors.  This also averts a failure on systems with
66450         native openat support when a traversed directory lacks "x" access.
66451         * lib/fts_.h: Include "i-ring.h"
66452         (struct FTS) [fts_fd_ring]: New member.
66453         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66454         (FCHDIR): Add parentheses.
66455         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66456         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66457         When descending, rather than simply closing the previous
66458         fts_cwd_fd value, push that file descriptor onto the ring.
66459         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66460         (fts_open): Initialize the new fd_ring member.
66461         (fts_close): Clear the ring.
66462         (fts_safe_changedir): When possible, use our new fd_ring to skip
66463         the diropen and fstat and dev/ino comparison that would normally
66464         accompany a virtual `chdir ("..")'.
66465
66466         * modules/fts (Depends-on): Add i-ring.
66467         * modules/i-ring: New module.
66468         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66469         * m4/i-ring.m4: New file.
66470
66471 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66472
66473         * gnulib-tool (func_create_testdir): Fix replacement of
66474         `build-aux' in configure.ac.  Run autotools in gltests
66475         subdirectory.
66476         (func_create_testdir, func_create_megatestdir, test): There is
66477         no need for '--force' in most autotool invocations in a new
66478         tree.  Actually fail the whole test if any of the tools, or the
66479         configure or make stages fail.
66480
66481         Sync from Automake.
66482         * build-aux/gnupload: Revert last change.  Add pointer to upload
66483         instructions of the GNU Maintenance Instructions.
66484         Suggestion by Karl Berry.
66485
66486 2006-11-10  Jim Meyering  <jim@meyering.net>
66487
66488         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66489
66490 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66491
66492         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66493         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66494         (bind_textdomain_codeset) [! ENABLE_NLS]:
66495         Evaluate all the arguments.  That way, callers get compatible behavior
66496         if the arguments have side effects.  Also, it avoids some GCC
66497         diagnostics in some cases; Joel E. Denny reported problems when Bison
66498         was configured with --enable-gcc-warnigs.
66499
66500 2006-11-10  Jim Meyering  <jim@meyering.net>
66501
66502         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66503         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66504         account.
66505
66506 2006-11-10  Jim Meyering  <jim@meyering.net>
66507
66508         * modules/inline: New file/module.
66509         * modules/xalloc (Files): Remove m4/inline.m4.
66510         (Depends-on): Add inline, instead.
66511         * modules/oset: Likewise.
66512         * modules/list: Likewise.
66513
66514 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66517         Problem reported by Matthew Woehlke.
66518
66519 2006-11-09  Bruno Haible  <bruno@clisp.org>
66520
66521         * lib/tempname.c (gen_tempname): Remove variant that invokes
66522         __gen_tempname.
66523         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66524         __gen_tempname.
66525
66526 2006-11-08  Bruno Haible  <bruno@clisp.org>
66527
66528         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66529         to 'yes' instead of 'cross-compiling'.
66530
66531 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * lib/quotearg.h (quotearg_free): New decl.
66534         * lib/quotearg.c (quotearg_free): New function.
66535         (slot0, nslots, slotvec0, slotvec):
66536         Now file-scope so that quotearg_free can get at them.
66537
66538 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66539
66540         Sync from Automake.
66541         * build-aux/gnupload: Add missing 'gnu' to example URL.
66542         Report by Karl Berry.
66543
66544 2006-11-08  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66547         Suggested by Paul Eggert.
66548
66549 2006-11-08  Jim Meyering  <jim@meyering.net>
66550
66551         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66552         It's already included if !_LIBC.
66553         (fts_safe_changedir): Add a comment.
66554
66555 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66558         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66559         Matthew Woehlke.
66560
66561         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66562         definitions up, to avoid colliding with change below.
66563         (static_inline) [HAVE_INLINE]: New macro.
66564         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66565         Provide extern decls when !HAVE_INLINE.  Do not define unless
66566         static_inline is defined, either by us or by xmalloc.c.  Use
66567         static_inline rather than static inline.
66568         (XCALLOC): Optimize sizeof(T) = 1 case.
66569         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66570
66571 2006-11-07  Bruno Haible  <bruno@clisp.org>
66572
66573         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66574         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66575         AC_C_INLINE.
66576         * modules/xalloc (Files): Add m4/inline.m4.
66577
66578 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66579
66580         * README: Fix typo.
66581         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66582         (Miscellanous Notes): ...from this.
66583
66584 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66585
66586         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66587         Mention that offsetof should be used instead of sizeof.
66588         From Bruno Haible.
66589
66590 2006-11-07  Bruno Haible  <bruno@clisp.org>
66591
66592         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66593
66594 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66597         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66598         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66599         (gl_tree_add_before, gl_tree_add_after):
66600         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66601         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66602         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66603         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66604         (gl_linked_add_after, gl_linked_add_at): Likewise.
66605         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66606         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66607         (gl_tree_add_before, gl_tree_add_after): Likewise.
66608         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66609         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66610         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66611
66612 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66613
66614         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66615
66616 2006-11-06  Bruno Haible  <bruno@clisp.org>
66617
66618         * m4/inline.m4: New file.
66619         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66620         * modules/list (Files): Add m4/inline.m4.
66621         * modules/oset (Files): Likewise.
66622
66623 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         * lib/idcache.c: Include <stddef.h>, for offsetof.
66626         (struct userid.name): Change from char * to a flexible array member.
66627         All uses changed.
66628         * modules/idcache (Depends-on): Add flexmember.
66629
66630         * MODULES.html.sh (Core language properties): New module flexmember.
66631         * modules/flexmember, m4/flexmember.m4: New files.
66632
66633         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66634         inline functions that are identical with the old xnmalloc_inline,
66635         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66636         that we can avoid some unnecessary integer multiplications and
66637         divisions in the common case where the element size is known at
66638         compile time.
66639         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66640         needed.
66641         (xnboundedmalloc): Remove.
66642         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66643         arguments, for consistency with rest of this header.
66644         (xcharalloc): Rewrite using XNMALLOC.
66645         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66646         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66647         versions have been moved to lib/xalloc.h and renamed to be the
66648         non-*_inline versions.
66649         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66650         and xnrealloc functions, since those functions are now inline and
66651         now call us.
66652         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66653         renaming described above.
66654         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66655         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66656         captures the dependency in AC_C_INLINE.
66657
66658         New module canonicalize-lgpl, proposed by Charles Wilson in
66659         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66660         with a few small changes afterwards.
66661         * MODULES.html.sh (File system functions): New module
66662         canonicalize-lgpl.
66663         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66664         and canonicalize_file_name.
66665         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66666         * modules/canonicalize-lgpl: New files.
66667
66668 2006-11-05  Bruno Haible  <bruno@clisp.org>
66669
66670         * gnulib-tool (func_import, func_create_testdir): Create directories
66671         also for files in subdirectories of lib/.
66672
66673 2006-11-05  Bruno Haible  <bruno@clisp.org>
66674
66675         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66676         ANSI C compliant.
66677
66678 2006-11-03  Bruno Haible  <bruno@clisp.org>
66679
66680         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66681         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66682         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66683         (xnboundedmalloc): New inline function.
66684         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66685         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66686         xmalloc.
66687         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66688         xmalloc.
66689         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66690         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66691         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66692         xmalloc.
66693         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66694         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66695         xmalloc.
66696         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66697         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66698         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66699         xmalloc.
66700         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66701         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66702         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66703         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66704         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66705         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66706         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66707
66708 2006-11-03  Bruno Haible  <bruno@clisp.org>
66709
66710         * lib/c-ctype.h [C++]: Define functions without name mangling.
66711         * lib/fwriteerror.h [C++]: Likewise.
66712         * lib/gcd.h [C++]: Likewise.
66713         * lib/linebreak.h [C++]: Likewise.
66714
66715 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66718         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66719         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66720         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66721         Check for functions and headers just once.
66722         Check for declaration of canonicalize_file_name.
66723         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66724
66725 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66726
66727         * gnulib-tool (func_import): Fix typo in actioncmd.
66728
66729 2006-11-02  Bruno Haible  <bruno@clisp.org>
66730
66731         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66732         newline sequence in the Makefile.am snippet as a space, like "make"
66733         does.
66734         Reported by Roger Persson <perrog@gmail.com>.
66735
66736 2006-11-01  Bruno Haible  <bruno@clisp.org>
66737
66738         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66739         already declared in <string.h>.
66740         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66741
66742 2006-11-01  Bruno Haible  <bruno@clisp.org>
66743
66744         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66745         * lib/strcase.h: Include <string.h>.
66746         (strcasecmp): Define to rpl_strcasecmp here.
66747
66748 2006-11-01  Bruno Haible  <bruno@clisp.org>
66749
66750         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66751
66752 2006-11-01  Eric Blake  <ebb9@byu.net>
66753
66754         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66755
66756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66757
66758 2006-10-29  Bruno Haible  <bruno@clisp.org>
66759
66760         Make it compile in C++ mode.
66761         * lib/full-write.c (full_rw): Add a cast.
66762
66763 2006-11-01  Bruno Haible  <bruno@clisp.org>
66764
66765         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66766         be POSIX compliant.
66767         Reported by Roger Persson <perrog@gmail.com>.
66768
66769 2006-11-01  Eric Blake  <ebb9@byu.net>
66770
66771         * lib/getopt_.h: Fix comments.
66772
66773 2006-10-31  Eric Blake  <ebb9@byu.net>
66774
66775         * modules/tmpdir (Depends-on): Add sys_stat.
66776         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66777         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66778         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66779         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66780         tempname.
66781
66782 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         Avoid some C++ diagnostics reported by Bruno Haible.
66785         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66786         xmalloc.
66787         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66788         (struct slotvec): Move to top level.
66789         (quotearg_n_options): Rewrite to avoid xmalloc.
66790         * lib/xalloc.h (xcharalloc): New function.
66791         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66792         [defined __cplusplus]: Add function template that provides result
66793         type propagation.  This part of the change is from Bruno Haible.
66794
66795 2006-10-29  Bruno Haible  <bruno@clisp.org>
66796
66797         Make it compile in C++ mode.
66798         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66799         * lib/strnlen1.c (strnlen1): Cast memchr result.
66800         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66801         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66802         (create_temp_dir): Rename local variable 'template'.
66803         (compile_csharp_using_sscli): Add cast.
66804         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66805         * lib/findprog.c (find_in_path): Likewise.
66806         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66807         * lib/wait-process.c (register_slave_subprocess): Likewise.
66808
66809 2006-10-22  Bruno Haible  <bruno@clisp.org>
66810
66811         * modules/tsearch: New file.
66812         * lib/tsearch.h: New file.
66813         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66814         * m4/tsearch.m4: New file.
66815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66816
66817 2006-10-29  Eric Blake  <ebb9@byu.net>
66818
66819         * lib/arcfour.c: Assume config.h.
66820         * lib/arctwo.c: Likewise.
66821         * lib/base64.c: Likewise.
66822         * lib/check-version.c: Likewise.
66823         * lib/crc.c: Likewise.
66824         * lib/des.c: Likewise.
66825         * lib/gc-gnulib.c: Likewise.
66826         * lib/gc-libgcrypt.c: Likewise.
66827         * lib/gc-pbkdf2-sha1.c: Likewise.
66828         * lib/getaddrinfo.c: Likewise.
66829         * lib/getdelim.c: Likewise.
66830         * lib/getline.c: Likewise.
66831         * lib/hmac-md5.c: Likewise.
66832         * lib/hmac-sha1.c: Likewise.
66833         * lib/iconvme.c: Likewise.
66834         * lib/md2.c: Likewise.
66835         * lib/md4.c: Likewise.
66836         * lib/memxor.c: Likewise.
66837         * lib/read-file.c: Likewise.
66838         * lib/readline.c: Likewise.
66839         * lib/rijndael-alg-fst.c: Likewise.
66840         * lib/rijndael-api-fst.c: Likewise.
66841         * lib/xgetdomainname.c: Likewise.
66842
66843 2006-10-28  Eric Blake  <ebb9@byu.net>
66844
66845         * lib/xstrndup.c: Assume config.h.
66846
66847 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66850         stat-macros.h is now for our own macros, whereas stat_h is for
66851         macros in the <sys/stat.h> name space.
66852         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66853         (STAT_MACROS_H): Remove.
66854         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66855         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66856         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66857         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66858         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66859         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66860         Move these macros to ...
66861         * lib/stat_.h: here.  Don't include stat-macros.h.
66862         * lib/canonicalize.c: Don't include stat-macros.h.
66863         * lib/chown.c: Likewise.
66864         * lib/euidaccess.c: Likewise.
66865         * lib/file-type.c: Likewise.
66866         * lib/filemode.c: Likewise.
66867         * lib/glob.c: Likewise.
66868         * lib/isapipe.c: Likewise.
66869         * lib/lchown.c: Likewise.
66870         * lib/lstat.c: Likewise.
66871         * lib/mkdir-p.c: Likewise.
66872         * lib/rmdir.c: Likewise.
66873         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66875         unless mkdir isn't declared, to speed up 'configure'.
66876         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66877         would define all the S_* symbols.
66878         * modules/canonicalize (Depends-on):
66879         Depend on sys_stat, not stat-macros.
66880         * modules/chown: Likewise.
66881         * modules/euidaccess: Likewise.
66882         * modules/filemode: Likewise.
66883         * modules/file-type: Likewise.
66884         * modules/glob: Likewise.
66885         * modules/isapipe: Likewise.
66886         * modules/lchown: Likewise.
66887         * modules/lstat: Likewise.
66888         * modules/mkancesdirs: Likewise.
66889         * modules/rmdir: Likewise.
66890         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66891         * modules/modechange: Likewise.
66892         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66893         (configure.ac): Remove gl_STAT_MACROS.
66894         * modules/sys_stat (Depends-on): Remove stat-macros.
66895
66896 2006-10-27  Bruno Haible  <bruno@clisp.org>
66897
66898         * m4/signed.m4: Remove file.
66899         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66900         invocation.
66901         * modules/vasnprintf (Files): Remove m4/signed.m4.
66902
66903 2006-10-27  Bruno Haible  <bruno@clisp.org>
66904
66905         Update to GNU gettext 0.16.
66906         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66907         m4/inttypes-h.m4, m4/signed.m4.
66908         * m4/gettext.m4: Update to GNU gettext 0.16.
66909         * m4/intl.m4: New file, from GNU gettext.
66910         * m4/intldir.m4: New file, from GNU gettext.
66911         * config/srclist.txt: Update
66912
66913 2006-10-27  Eric Blake  <ebb9@byu.net>
66914
66915         * MODULES.html.sh: Document tempname.
66916         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66917         dependencies.
66918         (Files): Move lib/tempname.c...
66919         * modules/tempname: ...to this new module.
66920         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66921         (gl_PREREQ_TEMPNAME): Move...
66922         * m4/tempname.m4: ...to this new file.
66923         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66924         * modules/sys_stat (Depends-on): Add stat-macros.
66925         * lib/stat_.h (includes): Pick up stat macros.
66926         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66927         if stat macros are broken.
66928         * lib/tempname.c (includes): No need to include "stat-macros.h".
66929         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66930         (direxists, __path_search) [!_LIBC]: Don't compile these in
66931         gnulib; the tmpdir module covers that.
66932         * lib/tempname.h: New file.
66933
66934 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * COPYING: Explain how gnulib-tool converts licence headers.
66937         Almost all wording by Eric Blake.
66938
66939 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * lib/mbchar.h (is_basic_table): Make read-only.
66942         * lib/mbchar.c (is_basic_table): Likewise.
66943         Reported by John Darrington.
66944
66945 2006-10-25  Bruno Haible  <bruno@clisp.org>
66946
66947         * lib/progname.h (set_program_name): Undefine before defining.
66948
66949 2006-10-25  Bruno Haible  <bruno@clisp.org>
66950
66951         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66952         false for non-gcc C++ compilers.
66953         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66954
66955 2006-10-24  Bruno Haible  <bruno@clisp.org>
66956
66957         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66958         iconv implementations like Irix iconv.
66959
66960 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66961
66962         * modules/vararrays: New file.
66963         * m4/vararrays.m4: New file, taken from diffutils.
66964         * MODULES.html.sh: New module vararrays.
66965
66966 2006-10-24  Karl Berry  <karl@gnu.org>
66967
66968         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66969         Don't call GNU Unix.
66970
66971 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66972
66973         * users.txt: Add Libtool.
66974
66975         Sync from Libtool:
66976
66977         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66980         to gnulib's policy of including config.h unconditionally.
66981
66982 2006-10-24  Bruno Haible  <bruno@clisp.org>
66983
66984         * modules/wcwidth (Files): Add m4/wint_t.m4.
66985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66986         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66987
66988 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66989
66990         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66991         to pacify GCC with some -W flags enabled.  Problem reported by
66992         Bruno Haible.
66993
66994 2006-10-24  Jim Meyering  <jim@meyering.net>
66995
66996         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66997         Reported by Karl Berry.
66998
66999 2006-10-23  Bruno Haible  <bruno@clisp.org>
67000
67001         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67002
67003 2006-10-24  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/gl_list.h: Use C comment style, not C++ comment style.
67006
67007 2006-10-23  Eric Blake  <ebb9@byu.net>
67008
67009         * lib/getaddrinfo.c (includes): Add missing include.
67010
67011 2006-10-23  Bruno Haible  <bruno@clisp.org>
67012             Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         Ability to rename obstack_free.
67015         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67016         obstack_free.
67017         (obstack_free): Invoke the __obstack_free macro.
67018         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67019
67020 2006-10-23  Bruno Haible  <bruno@clisp.org>
67021             Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67024         __argc, __argv from the declaration. (They are defined as macros on
67025         mingw.)
67026
67027 2006-10-22  Bruno Haible  <bruno@clisp.org>
67028
67029         * doc/gnulib-intro.texi: New file.
67030         * doc/gnulib.texi: Include it.
67031
67032 2006-10-21  Bruno Haible  <bruno@clisp.org>
67033
67034         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67035         "Introduction", "Miscellanous Notes", "Particular Modules".
67036
67037 2006-10-21  Bruno Haible  <bruno@clisp.org>
67038
67039         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67040         Change mostlyclean-local rule to avoid sh syntax error from bash
67041         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67042
67043 2006-10-23  Jim Meyering  <jim@meyering.net>
67044
67045         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67046         in place of snprintf.
67047
67048         * modules/inttostr (Files): Add lib/uinttostr.c.
67049         * lib/uinttostr.c (inttostr): New file/function.
67050         * lib/inttostr.h (uinttostr): Declare.
67051         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67052         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67053         Add uinttostr.
67054         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67055
67056 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         * lib/canonicalize.c (ELOOP): Define if not already defined.
67059         Problem reported by Bruno Haible in
67060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67061
67062 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67065         Problem reported by Perry Smith and Ville Laurikari.
67066
67067         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67068         uses.
67069
67070 2006-10-19  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67073         for mingw.
67074
67075 2006-10-19  Bruno Haible  <bruno@clisp.org>
67076
67077         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67078         Needed for mingw.
67079
67080 2006-10-19  Bruno Haible  <bruno@clisp.org>
67081
67082         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67083
67084 2006-10-19  Bruno Haible  <bruno@clisp.org>
67085
67086         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67087         it.
67088
67089 2006-10-19  Bruno Haible  <bruno@clisp.org>
67090
67091         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67092         invocation.
67093
67094 2006-10-19  Bruno Haible  <bruno@clisp.org>
67095
67096         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67097         mountlist by default.
67098
67099 2006-10-16  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/c-strstr.c: Include c-strstr.h.
67102
67103 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67104
67105         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67106         in a slash.
67107
67108 2006-10-18  Bruno Haible  <bruno@clisp.org>
67109
67110         * lib/lock.h [C++]: Wrap definitions in extern "C".
67111
67112 2006-10-18  Bruno Haible  <bruno@clisp.org>
67113
67114         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67115         gl_LIBOBJS list.
67116
67117 2006-10-18  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67120
67121 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67122
67123         * lib/xstrtol.h: Include gettext.h.
67124         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67125         Problem reported by Eric Blake.
67126         * modules/xstrtol (Depends-on): Add gettext-h.
67127
67128 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67129
67130         * lib/strftime.c (advance): New macro.
67131         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67132         incomplete type, so you can't add 0 to it.  Problem and patch
67133         reported by Eelco Dolstra for dietlibc.
67134
67135 2006-10-18  Jim Meyering  <jim@meyering.net>
67136
67137         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67138         type for a local, and rename it: s/up/user_proc/.
67139
67140 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67141
67142         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67143         READ_UTMP_USER_PROCESS.
67144         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67145
67146 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67147
67148         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67149         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67150
67151 2006-10-17  Eric Blake  <ebb9@byu.net>
67152
67153         * lib/sigprocmask.c (sigprocmask): Fix typo.
67154
67155         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67156
67157         * modules/clean-temp (Makefile.am): Don't add to make output...
67158         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67159         config.h.
67160
67161 2006-10-17  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67164         differently if DEFAULT_TEXT_DOMAIN is set.
67165
67166 2006-10-16  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/clean-temp.c: Include fwriteerror.h.
67169
67170 2006-10-16  Bruno Haible  <bruno@clisp.org>
67171
67172         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67173
67174 2006-10-16  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67177         * lib/sigprocmask.h: Include <sys/types.h>.
67178         (sigset_t): Use the system's definition if present.
67179
67180 2006-10-17  Eric Blake  <ebb9@byu.net>
67181
67182         * lib/xvasprintf.c (includes): Assume config.h.
67183         * lib/xasprintf.c (includes): Likewise.
67184
67185 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67186
67187         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67188         at least as wide as intmax_t.
67189
67190 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67191
67192         (Imported from Automake.)
67193         * build-aux/gnupload: Update to version 1.1 of directive file.
67194
67195 2006-10-16  Eric Blake  <ebb9@byu.net>
67196
67197         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67198         match Automake 1.10a.
67199
67200 2006-10-14  Bruno Haible  <bruno@clisp.org>
67201
67202         * modules/sigprocmask: New file.
67203         * lib/sigprocmask.h: New file.
67204         * lib/sigprocmask.c: New file.
67205         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67206         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67207         request sigprocmask.o.
67208         (gl_PREREQ_SIGPROCMASK): New macro.
67209         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67210         (Depends-on): Add sigprocmask.
67211         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67212         gt_SIGNALBLOCKING. Test for 'raise' only once.
67213         * lib/fatal-signal.c: Include sigprocmask.h.
67214         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67215         unblock_fatal_signals): Define always.
67216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67217         sigprocmask.
67218
67219 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         Sync from Automake.
67222         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67223         which incorrectly sets the mode of an existing destination
67224         directory.  In some cases the unpatched install-sh could do the
67225         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67226         system.  We hope this is rare in practice, but it's clearly worth
67227         fixing.  Problem reported by Alex Unleashed in
67228         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67229         Also, don't bother to check for -m bugs unless we're using -m;
67230         suggested by Stepan Kasal.
67231
67232 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67233
67234         Sync from Automake.
67235         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67236         `-c' flag, so they appear at the same position as in %FASTDEP%
67237         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67238         which ignores unknown options only after the first non-option.
67239         Bug report against M4 by Nelson H. F. Beebe.
67240
67241 2006-10-13  Jim Meyering  <jim@meyering.net>
67242
67243         Fix a bug in yesterday's change.
67244         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67245         p->fts_statp->st_dev would be used uninitialized.
67246         Ensures that we always call fts_stat on the very first entry.
67247         Miklos Szeredi reported that find -xdev stopped working.
67248
67249 2006-10-12  Bruno Haible  <bruno@clisp.org>
67250
67251         * gnulib-tool (func_get_automake_snippet): Append an automatically
67252         computed EXTRA_DIST augmentation.
67253         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67254         * modules/alloca-opt (Makefile.am): Likewise.
67255         * modules/allocsa (Makefile.am): Likewise.
67256         * modules/arcfour (Makefile.am): Likewise.
67257         * modules/arctwo (Makefile.am): Likewise.
67258         * modules/argmatch (Makefile.am): Likewise.
67259         * modules/argz (Makefile.am): Likewise.
67260         * modules/atexit (Makefile.am): Likewise.
67261         * modules/backupfile (Makefile.am): Likewise.
67262         * modules/byteswap (Makefile.am): Likewise.
67263         * modules/c-strtod (Makefile.am): Likewise.
67264         * modules/c-strtold (Makefile.am): Likewise.
67265         * modules/calloc (Makefile.am): Likewise.
67266         * modules/canon-host (Makefile.am): Likewise.
67267         * modules/canonicalize (Makefile.am): Likewise.
67268         * modules/chdir-long (Makefile.am): Likewise.
67269         * modules/chdir-safer (Makefile.am): Likewise.
67270         * modules/check-version (Makefile.am): Likewise.
67271         * modules/chown (Makefile.am): Likewise.
67272         * modules/cloexec (Makefile.am): Likewise.
67273         * modules/close-stream (Makefile.am): Likewise.
67274         * modules/closeout (Makefile.am): Likewise.
67275         * modules/crc (Makefile.am): Likewise.
67276         * modules/csharpexec (Makefile.am): Likewise.
67277         * modules/cycle-check (Makefile.am): Likewise.
67278         * modules/des (Makefile.am): Likewise.
67279         * modules/dev-ino (Makefile.am): Likewise.
67280         * modules/dirfd (Makefile.am): Likewise.
67281         * modules/dirname (Makefile.am): Likewise.
67282         * modules/dup2 (Makefile.am): Likewise.
67283         * modules/eealloc (Makefile.am): Likewise.
67284         * modules/error (Makefile.am): Likewise.
67285         * modules/euidaccess (Makefile.am): Likewise.
67286         * modules/exclude (Makefile.am): Likewise.
67287         * modules/exitfail (Makefile.am): Likewise.
67288         * modules/fcntl-safer (Makefile.am): Likewise.
67289         * modules/fcntl (Makefile.am): Likewise.
67290         * modules/file-type (Makefile.am): Likewise.
67291         * modules/fileblocks (Makefile.am): Likewise.
67292         * modules/filemode (Makefile.am): Likewise.
67293         * modules/filenamecat (Makefile.am): Likewise.
67294         * modules/fnmatch (Makefile.am): Likewise.
67295         * modules/fopen-safer (Makefile.am): Likewise.
67296         * modules/fpending (Makefile.am): Likewise.
67297         * modules/fprintftime (Makefile.am): Likewise.
67298         * modules/free (Makefile.am): Likewise.
67299         * modules/fsusage (Makefile.am): Likewise.
67300         * modules/ftruncate (Makefile.am): Likewise.
67301         * modules/fts (Makefile.am): Likewise.
67302         * modules/gc-arcfour (Makefile.am): Likewise.
67303         * modules/gc-des (Makefile.am): Likewise.
67304         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67305         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67306         * modules/gc-md4 (Makefile.am): Likewise.
67307         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67308         * modules/gc-sha1 (Makefile.am): Likewise.
67309         * modules/gc (Makefile.am): Likewise.
67310         * modules/getaddrinfo (Makefile.am): Likewise.
67311         * modules/getcwd (Makefile.am): Likewise.
67312         * modules/getdelim (Makefile.am): Likewise.
67313         * modules/getdomainname (Makefile.am): Likewise.
67314         * modules/getgroups (Makefile.am): Likewise.
67315         * modules/gethostname (Makefile.am): Likewise.
67316         * modules/gethrxtime (Makefile.am): Likewise.
67317         * modules/getline (Makefile.am): Likewise.
67318         * modules/getloadavg (Makefile.am): Likewise.
67319         * modules/getlogin_r (Makefile.am): Likewise.
67320         * modules/getndelim2 (Makefile.am): Likewise.
67321         * modules/getopt (Makefile.am): Likewise.
67322         * modules/getpagesize (Makefile.am): Likewise.
67323         * modules/getpass-gnu (Makefile.am): Likewise.
67324         * modules/getpass (Makefile.am): Likewise.
67325         * modules/getsubopt (Makefile.am): Likewise.
67326         * modules/gettime (Makefile.am): Likewise.
67327         * modules/gettimeofday (Makefile.am): Likewise.
67328         * modules/getugroups (Makefile.am): Likewise.
67329         * modules/getusershell (Makefile.am): Likewise.
67330         * modules/glob (Makefile.am): Likewise.
67331         * modules/group-member (Makefile.am): Likewise.
67332         * modules/hard-locale (Makefile.am): Likewise.
67333         * modules/hash (Makefile.am): Likewise.
67334         * modules/hmac-md5 (Makefile.am): Likewise.
67335         * modules/hmac-sha1 (Makefile.am): Likewise.
67336         * modules/human (Makefile.am): Likewise.
67337         * modules/idcache (Makefile.am): Likewise.
67338         * modules/imaxabs (Makefile.am): Likewise.
67339         * modules/imaxdiv (Makefile.am): Likewise.
67340         * modules/inet_ntop (Makefile.am): Likewise.
67341         * modules/inet_pton (Makefile.am): Likewise.
67342         * modules/intprops (Makefile.am): Likewise.
67343         * modules/inttostr (Makefile.am): Likewise.
67344         * modules/inttypes (Makefile.am): Likewise.
67345         * modules/isapipe (Makefile.am): Likewise.
67346         * modules/javaversion (Makefile.am): Likewise.
67347         * modules/lchmod (Makefile.am): Likewise.
67348         * modules/lchown (Makefile.am): Likewise.
67349         * modules/localcharset (Makefile.am): Likewise.
67350         * modules/long-options (Makefile.am): Likewise.
67351         * modules/lstat (Makefile.am): Likewise.
67352         * modules/malloc (Makefile.am): Likewise.
67353         * modules/mathl (Makefile.am): Likewise.
67354         * modules/mbchar (Makefile.am): Likewise.
67355         * modules/md2 (Makefile.am): Likewise.
67356         * modules/md4 (Makefile.am): Likewise.
67357         * modules/md5 (Makefile.am): Likewise.
67358         * modules/memcasecmp (Makefile.am): Likewise.
67359         * modules/memchr (Makefile.am): Likewise.
67360         * modules/memcmp (Makefile.am): Likewise.
67361         * modules/memcoll (Makefile.am): Likewise.
67362         * modules/memcpy (Makefile.am): Likewise.
67363         * modules/memmem (Makefile.am): Likewise.
67364         * modules/memmove (Makefile.am): Likewise.
67365         * modules/mempcpy (Makefile.am): Likewise.
67366         * modules/memrchr (Makefile.am): Likewise.
67367         * modules/memset (Makefile.am): Likewise.
67368         * modules/memxor (Makefile.am): Likewise.
67369         * modules/mkancesdirs (Makefile.am): Likewise.
67370         * modules/mkdir-p (Makefile.am): Likewise.
67371         * modules/mkdir (Makefile.am): Likewise.
67372         * modules/mkdtemp (Makefile.am): Likewise.
67373         * modules/mkstemp (Makefile.am): Likewise.
67374         * modules/mktime (Makefile.am): Likewise.
67375         * modules/modechange (Makefile.am): Likewise.
67376         * modules/mountlist (Makefile.am): Likewise.
67377         * modules/nanosleep (Makefile.am): Likewise.
67378         * modules/obstack (Makefile.am): Likewise.
67379         * modules/openat (Makefile.am): Likewise.
67380         * modules/pagealign_alloc (Makefile.am): Likewise.
67381         * modules/pathmax (Makefile.am): Likewise.
67382         * modules/physmem (Makefile.am): Likewise.
67383         * modules/poll (Makefile.am): Likewise.
67384         * modules/posixtm (Makefile.am): Likewise.
67385         * modules/posixver (Makefile.am): Likewise.
67386         * modules/putenv (Makefile.am): Likewise.
67387         * modules/quote (Makefile.am): Likewise.
67388         * modules/quotearg (Makefile.am): Likewise.
67389         * modules/raise (Makefile.am): Likewise.
67390         * modules/read-file (Makefile.am): Likewise.
67391         * modules/readline (Makefile.am): Likewise.
67392         * modules/readlink (Makefile.am): Likewise.
67393         * modules/readtokens (Makefile.am): Likewise.
67394         * modules/readutmp (Makefile.am): Likewise.
67395         * modules/realloc (Makefile.am): Likewise.
67396         * modules/regex (Makefile.am): Likewise.
67397         * modules/rename-dest-slash (Makefile.am): Likewise.
67398         * modules/rename (Makefile.am): Likewise.
67399         * modules/rijndael (Makefile.am): Likewise.
67400         * modules/rmdir (Makefile.am): Likewise.
67401         * modules/rpmatch (Makefile.am): Likewise.
67402         * modules/safe-read (Makefile.am): Likewise.
67403         * modules/safe-write (Makefile.am): Likewise.
67404         * modules/same-inode (Makefile.am): Likewise.
67405         * modules/same (Makefile.am): Likewise.
67406         * modules/save-cwd (Makefile.am): Likewise.
67407         * modules/savedir (Makefile.am): Likewise.
67408         * modules/setenv (Makefile.am): Likewise.
67409         * modules/settime (Makefile.am): Likewise.
67410         * modules/sha1 (Makefile.am): Likewise.
67411         * modules/sig2str (Makefile.am): Likewise.
67412         * modules/snprintf (Makefile.am): Likewise.
67413         * modules/stat-macros (Makefile.am): Likewise.
67414         * modules/stat-time (Makefile.am): Likewise.
67415         * modules/stdbool (Makefile.am): Likewise.
67416         * modules/stdint (Makefile.am): Likewise.
67417         * modules/stdlib-safer (Makefile.am): Likewise.
67418         * modules/stpcpy (Makefile.am): Likewise.
67419         * modules/stpncpy (Makefile.am): Likewise.
67420         * modules/strcase (Makefile.am): Likewise.
67421         * modules/strcasestr (Makefile.am): Likewise.
67422         * modules/strchrnul (Makefile.am): Likewise.
67423         * modules/strcspn (Makefile.am): Likewise.
67424         * modules/strdup (Makefile.am): Likewise.
67425         * modules/strerror (Makefile.am): Likewise.
67426         * modules/strftime (Makefile.am): Likewise.
67427         * modules/strndup (Makefile.am): Likewise.
67428         * modules/strnlen (Makefile.am): Likewise.
67429         * modules/strpbrk (Makefile.am): Likewise.
67430         * modules/strsep (Makefile.am): Likewise.
67431         * modules/strstr (Makefile.am): Likewise.
67432         * modules/strtod (Makefile.am): Likewise.
67433         * modules/strtoimax (Makefile.am): Likewise.
67434         * modules/strtok_r (Makefile.am): Likewise.
67435         * modules/strtol (Makefile.am): Likewise.
67436         * modules/strtoll (Makefile.am): Likewise.
67437         * modules/strtoul (Makefile.am): Likewise.
67438         * modules/strtoull (Makefile.am): Likewise.
67439         * modules/strtoumax (Makefile.am): Likewise.
67440         * modules/strverscmp (Makefile.am): Likewise.
67441         * modules/sys_socket (Makefile.am): Likewise.
67442         * modules/sys_stat (Makefile.am): Likewise.
67443         * modules/sysexits (Makefile.am): Likewise.
67444         * modules/time_r (Makefile.am): Likewise.
67445         * modules/timegm (Makefile.am): Likewise.
67446         * modules/timespec (Makefile.am): Likewise.
67447         * modules/tmpfile-safer (Makefile.am): Likewise.
67448         * modules/trim (Makefile.am): Likewise.
67449         * modules/unistd-safer (Makefile.am): Likewise.
67450         * modules/unlinkdir (Makefile.am): Likewise.
67451         * modules/unlocked-io (Makefile.am): Likewise.
67452         * modules/userspec (Makefile.am): Likewise.
67453         * modules/utime (Makefile.am): Likewise.
67454         * modules/utimecmp (Makefile.am): Likewise.
67455         * modules/utimens (Makefile.am): Likewise.
67456         * modules/vasnprintf (Makefile.am): Likewise.
67457         * modules/vasprintf (Makefile.am): Likewise.
67458         * modules/vsnprintf (Makefile.am): Likewise.
67459         * modules/xalloc (Makefile.am): Likewise.
67460         * modules/xgetcwd (Makefile.am): Likewise.
67461         * modules/xnanosleep (Makefile.am): Likewise.
67462         * modules/xreadlink (Makefile.am): Likewise.
67463         * modules/xstrtod (Makefile.am): Likewise.
67464         * modules/xstrtol (Makefile.am): Likewise.
67465         * modules/xstrtold (Makefile.am): Likewise.
67466         * modules/yesno (Makefile.am): Likewise.
67467         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67468
67469 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * modules/error (Makefile.am): Distribute files through
67472         EXTRA_DIST, not lib_SOURCES.
67473
67474 2006-10-12  Eric Blake  <ebb9@byu.net>
67475
67476         * modules/error (Makefile.am): Distribute files in /lib.
67477         * modules/obstack (Makefile.am): Likewise.
67478
67479 2006-10-12  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/acl (Makefile.am): Distribute all files in lib/ through
67482         EXTRA_DIST.
67483         * modules/arcfour (Makefile.am): Likewise.
67484         * modules/arctwo (Makefile.am): Likewise.
67485         * modules/argmatch (Makefile.am): Likewise.
67486         * modules/argz (Makefile.am): Likewise.
67487         * modules/atexit (Makefile.am): Likewise.
67488         * modules/backupfile (Makefile.am): Likewise.
67489         * modules/c-strtod (Makefile.am): Likewise.
67490         * modules/c-strtold (Makefile.am): Likewise.
67491         * modules/calloc (Makefile.am): Likewise.
67492         * modules/canon-host (Makefile.am): Likewise.
67493         * modules/canonicalize (Makefile.am): Likewise.
67494         * modules/chdir-long (Makefile.am): Likewise.
67495         * modules/chdir-safer (Makefile.am): Likewise.
67496         * modules/check-version (Makefile.am): Likewise.
67497         * modules/chown (Makefile.am): Likewise.
67498         * modules/cloexec (Makefile.am): Likewise.
67499         * modules/close-stream (Makefile.am): Likewise.
67500         * modules/closeout (Makefile.am): Likewise.
67501         * modules/crc (Makefile.am): Likewise.
67502         * modules/cycle-check (Makefile.am): Likewise.
67503         * modules/des (Makefile.am): Likewise.
67504         * modules/dirfd (Makefile.am): Likewise.
67505         * modules/dirname (Makefile.am): Likewise.
67506         * modules/dup2 (Makefile.am): Likewise.
67507         * modules/euidaccess (Makefile.am): Likewise.
67508         * modules/exclude (Makefile.am): Likewise.
67509         * modules/exitfail (Makefile.am): Likewise.
67510         * modules/fcntl-safer (Makefile.am): Likewise.
67511         * modules/file-type (Makefile.am): Likewise.
67512         * modules/fileblocks (Makefile.am): Likewise.
67513         * modules/filemode (Makefile.am): Likewise.
67514         * modules/filenamecat (Makefile.am): Likewise.
67515         * modules/fnmatch (Makefile.am): Likewise.
67516         * modules/fopen-safer (Makefile.am): Likewise.
67517         * modules/fpending (Makefile.am): Likewise.
67518         * modules/fprintftime (Makefile.am): Likewise.
67519         * modules/free (Makefile.am): Likewise.
67520         * modules/fsusage (Makefile.am): Likewise.
67521         * modules/ftruncate (Makefile.am): Likewise.
67522         * modules/fts (Makefile.am): Likewise.
67523         * modules/gc (Makefile.am): Likewise.
67524         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67525         * modules/getaddrinfo (Makefile.am): Likewise.
67526         * modules/getcwd (Makefile.am): Likewise.
67527         * modules/getdelim (Makefile.am): Likewise.
67528         * modules/getdomainname (Makefile.am): Likewise.
67529         * modules/getgroups (Makefile.am): Likewise.
67530         * modules/gethostname (Makefile.am): Likewise.
67531         * modules/gethrxtime (Makefile.am): Likewise.
67532         * modules/getline (Makefile.am): Likewise.
67533         * modules/getloadavg (Makefile.am): Likewise.
67534         * modules/getlogin_r (Makefile.am): Likewise.
67535         * modules/getopt (Makefile.am): Likewise.
67536         * modules/getpass (Makefile.am): Likewise.
67537         * modules/getpass-gnu (Makefile.am): Likewise.
67538         * modules/getsubopt (Makefile.am): Likewise.
67539         * modules/gettime (Makefile.am): Likewise.
67540         * modules/gettimeofday (Makefile.am): Likewise.
67541         * modules/getugroups (Makefile.am): Likewise.
67542         * modules/getusershell (Makefile.am): Likewise.
67543         * modules/glob (Makefile.am): Likewise.
67544         * modules/group-member (Makefile.am): Likewise.
67545         * modules/hard-locale (Makefile.am): Likewise.
67546         * modules/hash (Makefile.am): Likewise.
67547         * modules/hmac-md5 (Makefile.am): Likewise.
67548         * modules/hmac-sha1 (Makefile.am): Likewise.
67549         * modules/human (Makefile.am): Likewise.
67550         * modules/idcache (Makefile.am): Likewise.
67551         * modules/imaxabs (Makefile.am): Likewise.
67552         * modules/imaxdiv (Makefile.am): Likewise.
67553         * modules/inet_ntop (Makefile.am): Likewise.
67554         * modules/inet_pton (Makefile.am): Likewise.
67555         * modules/inttostr (Makefile.am): Likewise.
67556         * modules/isapipe (Makefile.am): Likewise.
67557         * modules/lchown (Makefile.am): Likewise.
67558         * modules/long-options (Makefile.am): Likewise.
67559         * modules/lstat (Makefile.am): Likewise.
67560         * modules/malloc (Makefile.am): Likewise.
67561         * modules/mathl (Makefile.am): Likewise.
67562         * modules/mbchar (Makefile.am): Likewise.
67563         * modules/md2 (Makefile.am): Likewise.
67564         * modules/md4 (Makefile.am): Likewise.
67565         * modules/md5 (Makefile.am): Likewise.
67566         * modules/memcasecmp (Makefile.am): Likewise.
67567         * modules/memchr (Makefile.am): Likewise.
67568         * modules/memcmp (Makefile.am): Likewise.
67569         * modules/memcoll (Makefile.am): Likewise.
67570         * modules/memcpy (Makefile.am): Likewise.
67571         * modules/memmem (Makefile.am): Likewise.
67572         * modules/memmove (Makefile.am): Likewise.
67573         * modules/mempcpy (Makefile.am): Likewise.
67574         * modules/memrchr (Makefile.am): Likewise.
67575         * modules/memset (Makefile.am): Likewise.
67576         * modules/memxor (Makefile.am): Likewise.
67577         * modules/mkancesdirs (Makefile.am): Likewise.
67578         * modules/mkdir (Makefile.am): Likewise.
67579         * modules/mkdir-p (Makefile.am): Likewise.
67580         * modules/mkdtemp (Makefile.am): Likewise.
67581         * modules/mkstemp (Makefile.am): Likewise.
67582         * modules/mktime (Makefile.am): Likewise.
67583         * modules/modechange (Makefile.am): Likewise.
67584         * modules/mountlist (Makefile.am): Likewise.
67585         * modules/nanosleep (Makefile.am): Likewise.
67586         * modules/openat (Makefile.am): Likewise.
67587         * modules/pagealign_alloc (Makefile.am): Likewise.
67588         * modules/physmem (Makefile.am): Likewise.
67589         * modules/poll (Makefile.am): Likewise.
67590         * modules/posixtm (Makefile.am): Likewise.
67591         * modules/posixver (Makefile.am): Likewise.
67592         * modules/putenv (Makefile.am): Likewise.
67593         * modules/quote (Makefile.am): Likewise.
67594         * modules/quotearg (Makefile.am): Likewise.
67595         * modules/raise (Makefile.am): Likewise.
67596         * modules/read-file (Makefile.am): Likewise.
67597         * modules/readline (Makefile.am): Likewise.
67598         * modules/readlink (Makefile.am): Likewise.
67599         * modules/readtokens (Makefile.am): Likewise.
67600         * modules/readutmp (Makefile.am): Likewise.
67601         * modules/realloc (Makefile.am): Likewise.
67602         * modules/regex (Makefile.am): Likewise.
67603         * modules/rename (Makefile.am): Likewise.
67604         * modules/rename-dest-slash (Makefile.am): Likewise.
67605         * modules/rijndael (Makefile.am): Likewise.
67606         * modules/rmdir (Makefile.am): Likewise.
67607         * modules/rpmatch (Makefile.am): Likewise.
67608         * modules/safe-read (Makefile.am): Likewise.
67609         * modules/safe-write (Makefile.am): Likewise.
67610         * modules/same (Makefile.am): Likewise.
67611         * modules/save-cwd (Makefile.am): Likewise.
67612         * modules/savedir (Makefile.am): Likewise.
67613         * modules/setenv (Makefile.am): Likewise.
67614         * modules/settime (Makefile.am): Likewise.
67615         * modules/sha1 (Makefile.am): Likewise.
67616         * modules/sig2str (Makefile.am): Likewise.
67617         * modules/snprintf (Makefile.am): Likewise.
67618         * modules/stdlib-safer (Makefile.am): Likewise.
67619         * modules/stpcpy (Makefile.am): Likewise.
67620         * modules/stpncpy (Makefile.am): Likewise.
67621         * modules/strcase (Makefile.am): Likewise.
67622         * modules/strcasestr (Makefile.am): Likewise.
67623         * modules/strchrnul (Makefile.am): Likewise.
67624         * modules/strcspn (Makefile.am): Likewise.
67625         * modules/strdup (Makefile.am): Likewise.
67626         * modules/strerror (Makefile.am): Likewise.
67627         * modules/strftime (Makefile.am): Likewise.
67628         * modules/strndup (Makefile.am): Likewise.
67629         * modules/strnlen (Makefile.am): Likewise.
67630         * modules/strpbrk (Makefile.am): Likewise.
67631         * modules/strsep (Makefile.am): Likewise.
67632         * modules/strstr (Makefile.am): Likewise.
67633         * modules/strtod (Makefile.am): Likewise.
67634         * modules/strtoimax (Makefile.am): Likewise.
67635         * modules/strtok_r (Makefile.am): Likewise.
67636         * modules/strtol (Makefile.am): Likewise.
67637         * modules/strtoll (Makefile.am): Likewise.
67638         * modules/strtoul (Makefile.am): Likewise.
67639         * modules/strtoull (Makefile.am): Likewise.
67640         * modules/strtoumax (Makefile.am): Likewise.
67641         * modules/strverscmp (Makefile.am): Likewise.
67642         * modules/time_r (Makefile.am): Likewise.
67643         * modules/timegm (Makefile.am): Likewise.
67644         * modules/tmpfile-safer (Makefile.am): Likewise.
67645         * modules/unistd-safer (Makefile.am): Likewise.
67646         * modules/unlinkdir (Makefile.am): Likewise.
67647         * modules/userspec (Makefile.am): Likewise.
67648         * modules/utime (Makefile.am): Likewise.
67649         * modules/utimecmp (Makefile.am): Likewise.
67650         * modules/utimens (Makefile.am): Likewise.
67651         * modules/vasnprintf (Makefile.am): Likewise.
67652         * modules/vasprintf (Makefile.am): Likewise.
67653         * modules/vsnprintf (Makefile.am): Likewise.
67654         * modules/xalloc (Makefile.am): Likewise.
67655         * modules/xgetcwd (Makefile.am): Likewise.
67656         * modules/xnanosleep (Makefile.am): Likewise.
67657         * modules/xreadlink (Makefile.am): Likewise.
67658         * modules/xstrtod (Makefile.am): Likewise.
67659         * modules/xstrtol (Makefile.am): Likewise.
67660         * modules/xstrtold (Makefile.am): Likewise.
67661         * modules/yesno (Makefile.am): Likewise.
67662
67663 2006-10-12  Jim Meyering  <jim@meyering.net>
67664
67665         * m4/getloadavg.m4: Revert the change below.
67666
67667         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67668         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67669         fail with a symlink, which is what coreutils' ./bootstrap now
67670         creates by default.
67671
67672 2006-10-12  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67675         mingw.
67676         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67677         MSVC and mingw explicitly.
67678
67679 2006-10-11  Simon Josefsson  <jas@extundo.com>
67680             Bruno Haible  <bruno@clisp.org>
67681
67682         Add support for multiple gnulib-tool invocations in the scope of a
67683         single configure.ac file.
67684         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67685         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67686         with the same contents as the _LIBADD variable.
67687         (func_emit_initmacro_start, func_emit_initmacro_end,
67688         func_emit_initmacro_done): New functions.
67689         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67690         gl_LIBOBJS and gl_LTLIBOBJS.
67691
67692 2006-10-11  Bruno Haible  <bruno@clisp.org>
67693
67694         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67695         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67696         autoreconf. Instead, invoke autopoint explicitly but move back the
67697         *.m4 files from gnulib.
67698
67699 2006-10-11  Bruno Haible  <bruno@clisp.org>
67700
67701         * gnulib-tool (func_usage): Make module names after --create-testdir
67702         optional.
67703         (func_create_testdir): If no module was specified, use nearly all
67704         modules.
67705
67706 2006-10-12  Jim Meyering  <jim@meyering.net>
67707
67708         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67709         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67710         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67711         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67712         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67713         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67714         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67715         (fts_set_stat_required): New function.
67716         (fts_open): Defer the calls to fts_stat, if possible or requested.
67717         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67718         into fts_stat itself.
67719         (fts_read): Perform any required (deferred) fts_stat call.
67720         (fts_build): Likewise, for the directory we're about to open and read.
67721         In the readdir loop, carefully decide whether each entry will require
67722         an eventual call to fts_stat, using dirent.d_type info if available.
67723         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67724         a command line argument into this function.  Update all callers.
67725         Map a return value of FTS_DOT to FTS_D for a command line argument.
67726         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67727         Thanks to Miklos Szeredi for his tenacity and for the initial
67728         bug report about "find" failing on a FUSE-based file system.
67729
67730         * lib/fts.c (fts_open): Use consistent indentation.
67731
67732 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67735         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67736         reported by Jim Meyering.  All uses of cache variables renamed
67737         to match Autoconf's.
67738         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67739         the other one.
67740
67741         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67742         Fix misspelling in diagnostic.
67743
67744 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67747         defined.  Problem reported by Matthew Woehlke.
67748
67749         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67750         Add support for Tandem NonStop R series.
67751         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67752         Use new macro.
67753
67754         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67755         (has_trailing_slash): Omit size arg; all callers changed.
67756         Omit 'inline', since it doesn't help performance and we'd
67757         need to configure it.
67758         Don't count //, ///, etc. as having a trailing slash.
67759         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67760         (rpl_rename_dest_slash): On failure, use rename's errno rather
67761         than (in some cases) an incorrect or junk errno.
67762         Simplify code by removing need to compute length; this does
67763         cause it to make two passes instead of one over the file name,
67764         but it's worth it.
67765
67766         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67767         change, since Autoconf's version may no longer be appropriate now
67768         that we are using CVS Autoconf's version.  Add support for Tandem.
67769
67770 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67771             Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67774         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67775         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67776         gl_AC_TYPE_LONG_LONG.
67777
67778         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67779         instead of HAVE_LONG_LONG.
67780         * lib/printf-args.c (printf_fetchargs): Likewise.
67781         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67782         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67783         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67784         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67785         gl_AC_TYPE_LONG_LONG.
67786
67787 2006-10-11  Bruno Haible  <bruno@clisp.org>
67788
67789         * m4/longlong.m4: Add comments.
67790         * m4/ulonglong.m4: Likewise.
67791
67792 2006-10-10  Bruno Haible  <bruno@clisp.org>
67793
67794         Make it possible to #define stpcpy, strdup to aliases.
67795         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67796         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67797
67798 2006-10-10  Bruno Haible  <bruno@clisp.org>
67799
67800         Make it possible to #define gcd to an alias.
67801         * lib/gcd.c: Include config.h.
67802
67803 2006-10-10  Bruno Haible  <bruno@clisp.org>
67804
67805         Make it possible to #define c_isascii to an alias.
67806         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67807         defined. Undefine the macros before defining them, to avoid gcc
67808         warnings.
67809         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67810         define NO_C_CTYPE_MACROS early.
67811
67812 2006-10-10  Bruno Haible  <bruno@clisp.org>
67813
67814         Make it possible to #define set_program_name to an alias.
67815         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67816         ENABLE_RELOCATABLE early.
67817
67818 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67819
67820         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67821         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67822         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67823         More generally, don't assume that 64-bit signed int is available
67824         if unsigned int is, and vice versa.
67825         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67826         unsigned symbols, not on their signed counterparts.
67827         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67828         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67829         (UINT64_C, UINTMAX_C):
67830         Likewise.
67831         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67832         unsigned counterparts.
67833         (Have_long_long, Unsigned): New macros.
67834         (Int): Renamed from INT.
67835         (strtoimax): Use the new macros.
67836         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67837         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67838         * modules/inttypes (inttypes.h): Substitute
67839         HAVE_UNSIGNED_LONG_LONG_INT.
67840         * modules/stdint (stdint.h): Likewise.
67841         (Files): Add m4/ulonglong.m4.
67842
67843 2006-10-10  Bruno Haible  <bruno@clisp.org>
67844
67845         Fix a gcc -Wshadow warning.
67846         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67847         to 'bucket'.
67848         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67849         gl_linked_indexof_from_to): Likewise.
67850         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67851         Likewise.
67852         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67853         Likewise.
67854         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67855         Reported by Eric Blake.
67856
67857 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67858
67859         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67860         for NetBSD.  Problem reported by Bruno Haible.
67861
67862 2006-10-09  Jim Meyering  <jim@meyering.net>
67863
67864         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67865         Patch from Bruno Haible.
67866
67867 2006-10-09  Jim Meyering  <jim@meyering.net>
67868
67869         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67870         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67871         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67872
67873 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         Don't include <config.h> twice; this doesn't work in some cases,
67876         e.g., when config.h has "#define intmax_t long long int" and
67877         we include <config.h>, <inttypes.h>, <config.h> in that order.
67878         Problem reported by Matthew Woehlke in:
67879         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67880         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67881         * lib/fts-cycle.c: Don't include config.h.
67882         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67883         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67884         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67885         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67886         inttypes.h.
67887         * lib/xstrtoumax.c: Likewise.
67888         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67889         __strtol and the like, so that this module is more like its siblings.
67890         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67891         Remove; no longer needed now that we assume gnulib inttypes.h.
67892
67893 2006-10-08  Bruno Haible  <bruno@clisp.org>
67894
67895         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67896         option.
67897
67898 2006-10-07  Jim Meyering  <jim@meyering.net>
67899
67900         * modules/inttypes (inttypes.h): Revert what seems to have been
67901         an inadvertent part of today's change: use "|", not "/" in the
67902         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67903
67904 2006-10-07  Bruno Haible  <bruno@clisp.org>
67905
67906         * modules/sublist: New file.
67907
67908 2006-10-07  Bruno Haible  <bruno@clisp.org>
67909
67910         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67911         * modules/argz (argz.h): Likewise.
67912         * modules/arpa_inet (arpa/inet.h): Likewise.
67913         * modules/byteswap (byteswap.h): Likewise.
67914         * modules/configmake (configmake.h): Likewise.
67915         * modules/fcntl (fcntl.h): Likewise.
67916         * modules/fnmatch (fnmatch.h): Likewise.
67917         * modules/getopt (getopt.h): Likewise.
67918         * modules/glob (glob.h): Likewise.
67919         * modules/inttypes (inttypes.h): Likewise.
67920         * modules/netinet_in (netinet/in.h): Likewise.
67921         * modules/poll (poll.h): Likewise.
67922         * modules/stdbool (stdbool.h): Likewise.
67923         * modules/stdint (stdint.h): Likewise.
67924         * modules/sys_select (sys/select.h): Likewise.
67925         * modules/sys_socket (sys/socket.h): Likewise.
67926         * modules/sys_stat (sys/stat.h): Likewise.
67927         * modules/sysexits (sysexits.h): Likewise.
67928         * modules/unistd (unistd.h): Likewise.
67929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67930         Add a "DO NOT EDIT" comment to the generated file.
67931         (func_import): Likewise for gnulib-comp.m4.
67932
67933 2006-10-07  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/gl_sublist.h: New file.
67936         * lib/gl_sublist.c: New file.
67937
67938 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67941         name (relative to the original working directory) and the file
67942         name component (relative to the temporary working directory).  All
67943         callers changed.
67944         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67945         * lib/mkdir-p.c (make_dir_parents): Likewise.
67946         * lib/mkdir-p.h (make_dir_parents): Likewise.
67947
67948 2006-10-06  Eric Blake  <ebb9@byu.net>
67949
67950         Define several macros for use by the clean-temp module.
67951         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67952         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67953         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67954
67955         * lib/clean-temp.h (close_stream_temp): New declaration.
67956         * lib/clean-temp.c (includes): Pull in headers according to what
67957         other modules are in use.
67958         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67959
67960 2006-10-06  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67963         instead of fopen, fwriteerror.
67964
67965 2006-10-06  Bruno Haible  <bruno@clisp.org>
67966
67967         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67968         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67969         int.
67970         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67971         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67972         Return an error indicator.
67973         Suggested by Eric Blake.
67974
67975 2006-10-06  Bruno Haible  <bruno@clisp.org>
67976
67977         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67978         Reported by Eric Blake.
67979
67980 2006-10-06  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/closeout (Description): Mention stderr too.
67983
67984 2006-10-06  Bruno Haible  <bruno@clisp.org>
67985         and Paul Eggert  <eggert@cs.ucla.edu>
67986
67987         * lib/closeout.c (close_stdout): Also close stderr.
67988         * lib/closeout.h: Update comment.
67989
67990 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67993         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67994         * lib/dirchownmod.c: Include lchown.h.
67995         * lib/lchown.c: Don't include files that lchown.h now includes.
67996         Don't declare chown, since lchown.h now does that.
67997         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67998         (lchown): Define to rpl_chown if lchown is declared but
67999         does not exist.  Declare using a prototype if lchown is not
68000         declared.  Add a copyright notice.
68001         * lib/mkstemp.h: Include <unistd.h>.
68002         * lib/openat.c: Include lchown.h.
68003
68004         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68005         we now test for that separately.
68006         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68007         rather than O_NOFOLLOW, when testing whether it's possible to
68008         avoid a race condition reliably.
68009         * lib/savewd.c (savewd_chdir): Likewise.
68010
68011         Remove macros that are no longer needed now that stdint.h is
68012         reliable.
68013         * lib/fsusage.c (UINTMAX_MAX): Remove.
68014         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68015         * lib/utimecmp.c (SIZE_MAX): Remove.
68016
68017         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68018
68019         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68020         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68021         O_NOATIME works.
68022
68023 2006-10-05  Bruno Haible  <bruno@clisp.org>
68024
68025         * lib/gl_list.h (gl_sortedlist_search_from_to,
68026         gl_sortedlist_indexof_from_to): New declarations.
68027         (gl_list_implementation): New fields sortedlist_search_from_to,
68028         sortedlist_indexof_from_to.
68029         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68030         inline functions.
68031         * lib/gl_list.c (gl_sortedlist_search_from_to,
68032         gl_sortedlist_indexof_from_to): New functions.
68033         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68034         function.
68035         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68036         (gl_array_sortedlist_search_from_to): New function.
68037         (gl_array_list_implementation): Update.
68038         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68039         function.
68040         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68041         (gl_carray_sortedlist_search_from_to): New function.
68042         (gl_carray_list_implementation): Update.
68043         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68044         gl_linked_sortedlist_indexof_from_to): New functions.
68045         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68046         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68047         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68048         gl_tree_sortedlist_indexof_from_to): New functions.
68049         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68050         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68051         Update.
68052         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68053         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68054         Update.
68055
68056 2006-10-05  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68059         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68060         (struct gl_list_implementation): Add fields search_from_to,
68061         indexof_from_to. Remove fields search, indexof.
68062         (gl_list_search): Use the search_from_to method.
68063         (gl_list_search_from, gl_list_search_from_to): New functions.
68064         (gl_list_indexof): Use the indexof_from_to method.
68065         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68066         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68067         (gl_list_search_from, gl_list_search_from_to): New functions.
68068         (gl_list_indexof): Use the indexof_from_to method.
68069         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68070         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68071         gl_array_indexof. Add start_index, end_index arguments.
68072         (gl_array_search_from_to): Renamed from gl_array_search. Add
68073         start_index, end_index arguments.
68074         (gl_array_remove, gl_array_list_implementation): Update.
68075         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68076         gl_carray_indexof. Add start_index, end_index arguments.
68077         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68078         start_index, end_index arguments.
68079         (gl_carray_remove, gl_carray_list_implementation): Update.
68080         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68081         gl_linked_search. Add start_index, end_index arguments.
68082         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68083         start_index, end_index arguments.
68084         (gl_linked_remove): Update.
68085         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68086         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68087         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68088         field to 'size_t'.
68089         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68090         gl_tree_search. Add start_index, end_index arguments.
68091         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68092         start_index, end_index arguments.
68093         (gl_tree_remove): Update.
68094         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68095         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68096         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68097         function.
68098         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68099         gl_tree_search. Add start_index, end_index arguments.
68100         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68101         start_index, end_index arguments.
68102         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68103         Update.
68104         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68105
68106 2006-10-05  Bruno Haible  <bruno@clisp.org>
68107
68108         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68109
68110         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68111         fwriteerror_temp): New declarations.
68112         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68113         (descriptors): New variable.
68114         (cleanup): First, close the descriptors.
68115         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68116         fclose_temp, fwriteerror_temp): New functions.
68117
68118 2006-10-04  Jim Meyering  <jim@meyering.net>
68119
68120         * lib/fts.c (fts_open): Tiny comment change.
68121
68122 2006-10-04  Bruno Haible  <bruno@clisp.org>
68123
68124         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68125         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68126         gl_LOCK_BODY.
68127         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68128         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68129         gl_LOCK_EARLY_BODY.
68130         (gl_LOCK): Require gl_LOCK_BODY.
68131
68132 2006-10-04  Bruno Haible  <bruno@clisp.org>
68133
68134         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68135         (gl_oset_search_atleast): New declaration.
68136         (struct gl_oset_implementation): Add field 'search_atleast'.
68137         (gl_oset_search_atleast): New inline function.
68138         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68139         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68140         (gl_array_oset_implementation): Update.
68141         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68142         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68143         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68144
68145 2006-10-04  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68148
68149 2006-10-03  Bruno Haible  <bruno@clisp.org>
68150
68151         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68152         from gl_avltreehash_list_implementation.
68153
68154 2006-10-03  Bruno Haible  <bruno@clisp.org>
68155
68156         * lib/gl_oset.c (gl_oset_add): Fix return type.
68157
68158 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68159
68160         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68161
68162 2006-10-02  Eric Blake  <ebb9@byu.net>
68163
68164         * modules/strnlen (Depends-on): Add extensions.
68165
68166 2006-10-02  Eric Blake  <ebb9@byu.net>
68167
68168         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68169         definition in 2.60+.
68170
68171 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68172
68173         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68174         checks.
68175
68176 2006-10-02  Bruno Haible  <bruno@clisp.org>
68177
68178         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68179         to the AUTOMAKE_OPTIONS.
68180         Reported by Jim Meyering.
68181
68182 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68183
68184         Work around bug in Solaris 10 /proc file system:
68185         /proc/self/fd/NNN/.. isn't the parent directory of
68186         the directory whose file descriptor is NNN.  This needs to
68187         be worked around at run time, not compile time, since a
68188         program might be built on Solaris 8, where things work, and
68189         run on Solaris 10.
68190         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68191         to use the following interface instead:
68192         (OPENAT_BUFFER_SIZE): New macro.
68193         (openat_proc_name): New function.
68194         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68195         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68196         Likewise.
68197         * lib/openat-proc.c: New file.
68198         * modules/openat (Files): Add lib/openat-proc.c.
68199         (Depends-on): Add same-inode, stdbool.
68200         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68201
68202 2006-09-29  Bruno Haible  <bruno@clisp.org>
68203
68204         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68205         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68206         argument. Set stdout_closed before testing for ferror, not after.
68207         (fwriteerror, fwriteerror_no_ebadf): New functions.
68208
68209 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68210
68211         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68212
68213 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68214
68215         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68216         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68217
68218 2006-09-28  Jim Meyering  <jim@meyering.net>
68219
68220         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68221         Include <unistd.h>.
68222
68223 2006-09-28  Bruno Haible  <bruno@clisp.org>
68224
68225         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68226         * modules/linkedhash-list (Depends-on): Likewise.
68227         * modules/rbtreehash-list (Depends-on): Likewise.
68228
68229 2006-09-28  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/strndup.h: Simplify the redefinition of strndup.
68232         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68234
68235 2006-09-28  Bruno Haible  <bruno@clisp.org>
68236
68237         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68238         * lib/gl_linkedhash_list.c: Likewise.
68239         * lib/gl_rbtreehash_list.c: Likewise.
68240
68241 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68244         getaddrinfo.
68245
68246         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68247         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68248         it causes <stdio_ext.h> to cause a compile-time error.
68249         Problem reported by Nelson H. F. Beebe.
68250         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68251         of HAVE_DECL___PENDING.
68252
68253         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68254         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68255         declaration.
68256
68257 2006-09-27  Jim Meyering  <jim@meyering.net>
68258
68259         This file could end up with a definition for a function
68260         named __strndup, rather than rpl_strndup on a system with
68261         incomplete weak_alias support.
68262         * lib/strndup.c (strndup): Rename from __strndup.
68263         Remove #defines that used to map __strndup to strndup.
68264         Don't use K&R prototypes.
68265         Remove LIBC-related code, since this file is not sync'd with glibc.
68266         * lib/strndup.h: Revamp, accordingly.
68267         * m4/strndup.m4: Modernize.
68268
68269 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * modules/savewd (Depends-on): Add 'raise'.
68272         * lib/savewd.c: Include <signal.h>, for 'raise'.
68273
68274 2006-09-26  Jim Meyering  <jim@meyering.net>
68275
68276         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68277         when we detect Darwin 8.7.0's acl_get_file bug.
68278         Rearrange to perform the new (below) run-test while $LIBS
68279         contains any acl-related library.  Set USE_ACL at the end.
68280         (gl_ACL_GET_FILE): New function.
68281
68282 2006-09-26  Eric Blake  <ebb9@byu.net>
68283
68284         * lib/verror.c: Include <config.h> unconditionally.
68285
68286 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68287
68288         * modules/clock-time (Maintainer): Add self.
68289         * modules/getlogin_r (Depends-on): Add extensions.
68290
68291 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68292
68293         * modules/clock-time: New module.
68294         * modules/nanosleep (Depends-on): Add clock-time.
68295         * modules/gethrxtime (Depends-on): Likewise.
68296         * modules/gettime (Depends-on): Likewise.
68297         * modules/settime (Depends-on): Likewise.
68298
68299         * modules/fts-lgpl: Depend on openat.
68300         * modules/mkancesdirs: Depend on savewd.
68301         * modules/mkdir-p: Likewise.
68302
68303 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68304
68305         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68306
68307         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68308         `gl_have_arbitrary_file_name_length_limit' to
68309         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68310         actually works between configure runs.
68311
68312 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68313             Bruno Haible  <bruno@clisp.org>
68314
68315         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68316
68317 2006-09-25  Jim Meyering  <jim@meyering.net>
68318
68319         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68320         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68321
68322 2006-09-25  Eric Blake  <ebb9@byu.net>
68323
68324         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68325         exec's in 2006-09-18 patch when shuffling fds.
68326
68327 2006-09-25  Bruno Haible  <bruno@clisp.org>
68328
68329         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68330         Reported by Jim Meyering.
68331
68332 2006-09-24  Jim Meyering  <jim@meyering.net>
68333
68334         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68335         compare a pointer against a literal "0".  That caused failures with
68336         at least HP-UX's hpcc.
68337
68338 2006-09-22  Simon Josefsson  <jas@extundo.com>
68339
68340         * modules/gc-sha1:
68341         * modules/gc-md4:
68342         * modules/gc-hmac-sha1:
68343         * modules/gc-hmac-md5:
68344         * modules/gc-des:
68345         * modules/gc-arcfour: Distribute more files.
68346
68347 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68348
68349         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68350         (gl_linked_iterator_from_to): Initialize struct completely.
68351         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68352         (gl_tree_iterator_from_to): Likewise
68353         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68354         * lib/gl_array_list.c [lint] (gl_array_iterator)
68355         (gl_array_iterator_from_to): Likewise.
68356         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68357         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68358         (gl_carray_iterator_from_to): Likewise.
68359
68360         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68361         * lib/md4.c (md4_process_block): Remove unused variable.
68362         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68363         parentheses for clarity.
68364
68365 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68366
68367         * modules/bison-i18n (Depends-on): Add gettext.
68368
68369 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68370
68371         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68372         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68373         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68374         also add missing comma that caused broken test.
68375         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68376         stdlib.h, for `abort'.
68377         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68378         variables.
68379         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68380         include unistd.h if present, for `rmdir'.
68381         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68382         variables.
68383         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68384         in the process include standard headers for prototypes.
68385         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68386         gets declared on GNU/Linux.
68387         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68388         unistd.h, for `rmdir'.
68389         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68390
68391         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68392         always true.
68393         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68394
68395         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68396
68397 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68398
68399         * gnulib-tool (func_version): Create output all at once.  This
68400         may help avoid triggering unnecessary SIGPIPEs, and at any
68401         rate it doesn't hurt.
68402
68403 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68404             Bruno Haible  <bruno@clisp.org>
68405
68406         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68407         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68408         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68409
68410         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68411         (gl_FUNC_VASPRINTF): Invoke it.
68412
68413 2006-09-22  Bruno Haible  <bruno@clisp.org>
68414
68415         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68416         getloadavg.c as first argument.
68417
68418 2006-09-22  Bruno Haible  <bruno@clisp.org>
68419
68420         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68421         at the beginning of the gl_INIT macro.
68422         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68423         gl_GETLOADAVG.
68424
68425 2006-09-22  Bruno Haible  <bruno@clisp.org>
68426
68427         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68428         module.
68429         Suggested by Ralf Wildenhues.
68430
68431 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         Import this patch from libc:
68434
68435         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68436
68437         * lib/regex_internal.c (re_string_reconstruct): Handle
68438         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68439         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68440         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68441         re_string_context_at.
68442
68443         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68444         now requires it.
68445         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68446         gl_REGEX now does it for us.
68447         (gl_REGEX): Add test taken from
68448         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68449
68450         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68451         Check that large offsets work.  Modernize Autoconf usages.
68452         Prefer "yes" to mean a good thing rather than a bad.
68453         Don't put "#define mkstemp" in config.h, as this might interfere
68454         with standard system headers that "#define mkstemp mkstemp64".
68455
68456         * modules/mkstemp (Depends-on): Add extensions, so that
68457         mkstemp is visible on some platforms.
68458         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68459         (Include): Change to "mkstemp.h" from <stdlib.h>.
68460         (Files): Add mkstemp.h.
68461
68462         * lib/mkstemp.h: New file, since some standard headers
68463         #define mkstemp.
68464         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68465         Include "mkstemp.h".
68466         Make the _LIBC code resemble glibc original more,
68467         e.g., use K&R style.
68468         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68469         (mkstemp): Remove, since mkstemp.h does this for us.
68470         * lib/stdlib--.h: Include mkstemp.h.
68471
68472         Import this patch from libc:
68473
68474         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68475
68476         * lib/tempname.c (__gen_tempname): Change attempts_min
68477         into a macro.  Use preprocessor to decide how to initialize
68478         attempts [Coverity CID 67].
68479
68480 2006-09-20  Bruno Haible  <bruno@clisp.org>
68481
68482         * lib/mkdtemp.c: Import from libc.
68483         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68484                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68485                 attempts_min into a macro.  Use preprocessor to decide how to
68486                 initialize attempts [Coverity CID 67].
68487         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68488                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68489                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68490
68491 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68492
68493         * gnulib-tool (func_exit): New function, to allow to pass the
68494         exit status portably through the trap.  Use everywhere.
68495         (--help, --version): Signal a write error.
68496         (trap): catch SIGPIPE, for write errors.
68497         Exit at the end of the trap, with the correct exit status.
68498
68499 2006-09-19  Karl Berry  <karl@gnu.org>
68500
68501         * doc/gnulib.texi: note about the license texinfo files.
68502
68503 2006-09-19  Eric Blake  <ebb9@byu.net>
68504
68505         * gnulib-tool: Avoid space-tab.
68506
68507 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68510         that prevented coreutils 6.1 from building.  Problem reported
68511         by Petter Reinholdtsen.
68512
68513 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * gnulib-tool (avoidlist): Fix typo that broke options like
68516         --avoid=lock that are used by coreutils bootstrap.
68517
68518 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68519
68520         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68521         more systematically.
68522
68523 2006-09-18  Jim Meyering  <jim@meyering.net>
68524
68525         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68526
68527 2006-09-18  Bruno Haible  <bruno@clisp.org>
68528
68529         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68530
68531 2006-09-18  Bruno Haible  <bruno@clisp.org>
68532
68533         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68534         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68535         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68536         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68537         * m4/gettext.m4: Require autoconf >= 2.52.
68538         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68539         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68540         of gl_cv_header_inttypes_h.
68541
68542 2006-09-18  Bruno Haible  <bruno@clisp.org>
68543
68544         * lib/javaversion.c: Include configmake.h.
68545
68546 2006-09-18  Bruno Haible  <bruno@clisp.org>
68547
68548         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68549         avoid that the while loops be executed in a subshell.
68550
68551 2006-09-18  Bruno Haible  <bruno@clisp.org>
68552
68553         * MODULES.html.sh (func_module): Break long lines.
68554         Suggested by Bruce Korb <bkorb@gnu.org>.
68555
68556 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68557
68558         Speed up by a factor of 1.12.
68559         * gnulib-tool (nl): New variable.
68560         (func_import): Rewrite include directive extraction to only read each
68561         directive once.
68562
68563 2006-09-17  Bruno Haible  <bruno@clisp.org>
68564
68565         * modules/javaversion (Makefile.am): Remove DEFS setting.
68566         (Depends-on): Add configmake, for PKGDATADIR definition.
68567
68568 2006-09-17  Bruno Haible  <bruno@clisp.org>
68569
68570         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68571
68572 2006-09-17  Bruno Haible  <bruno@clisp.org>
68573
68574         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68575         (func_modules_transitive_closure, func_modules_add_dummy,
68576         func_modules_to_filelist, func_import, func_create_testdir,
68577         func_create_megatestdir, ...): Use it wherever possible.
68578         Suggested by Ralf Wildenhues.
68579
68580 2006-09-16  Karl Berry  <karl@gnu.org>
68581
68582         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68583         to avoid sectioning errors.
68584         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68585         [ifinfo]: blank line after @center-ed titles.
68586         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68587         Spell FSF address consistently with others.
68588         (These changes approved by rms.)
68589
68590 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68591
68592         Speed up by a factor of 1.61.
68593         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68594         already checked module names again.
68595
68596 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68597
68598         Speed up by a factor of 1.13.
68599         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68600         for new_files, and the input to func_add_or_update.
68601
68602 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68603
68604         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68605         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68606
68607 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         * modules/mkancesdirs (Depends-on): Add fcntl.
68610         * modules/savewd: New file.
68611         * MODULES.html.sh (File system functions): Add savewd.
68612
68613         * modules/configmake (Makefile.am): Add support for the
68614         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68615
68616 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * m4/savewd.m4: New file.
68619
68620 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68623         (dirchownmod): New arg FD.  All callers changed.
68624         Use FD rather than opening the directory ourself, as opening is
68625         now the caller's responsibility.
68626         * lib/dirchownmod.h: Likewise.
68627         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68628         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68629         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68630         (test_dir): Remove.
68631         (mkancesdirs): Return length of prefix of FILE that has already
68632         been made, or -2 if there is a child doing the work.  Redo
68633         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68634         ".", and treat ".." specially since it might stray back into
68635         already-created areas.  Use a subprocess if necessary.  New arg
68636         WD; all users changed.  MAKE_DIR function should now return 1
68637         if it creates a directory that is not readable.  Return -2 if
68638         a child process is spun off.
68639         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68640         Adjust signature to match code.
68641         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68642         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68643         all users changed.
68644         * lib/savewd.c, lib/savewd.h: New files.
68645
68646 2006-09-15  Jim Meyering  <jim@meyering.net>
68647
68648         * modules/rename-dest-slash: New module.
68649         * MODULES.html.sh (posix_compat): Add it here.
68650
68651         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68652
68653 2006-09-15  Jim Meyering  <jim@meyering.net>
68654
68655         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68656         file.
68657
68658         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68659
68660 2006-09-15  Jim Meyering  <jim@meyering.net>
68661
68662         * lib/rename-dest-slash.c (has_trailing_slash): Use
68663         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68664         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68665         test before testing whether SRC is a directory.
68666         Suggestions from Bruno Haible.
68667
68668         Avoid a warning about an unused variable.
68669         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68670         into the #ifdef block where it's used.
68671
68672         * lib/rename-dest-slash.c: New file.
68673
68674 2006-09-14  Bruno Haible  <bruno@clisp.org>
68675
68676         * lib/allocsa.c: Include <config.h> unconditionally.
68677         * lib/asnprintf.c: Likewise.
68678         * lib/asprintf.c: Likewise.
68679         * lib/c-strcasecmp.c: Likewise.
68680         * lib/c-strcasestr.c: Likewise.
68681         * lib/c-strncasecmp.c: Likewise.
68682         * lib/c-strstr.c: Likewise.
68683         * lib/classpath.c: Likewise.
68684         * lib/clean-temp.c: Likewise.
68685         * lib/concatpath.c: Likewise.
68686         * lib/copy-file.c: Likewise.
68687         * lib/csharpcomp.c: Likewise.
68688         * lib/csharpexec.c: Likewise.
68689         * lib/execute.c: Likewise.
68690         * lib/fatal-signal.c: Likewise.
68691         * lib/findprog.c: Likewise.
68692         * lib/fwriteerror.c: Likewise.
68693         * lib/gl_array_list.c: Likewise.
68694         * lib/gl_array_oset.c: Likewise.
68695         * lib/gl_avltree_list.c: Likewise.
68696         * lib/gl_avltree_oset.c: Likewise.
68697         * lib/gl_avltreehash_list.c: Likewise.
68698         * lib/gl_carray_list.c: Likewise.
68699         * lib/gl_linked_list.c: Likewise.
68700         * lib/gl_linkedhash_list.c: Likewise.
68701         * lib/gl_list.c: Likewise.
68702         * lib/gl_oset.c: Likewise.
68703         * lib/gl_rbtree_list.c: Likewise.
68704         * lib/gl_rbtree_oset.c: Likewise.
68705         * lib/gl_rbtreehash_list.c: Likewise.
68706         * lib/imaxabs.c: Likewise.
68707         * lib/imaxdiv.c: Likewise.
68708         * lib/javacomp.c: Likewise.
68709         * lib/javaexec.c: Likewise.
68710         * lib/javaversion.c: Likewise.
68711         * lib/linebreak.c: Likewise.
68712         * lib/localcharset.c: Likewise.
68713         * lib/lock.c: Likewise.
68714         * lib/mbchar.c: Likewise.
68715         * lib/mbswidth.c: Likewise.
68716         * lib/mkdtemp.c: Likewise.
68717         * lib/pipe.c: Likewise.
68718         * lib/printf-args.c: Likewise.
68719         * lib/printf-parse.c: Likewise.
68720         * lib/progname.c: Likewise.
68721         * lib/progreloc.c: Likewise.
68722         * lib/readlink.c: Likewise.
68723         * lib/sh-quote.c: Likewise.
68724         * lib/stpcpy.c: Likewise.
68725         * lib/stpncpy.c: Likewise.
68726         * lib/strcasecmp.c: Likewise.
68727         * lib/strcasestr.c: Likewise.
68728         * lib/strcspn.c: Likewise.
68729         * lib/striconv.c: Likewise.
68730         * lib/strncasecmp.c: Likewise.
68731         * lib/strnlen1.c: Likewise.
68732         * lib/strstr.c: Likewise.
68733         * lib/strtok_r.c: Likewise.
68734         * lib/tls.c: Likewise.
68735         * lib/tmpdir.c: Likewise.
68736         * lib/unicodeio.c: Likewise.
68737         * lib/unsetenv.c: Likewise.
68738         * lib/vasnprintf.c: Likewise.
68739         * lib/vasprintf.c: Likewise.
68740         * lib/wait-process.c: Likewise.
68741         * lib/xallocsa.c: Likewise.
68742         * lib/xsetenv.c: Likewise.
68743         * lib/xstriconv.c: Likewise.
68744
68745 2006-09-13  Simon Josefsson  <jas@extundo.com>
68746
68747         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68748         that internally, suggested by Ralf Wildenhues
68749         <Ralf.Wildenhues@gmx.de>.
68750
68751 2006-09-13  Simon Josefsson  <jas@extundo.com>
68752
68753         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68754         @LIBOBJS@.
68755         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68756
68757 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68760         longer worry about uses that don't define HAVE_CONFIG_H.
68761         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68762         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68763         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68764         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68765         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68766         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68767         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68768         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68769         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68770         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68771         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68772         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68773         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68774         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68775         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68776         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68777         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68778         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68779         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68780         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68781         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68782         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68783         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68784         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68785         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68786         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68787         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68788         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68789         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68790         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68791         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68792         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68793         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68794         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68795         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68796         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68797         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68798         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68799         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68800         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68801         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68802         Likewise.
68803
68804 2006-09-13  Eric Blake  <ebb9@byu.net>
68805
68806         * lib/getopt.c: Fix typo in last commit.
68807
68808 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68809
68810         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68811         dgettext.
68812
68813 2006-09-12  Jim Meyering  <jim@meyering.net>
68814
68815         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68816         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68817         Reported by Nelson H. F. Beebe.
68818
68819 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68820
68821         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68822         program_invocation_name and program_invocation_short_name are
68823         initialized.
68824         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68825         and program_invocation_short_name to argp.h, so they are visible
68826         to user programs.
68827         * lib/argp.h: Likewise
68828
68829 2006-09-10  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68832         m4/inttypes_h.m4, m4/uintmax_t.m4.
68833
68834 2006-09-10  Bruno Haible  <bruno@clisp.org>
68835
68836         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68837         gl_AC_TYPE_UINTMAX_T.
68838
68839 2006-09-10  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68842
68843 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68844
68845         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68846         convention.  Text proposed by Bruno Haible.
68847         (struct argp_option): Document the use of N_() wrappers.
68848
68849         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68850         '\v', and translate the two parts separately, instead of feeding
68851         the whole string to gettext.  This allows to exclude
68852         '\v' from the strings visible to the translator by writing doc
68853         strings as N_("..") "\v" N_("..").
68854
68855 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68856
68857         * config/srclist.txt: Undo latest change; the bug was fixed.
68858
68859 2006-09-09  Bruno Haible  <bruno@clisp.org>
68860
68861         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68862         assignments if building a library without libtool.
68863         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68864         in func_emit_lib_Makefile_am.
68865         (func_import): When building a static library libfoo.a, arrange to
68866         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68867         (func_create_testdir): Likewise.
68868         * modules/gc (configure.ac, Makefile.am): If building statically,
68869         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68870         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68871         * modules/striconv (configure.ac, Makefile.am): Likewise.
68872         Based on a suggestion by Ralf Wildenhues.
68873
68874 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68877         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68878         Also:
68879
68880         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68881         Add year_2050_test to catch glibc bug 2821
68882         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68883
68884         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68885         Prefer #ifdef to #if.
68886
68887         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68888         Return from 'main' instead of calling 'exit'.
68889
68890 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68893         returned the maximum time_t value rather than (time_t) -1.
68894         Problem originally reported by William Bardwell
68895         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68896
68897         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68898         Moved to here ...
68899         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68900         ... from here.
68901
68902 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68903
68904         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68905         2821 is fixed.
68906
68907 2006-09-08  Jim Meyering  <jim@meyering.net>
68908
68909         Don't make generated files read-only.  That would bother too many
68910         people.  However, do retain the ability to work when targets are
68911         read-only: remove the destination and temporary files before writing
68912         them (when generated via sed or echo), or by using the -f option for
68913         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68914         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68915         * modules/byteswap, modules/configmake, modules/fcntl:
68916         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68917         * modules/localcharset, modules/netinet_in, modules/poll:
68918         * modules/stdbool, modules/stdint, modules/sys_select:
68919         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68920
68921 2006-09-08  Jim Meyering  <jim@meyering.net>
68922
68923         Avoid new build failure on FreeBSD 6.0.
68924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68925         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68926         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68927
68928 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68929
68930         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68931
68932 2006-09-07  Jim Meyering  <jim@meyering.net>
68933
68934         Fix global typo in last change: use chmod u-w, not chmod u-x.
68935         Spotted by Paul Eggert and Bruce Korb.
68936         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68937         * modules/byteswap, modules/configmake, modules/fcntl:
68938         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68939         * modules/localcharset, modules/netinet_in, modules/poll:
68940         * modules/stdbool, modules/stdint, modules/sys_select:
68941         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68942
68943 2006-09-06  Jim Meyering  <jim@meyering.net>
68944
68945         Make generated files be read-only.
68946         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68947         Ensure that each generated file is now read-only.
68948         * modules/argz: Likewise.
68949         * modules/arpa_inet: Likewise.
68950         * modules/byteswap: Likewise.
68951         * modules/configmake: Likewise.
68952         * modules/fcntl: Likewise.
68953         * modules/fnmatch: Likewise.
68954         * modules/getopt: Likewise.
68955         * modules/glob: Likewise.
68956         * modules/inttypes: Likewise.
68957         * modules/netinet_in: Likewise.
68958         * modules/poll: Likewise.
68959         * modules/stdbool: Likewise.
68960         * modules/stdint: Likewise.
68961         * modules/sys_select: Likewise.
68962         * modules/sys_socket: Likewise.
68963         * modules/sys_stat: Likewise.
68964         * modules/sysexits: Likewise.
68965         * modules/localcharset: Same as above, but continue using temporary
68966         file named "t-$@" (why different?) rather than the "$@-t" used
68967         everywhere else.
68968
68969         * modules/sysexits (Makefile.am): Replace literal occurrences
68970         of "sysexit.h" more readable, and more consistent, "$@".
68971
68972 2006-09-06  Bruno Haible  <bruno@clisp.org>
68973
68974         * modules/striconv: New file.
68975         * modules/xstriconv: New file.
68976         * MODULES.html.sh (Internationalization functions): Add striconv,
68977         xstriconv.
68978
68979 2006-09-06  Bruno Haible  <bruno@clisp.org>
68980
68981         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68982         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68983         not using libtool correctly.
68984
68985 2006-09-06  Bruno Haible  <bruno@clisp.org>
68986
68987         * lib/striconv.h: New file.
68988         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68989         iconvstring.c.
68990         * lib/xstriconv.h: New file.
68991         * lib/xstriconv.c: New file.
68992
68993 2006-09-06  Bruno Haible  <bruno@clisp.org>
68994
68995         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68996         lib_..._LDFLAGS.
68997
68998 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68999
69000         * lib/argz_.h: Sync from Libtool.
69001
69002         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69003                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69004
69005         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69006
69007 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69008
69009         * modules/trim: New file.
69010
69011 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69012
69013         * lib/trim.h: New file.
69014         * lib/trim.c: New file.
69015
69016 2006-09-05  Bruno Haible  <bruno@clisp.org>
69017
69018         * MODULES.html.sh (String handling): Add trim.
69019
69020 2006-09-04  Karl Berry  <karl@gnu.org>
69021
69022         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69023         until next release.
69024
69025 2006-09-03  Bruno Haible  <bruno@clisp.org>
69026
69027         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69028         correctly.
69029
69030 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69033         not gl_GETLOADAVG.  Omit unneeded semicolons.
69034         Problems reported by Ralf Wildenhues in
69035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69036         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69037         at the end, which is the usual gnulib style.
69038
69039         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69040         of doing all the work ourselves.
69041         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69042         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69043
69044 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69045
69046         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69047         Problem reported by Ralf Wildenhues in
69048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69049
69050         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69051         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69052
69053 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69056         yesterday's patch by changing test -n to test -z.
69057
69058 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69061         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69062         the former is now obsolescent.
69063
69064         * modules/chdir-long (Depends-on): Add fcntl.
69065
69066 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69069         obsolescent, and programs should use gnulib instead.
69070         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69071         but with prefixes changed.
69072
69073 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69076         or stdbool.h, because they might not exist while configuring.
69077
69078         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69079         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69080         does that for us.
69081         (O_DIRECTORY): Remove.
69082
69083 2006-08-31  Eric Blake  <ebb9@byu.net>
69084
69085         * gnulib-tool: Don't let emacs change spaces to TAB.
69086
69087 2006-08-31  Bruno Haible  <bruno@clisp.org>
69088
69089         * gnulib-tool: When calling func_import more than once, do it in a
69090         subshell.
69091         Reported by Eric Blake <ebb9@byu.net>.
69092
69093 2006-08-31  Bruno Haible  <bruno@clisp.org>
69094
69095         * gnulib-tool (nl): Remove variable.
69096         (sed_transform_lib_file): Use more robust test for config-h module.
69097         (func_import): Fix typo in 2006-08-25 patch.
69098
69099 2006-08-31  Bruno Haible  <bruno@clisp.org>
69100
69101         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69102         specified, augment Makefile.am variables instead of assigning them.
69103
69104 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69105
69106         Work around a bug in both the Linux and SunOS 64-bit kernels:
69107         nanosleep mishandles sleeps for longer than 2**31 seconds.
69108         Problem reported by Frank v Waveren in
69109         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69111         Check for nanosleep bug.
69112         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69113
69114 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         Work around a bug in both the Linux and SunOS 64-bit kernels:
69117         nanosleep mishandles sleeps for longer than 2**31 seconds.
69118         Problem reported by Frank v Waveren in
69119         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69120         * lib/nanosleep.c (BILLION): New constant.
69121         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69122         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69123         implementation.
69124
69125 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         * modules/nanosleep (Depends-on): Add gettime.
69128
69129 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69130         and Simon Josefsson  <jas@extundo.com>
69131         and Oskar Liljeblad  <oskar@osk.mine.nu>
69132
69133         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69134         * gnulib-tool (func_import): New license type 'unmodifiable license
69135         text'.
69136         * modules/fdl: Use it.  Longer description.
69137         * module/gpl, module/lgpl: New files.
69138
69139 2006-08-30  Jim Meyering  <jim@meyering.net>
69140
69141         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69142         shadowing the parameter.
69143
69144 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69145
69146         Sync from Libtool:
69147
69148         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69149
69150         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69151         sharing with gnulib.  Report by Eric Blake.
69152
69153 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * modules/isapipe: New file.
69156         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69157
69158 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * modules/configmake (Makefile.am): Add a comment, and omit
69161         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69162         by Bruno Haible.
69163
69164 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * m4/isapipe.m4: New file.
69167
69168 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * lib/isapipe.c, lib/isapipe.h: New files.
69171
69172 2006-08-29  Jim Meyering  <jim@meyering.net>
69173
69174         * modules/configmake (Makefile.am): Make configmake.h depend on
69175         Makefile.  Otherwise, a stale configmake.h could hang around.
69176
69177 2006-08-29  Eric Blake  <ebb9@byu.net>
69178
69179         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69180         resolution of upstream bug 3044.
69181
69182 2006-08-29  Bruno Haible  <bruno@clisp.org>
69183
69184         * modules/localcharset (Depends-on): Add configmake.
69185         (Makefile.am): Remove setting of LIBDIR through DEFS.
69186
69187 2006-08-29  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69190         defined.
69191
69192 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * modules/fcntl: New file.
69195         * modules/chdir-safer (Depends-on): Add fcntl.
69196         * modules/fts: Likewise.
69197         * modules/mkdir-p: Likewise.
69198
69199         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69200         This undoes the most recent change, since we're now addressing the
69201         problem in a different way.
69202
69203         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69204         into output, since the output might be called Makefile.am even
69205         if $makefile_name is something different.
69206         (func_import): Use $makefile_am rather than
69207         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69208         empty.
69209
69210         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69211
69212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69215         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69216         recent change to stdint.m4, since we're now addressing the problem in a
69217         different way.
69218
69219 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         * m4/fcntl_h.m4: New file.
69222
69223 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * lib/fcntl_.h: New file.
69226         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69227         the fcntl module.
69228         * lib/dirchownmod.c: Likewise.
69229         * lib/fts.c: Likewise.
69230
69231         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69232         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69233         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69234         just before including <inttypes.h>, to avoid circular inclusion.
69235
69236 2006-08-28  Jim Meyering  <jim@meyering.net>
69237
69238         * doc/visibility.texi: Actually read and correct the grammar of the
69239         sentence affected by yesterday's change.
69240
69241 2006-08-28  Eric Blake  <ebb9@byu.net>
69242
69243         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69244         needs wrapper.
69245
69246 2006-08-28  Eric Blake  <ebb9@byu.net>
69247
69248         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69249
69250 2006-08-28  Eric Blake  <ebb9@byu.net>
69251
69252         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69253
69254 2006-08-28  Bruno Haible  <bruno@clisp.org>
69255
69256         * modules/c-strstr: New file, from GNU gettext.
69257         * MODULES.html.sh (String handling): Add c-strstr.
69258
69259 2006-08-28  Bruno Haible  <bruno@clisp.org>
69260
69261         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69262         macros.
69263         Reported by Eric Blake.
69264
69265 2006-08-28  Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69268         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69269         * lib/vasprintf.c: Include errno.h, limits.h.
69270         (EOVERFLOW): New fallback definition.
69271         (vasprintf): Test here whether the string length is > INT_MAX.
69272         * lib/vsnprintf.c: Include errno.h, limits.h.
69273         (EOVERFLOW): New fallback definition.
69274         (vsnprintf): Fix bug when generated string was too long for the buffer.
69275         Test here whether the string length is > INT_MAX.
69276
69277 2006-08-28  Bruno Haible  <bruno@clisp.org>
69278
69279         * lib/inttypes_.h (SCNX*): Remove definitions.
69280         Reported by Eric Blake.
69281
69282 2006-08-28  Bruno Haible  <bruno@clisp.org>
69283
69284         * lib/c-strstr.h: New file, from GNU gettext.
69285         * lib/c-strstr.c: New file, from GNU gettext.
69286
69287 2006-08-28  Bruno Haible  <bruno@clisp.org>
69288
69289         * gnulib-tool: Reorder some statements.
69290
69291 2006-08-28  Bruno Haible  <bruno@clisp.org>
69292
69293         * gnulib-tool: New option --makefile-name.
69294         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69295         $makefile_name.
69296         (func_import): Write $makefile_name to the cache file, and read it from
69297         there unless explicitly specified. Use $makefile_name as file name
69298         instead of Makefile.am. Adjust the recommendations accordingly.
69299
69300 2006-08-28  Bruno Haible  <bruno@clisp.org>
69301
69302         * gnulib-tool (func_verify_module): Check against misapplying patch.
69303
69304 2006-08-28  Bruno Haible  <bruno@clisp.org>
69305
69306         * gnulib-tool (func_relativize, func_relconcat): New functions.
69307         Give an error if --local-dir is given with --update.
69308         Remove trailing slashes from $local_gnulib_dir.
69309         (func_import): Store the relativized $local_gnulib_dir in
69310         gnulib-cache.m4, and read it from there if not specified explicitly.
69311
69312 2006-08-28  Bruno Haible  <bruno@clisp.org>
69313
69314         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69315         is the current directory. Respect also $local_gnulib_dir.
69316
69317 2006-08-28  Bruno Haible  <bruno@clisp.org>
69318             Simon Josefsson  <jas@extundo.com>
69319
69320         BeOS portability.
69321         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69322
69323 2006-08-27  Jim Meyering  <jim@meyering.net>
69324
69325         * doc/visibility.texi: Remove duplicate word: "pointer".
69326
69327 2006-08-26  Bruno Haible  <bruno@clisp.org>
69328
69329         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69330         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69331         (Makefile.am): Create inttypes.h from inttypes_.h.
69332         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69333
69334         * modules/imaxabs: New file.
69335
69336         * modules/imaxdiv: New file.
69337
69338 2006-08-26  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/inttypes.m4: New file.
69341         * m4/_inttypes_h.m4: Remove file.
69342         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69343         PRI_MACROS_BROKEN.
69344         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69345
69346         * m4/imaxabs.m4: New file.
69347
69348         * m4/imaxdiv.m4: New file.
69349
69350 2006-08-26  Bruno Haible  <bruno@clisp.org>
69351
69352         * lib/inttypes_.h: New file.
69353         * lib/inttypes.h: Remove file.
69354         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69355
69356         * lib/imaxabs.c: New file.
69357
69358         * lib/imaxdiv.c: New file.
69359
69360 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         New config-h module, so that "make" output needn't be cluttered
69363         by -DHAVE_CONFIG_H.
69364         * MODULES.html.sh (Support for building libraries and executables):
69365         Add config-h.
69366         * modules/config-h: New file.
69367         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69368         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69369         the config-h module is used.
69370
69371         New configmake module, so that "make" output needn't be cluttered
69372         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69373         * MODULES.html.sh (Support for building libraries and executables):
69374         Add configmake.
69375         * modules/configmake: New file.
69376
69377 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * m4/config-h.m4: New file.
69380
69381 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * config/srclist.txt: Add elisp-comp.
69384
69385 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * MODULES.html.sh (Support for building libraries and executables):
69388         Add elisp-comp.
69389         * build-aux/elisp-comp: New file.
69390         * modules/elisp-comp: New file.
69391
69392 2006-08-24  Bruno Haible  <bruno@clisp.org>
69393
69394         * gnulib-tool (func_create_testdir): Use non-default values of
69395         sourcebase and m4base.
69396
69397 2006-08-24  Bruno Haible  <bruno@clisp.org>
69398
69399         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69400         HTML structure.
69401
69402 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * modules/openat (Depends-on): Add lchown.
69405
69406 2006-08-23  Bruno Haible  <bruno@clisp.org>
69407
69408         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69409         of gl_LOCK_EARLY instead of gl_LOCK.
69410
69411 2006-08-23  Bruno Haible  <bruno@clisp.org>
69412
69413         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69414         on OSF/1 to no.
69415         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69416
69417 2006-08-23  Bruno Haible  <bruno@clisp.org>
69418
69419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69420         as unusable.
69421
69422         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69423         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69424         (gl_LOCK): New macro.
69425
69426 2006-08-22  Simon Josefsson  <jas@extundo.com>
69427
69428         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69429         to md5 module.
69430
69431 2006-08-22  Simon Josefsson  <jas@extundo.com>
69432
69433         * MODULES.html.sh: Add "Support for maintaining and release
69434         projects".
69435
69436         * build-aux/gnupload: New file, from coreutils.
69437
69438 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         Avoid the need for AC_LIBSOURCES in m4 macros.
69441         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69442         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69443         * modules/check-version (EXTRA_DIST): Add check-version.h.
69444         * modules/crc (EXTRA_DIST): Add crc.h.
69445         * modules/des (EXTRA_DIST): Add des.h.
69446         * modules/gc (EXTRA_DIST): Add gc.h.
69447         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69448         * modules/getline (EXTRA_DIST): Add getline.h.
69449         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69450         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69451         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69452         * modules/md2 (EXTRA_DIST): Add md2.h.
69453         * modules/md4 (EXTRA_DIST): Add md4.h.
69454         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69455         * modules/read-file (EXTRA_DIST): Add read-file.h.
69456         * modules/readline (EXTRA_DIST): Add readline.h.
69457         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69458         rijndael-api-fst.h.
69459
69460 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * m4/rijndael.m4 (gl_ARCFOUR):
69463         * m4/arctwo.m4 (gl_ARCTWO):
69464         * m4/check-version.m4 (gl_CHECK_VERSION):
69465         * m4/crc.m4 (gl_CRC):
69466         * m4/des.m4 (gl_DES):
69467         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69468         * m4/gc.m4 (gl_GC):
69469         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69470         * m4/getline.m4 (gl_FUNC_GETLINE):
69471         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69472         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69473         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69474         * m4/md2.m4 (gl_MD2):
69475         * m4/md4.m4 (gl_MD4):
69476         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69477         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69478         * m4/readline.m4 (gl_FUNC_READLINE):
69479         * m4/rijndael.m4 (gl_RIJNDAEL):
69480         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69481         to get the necessary .h files and whatnot.
69482
69483 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69486         gnulib rather than the other way around.
69487         * config/srclistvars.sh (COREUTILS): Remove.
69488
69489 2006-08-22  Jim Meyering  <jim@meyering.net>
69490
69491         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69492
69493         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69494
69495 2006-08-22  Eric Blake  <ebb9@byu.net>
69496
69497         * modules/regexprops-generic: New file.
69498         * MODULES.html.sh (Support for building documentation): List it.
69499
69500 2006-08-22  Eric Blake  <ebb9@byu.net>
69501
69502         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69503         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69504         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69505         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69506
69507 2006-08-22  Bruno Haible  <bruno@clisp.org>
69508
69509         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69510         and lib_LTLIBRARIES like the other lib_* variables.
69511
69512 2006-08-22  Bruno Haible  <bruno@clisp.org>
69513
69514         * build-aux/x-to-1.in: New file, from GNU gettext.
69515
69516 2006-08-22  Bruno Haible  <bruno@clisp.org>
69517
69518         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69519         <utmpx.h> exists.
69520
69521 2006-08-22  Bruno Haible  <bruno@clisp.org>
69522
69523         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69524         <utmpx.h> exists.
69525
69526 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         BeOS portability.
69529         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69530         exist.
69531         Problem reported by Bruno Haible.
69532
69533 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         Avoid the need for AC_LIBSOURCES in m4 macros.
69536         * modules/acl (EXTRA_DIST): Add acl.h.
69537         * modules/argmatch (Files): Add m4/argmatch.m4.
69538         (configure.ac): Add gl_ARGMATCH.
69539         (EXTRA_DIST): Renamed from lib_SOURCES, for
69540         consistency with the other modules.  Remove argmatch.c.
69541         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69542         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69543         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69544         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69545         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69546         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69547         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69548         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69549         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69550         * modules/closeout (EXTRA_DIST): Add closeout.h.
69551         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69552         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69553         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69554         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69555         dirname.h; remove basename.c and stripslash.c.
69556         * modules/exclude (EXTRA_DIST): Add exclude.h.
69557         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69558         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69559         * modules/file-type (EXTRA_DIST): Add file-type.h.
69560         * modules/filemode (EXTRA_DIST): Add filemode.h.
69561         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69562         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69563         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69564         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69565         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69566         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69567         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69568         * modules/getdate (EXTRA_DIST): Add getdate.c.
69569         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69570         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69571         * modules/getpass (EXTRA_DIST): Add getpass.h.
69572         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69573         * modules/group-member (EXTRA_DIST): Add group-member.h.
69574         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69575         * modules/hash (EXTRA_DIST): Add hash.h.
69576         * modules/human (EXTRA_DIST): Add human.h.
69577         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69578         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69579         * modules/lchown (EXTRA_DIST): Add lchown.h.
69580         * modules/long-options (EXTRA_DIST): Add long-options.h.
69581         * modules/lstat (EXTRA_DIST): Add lstat.h.
69582         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69583         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69584         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69585         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69586         * modules/memxor (EXTRA_DIST): Add memxor.h.
69587         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69588         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69589         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69590         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69591         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69592         * modules/physmem (EXTRA_DIST): Add physmem.h.
69593         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69594         * modules/posixver (EXTRA_DIST): Add posixver.h.
69595         * modules/quote (EXTRA_DIST): Add quote.h.
69596         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69597         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69598         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69599         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69600         regex_internal.h regexec.c.
69601         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69602         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69603         * modules/same (EXTRA_DIST): Add same.h.
69604         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69605         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69606         * modules/savedir (EXTRA_DIST): Add savedir.h.
69607         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69608         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69609         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69610         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69611         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69612         * modules/strdup (EXTRA_DIST): Add strdup.h.
69613         * modules/strftime (EXTRA_DIST): Add strftime.h.
69614         * modules/strndup (EXTRA_DIST): Add strndup.h.
69615         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69616         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69617         * modules/time_r (EXTRA_DIST): Add time_r.h.
69618         * modules/timespec (EXTRA_DIST): Add timespec.h.
69619         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69620         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69621         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69622         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69623         * modules/userspec (EXTRA_DIST): Add userspec.h.
69624         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69625         * modules/utimens (EXTRA_DIST): Add utimens.h.
69626         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69627         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69628         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69629         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69630         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69631         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69632         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69633         * modules/yesno (EXTRA_DIST): Add yesno.h.
69634
69635 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69638
69639         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69640         * m4/dev-ino.m4, same-inode.m4: Remove.
69641
69642         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69643         * m4/acl.m4 (AC_FUNC_ACL):
69644         * m4/backupfile.m4 (gl_BACKUPFILE):
69645         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69646         * m4/canon-host.m4 (gl_CANON_HOST):
69647         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69648         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69649         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69650         * m4/cloexec.m4 (gl_CLOEXEC):
69651         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69652         * m4/closeout.m4 (gl_CLOSEOUT):
69653         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69654         * m4/dirname.m4 (gl_DIRNAME):
69655         * m4/exclude.m4 (gl_EXCLUDE):
69656         * m4/exitfail.m4 (gl_EXITFAIL):
69657         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69658         * m4/file-type.m4 (gl_FILE_TYPE):
69659         * m4/filemode.m4 (gl_FILEMODE):
69660         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69661         * m4/fpending.m4 (gl_FUNC_FPENDING):
69662         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69663         * m4/fts.m4 (gl_FUNC_FTS):
69664         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69665         * m4/getdate.m4 (gl_GETDATE):
69666         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69667         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69668         * m4/getpass.m4 (gl_FUNC_GETPASS):
69669         * m4/gettime.m4 (gl_GETTIME):
69670         * m4/getugroups.m4 (gl_GETUGROUPS):
69671         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69672         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69673         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69674         * m4/hash.m4 (gl_HASH):
69675         * m4/idcache.m4 (gl_IDCACHE):
69676         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69677         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69678         * m4/long-options.m4 (gl_LONG_OPTIONS):
69679         * m4/lstat.m4 (gl_FUNC_LSTAT):
69680         * m4/md5.m4 (gl_MD5):
69681         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69682         * m4/memcoll.m4 (gl_MEMCOLL):
69683         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69684         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69685         * m4/memxor.m4 (gl_MEMXOR):
69686         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69688         * m4/modechange.m4 (gl_MODECHANGE):
69689         * m4/mountlist.m4 (gl_MOUNTLIST):
69690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69691         * m4/openat.m4 (gl_FUNC_OPENAT):
69692         * m4/pathmax.m4 (gl_PATHMAX):
69693         * m4/physmem.m4 (gl_PHYSMEM):
69694         * m4/posixtm.m4 (gl_POSIXTM):
69695         * m4/posixver.m4 (gl_POSIXVER):
69696         * m4/quote.m4 (gl_QUOTE):
69697         * m4/quotearg.m4 (gl_QUOTEARG):
69698         * m4/readtokens.m4 (gl_READTOKENS):
69699         * m4/readutmp.m4 (gl_READUTMP):
69700         * m4/regex.m4 (gl_REGEX):
69701         * m4/safe-read.m4 (gl_SAFE_READ):
69702         * m4/safe-write.m4 (gl_SAFE_WRITE):
69703         * m4/same.m4 (gl_SAME):
69704         * m4/save-cwd.m4 (gl_SAVE_CWD):
69705         * m4/savedir.m4 (gl_SAVEDIR):
69706         * m4/settime.m4 (gl_SETTIME):
69707         * m4/sha1.m4 (gl_SHA1):
69708         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69709         * m4/stat-macros.m4 (gl_STAT_MACROS):
69710         * m4/stat-time.m4 (gl_STAT_TIME):
69711         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69712         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69713         * m4/strdup.m4 (gl_FUNC_STRDUP):
69714         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69715         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69716         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69717         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69718         * m4/time_r.m4 (gl_TIME_R):
69719         * m4/timespec.m4 (gl_TIMESPEC):
69720         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69721         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69722         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69723         * m4/userspec.m4 (gl_USERSPEC):
69724         * m4/utimecmp.m4 (gl_UTIMECMP):
69725         * m4/utimens.m4 (gl_UTIMENS):
69726         * m4/xalloc.m4 (gl_XALLOC):
69727         * m4/xgetcwd.m4 (gl_XGETCWD):
69728         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69729         * m4/xreadlink.m4 (gl_XREADLINK):
69730         * m4/xstrtod.m4 (gl_XSTRTOD):
69731         * m4/yesno.m4 (gl_YESNO):
69732         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69733         to get the necessary .h files and whatnot.
69734
69735 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69736             Bruno Haible  <bruno@clisp.org>
69737
69738         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69739         /bin/sh understanding of '!' conditional negation.
69740
69741 2006-08-21  Jim Meyering  <jim@meyering.net>
69742
69743         * modules/openat (Depends-on): Really alphabetize.
69744
69745         * modules/acl (Depends-on): Add error and quote.
69746
69747         * check-module (find_included_lib_files): Add at-func.c to the
69748         ok-to-include-more-than-once white list.
69749
69750         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69751
69752 2006-08-21  Bruno Haible  <bruno@clisp.org>
69753
69754         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69755         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69756         Reported by Martin Lambers <marlam@marlam.de>.
69757
69758 2006-08-21  Bruno Haible  <bruno@clisp.org>
69759
69760         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69761         specify an installation location, don't emit a noinst_LIBRARIES or
69762         noinst_LTLIBRARIES assignment.
69763
69764 2006-08-21  Bruno Haible  <bruno@clisp.org>
69765
69766         BeOS portability.
69767         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69768         BeOS has mbrtowc() but no <wctype.h>.
69769
69770 2006-08-21  Bruno Haible  <bruno@clisp.org>
69771
69772         BeOS portability.
69773         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69774         exist.
69775
69776 2006-08-21  Bruno Haible  <bruno@clisp.org>
69777
69778         BeOS portability.
69779         * lib/mbchar.h: Include <wctype.h> only if it exists.
69780
69781 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69782
69783         Remove files that are no longer needed by their respective modules.
69784         * m4/obstack.m4: Remove.
69785         * m4/strerror_r.m4: Remove.
69786         * m4/uint32_t.m4: Remove.
69787         * m4/uintptr_t.m4: Remove.
69788         * m4/ullong_max.m4: Remove.
69789         * m4/xstrtoimax.m4: Remove.
69790         * m4/xstrtoumax.m4: Remove.
69791
69792         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69793         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69794         dependencies now capture this.
69795
69796         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69797         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69798         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69799         * m4/human.m4 (gl_HUMAN): Likewise.
69800         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69801         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69802
69803         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69804
69805         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69806         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69807         stdint.
69808         * m4/human.m4 (gl_HUMAN): Likewise.
69809         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69810         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69811         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69812         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69813         * m4/xstrtol (gl_XSTRTOL): Likewise.
69814
69815         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69816         AC_TYPE_LONG_LONG_INT.
69817         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69818         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69819         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69820         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69821
69822         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69823         on stdbool.
69824
69825         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69826         (gl_PREREQ_XSTRTOUL): Remove.
69827
69828         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69829
69830         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69831         mode.
69832
69833 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         Add and change modules to make it easier for coreutils to use
69836         gnulib-tool.
69837         * modules/backupfile (Files): Remove m4/d-ino.m4.
69838         (Depends-on): Add d-ino.
69839         * modules/cycle-check (Depends-on): Add stdint.
69840         (lib_SOURCES): Add cycle-check.h.
69841         * modules/d-ino: New module.
69842         * modules/d-type: New module.
69843         * modules/error (Files): Remove m4/strerror_r.m4.
69844         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69845         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69846         m4/inttypes_h.m4, m4/uintmax_t.m4.
69847         (Depends-on): Add stdint.
69848         (lib_SOURCES): Add fsusage.h.
69849         * modules/getcwd (Files): Remove d-ino.m4.
69850         (Depends-on): Add d-ino.
69851         * modules/getndelim2 (Depends-on): Add stdint.
69852         * modules/glob (Files): Remove m4/d-type.m4.
69853         (Depends-on): Add d-type.
69854         * modules/host-os: New module.
69855         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69856         m4/inttypes_h.m4, m4/uintmax_t.m4.
69857         * Depends-on: Add stdint.
69858         (lib_SOURCES): Add human.h.
69859         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69860         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69861         m4/uintmax_t.m4, m4/ulonglong.m4.
69862         (Depends-on): Add stdint.
69863         (EXTRA_DIST): Add inttostr.h.
69864         * modules/lchmod: New module.
69865         * modules/link-follow: New module.
69866         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69867         (Depends-on): Add lchmod.
69868         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69869         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69870         (Depends-on): Add stdint.
69871         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69872         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69873         (Depends-on): Add stdint.
69874         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69875         * modules/perl: New module.
69876         * modules/regex (Depends-on): Add stdint.
69877         * modules/rmdir-errno: New module.
69878         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69879         m4/intmax_t.m4.
69880         (Depends-on): Add stdint.
69881         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69882         m4/uintmax_t.m4.
69883         (Depends-on): Add stdint.
69884         * modules/unlink-busy: New module.
69885         * modules/utimecmp (Depends-on): Add stdint.
69886         * modules/uptime: New module.
69887         * modules/winsz-ioctl: New module.
69888         * modules/winsz-termios: New module.
69889         * modules/xnanosleep (Depends-on): Add nanosleep.
69890         * modules/ullong_max: Remove.
69891         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69892         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69893         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69894         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69895         (Depends-on): Add inttypes.
69896         (lib_SOURCES): Add xstrtol.h.
69897         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69898         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69899         * MODULES.html.sh: Move 'assert' into the assert section.
69900         Move 'dummy' into the linking section.
69901         Remove ullong_max.
69902         Add section for compatibility checks for POSIX:2001 functions,
69903         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69904         winsz-ioctl, and winsz-termios into it.
69905         Add lchmod.
69906         Add top-level Misc section and put host-os, perl, and uptime
69907         into it.
69908
69909 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69912         now assume the stdint module.  Do not include inttypes.h.
69913         * lib/fsusage.h: Likewise.
69914         * lib/getndelim2.c: Likewise.
69915         * lib/human.h: Likewise.
69916         * lib/inttostr.h: Likewise.
69917         * lib/obstack.c: Likewise.
69918         * lib/regex_internal.h: Likewise.
69919         * lib/tempname.c: Likewise.
69920         * lib/utimecmp.c: Likewise.
69921         * lib/xstrtol.h: Likewise.
69922
69923         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69924
69925         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69926         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69927         * lib/xtime.h: Likewise.
69928
69929 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69930
69931         * modules/openat (Files): Add lib/fchmodat.c.
69932         Fixes problem reported by Jay Youngman.
69933
69934 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69937         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69938
69939 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69940             Bruno Haible  <bruno@clisp.org>
69941
69942         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69943         and is a script that invokes bison. Tighten the code. Add comments.
69944
69945 2006-08-18  Jim Meyering  <jim@meyering.net>
69946
69947         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69948         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69949         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69950         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69951
69952 2006-08-18  Bruno Haible  <bruno@clisp.org>
69953
69954         * modules/bison-i18n: New file.
69955         * MODULES.html.sh (Internationalization functions): Add it.
69956
69957 2006-08-18  Bruno Haible  <bruno@clisp.org>
69958
69959         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69960         sys/statvfs.h. When getmntinfo was found, check its declaration and
69961         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69962
69963 2006-08-18  Bruno Haible  <bruno@clisp.org>
69964
69965         * m4/bison-i18n.m4: New file, from bison.
69966
69967 2006-08-18  Bruno Haible  <bruno@clisp.org>
69968
69969         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69970         (ME_DUMMY): Treat "kernfs" as a dummy.
69971         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69972
69973 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Update from coreutils.
69976
69977         2006-08-15  Jim Meyering  <jim@meyering.net>
69978
69979         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69980
69981         2006-01-17  Jim Meyering  <jim@meyering.net>
69982
69983         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69984
69985         2006-01-11  Jim Meyering  <jim@meyering.net>
69986
69987         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69988         Check for the lchmod function.
69989
69990 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         Update from coreutils.
69993
69994         * lib/__fpending.h: Add copyright notice.
69995         * lib/fprintftime.h: Likewise.
69996         * lib/savedir.c: Use (C) in copyright notice.
69997         * lib/savedir.h: Likewise.
69998
69999         2006-08-15  Jim Meyering  <jim@meyering.net>
70000
70001         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70002         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70003         in support of the EXPECTED_ERRNO macro.
70004         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70005         definitions.  Instead, define the appropriate symbols and include
70006         "at-func.c".
70007         * lib/mkdirat.c (mkdirat): Likewise.
70008         * lib/fchmodat.c (fchmodat): Likewise.
70009         (ENOSYS): Remove definition.
70010         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70011         it.  Don't include "unistd--.h" -- it wasn't ever used.
70012
70013         2006-01-17  Jim Meyering  <jim@meyering.net>
70014
70015         Rewrite fts.c not to change the current working directory,
70016         by using openat, fstatat, fdopendir, etc..
70017
70018         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70019         (HAVE_OPENAT_SUPPORT): Define.
70020         [_LIBC] (fchdir): Don't undef or define; no longer used.
70021         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70022         Now, this `function' always succeeds, and consumes its file descriptor
70023         parameter -- so callers must not close such FDs.  Update callers.
70024         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70025         (diropen): Add parameter, SP.  Adjust all callers.
70026         Implement using diropen_fd, rather than open.
70027         (fts_open): Initialize new member, fts_cwd_fd.
70028         Remove fts_rft-setting code.
70029         (fts_close): Close fts_cwd_fd, if necessary.
70030         (__opendir2): Define in terms of opendir or opendirat,
70031         depending on whether the FST_NOCHDIR flag is set.
70032         (fts_build): Since fts_safe_changedir consumes its FD, and since
70033         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70034         and close the dup'd file descriptor upon failure.
70035         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70036         (fts_safe_changedir): Tweak semantics to reflect that this function
70037         now calls cwd_advance_fd and hence consumes its FD argument.
70038         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70039         [struct FTS] (fts_rft): Remove now-unused member.
70040         [struct FTS] (fts_cycle.state): Improve comment.
70041
70042         * lib/openat.c (openat_needs_fchdir): New function.
70043         * lib/openat.h (openat_needs_fchdir): Declare it.
70044
70045 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70046
70047         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70048         Problem and fix reported by Pádraig Brady in
70049         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70050
70051 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70054
70055 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * lib/memcoll.c (memcoll): Optimize for the common case where the
70058         arguments are bytewise equal.
70059
70060 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * doc/regexprops-generic.texi: Add a copyright notice.
70063
70064 2006-08-15  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/tmpdir (License): Change to LGPL.
70067
70068 2006-08-15  Bruno Haible  <bruno@clisp.org>
70069
70070         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70071         module.
70072
70073 2006-08-14  Simon Josefsson  <jas@extundo.com>
70074
70075         * config/srclist.txt: Add gnupload.
70076
70077 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         Change copyright notice from LGPL 2 to GPL 2, since that's the
70080         standard form used in the gnulib repository.
70081         * tests/test-lock.c: Likewise.
70082         * tests/test-stdint.c: Likewise.
70083         * tests/test-tls.c: Likewise.
70084
70085         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70086         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70087         Add copyright notice.
70088
70089         * check-module: Add copyright notice.  Output a copyright
70090         notice if "--version" is specified.
70091         * modules/COPYING: New file.
70092         * tests/test-getaddrinfo.c: Add copyright notice.
70093         * tests/test-verify.c: Likewise.
70094
70095 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         Change copyright notice from LGPL 2 to GPL 2, since that's the
70098         standard form used in the gnulib repository.
70099         * lib/lock.c: LGPL -> GPL.
70100         * lib/lock.h: Likewise.
70101         * lib/strnlen1.c: Likewise.
70102         * lib/strnlen1.h: Likewise.
70103         * lib/tls.c: Likewise.
70104         * lib/tls.h: Likewise.
70105         * lib/tmpdir.c: Likewise.
70106
70107         * lib/TODO: Remove; this belongs only in coreutils.
70108
70109 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70110
70111         Add copyright notices to long-enough files that lack them, since
70112         otherwise the files aren't clearly free.  Use the same notice that
70113         getdate.texi already uses.
70114         * doc/alloca-opt.texi: Add copyright notice.
70115         * doc/alloca.texi: Likewise.
70116         * doc/ctime.texi: Likewise.
70117         * doc/functions.texi: Likewise.
70118         * doc/gcd.texi: Likewise.
70119         * doc/gnulib-tool.texi: Likewise.
70120         * doc/inet_ntoa.texi: Likewise.
70121         * doc/visibility.texi: Likewise.
70122
70123         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70124         * doc/quote.texi: Add copyright notice.
70125
70126         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70127         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70128         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70129         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70130         is now obsolete, and give a pointer to the Sun list.
70131         Add copyright notice.
70132
70133 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         * config/srclistvars.sh: Add copyright notice.
70136
70137 2006-08-14  Eric Blake  <ebb9@byu.net>
70138
70139         Import the following change from libc:
70140
70141         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70142
70143         Upstream bug 2997.
70144         * lib/misc/error.c: Add space between program name and message if file
70145         name is missing.
70146
70147 2006-08-12  Karl Berry  <karl@gnu.org>
70148
70149         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70150         remove, these originate in gnulib now.
70151
70152 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70153
70154         * doc/Makefile (standards.info standards.html standards.dvi):
70155         Also depend on make-stds.texi.
70156
70157 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70160         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70161
70162         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70163         in wchar_t.  Problem reported by Eric Blake.
70164
70165         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70166         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70167         Also, help the compiler to keep LEN in a register.
70168
70169 2006-08-11  Eric Blake  <ebb9@byu.net>
70170
70171         * users.txt: Sort.  Add tar.
70172
70173 2006-08-11  Bruno Haible  <bruno@clisp.org>
70174
70175         * users.txt: New file.
70176
70177 2006-08-11  Bruno Haible  <bruno@clisp.org>
70178
70179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70180         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70181
70182 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * modules/snprintf (Depends-on): Remove minmax.
70185         (Maintainer): Add self and Bruno.
70186
70187 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70190         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70191         (EOVERFLOW): Define if the system does not.
70192         Do not include "minmax.h"; it wasn't used.
70193         (snprintf): Don't assume size_t promotes to an unsigned type.
70194         Fix bug when generated string was too long for the buffer: the
70195         buffer's contents are supposed to be the initial prefix of the
70196         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70197         exceeds INT_MAX; do the check ourselves.
70198
70199         Import the following changes from libc:
70200
70201         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70202
70203         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70204         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70205         set wc to the byte which couldn't be converted.
70206         (re_string_reconstruct): Don't clear valid_raw_len before calling
70207         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70208         tip_context using re_string_context_at.
70209
70210         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70211
70212         * lib/posix/regex.h: g++ still cannot handled [restrict].
70213
70214         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70215
70216         * lib/posix/regex.h: Remove special handling for VMS.
70217
70218 2006-08-10  Jim Meyering  <jim@meyering.net>
70219
70220         * modules/same-inode: New module.
70221         * modules/dev-ino: New module.
70222         * modules/cycle-check: Depend on these modules, rather than simply
70223         including their .h files.
70224         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70225         required via m4/cycle-check.m4.
70226         * modules/same: Depend on new same-inode module, rather than
70227         including same-inode.h.
70228         * modules/chdir-safer: New file.
70229
70230         * modules/chown (Depends-on): Add stat-macros.
70231
70232 2006-08-10  Jim Meyering  <jim@meyering.net>
70233
70234         * m4/cycle-check.m4: New file.
70235         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70236         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70237
70238 2006-08-10  Eric Blake  <ebb9@byu.net>
70239
70240         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70241         in from original proposal.
70242
70243 2006-08-10  Eric Blake  <ebb9@byu.net>
70244         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70245
70246         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70247         namespace.
70248
70249 2006-08-10  Bruno Haible  <bruno@clisp.org>
70250
70251         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70252         as well.
70253
70254 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70255
70256         Sync from coreutils.
70257
70258         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70259
70260         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70261         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70262
70263 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * modules/restrict: Remove; no longer needed now that we assume
70266         Autoconf 2.59 or later.
70267         * MODULES.html.sh: Remove 'restrict'.
70268         * modules/argp (Depends-on): Remove 'restrict'.
70269         * modules/base64 (Depends-on): Likewise.
70270         * modules/gc (Depends-on): Likewise.
70271         * modules/getaddrinfo (Depends-on): Likewise.
70272         * modules/glob (Depends-on): Likewise.
70273         * modules/inet_ntop (Depends-on): Likewise.
70274         * modules/inet_pton (Depends-on): Likewise.
70275         * modules/memxor (Depends-on): Likewise.
70276         * modules/regex (Depends-on): Likewise.
70277         * modules/strtok_r (Depends-on): Likewise.
70278         * modules/time_r (Depends-on): Likewise.
70279
70280 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70283         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70284         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70285         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70286         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70287         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70288         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70289         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70290
70291         Merge from coreutils.
70292         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70293         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70294         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70295         * m4/time_r.m4 (gl_TIME_R): Likewise.
70296
70297 2006-08-09  Karl Berry  <karl@gnu.org>
70298
70299         * config/srclist.txt: no more gettext-tools, per Bruno.
70300
70301 2006-08-08  Eric Blake  <ebb9@byu.net>
70302
70303         * modules/verror: New module.
70304         * MODULES.html.sh: Document it.
70305
70306 2006-08-08  Eric Blake  <ebb9@byu.net>
70307
70308         * lib/verror.h, lib/verror.c: New files.
70309
70310 2006-08-08  Eric Blake  <ebb9@byu.net>
70311
70312         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70313         verror_at_line output complies with GNU Coding Standards even when
70314         file is NULL.
70315
70316 2006-08-07  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70319         versions of AIX.
70320         Reported by Ralf Wildenhues.
70321
70322 2006-08-07  Bruno Haible  <bruno@clisp.org>
70323
70324         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70325         in an AC_DEFUN. Needed so that the autoconf snippets can use
70326         AC_REQUIRE.
70327
70328 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70329
70330         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70331         Initialize pkgdata_DATA.
70332         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70333         overriding it.
70334
70335 2006-08-06  Eric Blake  <ebb9@byu.net>
70336
70337         * lib/error.h: Fold in some upstream changes from glibc.
70338         * lib/error.c: Likewise.
70339
70340 2006-08-04  Bruno Haible  <bruno@clisp.org>
70341
70342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70343         Make the mostlyclean-local rule depend on mostlyclean-generic.
70344         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70345
70346 2006-07-31  Bruno Haible  <bruno@clisp.org>
70347
70348         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70349         <stdlib.h>, <string.h>.
70350
70351 2006-07-30  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/readlink (License): Change to LGPL.
70354
70355 2006-07-30  Bruno Haible  <bruno@clisp.org>
70356
70357         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70358         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70359         set PKGDATADIR to point to it.
70360
70361 2006-07-30  Bruno Haible  <bruno@clisp.org>
70362
70363         * modules/csharpexec (configure.ac): Comment out macro invocation.
70364         * modules/javaexec (configure.ac): Likewise.
70365         * modules/javacomp-script (configure.ac): Likewise.
70366
70367         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70368
70369 2006-07-30  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70372         linked-list.
70373
70374 2006-07-30  Bruno Haible  <bruno@clisp.org>
70375
70376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70377
70378 2006-07-30  Bruno Haible  <bruno@clisp.org>
70379
70380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70381         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70382         get removed.
70383
70384 2006-07-29  Bruno Haible  <bruno@clisp.org>
70385
70386         Make it possible for gnulib-tool to work with locally modified or
70387         augmented gnulib repositories.
70388         * gnulib-tool (func_usage): Document --local-dir option.
70389         (local_gnulib_dir): New variable.
70390         Handle --local-dir option.
70391         (func_lookup_file): New function.
70392         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70393         (func_get_description, func_get_filelist, func_get_description,
70394         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70395         func_get_automake_snippet, func_get_include_directive,
70396         func_get_license, func_get_maintainer): Use func_lookup_file.
70397         (func_import, func_create_testdir): Use func_lookup_file.
70398
70399 2006-07-29  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/setenv (Depends-on): Add unistd.
70402
70403 2006-07-29  Bruno Haible  <bruno@clisp.org>
70404
70405         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70406
70407 2006-07-29  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70410
70411 2006-07-29  Bruno Haible  <bruno@clisp.org>
70412
70413         * gnulib-tool (import, update): If there is no Makefile.am, look at
70414         aclocal.m4, instead of bailing out.
70415
70416 2006-07-29  Bruno Haible  <bruno@clisp.org>
70417
70418         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70419         Categorize the options by when they are useful.
70420
70421 2006-07-29  Bruno Haible  <bruno@clisp.org>
70422
70423         * gnulib-tool (func_usage): Document option --no-libtool.
70424         Handle option --no-libtool.
70425         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70426         for changed semantics of $libtool variable.
70427         (func_import): Likewise. If libtool is not used, show this through
70428         an option --no-libtool.
70429         (func_create_testdir): Update.
70430
70431 2006-07-29  Bruno Haible  <bruno@clisp.org>
70432
70433         * gnulib-tool (func_import): Extend error message about missing
70434         --doc-base.
70435
70436 2006-07-29  Bruno Haible  <bruno@clisp.org>
70437
70438         * gnulib-tool (func_import): Don't create the $docbase directory if
70439         there is no file to store there.
70440
70441 2006-07-29  Bruno Haible  <bruno@clisp.org>
70442
70443         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70444         relevant, look for configure.ac there, not in the current directory.
70445         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70446
70447 2006-07-29  Bruno Haible  <bruno@clisp.org>
70448
70449         * gnulib-tool (SORT): New variable.
70450         (func_usage): Undocument --assume-autoconf option.
70451         Remove --assume-autoconf option handling.
70452         (autoconf_minversion): Determine from the contents of configure.ac.
70453         (func_import): Remove autoconf_minversion handling.
70454         Suggested by Eric Blake.
70455
70456 2006-07-29  Bruno Haible  <bruno@clisp.org>
70457
70458         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70459
70460 2006-07-29  Bruno Haible  <bruno@clisp.org>
70461
70462         * config/srclist.txt (*setenv.[ch]): Remove rules.
70463
70464 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70465
70466         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70467
70468 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70469
70470         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70471         arpa/inet.h.
70472
70473 2006-07-28  Simon Josefsson  <jas@extundo.com>
70474
70475         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70476         * modules/inet_pton (Depends-on): Likewise.
70477
70478 2006-07-28  Simon Josefsson  <jas@extundo.com>
70479
70480         * m4/netinet_in_h.m4: New file.
70481
70482 2006-07-28  Simon Josefsson  <jas@extundo.com>
70483
70484         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70485         #include's.
70486
70487 2006-07-28  Simon Josefsson  <jas@extundo.com>
70488
70489         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70490         #include's.
70491
70492 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70495         setgid on directories only if they set these bits.
70496         * lib/modechange.h: Remove obsolete comment about masks.
70497
70498 2006-07-28  Eric Blake  <ebb9@byu.net>
70499
70500         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70501         macro expansion.
70502
70503 2006-07-28  Bruno Haible  <bruno@clisp.org>
70504
70505         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70506
70507 2006-07-28  Bruno Haible  <bruno@clisp.org>
70508
70509         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70510
70511 2006-07-28  Bruno Haible  <bruno@clisp.org>
70512
70513         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70514         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70515         Define fallbacks.
70516         Avoids link error on FreeBSD 4.x.
70517         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70518
70519         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70520         encoding.
70521         * lib/mbswidth.c (iswcntrl): Likewise.
70522
70523 2006-07-27  Bruno Haible  <bruno@clisp.org>
70524
70525         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70526         test.
70527
70528 2006-07-27  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70531         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70532         defined.
70533
70534 2006-07-26  Eric Blake  <ebb9@byu.net>
70535
70536         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70537
70538 2006-07-26  Eric Blake  <ebb9@byu.net>
70539
70540         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70541         like mingw that lack mkstemp.
70542         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70543         avoid compilation warning on mingw.
70544
70545 2006-07-26  Bruno Haible  <bruno@clisp.org>
70546
70547         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70548         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70549         INT_FAST*_MIN, INTPTR_MIN.
70550
70551 2006-07-25  Bruno Haible  <bruno@clisp.org>
70552
70553         * modules/version-etc (Depends-on): Add stdarg.
70554
70555 2006-07-25  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70558         complex commands.
70559
70560 2006-07-25  Bruno Haible  <bruno@clisp.org>
70561
70562         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70563         defined in <stdarg.h> or config.h.
70564
70565 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70566
70567         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70568         (gl_STDIO_SAFER): Remove.
70569
70570 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * MODULES.html.sh (File stream based Input/Output):
70573         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70574         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70575         * modules/fopen-safer, modules/tmpfile-safer: New files.
70576         * modules/stdio-safer: Remove.
70577
70578 2006-07-24  Bruno Haible  <bruno@clisp.org>
70579
70580         * modules/tmpdir: New file.
70581         * MODULES.html.sh (File system functions): Add it.
70582
70583 2006-07-24  Bruno Haible  <bruno@clisp.org>
70584
70585         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70586         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70587
70588 2006-07-24  Bruno Haible  <bruno@clisp.org>
70589
70590         * modules/clean-temp: New file.
70591
70592 2006-07-24  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/tmpdir.m4: New file, from GNU gettext.
70595
70596 2006-07-24  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/tmpdir.h: New file, from GNU gettext.
70599         * lib/tmpdir.c: New file, from GNU gettext.
70600
70601 2006-07-24  Bruno Haible  <bruno@clisp.org>
70602
70603         * lib/clean-temp.h: New file, from GNU gettext.
70604         * lib/clean-temp.c: New file, from GNU gettext.
70605
70606 2006-07-23  Eric Blake  <ebb9@byu.net>
70607
70608         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70609         (Depends-on): Add binary-io.
70610
70611 2006-07-23  Eric Blake  <ebb9@byu.net>
70612
70613         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70614
70615 2006-07-23  Eric Blake  <ebb9@byu.net>
70616
70617         * lib/tmpfile-safer.c: New file.
70618         * lib/stdio-safer.h (fopen_safer): Add prototype.
70619         * lib/stdio--.h (tmpfile): Make safer.
70620
70621 2006-07-23  Bruno Haible  <bruno@clisp.org>
70622
70623         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70624         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70625         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70626         gl_linked_remove_at): Use it.
70627
70628 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70629         and Simon Josefsson <jas@extundo.com>
70630
70631         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70632
70633         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70634
70635 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70636
70637         * modules/close-stream: New file.
70638         * modules/closeout (Description): Make it clear that it exits
70639         with a diagnostic on error.
70640         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70641         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70642
70643 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * m4/close-stream.m4: New file.
70646
70647 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70648
70649         * lib/close-stream.c, lib/close-stream.h: New files.
70650
70651 2006-07-22  Bruno Haible  <bruno@clisp.org>
70652
70653         Merge from GNU gettext 0.15.
70654
70655         2006-05-01  Bruno Haible  <bruno@clisp.org>
70656
70657                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70658
70659         2006-07-22  Bruno Haible  <bruno@clisp.org>
70660
70661                 * modules/javaversion: New file.
70662                 * MODULES.html.sh (Java): Add javaversion.
70663
70664         2006-03-12  Bruno Haible  <bruno@clisp.org>
70665
70666                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70667
70668         2005-12-04  Bruno Haible  <bruno@clisp.org>
70669
70670                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70671                 (untested).
70672
70673         2006-06-21  Bruno Haible  <bruno@clisp.org>
70674
70675                 Avoid warnings from recent versions of mcs.
70676                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70677                 -o, -L, -r any more. Use options documented since mcs-1.0
70678                 instead. Similarly for -g.
70679
70680         2005-12-04  Bruno Haible  <bruno@clisp.org>
70681
70682                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70683                 .resources, not .resource.
70684
70685         2005-07-09  Bruno Haible  <bruno@clisp.org>
70686
70687                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70688                 add a .dll suffix.
70689                 Reported by Mark Junker <mjscod@gmx.de>.
70690
70691         2006-07-22  Bruno Haible  <bruno@clisp.org>
70692
70693                 * modules/gettext: Upgrade to gettext-0.15.
70694                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70695                 m4/visibility.m4.
70696                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70697
70698 2006-07-22  Bruno Haible  <bruno@clisp.org>
70699
70700         Merge from GNU gettext 0.15.
70701
70702         2006-03-25  Bruno Haible  <bruno@clisp.org>
70703
70704                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70705
70706         2006-07-21  Bruno Haible  <bruno@clisp.org>
70707
70708                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70709                 "1.1".
70710
70711         2006-05-09  Bruno Haible  <bruno@clisp.org>
70712
70713                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70714                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70715                 for the conftestver execution.
70716
70717         2006-05-01  Bruno Haible  <bruno@clisp.org>
70718
70719                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70720                 optional target-version argument. Verify that the compiler
70721                 groks source of the specified source-version, or add -source
70722                 option as necessary. Verify that the compiler produces
70723                 bytecode in the specified target-version, or add -target and
70724                 -source options as necessary. Make the result of the test
70725                 available as variable CONF_JAVAC. Also log error output in
70726                 config.log.
70727
70728         2006-03-11  Bruno Haible  <bruno@clisp.org>
70729
70730                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70731
70732         2006-05-09  Bruno Haible  <bruno@clisp.org>
70733
70734                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70735                 CLASSPATH_SEPARATOR to a semicolon.
70736
70737         2006-03-12  Bruno Haible  <bruno@clisp.org>
70738
70739                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70740                 available as variable CONF_JAVA, for subsequent autoconf
70741                 tests. Also log error output in config.log.
70742
70743         2006-07-19  Bruno Haible  <bruno@clisp.org>
70744
70745                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70746                 that getline works on glibc2 systems. Needed to avoid trouble
70747                 in relocatable.c.
70748                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70749
70750         2005-12-04  Bruno Haible  <bruno@clisp.org>
70751
70752                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70753                 launcher (untested).
70754
70755         2005-12-04  Bruno Haible  <bruno@clisp.org>
70756
70757                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70758
70759         2006-07-22  Bruno Haible  <bruno@clisp.org>
70760
70761                 * gettext.m4: Update from GNU gettext-0.15.
70762                 * nls.m4: Likewise.
70763                 * po.m4: Likewise.
70764                 * inttypes-pri.m4: Likewise.
70765                 * inttypes-h.m4: Renamed from inttypes.m4.
70766                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70767
70768 2006-07-22  Bruno Haible  <bruno@clisp.org>
70769
70770         Merge from GNU gettext 0.15.
70771
70772         2005-07-05  Bruno Haible  <bruno@clisp.org>
70773
70774                 * printf-args.c (printf_fetchargs): Work around broken
70775                 definition of wint_t on mingw.
70776
70777         2005-02-12  Bruno Haible  <bruno@clisp.org>
70778
70779                 * xallocsa.h: Add extern "C" for C++.
70780
70781         2006-05-17  Bruno Haible  <bruno@clisp.org>
70782
70783                 Cygwin portability.
70784                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70785
70786         2006-04-30  Bruno Haible  <bruno@clisp.org>
70787
70788                 * progreloc.c: Include <mach-o/dyld.h> if available.
70789                 (find_executable): Use _NSGetExecutablePath when possible.
70790
70791         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70792
70793                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70794                 function.
70795
70796         2005-12-29  Bruno Haible  <bruno@clisp.org>
70797
70798                 * progreloc.c (set_program_name_and_installdir): Fix
70799                 compilation error.
70800
70801         2005-12-04  Bruno Haible  <bruno@clisp.org>
70802
70803                 Cygwin portability.
70804                 * progreloc.c: Include <windows.h> also on Cygwin.
70805                 (find_executable): Add support for Cygwin.
70806                 (set_program_name_and_installdir): Handle also platforms with
70807                 nonempty EXEEXT.
70808
70809         2006-07-11  Bruno Haible  <bruno@clisp.org>
70810
70811                 * javacomp.c: Fix a comment.
70812                 Reported by Jim Meyering.
70813
70814         2006-04-30  Bruno Haible  <bruno@clisp.org>
70815
70816                 * javacomp.h (compile_java_class): Add source_version,
70817                 target_version arguments.
70818                 * javacomp.c: Rewritten to choose only a compiler that
70819                 respects the specified source_version and target_version.
70820
70821         2006-06-27  Bruno Haible  <bruno@clisp.org>
70822
70823                 Assume correct S_ISDIR macro.
70824                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70825
70826         2006-07-22  Bruno Haible  <bruno@clisp.org>
70827
70828                 * javaversion.h: New file, from GNU gettext.
70829                 * javaversion.c: New file, from GNU gettext.
70830                 * javaversion.java: New file, from GNU gettext.
70831                 * javaversion.class: New file, from GNU gettext.
70832
70833         2006-05-17  Bruno Haible  <bruno@clisp.org>
70834
70835                 Cygwin portability.
70836                 * javaexec.c (execute_java_class): Test for jview program
70837                 also on Cygwin.
70838
70839         2006-04-09  Bruno Haible  <bruno@clisp.org>
70840
70841                 * fatal-signal.c: Don't include string.h.
70842                 (at_fatal_signal): Use a copying loop instead of memcpy.
70843
70844         2005-12-04  Bruno Haible  <bruno@clisp.org>
70845
70846                 * csharpexec.c: Add support for 'clix' launcher (untested).
70847                 (execute_csharp_using_sscli): New function.
70848                 (execute_csharp_program): Call it.
70849
70850         2006-06-21  Bruno Haible  <bruno@clisp.org>
70851
70852                 Avoid warnings from recent versions of mcs.
70853                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70854                 -o, -L, -r any more. Use options documented since mcs-1.0
70855                 instead. Similarly for -g.
70856
70857         2005-07-09  Bruno Haible  <bruno@clisp.org>
70858
70859                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70860                 add a .dll suffix.
70861                 Reported by Mark Junker <mjscod@gmx.de>.
70862
70863         2006-06-17  Bruno Haible  <bruno@clisp.org>
70864
70865                 * config.charset: Update for NetBSD 3.0.
70866
70867         2006-05-17  Bruno Haible  <bruno@clisp.org>
70868
70869                 Cygwin portability.
70870                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70871
70872         2006-05-16  Bruno Haible  <bruno@clisp.org>
70873
70874                 * localcharset.c [CYGWIN]: Include <windows.h>.
70875                 (get_charset_aliases): For Cygwin, return the same CPxxx
70876                 aliases list as under WIN32.
70877                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70878                 the environment variables. Fall back to GetACP().
70879
70880         2006-04-05  Bruno Haible  <bruno@clisp.org>
70881
70882                 * config.charset: Update Juan Manuel Guerrero's address.
70883
70884         2005-02-12  Bruno Haible  <bruno@clisp.org>
70885
70886                 * allocsa.h: Add extern "C" for C++.
70887
70888         2005-02-10  Bruno Haible  <bruno@clisp.org>
70889
70890                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70891                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70892
70893         2006-07-22  Bruno Haible  <bruno@clisp.org>
70894
70895                 * gettext.h: Update to GNU gettext-0.15.
70896
70897 2006-07-22  Bruno Haible  <bruno@clisp.org>
70898
70899         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70900         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70901         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70902
70903 2006-07-21  Eric Blake  <ebb9@byu.net>
70904
70905         * modules/stdlib-safer: New file.
70906         * MODULES.html.sh (File stream based Input/Output): Add
70907         stdlib-safer.
70908
70909 2006-07-21  Eric Blake  <ebb9@byu.net>
70910
70911         * lib/stdlib-safer.h: New file from coreutils, required by
70912         stdlib--.h.
70913
70914 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70917
70918 2006-07-20  Bruno Haible  <bruno@clisp.org>
70919
70920         * gnulib-tool: Recognize new option --assume-autoconf.
70921         (autoconf_minversion): New variable.
70922         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70923
70924 2006-07-20  Bruno Haible  <bruno@clisp.org>
70925
70926         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70927
70928 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70929
70930         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70931         Reindent and repaginate.
70932
70933 2006-07-19  Derek Price  <derek@ximbiot.com>
70934
70935         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70936         Correct grammar.
70937
70938 2006-07-17  Bruno Haible  <bruno@clisp.org>
70939
70940         * modules/list: New file.
70941         * modules/array-list: New file.
70942         * modules/carray-list, modules/carray-list-tests: New files.
70943         * modules/linked-list, modules/linked-list-tests: New files.
70944         * modules/avltree-list, modules/avltree-list-tests: New files.
70945         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70946         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70947         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70948         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70949         * modules/oset: New file.
70950         * modules/array-oset: New file.
70951         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70952         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70953         * tests/test-carray_list.c: New file.
70954         * tests/test-linked_list.c: New file.
70955         * tests/test-avltree_list.c: New file.
70956         * tests/test-rbtree_list.c: New file.
70957         * tests/test-linkedhash_list.c: New file.
70958         * tests/test-avltreehash_list.c: New file.
70959         * tests/test-rbtreehash_list.c: New file.
70960         * tests/test-avltree_oset.c: New file.
70961         * tests/test-rbtree_oset.c: New file.
70962         * MODULES.html.sh (Container data structures): New section.
70963
70964 2006-07-17  Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/gl_list.m4: New file.
70967
70968 2006-07-17  Bruno Haible  <bruno@clisp.org>
70969
70970         * lib/gl_list.h: New file.
70971         * lib/gl_list.c: New file.
70972         * lib/gl_array_list.h: New file.
70973         * lib/gl_array_list.c: New file.
70974         * lib/gl_carray_list.h: New file.
70975         * lib/gl_carray_list.c: New file.
70976         * lib/gl_linked_list.h: New file.
70977         * lib/gl_linked_list.c: New file.
70978         * lib/gl_anylinked_list1.h: New file.
70979         * lib/gl_anylinked_list2.h: New file.
70980         * lib/gl_avltree_list.h: New file.
70981         * lib/gl_avltree_list.c: New file.
70982         * lib/gl_anyavltree_list1.h: New file.
70983         * lib/gl_anyavltree_list2.h: New file.
70984         * lib/gl_rbtree_list.h: New file.
70985         * lib/gl_rbtree_list.c: New file.
70986         * lib/gl_anyrbtree_list1.h: New file.
70987         * lib/gl_anyrbtree_list2.h: New file.
70988         * lib/gl_anytree_list1.h: New file.
70989         * lib/gl_anytree_list2.h: New file.
70990         * lib/gl_linkedhash_list.h: New file.
70991         * lib/gl_linkedhash_list.c: New file.
70992         * lib/gl_anyhash_list1.h: New file.
70993         * lib/gl_anyhash_list2.h: New file.
70994         * lib/gl_avltreehash_list.h: New file.
70995         * lib/gl_avltreehash_list.c: New file.
70996         * lib/gl_rbtreehash_list.h: New file.
70997         * lib/gl_rbtreehash_list.c: New file.
70998         * lib/gl_anytreehash_list1.h: New file.
70999         * lib/gl_anytreehash_list2.h: New file.
71000
71001         * lib/gl_oset.h: New file.
71002         * lib/gl_oset.c: New file.
71003         * lib/gl_array_oset.h: New file.
71004         * lib/gl_array_oset.c: New file.
71005         * lib/gl_avltree_oset.h: New file.
71006         * lib/gl_avltree_oset.c: New file.
71007         * lib/gl_rbtree_oset.h: New file.
71008         * lib/gl_rbtree_oset.c: New file.
71009         * lib/gl_anytree_oset.h: New file.
71010
71011 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * m4/mkancesdirs.m4: New file.
71014         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71015         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71016         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71017         it.
71018
71019 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71022         * lib/mkancesdirs.h: New files.
71023         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71024         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71025         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71026         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71027         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71028         callers changed.  Revamp internals significantly, by not
71029         attempting to create directories that are temporarily more
71030         permissive than the final results.  Do not attempt to use
71031         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71032         This removes some race conditions, fixes some bugs, and simplifies
71033         things.  Use new dirchownmod function to do owner and mode changes.
71034         * lib/mkdir-p.h: Likewise.
71035         * lib/modechange.c (octal_to_mode): New function.
71036         (struct mode_change): New member mentioned.
71037         (make_node_op_equals): New arg mentioned.  All callers changed.
71038         (mode_compile): Keep track of which mode bits the user has explicitly
71039         mentioned.
71040         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71041         New arg PMODE_BITS, to keep track of which mode bits the user
71042         mentioned; it treats S_ISUID and S_ISGID speciall.
71043         All callers changed.
71044         * lib/modechange.h: Likewise.
71045
71046 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * MODULES.html.sh: Add mkancestors.
71049         * modules/mkancesdirs: New module.
71050         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71051         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71052         The chdir-safer and afs files are now orphans; I'll remove them
71053         unless someone speaks up.
71054         Add lib/dirchownmod.c, lib/dirchownmod.h.
71055         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71056         Add lchown, mkancesdirs.
71057         (Maintainer): Add self.
71058
71059 2006-07-15  Karl Berry  <karl@gnu.org>
71060
71061         * gnulib-tool: help message wording/arrangement.
71062
71063 2006-07-14  Simon Josefsson  <jas@extundo.com>
71064
71065         * doc/gnulib.texi (Libtool and Windows): New section.
71066
71067 2006-07-12  Simon Josefsson  <jas@extundo.com>
71068
71069         * modules/gendocs (License): Fix license, approved by Karl.
71070
71071 2006-07-12  Eric Blake  <ebb9@byu.net>
71072
71073         * MODULES.html.sh: Add gendocs.
71074
71075 2006-07-11  Eric Blake  <ebb9@byu.net>
71076
71077         * modules/fdl: New module, to install doc/fdl.texi.
71078         * MODULES.html.sh: Add new section for documentation modules.
71079         * gnulib-tool: Avoid space-tab.
71080         (--doc-base): New option, to manage files from doc.
71081
71082 2006-07-11  Eric Blake  <ebb9@byu.net>
71083
71084         * m4/absolute-header.m4: Fix comments to match recent change.
71085
71086 2006-07-11  Eric Blake  <ebb9@byu.net>
71087
71088         * gnulib-tool: List --doc-base before --tests-base.
71089
71090 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71091
71092         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71093
71094 2006-07-11  Bruno Haible  <bruno@clisp.org>
71095
71096         * README: Mention where to put documentation.
71097
71098 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71099
71100         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71101
71102 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71105         to stdint.m4.
71106
71107 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71110         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71111         "no/such/file/stdint.h" when there is no such file, so that
71112         the resulting C code can be parsed by dodgy compilers.
71113         Problems reported by Bob Proulx.
71114
71115 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71116
71117         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71118         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71119         macros into the GNU _D_EXACT_NAMLEN.
71120         * lib/savedir.c:  Likewise.
71121         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71122
71123 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71124         and Paul Eggert  <eggert@cs.ucla.edu>
71125
71126         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71127         * m4/savedir.m4:
71128         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71129         macros into the GNU _D_EXACT_NAMLEN.
71130
71131 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71134         around the absolute name, to work around a problem with the HP-UX
71135         11.23 native C compiler, reported by Bob Proulx.
71136
71137 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * doc/maintain.texi, make-stds.texi: Sync from
71140         <http://savannah.gnu.org/projects/gnustandards>.
71141
71142 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71145
71146 2006-07-09  Jim Meyering  <jim@meyering.net>
71147
71148         * m4/glob.m4: Remove a doubled word in a comment.
71149
71150 2006-07-09  Jim Meyering  <jim@meyering.net>
71151
71152         * lib/argp-pv.c: Remove a doubled word in a comment.
71153         * lib/check-version.c (check_version): Likewise.
71154         * lib/javacomp.c (compile_java_class): Likewise.
71155
71156 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71159         for the benefit of people using Autoconf 2.60.  If you want to
71160         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71161         (or m4/onceonly.m4, if pre-2.57) manually.
71162
71163 2006-07-08  Jim Meyering  <jim@meyering.net>
71164
71165         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71166         comment.
71167         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71168         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71169         comment.
71170
71171 2006-07-08  Jim Meyering  <jim@meyering.net>
71172
71173         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71174
71175 2006-07-07  Simon Josefsson  <jas@extundo.com>
71176
71177         * tests/test-crc.c: Change expected crc value, the test vector
71178         were probably computed using the old broken crc.c?
71179
71180 2006-07-06  Simon Josefsson  <jas@extundo.com>
71181
71182         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71183         now the canonical place for the M4 file).
71184
71185         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71186         from the sys_socket dependency now.
71187
71188         * modules/inet_pton (Files): Ditto.
71189
71190         * modules/inet_ntop (Files): Ditto.
71191
71192 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71193
71194         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71195         not gl_PREREQ_GETUSERSHELL.
71196
71197 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71198
71199         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71200         with only one argument, for Autoconf 2.60.
71201         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71202         expand to nothing, so add a shell command to avoid syntax error.
71203         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71204
71205 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71206
71207         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71208
71209 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71212         no longer needed.  Check for isblank decl.
71213         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71214         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71215         of existence.
71216
71217 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * lib/getloadavg.c: Use __VMS, not VMS.
71220         * lib/getopt.c: Likewise.
71221         * lib/getpagesize.h: Likewise.
71222         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71223         and probably does not work.
71224
71225 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * lib/.cppi-disable: Add wcwidth.
71228         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71229         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71230         (ISGRAPH): Remove.  All uses changed to isgraph.
71231         (FOLD) [!defined _LIBC]: Remove special case.
71232         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71233         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71234         HAVE_ISBLANK.
71235         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71236         case.
71237
71238 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71239
71240         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71241         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71242         brackets.  Other minor changes to suppress some compiler
71243         warnings.
71244
71245 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71246         and Paul Eggert  <eggert@cs.ucla.edu>
71247
71248         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71249         of invoking obsolescent AC_HEADER_DIRENT macro.
71250         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71251         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71252         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71253         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71254         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71255         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71256         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71257         * m4/readdir.m4: Remove; no longer needed.
71258
71259 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71260         and Paul Eggert  <eggert@cs.ucla.edu>
71261
71262         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71263         Don't worry about this obsolete case any more.
71264         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71265         directories.
71266         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71267         worry about this obsolete case any more.
71268         * lib/fts.c: Likewise.
71269         * lib/getcwd.c: Likewise.
71270         * lib/glob.h: Likewise.
71271         * lib/savedir.c: Likewise.
71272
71273 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71276         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71277         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71278         needed.
71279         All uses removed.
71280         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71281         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71282         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71283         needed.
71284         * m4/getdate.m4 (gl_GETDATE): Likewise.
71285         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71286         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71287         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71288         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71289         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71290         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71291         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71292         needed.
71293
71294 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * lib/memcasecmp.c: Include <limits.h>.
71297         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71298         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71299         Don't assume isdigit succeeds only on '0' through '9'.
71300
71301 2006-07-05  Eric Blake  <ebb9@byu.net>
71302
71303         * modules/getaddrinfo (Depends-on): Add snprintf.
71304
71305 2006-07-05  Eric Blake  <ebb9@byu.net>
71306
71307         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71308         to avoid 'header present but could not be compiled' on cygwin.
71309
71310 2006-07-05  Eric Blake  <ebb9@byu.net>
71311
71312         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71313         missing from netdb.h.
71314         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71315
71316 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71317
71318         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71319         no longer needed.
71320         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71321         * m4/getdate.m4 (gl_GETDATE): Likewise.
71322         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71323         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71324         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71325         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71326         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71327
71328 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71329
71330         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71331         All uses of is_space replaced by isspace.
71332         * lib/exit.h: Don't talk about STDC_HEADERS.
71333         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71334         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71335         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71336         replaced by isprint etc.
71337         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71338         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71339         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71340         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71341         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71342         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71343
71344 2006-07-05  Bruno Haible  <bruno@clisp.org>
71345
71346         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71347         the function exists, before testing against AIX.
71348         Reported by Martin Lambers <marlam@marlam.de>.
71349
71350 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71351
71352         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71353         From Mark D. Baushke.
71354
71355 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71358         to the absolute name, not just one, to bypass Sun C 5.8's
71359         "warning: #include of /usr/include/... may be non-portable".
71360
71361 2006-07-04  Eric Blake  <ebb9@byu.net>
71362
71363         * modules/dirname-tests: New test module.
71364         * tests/test-dirname.c: New file, replacing dirname.c
71365         TEST_DIRNAME section that was recently deleted.
71366
71367 2006-07-04  Bruno Haible  <bruno@clisp.org>
71368
71369         Assume ANSI C header files and <ctype.h> functions.
71370         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71371         (mbsnwidth): Use isprint, iscntrl instead.
71372
71373 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71374
71375         Merge from coreutils.
71376         * MODULES.html.sh: Add xstrtold.
71377         * modules/xstrtold: New file.
71378         * modules/cycle-check (Files): Add lib/same-inode.h.
71379         * modules/dirname (Files): Add m4/double-slash-root.m4.
71380         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71381         * modules/mkdir-p (Files): Add lib/same-inode.h.
71382         * modules/same (Files): Add lib/same-inode.h.
71383
71384 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71387         This is to keep the terminology clean; POSIX talks about
71388         "absolute pathnames", not "full pathnames", but the GNU
71389         Coding Standards say to use "path" for something else;
71390         so use "absolute" to keep both sides happy.
71391         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71392         Set gl_absolute_header, not gl_full_header_path.
71393         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71394         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71395         All uses changed.
71396
71397         Merge from coreutils.
71398
71399         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71400
71401         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71402         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71403         want to require the building of c-strtod.o.
71404         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71405         needs -lm directly.
71406         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71407
71408         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71409
71410         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71411         --as-needed option if available.  Problem reported by Albert Chin in
71412         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71413         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71414         cc merely issues a bunch of annoying warnings for --as-needed
71415         (this problem was reported by Bob Proulx).  Also, try linking with
71416         -lm to detect a bug in binutils 2.16 (this problem was reported
71417         by Ralf Wildenhues).
71418
71419         2006-06-18  Jim Meyering  <jim@meyering.net>
71420
71421         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71422         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71423         macro.
71424         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71425         also check for glibc-2.4's abort-inducing bug.
71426
71427         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71428         Low-probability clean-up should be to use rmdir to get rid of
71429         the just-created directory, not unlink.
71430
71431         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71432         configure fail, and request a bug report to inform us about it.
71433         Add a comment that, barring reports to the contrary, in 2007 we'll
71434         assume ftruncate is universally available.
71435
71436         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71439
71440         2006-03-12  Jim Meyering  <jim@meyering.net>
71441
71442         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71443         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71444         * m4/same.m4 (gl_SAME): Likewise.
71445         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71446
71447         2006-03-11  Eric Blake  <ebb9@byu.net>
71448
71449         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71450         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71451         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71452         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71453
71454 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71455
71456         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71457         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71458         reported by Mark D. Baushke, one in
71459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71460
71461         Merge from coreutils.
71462
71463         * lib/.cppi-disable: Add stdint_.h.
71464         * lib/.cvsignore: Add stdint.h.
71465
71466         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71469         both double and long double versions.
71470         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71471         * lib/xstrtold.c: New file.
71472         * lib/xstrtod.h (xstrtold): New decl.
71473
71474         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * lib/filemode.c (setst): Remove.
71477         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71478         (arguably) clearer, and the generated code is a bit smaller on my
71479         Debian GNU/Linux stable x86 host.
71480
71481         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71482
71483         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71484         Assume that filemode.h includes sys/types.h and sys/stat.h.
71485         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71486         (ftypelet): Reorder to put common cases first, for efficiency.
71487         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71488         to do 'M'.
71489         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71490         of 10, for compatibility with FreeBSD.  All callers changed.
71491         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71492         types that can't be deduced solely from st_mode.  First arg is now a
71493         const pointer.
71494         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71495         (strmode): Renamed from mode_string.
71496         (filemodestring): New decl.
71497         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71498         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71499         needed.
71500         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71501
71502         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71505         fsusage.h now does that.  Include fsusage.h first, to test interface.
71506         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71507         at most one method (the old code could have generated decls that
71508         didn't conform to C89, not that this was ever exercised).
71509         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71510
71511         2006-03-19  Jim Meyering  <jim@meyering.net>
71512
71513         Work even in a chroot where d_ino values for entries in "/"
71514         don't match the stat.st_ino values for the same names.
71515         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71516         number, iterate through all entries again, using lstat instead.
71517         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71518         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71519
71520         * lib/getcwd.c (__getcwd): Clarify a comment.
71521         Use memcpy in place of a call to strcpy.
71522
71523         2006-03-12  Jim Meyering  <jim@meyering.net>
71524
71525         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71526         matches that of the current directory (which we're about to chdir ".."
71527         out of), then save the dev-ino of the parent, instead.
71528
71529         * lib/same-inode.h (SAME_INODE): New file/macro.
71530         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71531         Include "same-inode.h", instead.
71532         * lib/same.c: Likewise.
71533         * lib/cycle-check.h: Include "same-inode.h".
71534         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71535         * lib/cycle-check.c (SAME_INODE): Remove definition.
71536         * lib/root-dev-ino.h: Include "same-inode.h".
71537
71538         2006-03-11  Eric Blake  <ebb9@byu.net>
71539
71540         * lib/same.c (same_name): s/base_name/last_component/
71541         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71542         * lib/filenamecat.c (file_name_concat): Likewise.
71543
71544         2006-03-11  Eric Blake  <ebb9@byu.net>,
71545                     Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71548         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71549         drive prefix.
71550         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71551         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71552         (last_component): New method.
71553         * lib/dirname.c (dir_len): Determine when drive letters need a
71554         subsequent slash.  Preserve // when it is special.
71555         (dir_name): Don't append dot when drive letter is absolute.
71556         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71557         * lib/basename.c (base_name): New semantics - malloc the result.
71558         Preserve // when it is special.  Preserve relative files that look
71559         like drive letters.
71560         (base_len): Preserve // when it is special.
71561         (last_component): New method, similar to old base_name semantics.
71562         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71563         base_name.  Strip redundant slashes from ///.
71564
71565 2006-07-03  Jim Meyering  <jim@meyering.net>
71566
71567         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71568         macro is used before the first cycle_check call.
71569
71570 2006-07-03  Eric Blake  <ebb9@byu.net>
71571
71572         * modules/dirname (Depends-on): Add xstrndup.
71573
71574 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71577         test cases, so that config.log is a bit easier to follow.
71578
71579 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71582         both are 64 bits, since this seems to be the tradition, and this
71583         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71584         we ever run into a host that prefers long long to long in this
71585         case, we'll need another configure-time test.  Problem reported by
71586         Jim Meyering.
71587
71588 2006-07-02  Eric Blake  <ebb9@byu.net>
71589
71590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71591
71592 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * modules/inttypes (Depends-on): No longer depends on stdint.
71595         * modules/stdint (Description): Say more about assumptions.
71596         Say that the fast types might differ.  Say macros are used.
71597         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71598         (Makefile.am): Revise list of substituted symbols to match
71599         new stdint.m4.
71600         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71601         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71602         * tests/test-stdint.c (verify_same_types)
71603         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71604         the code conforms to C99/C89.
71605         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71606         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71607
71608 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71611         but fix a bug, by requiring at least 64 bits.
71612         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71613         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71614         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71615         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71616
71617         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71618         changes.  Make 2.59 a prerequisite.  Check and substitute for
71619         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71620         inttypes.h.  Do not use special include files; just use the
71621         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71622         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71623         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71624         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71625         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71626         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71627         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71628         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71629         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71630         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71631         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71632         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71633         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71634         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71635         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71636         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71637         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71638         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71639         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71640         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71641         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71642         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71643         not check for things that C99 does not require, e.g., int8_t.  If
71644         a test isn't needed unless <stdint.h> isn't working, and is
71645         unlikely to be needed for any other reason, then don't do it
71646         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71647         size_t, since we assume C89 freestanding at least.  Do not check
71648         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71649         the right thing even if the types are not defined.  Instead use:
71650         (gl_STDINT_TYPE_PROPERTIES): New macro.
71651         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71652         testing whether <sys/types.h> clashes, as Autoconf does this for
71653         us now.  All uses removed.
71654         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71655         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71656         (gl_CHECK_TYPE_SAME):
71657         Remove; no longer needed.
71658         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71659         exists, since we'll return 0 anyway in that case.
71660         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71661
71662 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71665         possible collision with system files.
71666         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71667         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71668         WCHAR_MIN and WCHAR_MAX in this case.
71669         (<stddef.h>): Do not include; no longer needed.
71670         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71671         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71672         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71673         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71674         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71675         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71676         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71677         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71678         !defined(__c99))]: Include in this case too, since it's harmless
71679         now.
71680         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71681         dangerous to do so.
71682         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71683         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71684         (_STDINT_MIN, _STDINT_MAX): New macros.
71685         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71686         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71687         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71688         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71689         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71690         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71691         macros, not typedefs; this simplifies things quite a bit.
71692         Use long int for all types narrower than int64_t.
71693         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71694         Define in terms of long long int or int64_t or long int,
71695         not int64_t or int32_t.  This saves some compile-time testing.
71696         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71697         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71698         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71699         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71700         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71701         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71702         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71703         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71704         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71705         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71706         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71707         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71708         undef any previous version and define our own version, for
71709         simplicity and consistency with the new macros for types.
71710         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71711         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71712         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71713         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71714         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71715         @WINT_T_SUFFIX@ to keep things simple here.
71716         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71717         Simplify by assuming typical 8/16/32/64 host, since we're
71718         already doing that elsewhere anyway.
71719         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71720         and assume long long int is 64 bits if available.  This
71721         speeds up 'configure'.
71722
71723 2006-07-01  Eric Blake  <ebb9@byu.net>
71724
71725         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71726         Reported by Andreas Buening.
71727
71728 2006-07-01  Eric Blake  <ebb9@byu.net>
71729
71730         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71731
71732 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71733
71734         * lib/getaddrinfo.c: fixed typo
71735
71736 2006-06-29  Jim Meyering  <jim@meyering.net>
71737
71738         * modules/strftime (Maintainer): Add my name, since with the
71739         FPRINTFTIME changes strftime.c has forked from glibc.
71740
71741 2006-06-29  Eric Blake  <ebb9@byu.net>
71742
71743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71744
71745 2006-06-29  Eric Blake  <ebb9@byu.net>
71746
71747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71748
71749 2006-06-29  Eric Blake  <ebb9@byu.net>
71750
71751         * lib/stat_.h: New file.
71752
71753 2006-06-29  Eric Blake  <ebb9@byu.net>
71754
71755         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71756         unused static function.
71757
71758 2006-06-29  Eric Blake  <ebb9@byu.net>
71759
71760         * doc/functions.texi (Function Portability): Document missing lstat
71761         on mingw.
71762
71763 2006-06-29  Eric Blake  <ebb9@byu.net>
71764
71765         * MODULES.html.sh: Add sys_stat.
71766         * modules/sys_stat: New module.
71767         * modules/mkstemp (Depends-on): Add sys_stat.
71768
71769 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71770
71771         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71772
71773 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71774
71775         * m4/c-bs-a.m4: Removed.
71776
71777 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71778
71779         * lib/strftime.c: Assume strftime() exists.
71780
71781 2006-06-29  Derek Price  <derek@ximbiot.com>
71782
71783         * modules/c-bs-a: Removed - \a is C89.
71784         * MODULES.html.sh: Remove c-bs-a.
71785
71786 2006-06-29  Bruno Haible  <bruno@clisp.org>
71787
71788         * modules/wcwidth (License): Change to LGPL.
71789
71790 2006-06-28  Simon Josefsson  <jas@extundo.com>
71791
71792         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71793         on _WIN32.
71794
71795         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71796         getnameinfo.
71797
71798 2006-06-28  Simon Josefsson  <jas@extundo.com>
71799
71800         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71801
71802 2006-06-28  Simon Josefsson  <jas@extundo.com>
71803
71804         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71805         functions there.  It will succeed on Windows XP, but on Windows
71806         2000 and (presumably) earlier, it will fail, and use the internal
71807         re-implementation.
71808         (use_win32_p): New function.
71809         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71810         Support AI_NUMERICSERV to disable getservbyname.
71811         (getnameinfo): New function, only supports
71812         NI_NUMERICHOST|NI_NUMERICSERV for now.
71813
71814         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71815         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71816         getnameinfo.
71817
71818 2006-06-28  Eric Blake  <ebb9@byu.net>
71819
71820         * modules/wcwidth: New file.
71821         * modules/mbchar (Depends-on): Add wcwidth.
71822         * modules/mbswidth (Depends-on): Add wcwidth.
71823         * MODULES.html.sh: Add wcwidth.
71824
71825 2006-06-28  Eric Blake  <ebb9@byu.net>
71826
71827         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71829
71830 2006-06-28  Eric Blake  <ebb9@byu.net>
71831
71832         * lib/xvasprintf.h: Fix comments.
71833
71834 2006-06-28  Eric Blake  <ebb9@byu.net>
71835
71836         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71837         * lib/mbswidth.c (wcwidth): Move from here...
71838         * lib/wcwidth.h: ...to this new file.
71839
71840 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71841
71842         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71843
71844         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71845         it's obsolete.
71846         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71847
71848 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71849
71850         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71851         Autoconf 2.60 says this stuff was obsolete.
71852
71853 2006-06-28  Bruno Haible  <bruno@clisp.org>
71854
71855         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71856
71857 2006-06-28  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71860         gt_TYPE_WCHAR_T.
71861
71862 2006-06-28  Bruno Haible  <bruno@clisp.org>
71863
71864         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71865         declaration for wcwidth.
71866         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71867
71868 2006-06-28  Bruno Haible  <bruno@clisp.org>
71869
71870         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71871         (mkdir): Define using _mkdir.
71872
71873 2006-06-28  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/getaddrinfo.h: Fix POSIX URL.
71876         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71877         _WIN32.
71878         (use_win32_p): Make static.
71879         (getaddrinfo): Reject service name if it is empty or does not consist
71880         solely of decimal digits, or if its value is > 65535.
71881         (getnameinfo): Remove useless casts.
71882
71883 2006-06-27  Simon Josefsson  <jas@extundo.com>
71884
71885         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71886         Eggert and Martin Lambers.
71887
71888 2006-06-27  Simon Josefsson  <jas@extundo.com>
71889
71890         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71891         Eggert and Martin Lambers.
71892
71893 2006-06-27  Bruno Haible  <bruno@clisp.org>
71894
71895         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71896         result to 0, not to empty.
71897         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71898
71899 2006-06-27  Bruno Haible  <bruno@clisp.org>
71900
71901         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71902
71903 2006-06-26  Simon Josefsson  <jas@extundo.com>
71904
71905         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71906         present.
71907
71908 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71911         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71912         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71913
71914 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71915
71916         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71917
71918 2006-06-26  Bruno Haible  <bruno@clisp.org>
71919
71920         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71921
71922 2006-06-26  Bruno Haible  <bruno@clisp.org>
71923
71924         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71925
71926 2006-06-26  Bruno Haible  <bruno@clisp.org>
71927
71928         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71929         SGI C compiler in pre-C99 mode.
71930         Suggested by Mark D. Baushke and Larry Jones.
71931
71932 2006-06-26  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71935         WCHAR_MAX.
71936         Reported by Mark D. Baushke and Larry Jones.
71937
71938 2006-06-26  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71941         in pre-C99 mode.
71942         Suggested by Mark D. Baushke and Larry Jones.
71943
71944 2006-06-23  Simon Josefsson  <jas@extundo.com>
71945             Bruno Haible  <bruno@clisp.org>
71946
71947         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71948         Emit mostlyclean-local rule.
71949         (func_emit_tests_Makefile_am): Likewise.
71950         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71951
71952 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71953
71954         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71955
71956 2006-06-23  Bruno Haible  <bruno@clisp.org>
71957
71958         * tests/test-stdint.c: Update to match ISO C 99 Technical
71959         Corrigendum 1.
71960
71961 2006-06-23  Bruno Haible  <bruno@clisp.org>
71962
71963         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71964
71965 2006-06-23  Bruno Haible  <bruno@clisp.org>
71966
71967         * lib/stdint_.h: Treat IRIX like OpenBSD.
71968
71969 2006-06-23  Bruno Haible  <bruno@clisp.org>
71970
71971         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71972         ISO C 99 Technical Corrigendum 1.
71973
71974 2006-06-22  Simon Josefsson  <jas@extundo.com>
71975
71976         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71977         MinGW.
71978
71979 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71982         needed.  Some compiler complained about some of them.  Problem reported
71983         by Larry Jones in
71984         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71985
71986 2006-06-21  Simon Josefsson  <jas@extundo.com>
71987
71988         * tests/test-getaddrinfo.c: New file.
71989
71990         * modules/getaddrinfo-tests: New file.
71991
71992         * MODULES.html.sh: Add inet_pton.
71993
71994         * modules/inet_pton: New file.
71995
71996 2006-06-21  Simon Josefsson  <jas@extundo.com>
71997
71998         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71999         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72000         of using the (limited) gnulib implementation on Windows XP.
72001
72002         * m4/inet_pton.m4: New file.
72003
72004 2006-06-21  Simon Josefsson  <jas@extundo.com>
72005
72006         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72007         variable.
72008
72009         * lib/socket_.h: Don't define WINVER.
72010
72011         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72012         slightly modified to work in gnulib.
72013
72014 2006-06-21  Simon Josefsson  <jas@extundo.com>
72015
72016         * doc/gnulib.texi (Windows sockets): Add.
72017
72018 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * lib/read-file.c (fread_file): Start with buffer allocation of
72021         0 bytes rather than 1 byte; this simplifies the code.
72022         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72023         code to free buffer and save/restore errno.
72024         (internal_read_file): Remove unused local.
72025
72026 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72027
72028         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72029         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72030         Problem reported by Denis Excoffier in
72031         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72032
72033 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72034
72035         * modules/sys_socket, modules/socklen: Include sys/types since
72036         FreeBSD 4.x's sys/socket.h needs it.
72037
72038 2006-06-19  Simon Josefsson  <jas@extundo.com>
72039
72040         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72041
72042 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72045
72046 2006-06-19  Bruno Haible  <bruno@clisp.org>
72047
72048         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72049         and FULL_PATH_INTTYPES_H in angle brackets.
72050         Reported by Mark D. Baushke <mdb@gnu.org>.
72051
72052 2006-06-17  Eric Blake  <ebb9@byu.net>
72053
72054         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72055         errno.
72056
72057 2006-06-17  Bruno Haible  <bruno@clisp.org>
72058
72059         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72060         <sys/inttypes.h>.
72061
72062 2006-06-17  Bruno Haible  <bruno@clisp.org>
72063
72064         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72065         whether errno is declared. Assume <errno.h> declares errno.
72066
72067 2006-06-17  Bruno Haible  <bruno@clisp.org>
72068
72069         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72070
72071 2006-06-17  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72074         problem on Solaris 2.5.1.
72075
72076 2006-06-16  Eric Blake  <ebb9@byu.net>
72077
72078         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72079         * lib/unicodeio.c [!defined errno]: Likewise.
72080         * lib/strtol.c [!defined errno]: Likewise.
72081         * lib/strtod.c [!defined errno]: Likewise.
72082
72083 2006-06-15  Eric Blake  <ebb9@byu.net>
72084
72085         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72086
72087 2006-06-15  Eric Blake  <ebb9@byu.net>
72088
72089         * config/srclist.txt (ssize_t.m4): Lose sync.
72090
72091 2006-06-15  Bruno Haible  <bruno@clisp.org>
72092
72093         * modules/stdint (Files): Include m4/full-header-path.m4,
72094         m4/size_max.m4, m4/wchar_t.m4.
72095         (Makefile.am): Many more substitutions.
72096         * modules/stdint-tests: New file.
72097         * tests/test-stdint.c: New file.
72098
72099 2006-06-15  Bruno Haible  <bruno@clisp.org>
72100
72101         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72102         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72103         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72104         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72105         gl_CHECK_TYPE_SAME): New macros.
72106
72107 2006-06-15  Bruno Haible  <bruno@clisp.org>
72108
72109         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72110
72111 2006-06-15  Bruno Haible  <bruno@clisp.org>
72112
72113         * lib/stdint_.h: Rewritten to be fully auto-configured.
72114         Fixes bug on HP-UX/IA64.
72115
72116 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * lib/getdate.y (__attribute__): Don't define if already defined.
72119         Problem reported by Larry Jones.
72120         * lib/utimens.c (__attribute__): Likewise.
72121
72122 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72125         reported by Andreas Schwab.
72126
72127 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72128             Bruno Haible  <bruno@clisp.org>
72129
72130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72131         check for the declaration of strnlen and a run test that exposes the
72132         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72133         rpl_strndup.
72134
72135 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72136             Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72139
72140 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72141
72142         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72143         compile test, for Tru64 4.0D.
72144
72145 2006-05-28  Karl Berry  <karl@gnu.org>
72146
72147         * config/srclist.txt (printf-args.c): lose sync.
72148
72149 2006-05-26  Martin Lambers  <marlam@marlam.de>
72150
72151         * lib/getpass.c: Updates the test for the native W32 API, and adds
72152         missing includes, thus fixing compilation warnings.
72153
72154 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72155
72156         * lib/exclude.c (exclude_fnmatch): New function.
72157         (excluded_file_name): Call exclude_fnmatch.
72158         * lib/exclude.h (excluded_file_name): New prototype
72159
72160 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * lib/tempname.c (small_open, large_open): New macros.
72163         (__open, __open64) [!_LIBC]: Remove.
72164         (__gen_tempname): Use small_open and large_open instead of __open
72165         and __open64.  This fixes a portability bug on HP-UX 11.11i
72166         reported by Simon Wing-Tang in
72167         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72168
72169 2006-05-24  Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72172         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72173         Reported by Thorsten Maerz <torte@netztorte.de> via
72174         Aaron Stone <aaron@serendipity.cx>.
72175
72176 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72177
72178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72179         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72180         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72181         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72182         not really conditional on the cache.
72183         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72184
72185 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72186
72187         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72188         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72189         (my_usleep): Don't mishandle maximum value.
72190
72191 2006-05-19  Jim Meyering  <jim@meyering.net>
72192
72193         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72194
72195 2006-05-17  Bruno Haible  <bruno@clisp.org>
72196
72197         Cygwin portability.
72198         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72199
72200 2006-05-17  Bruno Haible  <bruno@clisp.org>
72201
72202         * lib/stdint_.h: Fix recognition of Cygwin.
72203
72204 2006-05-15  Bruno Haible  <bruno@clisp.org>
72205
72206         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72207         on libtool patch by Ralf Wildenhues.
72208
72209 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72212         test for C99 conformance; (bool) 0.5 is an integer constant
72213         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72214         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72215
72216 2006-05-11  Simon Josefsson  <jas@extundo.com>
72217
72218         * m4/xvasprintf.m4: Fix obvious typo.
72219
72220 2006-05-11  Jim Meyering  <jim@meyering.net>
72221
72222         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72223         James Lemley.
72224
72225 2006-05-10  Simon Josefsson  <jas@extundo.com>
72226
72227         * lib/md4.c: Typo fix, update copyright years.
72228         (K1, K2): Don't use L because it turn computations into 64-bit on
72229         64-bit platforms.
72230
72231 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72232
72233         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72234         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72235         unwanted sign propagation, e.g., on hosts with 64-bit int.
72236         There still are some problems with reeelly weird theoretical hosts
72237         (e.g., 33-bit int) but it's not worth worrying about now.
72238         * lib/sha1.c (rol): Likewise.
72239         (K1, K2, K3, K4): Remove unnecessary L suffix.
72240
72241 2006-05-10  Bruno Haible  <bruno@clisp.org>
72242
72243         * lib/des.c: Cast to avoid warnings.
72244
72245 2006-05-09  Bruno Haible  <bruno@clisp.org>
72246
72247         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72248         (Depends-on): Depend also on xsize, stdarg.
72249         (configure.ac): Add gl_XVASPRINTF.
72250
72251 2006-05-09  Bruno Haible  <bruno@clisp.org>
72252
72253         * m4/xvasprintf.m4: New file.
72254
72255 2006-05-09  Bruno Haible  <bruno@clisp.org>
72256
72257         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72258         (EOVERFLOW): Define fallback value.
72259         (xstrcat): New function.
72260         (xvasprintf): Recognize the special case of a string concatenation.
72261
72262 2006-05-08  Eric Blake  <ebb9@byu.net>
72263
72264         * gnulib-tool (func_version): Base copyright year on CVS date.
72265         (func_emit_copyright_notice): New function.
72266         (func_emit_lib_Makefile_am): Use it.
72267         (func_emit_tests_Makefile_am): Likewise.
72268         (func_import): Likewise.
72269
72270 2006-05-08  Bruno Haible  <bruno@clisp.org>
72271
72272         * modules/stdarg: New file.
72273         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72274
72275 2006-05-08  Bruno Haible  <bruno@clisp.org>
72276
72277         * m4/stdarg.m4: New file, from GNU gettext.
72278
72279 2006-05-08  Bruno Haible  <bruno@clisp.org>
72280
72281         * config/srclist.txt (build-aux/config.rpath): different from latest
72282         release.
72283
72284 2006-05-08  Bruno Haible  <bruno@clisp.org>
72285
72286         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72287
72288 2006-05-05  Jim Meyering  <jim@meyering.net>
72289
72290         * m4/warning.m4: New file, derived from bison's file by the same name.
72291
72292 2006-05-03  Bruno Haible  <bruno@clisp.org>
72293
72294         * lib/stdint_.h: Shorter URL.
72295         * lib/inttypes.h: Likewise.
72296
72297 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72300
72301 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * lib/verify.h: Document the internals better.  Most of this change
72304         was written by Bruno Haible.
72305
72306 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         * doc/verify.texi: New file, partly based on a proposal by
72309         Bruno Haible.
72310
72311 2006-05-02  Bruno Haible  <bruno@clisp.org>
72312
72313         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72314         test from here...
72315         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72316
72317 2006-04-29  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72320         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72321
72322 2006-04-29  Bruno Haible  <bruno@clisp.org>
72323
72324         * gnulib-tool: Make --update option actually work.
72325
72326 2006-04-29  Bruno Haible  <bruno@clisp.org>
72327
72328         * doc/gcd.texi: New file.
72329         * doc/gnulib.texi: Include it.
72330
72331 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * lib/getdate.y (get_date): When adding relative date, start with the
72334         initial time, not with the result of the first mktime call.
72335
72336 2006-04-25  Bruno Haible  <bruno@clisp.org>
72337
72338         * gnulib-tool (func_import): Output the include directives in three
72339         blocks, sorted separately.
72340         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72341
72342 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72345         to define main with arguments, for C++.  Reported by Eric Blake.
72346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72347         Prefer 'int main ()' to 'int main (void)', for C++.
72348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72349         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72350         for 'main', for C99 and C++.
72351
72352 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72355         Don't assume that exit status -1 is valid.
72356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72357         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72358         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72359         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72360         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72361         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72362         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72363         functions can be used without declaring them, or that you can
72364         exit with status -1.
72365         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72366
72367 2006-04-24  Karl Berry  <karl@gnu.org>
72368
72369         * config/srclist.txt (longdouble.m4): sync lost.
72370
72371 2006-04-24  Eric Blake  <ebb9@byu.net>
72372
72373         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72374
72375 2006-04-24  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72378         poll() implementation in AIX.
72379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72380
72381 2006-04-24  Bruno Haible  <bruno@clisp.org>
72382
72383         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72384         assigned exactly once.
72385
72386 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72387             Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72390         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72391         for AM_CPPFLAGS.
72392
72393 2006-04-23  Bruno Haible  <bruno@clisp.org>
72394
72395         * modules/copy-file: Depend on unistd.
72396         * modules/execute: Likewise.
72397         * modules/fatal-signal: Likewise.
72398         * modules/findprog: Likewise.
72399         * modules/mkdtemp : Likewise.
72400         * modules/pipe: Likewise.
72401         * modules/wait-process: Likewise.
72402
72403 2006-04-23  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72406         condition was already detected.
72407         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72408
72409 2006-04-23  Bruno Haible  <bruno@clisp.org>
72410
72411         * lib/copy-file.c: Include <unistd.h> unconditionally.
72412         * lib/execute.c: Likewise.
72413         * lib/fatal-signal.c: Likewise.
72414         * lib/findprog.c: Likewise.
72415         * lib/mkdtemp.c: Likewise.
72416         * lib/pipe.h: Likewise.
72417         * lib/pipe.c: Likewise.
72418         * lib/wait-process.h: Likewise.
72419
72420 2006-04-23  Bruno Haible  <bruno@clisp.org>
72421
72422         * gnulib-tool (func_usage): Fix --import description. Document
72423         --update.
72424         (func_import): Create temporary file in a temporary directory, if
72425         --dry-run is specified. Silence errors from 'grep' when there are no
72426         m4 files in $m4dir.
72427         (func_create_testdir): Silence errors from 'grep' when there are no
72428         m4 files in $m4dir.
72429         Reported by Karl Berry <karl@freefriends.org>.
72430
72431 2006-04-20  Bruno Haible  <bruno@clisp.org>
72432
72433         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72434         one argument, so that the code will be portable to Autoconf 2.60.
72435         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72436         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72437         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72438
72439 2006-04-19  Derek Price  <derek@ximbiot.com>
72440             Eric Blake  <ebb9@byu.net>
72441
72442         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72443         rather than "/full/path.h".  Update comment to match.  Shorten &
72444         generalize m4_translit call via AS_TR_CPP.
72445
72446 2006-04-19  Derek Price  <derek@ximbiot.com>
72447             Eric Blake  <ebb9@byu.net>
72448
72449         * lib/inttypes.h: Correct grammar in comment.
72450
72451 2006-04-18  Derek Price  <derek@ximbiot.com>
72452             Paul Eggert  <eggert@cs.ucla.edu>
72453
72454         * modules/inttypes: New file.
72455         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72456
72457 2006-04-18  Derek Price  <derek@ximbiot.com>
72458             Paul Eggert  <eggert@cs.ucla.edu>
72459
72460         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72461         New files.
72462
72463 2006-04-18  Derek Price  <derek@ximbiot.com>
72464             Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * lib/inttypes.h: New file.
72467         * lib/strtoimax.c: Assume <inttypes.h>.
72468
72469 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72472         isn't mounted.  Problem reported by Kir Kolyshkin.
72473
72474 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72477         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72478         Derek R. Price.
72479         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72480         implementation.
72481
72482 2006-04-12  Eric Blake  <ebb9@byu.net>
72483
72484         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72485         is now done automatically by the corresponding Autoconf macro.
72486
72487 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72490         time_r.h.
72491
72492 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         Merge regex changes from libc, removing some of our
72495         POSIX-conformance changes that were rejected and redoing them in a
72496         less-intrusive way.
72497
72498         * lib/regcomp.c (re_compile_internal, init_dfa):
72499         Length arg is now size_t, not Idx.  All uses changed.
72500         (peek_token): Forward decl now says internal_function.
72501         (__re_error_msgid, __re_error_msgid_idx):
72502         Now static rather than extern with attribute_hidden.
72503         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72504         For some reason libc prefers K&R style defns for external functions.
72505         (regerror) [!defined _LIBC]: Likewise.
72506         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72507         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72508         (build_range_exp, build_collating_symbol):
72509         Use K&R-style defn.
72510         (re_compile_fastmap): Use '\0' to memset, not 0.
72511         (utf8_sb_map): Make the calculations more obvious.
72512         (init_dfa, parse_bracket_exp, build_charclass_op):
72513         Call calloc and cast result, as glibc does.
72514         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72515         (build_range_exp, build_collating_symbol):
72516         Now internal functions.
72517
72518         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72519
72520         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72521         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72522         Don't depend on VMS; depend on __VMS instead, for POSIX
72523         namespace cleanness.
72524         (regoff_t): Define to ssize_t, not long int.
72525
72526         Remove the REG_ macros named below.  Instead, make the old names
72527         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72528         __USE_GNU_REGEX.
72529         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72530         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72531         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72532         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72533         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72534         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72535         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72536         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72537         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72538         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72539         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72540         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72541         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72542         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72543         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72544         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72545         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72546         (REG_NREGS):
72547         Remove.  All uses replaced by the old RE_* names.
72548         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72549         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72550         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72551         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72552         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72553         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72554         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72555         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72556         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72557         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72558         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72559         Don't bother having these macros be independent of each others'
72560         values, since they no longer exist in the POSIX name space.
72561
72562         Rename the following member names back to their old names,
72563         unless !__USE_GNU_REGEX.  All uses changed back.
72564         (buffer): Renamed from re_buffer.
72565         (allocated): Renamed from re_allocated.
72566         (used): Renamed from re_used.
72567         (syntax): Renamed from re_syntax.
72568         (fastmap): Renamed from re_fastmap.
72569         (translate): Renamed from re_translate.
72570         (can_be_null): Renamed from re_can_be_null.
72571         (regs_allocated): Renamed from re_regs_allocated.
72572         (fastmap_accurate): Renamed from re_fastmap_accurate.
72573         (no_sub): Renamed from re_no_sub.
72574         (not_bol): Renamed from re_not_bol.
72575         (not_eol): Renamed from re_not_eol.
72576         (newline_anchor): Renamed from re_newline_anchor.
72577         (num_regs): Renamed from rm_num_regs.
72578         (start): Renamed from rm_start.
72579         (end): Renamed from rm_end.
72580
72581         (free_state): Move up a bit.
72582
72583         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72584         #define to be empty.
72585         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72586         when that is what is intended.
72587         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72588         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72589         (MAX): New macro.
72590         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72591         All uses changed back to re_malloc, etc.  It's now the caller's
72592         responsibility to check for overflow; all callers changed.
72593         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72594         (re_x2nrealloc): Remove.
72595         (free_state): Remove decl.
72596
72597         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72598         (re_set_registers, re_exec):
72599         Use K&R-style defn.
72600
72601         2006-01-31  Roland McGrath  <roland@redhat.com>
72602
72603         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72604         Reported by Mike Frysinger <vapier@gentoo.org>.
72605
72606         2006-01-15  Andreas Jaeger  <aj@suse.de>
72607
72608         [BZ #1950]
72609         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72610         build_wcs_upper_buffer change.
72611         (build_wcs_upper_buffer): Change return type.
72612
72613         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72614
72615         * lib/regex_internal.h: Include <stdint.h> if available.
72616
72617         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72618
72619         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72620
72621         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72622
72623         * lib/regcomp.c: Adjust for changed secondary hash function.
72624
72625         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72626
72627         * lib/regex.h: Pretty printing.
72628         Clean up namespace a bit.
72629
72630         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72631
72632         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72633         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72634
72635         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72636                     Ulrich Drepper  <drepper@redhat.com>
72637
72638         [BZ #1302]
72639         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72640         changed.
72641         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72642
72643         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72644
72645         [BZ #281]
72646         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72647         * lib/regcomp.c: Remove unnecessary uses of
72648         unsigned RE_TRANSLATE_TYPE.
72649         * lib/regex_internal.h: Likewise.
72650         * lib/regex_internal.c: Likewise.
72651         * lib/regexec.c: Likewise.
72652         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72653
72654         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72655
72656         * lib/regexec.c (find_recover_state): Remove unnecessary
72657         initialization.
72658         (transit_state_bkref): Make DFA a const pointer.
72659         (get_subexp): Likewise.
72660         (check_arrival): Likewise.
72661         (update_cur_sifted_state): Likewise.
72662         (re_search_internal): Likewise.
72663         (prune_impossible_nodes): Likewise.
72664         (acquire_init_state_context): Likewise.
72665         (proceed_next_node): Likewise.
72666         (set_regs): Likewise.
72667         (free_fail_stack_return): Likewise.
72668         (check_arrival_expand_ecl): Mark DFA parameter as const.
72669         (check_arrival_expand_ecl_sub): Likewise.
72670         (check_subexp_limits): Likewise.
72671         (sub_epsilon_src_nodes):  Likewise.
72672         (add_epsilon_src_nodes):  Likewise.
72673         (merge_state_array): Likewise.
72674         (update_regs): Likewise.
72675         (build_trtable): Likewise.
72676         (sift_states_backward): Mark MCTX parameter as const.
72677         (build_sifted_states): Likewise.
72678         (update_cur_sifted_state): Likewise.
72679         (sift_states_mkref): Likewise.
72680         (check_arrival_expand_ecl): Mark eclosure as const.
72681         (check_dst_limits_calc_pos_1): Likewise.
72682         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72683         pointer.
72684
72685         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72686
72687         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72688         (transit_state_sb): Likewise.
72689         (transit_state_mb): Likewise.
72690         (sift_states_iter_mb): Likewise.
72691         (check_arrival_add_next_nodes): Likewise.
72692         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72693         [_LIBC] (re_search_2_stub): Use mempcpy.
72694
72695         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72696         mbrtowc for very simple UTF-8 case.
72697
72698         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72699         a pointer-to-const.
72700         (re_acquire_state_context): Likewise.
72701         * lib/regex_internal.h: Adjust prototypes.
72702
72703         * lib/regex.c: Prevent using C++ compilers.
72704
72705         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72706         (re_acquire_state_context): Likewise.
72707
72708 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * modules/regex (Depends-on): Add ssize_t.
72711
72712 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72715         translation table.
72716
72717 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72720
72721 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72722             Bruno Haible  <bruno@clisp.org>
72723
72724         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72725         <sys/types.h> and <inttypes.h>.
72726
72727 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72728
72729         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72730         `__error_t_defined', so argp.h will not typedef the former.
72731
72732 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72735         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72736         glibc names.  Even if glibc is changed to conform to POSIX, the
72737         traditional names will be available anyway, since regex depends on
72738         the extensions module.  Also, fix a longstanding typo in the
72739         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72740         reported by Emanuele Giaquinta.  Also, change sense of cached
72741         variable, so that the message makes sense.
72742
72743 2006-03-24  Simon Josefsson  <jas@extundo.com>
72744
72745         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72746         including some doc fixes.
72747         (base64_encode_alloc): Fix +1 bug on allocation failures.
72748
72749 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72750
72751         * lib/base64.c (base64_encode): Do not read past end of array with
72752         unsanitized input on systems with CHAR_BIT > 8.
72753
72754 2006-03-24  Eric Blake  <ebb9@byu.net>
72755
72756         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72757
72758 2006-03-22  Karl Berry  <karl@gnu.org>
72759
72760         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72761         * config/srclistvars.sh (COREUTILS): new var.
72762
72763 2006-03-17  Jim Meyering  <jim@meyering.net>
72764
72765         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72766         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72767
72768 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72771         no longer needs it.  Instead, check that regoff_t is as least
72772         as wide as ptrdiff_t.
72773
72774         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72775         so that our regex.h stays compatible with the installed regex.
72776         This is helpful for installers who configure --without-included-regex.
72777         Problem reported by Emanuele Giaquinta.
72778
72779 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72782         Typedef to long int, not to off_, as POSIX will likely change
72783         in that direction.
72784
72785 2006-03-15  Eric Blake  <ebb9@byu.net>
72786
72787         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72788
72789 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72790
72791         * lib/argp-help.c (validate_uparams): Fix typo
72792         * lib/argp-parse.c (argp_default_options): Consistently begin help
72793         messages with a lowercase letter.
72794
72795 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72798         overrun buffers and shouldn't be used (much as gets shouldn't be
72799         used).
72800         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72801
72802 2006-03-08  Simon Josefsson  <jas@extundo.com>
72803
72804         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72805         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72806
72807 2006-03-08  Simon Josefsson  <jas@extundo.com>
72808
72809         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72810         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72811
72812 2006-03-08  Simon Josefsson  <jas@extundo.com>
72813
72814         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72815         signal that configure disabled the device.
72816
72817 2006-03-08  Simon Josefsson  <jas@extundo.com>
72818
72819         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72820         languages.
72821
72822 2006-03-07  Simon Josefsson  <jas@extundo.com>
72823
72824         * modules/getopt (Depends-on): Add unistd.
72825
72826         * modules/unistd: New file.
72827
72828 2006-03-07  Simon Josefsson  <jas@extundo.com>
72829
72830         * modules/gc-random: New file.
72831
72832 2006-03-07  Simon Josefsson  <jas@extundo.com>
72833
72834         * m4/unistd_h.m4: New file.
72835
72836 2006-03-07  Simon Josefsson  <jas@extundo.com>
72837
72838         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72839         test to be side-effect free by storing the result in the cache
72840         variable gl_cv_lib_readline, and moving the assignment of
72841         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72842         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72843
72844 2006-03-07  Simon Josefsson  <jas@extundo.com>
72845
72846         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72847         error on missing devices (the functions will return an error).
72848
72849         * m4/gc.m4: Move random stuff to gc-random.m4
72850
72851 2006-03-07  Simon Josefsson  <jas@extundo.com>
72852
72853         * lib/unistd_.h: New file.
72854
72855 2006-03-07  Simon Josefsson  <jas@extundo.com>
72856
72857         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72858
72859 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72862         Problem reported by Juan Manuel Guerrero.
72863
72864 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72867         the unistd module.
72868         * lib/getlogin_r.c: Likewise.
72869         * lib/getlogin_r.h: Likewise.
72870         * lib/glob.c: Likewise.
72871         * lib/pagealign_alloc.c: Likewise.
72872         * lib/unistd_.h: Remove; no longer needed.
72873
72874 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72877         Add unistd.
72878         * modules/c-stack (Depends-on): Add unistd.
72879         * modules/getlogin_r: Likewise.
72880         * modules/glob: Likewise.
72881         * modules/pagealign_alloc: Likewise.
72882         * modules/unistd (Files): Remove lib/unistd_.h.
72883         (EXTRA_DIST): Remove.
72884         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72885         need unistd_.h.
72886         (MOSTLYCLEANFILES): Remove unistd.h-t.
72887
72888 2006-03-03  Simon Josefsson  <jas@extundo.com>
72889
72890         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72891
72892 2006-03-03  Simon Josefsson  <jas@extundo.com>
72893
72894         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72895         libidn and bison.
72896
72897 2006-03-03  Simon Josefsson  <jas@extundo.com>
72898
72899         * build-aux/maint.mk: Add indent target.
72900
72901 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72902
72903         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72904         our replacement poll.h in any case, to avoid a differing
72905         declaration from a system header.  Seen on AIX.
72906
72907 2006-03-01  Simon Josefsson  <jas@extundo.com>
72908
72909         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72910         <kasal@ucw.cz>.
72911
72912 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * modules/gettime (Depends-on): Add extensions module.
72915         * modules/nanosleep (Depends-on): Likewise.
72916         * modules/settime (Depends-on): Likewise.
72917
72918 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72919
72920         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72921         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72922         pedantically.
72923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72924         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72925
72926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72927         not "==".  Reported by Ralf Wildenhues.
72928
72929 2006-03-01  Karl Berry  <karl@gnu.org>
72930
72931         * doc/Copyright/request-*: new files, synced from gnuorg.
72932
72933 2006-03-01  Karl Berry  <karl@gnu.org>
72934
72935         * config/srclist.txt (Copyright/*): new entries.
72936
72937 2006-02-28  Simon Josefsson  <jas@extundo.com>
72938
72939         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72940
72941 2006-02-27  Simon Josefsson  <jas@extundo.com>
72942
72943         * lib/base64.h: Indent #define's.  From Jim Meyering
72944         <jim@meyering.net>.
72945
72946 2006-02-27  Jim Meyering  <jim@meyering.net>
72947
72948         Revert the change of 2006-02-24, so these files can continue
72949         to be sync'd from gettext.
72950         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72951         of `config.h'.
72952
72953 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * modules/intprops: New file.
72956         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72957         Add intprops.
72958         * modules/getloadavg (Files): Remove lib/intprops.h.
72959         (Depends-on): Add intprops.
72960         * modules/human: Likewise.
72961         * modules/inttostr: Likewise.
72962         * modules/openat: Likewise.
72963         * modules/sig2str: Likewise.
72964         * modules/userspec: Likewise.
72965         * modules/utimecmp: Likewise.
72966         * modules/xnanosleep: Likewise.
72967         * modules/xstrtol: Likewise.
72968
72969 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72970
72971         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72972         * modules/lock-tests (TESTS): Use $(EXEEXT).
72973         * modules/tls-tests: Likewise.
72974         * modules/argp-tests: Likewise.
72975         (check_PROGRAMS): New var, replacing...
72976         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72977
72978 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72979
72980         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72981         `config.h'.
72982
72983 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72986
72987 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72988
72989         Sync from coreutils.
72990         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72991         gl_CHDIR_SAFER.
72992
72993 2006-02-22  Jim Meyering  <jim@meyering.net>
72994
72995         Sync from coreutils.
72996         * m4/chdir-safer.m4: New file.
72997
72998 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73001         AT_FDCWD exceeds INT_MAX.
73002         * lib/openat.h (AT_FDCWD): Likewise.
73003
73004 2006-02-17  Eric Blake  <address@hidden>
73005
73006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73007
73008 2006-02-16  Simon Josefsson  <jas@extundo.com>
73009
73010         * modules/getaddrinfo (Depends-on): Add sys_socket.
73011
73012 2006-02-15  Simon Josefsson  <jas@extundo.com>
73013
73014         * build-aux/maint.mk: Add dsyntax-check rule.
73015
73016 2006-02-15  Eric Blake  <ebb9@byu.net>
73017
73018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73019         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73020         'present but cannot compile' warnings on cygwin.
73021         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73022         use ws2tcpip.h if sys/socket.h works.
73023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73024         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73025
73026 2006-02-14  Simon Josefsson  <jas@extundo.com>
73027
73028         * modules/maintainer-makefile (Files): Rename.
73029
73030         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73031         and (the local) Makefile.cfg to maint-cfg.mk.
73032
73033         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73034         to the latter.
73035
73036         * modules/maintainer-makefile: New module.
73037
73038         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73039         severaly stripped to make it possible to build it up from scratch
73040         with reliable tests.
73041
73042         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73043         fixes to permit overriding the default actions when configure and
73044         makefile are not available.
73045
73046 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73047
73048         Sync from coreutils.
73049         * modules/lstat (Depends-on): Don't depend on xalloc.
73050         (License): Change from GPL to LGPL, since this is now simply a
73051         replacement for a libc function.
73052
73053 2006-02-14  Jim Meyering  <jim@meyering.net>
73054
73055         Sync from coreutils.
73056
73057         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73058         failure on deficient systems, and simplify gnulib lgpl dependencies.
73059         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73060         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73061
73062         * lib/xalloc-die.c: Remove unused definition of N_.
73063
73064 2006-02-14  Jim Meyering  <jim@meyering.net>
73065
73066         Sync from coreutils.
73067         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73068         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73069         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73070         double-quote uses of that variable, to accommodate the rare case in
73071         which getmntent is available in none of the libraries checked.  This
73072         happens at least on FreeBSD 5.0.
73073
73074 2006-02-13  Simon Josefsson  <jas@extundo.com>
73075
73076         * gnulib-tool (Usage): Fix --import, from
73077         karl@freefriends.org (Karl Berry).
73078
73079 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73080
73081         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73082
73083 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73084
73085         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73086         "autoupdate" on 2005-12-12.
73087
73088 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * modules/closeout (Depends-on): Remove atexit.
73091
73092 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73093
73094         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73095         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73096
73097 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73100         __EXTENSIONS__ if this causes compilation to fail.  Problem
73101         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73102         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73103
73104 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73107         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73108         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73109         All uses changed.
73110
73111 2006-01-26  Simon Josefsson  <jas@extundo.com>
73112
73113         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73114         prototype is visible on mingw32.
73115
73116         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73117         for mingw32.
73118
73119         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73120         mingw32).
73121
73122 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73125         attempt to open for write; this always fails, at least on POSIX
73126         hosts.  This reinstates the 2006-01-09 change, which was
73127         inadvertently removed.
73128
73129 2006-01-26  Bruno Haible  <bruno@clisp.org>
73130
73131         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73132         Reported by Paul Eggert.
73133
73134 2006-01-26  Bruno Haible  <bruno@clisp.org>
73135             Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * lib/stdbool_.h (_Bool)
73138         [(! (defined __cplusplus || defined __BEOS__)
73139           && !defined __GNUC__
73140           && !(defined __HP_cc || defined __xlc__
73141                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73142                || defined __sgi))]:
73143         #define to signed char in these cases too; this simplifies
73144         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73145         etc., separately) and makes it more conservative.
73146
73147 2006-01-25  Simon Josefsson  <jas@extundo.com>
73148
73149         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73150         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73151         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73152
73153 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73154
73155         * lib/argp-namefrob.h: Bugfix. Remove stray #
73156
73157 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73158
73159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73160         so that we test the test.
73161         Check for yet another HP-UX cc bug involving *bool |= bool.
73162
73163 2006-01-25  Karl Berry  <karl@gnu.org>
73164
73165         * config/srclist.txt (vasnprintf.c): sync lost.
73166
73167 2006-01-25  Jim Meyering  <jim@meyering.net>
73168
73169         Sync from the stable (b5) branch of coreutils:
73170
73171         * lib/fts.c (fts_children): Don't let close() clobber errno from
73172         failed fchdir().
73173
73174         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73175         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73176         a dangling symlink.  That can also happen at least for ELOOP.
73177         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73178         FYI, this bug predates the inclusion of fts.c in coreutils.
73179
73180         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73181         in their own block, so pre-c99 compilers don't object.
73182
73183         Avoid the double-free (first in fts_read, second in fts_close) that
73184         would occur when an `active' directory is made inaccessible (e.g.,
73185         via chmod a-x) during a traversal.
73186         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73187         before returning.  Reproduce this failure by
73188         mkdir -p a/b; cd a; chmod a-x . b
73189         Reported by Stavros Passas.
73190
73191 2006-01-25  Jim Meyering  <jim@meyering.net>
73192
73193         * lib/fileblocks.c: Remove more useless parentheses.
73194         * lib/readutmp.h: Likewise.
73195
73196 2006-01-25  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73199         warnings.
73200         Reported by Paul Eggert.
73201
73202 2006-01-25  Bruno Haible  <bruno@clisp.org>
73203
73204         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73205         rid of a trap command. For Solaris sh.
73206         Reported by Mark D. Baushke <mdb@gnu.org>.
73207
73208 2006-01-24  Simon Josefsson  <jas@extundo.com>
73209
73210         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73211         Bruno.
73212
73213 2006-01-24  Karl Berry  <karl@gnu.org>
73214
73215         * config/srclist.txt (argp-namefrob.h): sync lost.
73216
73217 2006-01-24  Jim Meyering  <jim@meyering.net>
73218
73219         * modules/openat (Files): Add lib/intprops.h.
73220         From Mark D. Baushke.
73221
73222 2006-01-24  Jim Meyering  <jim@meyering.net>
73223
73224         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73225         Reported by Mark D. Baushke.
73226
73227 2006-01-24  Jim Meyering  <jim@meyering.net>
73228
73229         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73230
73231 2006-01-24  Bruno Haible  <bruno@clisp.org>
73232
73233         * modules/strnlen (Maintainer): Change from glibc to all.
73234
73235 2006-01-24  Bruno Haible  <bruno@clisp.org>
73236
73237         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73238         Patch by Paul Eggert.
73239
73240 2006-01-24  Bruno Haible  <bruno@clisp.org>
73241
73242         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73243         already has it.
73244         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73245         2005-11-26.
73246
73247         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73248         'signed char' to avoid problems with the built-in _Bool type.
73249         Reported by Paul Eggert on 2005-11-26.
73250
73251 2006-01-24  Bruno Haible  <bruno@clisp.org>
73252
73253         * gnulib-tool (func_import): Avoid constructing complicated sed
73254         expressions inside backquote.
73255         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73256
73257 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73258
73259         These changes imported from libc.
73260         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73261         test and two separate function calls.
73262         * lib/strndup.c (__strndup): Add libc_hidden_def.
73263
73264 2006-01-23  Simon Josefsson  <jas@extundo.com>
73265
73266         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73267         Remove the test_*_SOURCES variable: automake infers it by default.
73268         * modules/tls-tests: Likewise.
73269
73270 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         Work around porting bugs reported by Dieter in
73273         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73274         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73275         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73276         Include "getopt.h" first, to check interface.
73277         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73278         !HAVE_DECL_GETENV.
73279         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73280         (__strndup): Revert to K&R-style function dfns, the glibc style.
73281         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73282         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73283         Include strnlen.h first, to get prototype properly.
73284         (strnlen): Renamed from __strnlen.
73285         Remove weak alias.
73286
73287 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73290
73291 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73292
73293         * config/srclist.txt: Adjust to reflect glibc reorganization.
73294         This affects only comments.
73295
73296 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73297
73298          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73299          Reported by Bruce Korb <bkorb@gnu.org>.
73300
73301 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73302
73303         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73304         to pacify gcc -Wswitch-default.
73305
73306 2006-01-22  Bruno Haible  <bruno@clisp.org>
73307
73308         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73309         temporary buffer for sprintf, take into account the precision also
73310         for 'd', 'i', 'u', 'o', 'x', 'X'.
73311
73312 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73313
73314         * modules/argp-tests: New module
73315         * tests/test-argp.c: New file
73316         * tests/test-argp-2.sh: New file
73317
73318 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73319
73320         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73321         (__argp_base_name): Removed
73322         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73323         typo.
73324         (__argp_base_name): Provide macro definition or extern declaration
73325         depending on the configuration
73326
73327 2006-01-20  Simon Josefsson  <jas@extundo.com>
73328
73329         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73330
73331 2006-01-20  Simon Josefsson  <jas@extundo.com>
73332
73333         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73334
73335 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73338         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73339         Suggested by Bruno Haible.
73340
73341 2006-01-20  Karl Berry  <karl@gnu.org>
73342
73343         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73344         until changes propagate, I guess.
73345
73346 2006-01-19  Simon Josefsson  <jas@extundo.com>
73347
73348         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73349
73350 2006-01-19  Simon Josefsson  <jas@extundo.com>
73351
73352         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73353
73354 2006-01-19  Simon Josefsson  <jas@extundo.com>
73355
73356         * gnulib-tool: Set check_PROGRAMS.
73357
73358         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73359         modules/des-tests, modules/gc-arcfour-tests,
73360         modules/gc-arctwo-tests, modules/gc-des-tests,
73361         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73362         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73363         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73364         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73365         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73366         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73367         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73368         test_*_SOURCES.
73369
73370 2006-01-18  Simon Josefsson  <jas@extundo.com>
73371
73372         * modules/socklen (Depends-on): Depend on sys_socket.
73373
73374 2006-01-18  Simon Josefsson  <jas@extundo.com>
73375
73376         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73377         modules/des-tests, modules/gc-arcfour-tests,
73378         modules/gc-arctwo-tests, modules/gc-des-tests,
73379         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73380         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73381         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73382         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73383         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73384         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73385         $(EXEEXT) to automake TESTS variable, for mingw32.
73386
73387 2006-01-17  Simon Josefsson  <jas@extundo.com>
73388
73389         * modules/socklen (Include): Need sys/socket.h.
73390
73391 2006-01-17  Bruno Haible  <bruno@clisp.org>
73392
73393         * modules/ssize_t (Include): Add <sys/types.h>.
73394
73395 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73398         it's not portable and it doesn't work with cross-compiles.
73399         Problem reported by Bruno Haible.  Fix missing-$ typo in
73400         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73401         -zignore from being used with Sun's C compiler.
73402
73403 2006-01-12  Simon Josefsson  <jas@extundo.com>
73404
73405         * lib/base64.c: Fix warning, reported by Bruno Haible
73406         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73407
73408 2006-01-12  Bruno Haible  <bruno@clisp.org>
73409
73410         * modules/ldd: New file.
73411         * build-aux/ldd.sh.in: New file.
73412         * MODULES.html.sh (Support for building libraries and executables): Add
73413         ldd.
73414
73415 2006-01-12  Bruno Haible  <bruno@clisp.org>
73416
73417         * m4/ldd.m4: New file.
73418
73419 2006-01-12  Bruno Haible  <bruno@clisp.org>
73420
73421         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73422         endless loop while replacing $auxdir with build-aux.
73423
73424 2006-01-11  Simon Josefsson  <jas@extundo.com>
73425
73426         * lib/stdint_.h (SIZE_MAX): Add missing (.
73427
73428 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         Sync from coreutils.
73431         * lib/md5.c: Fix commentary typos.
73432         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73433         * lib/md5.h (__attribute__): Remove; unused.
73434         * lib/sha1.c: Fix commentary to match md5 better.
73435         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73436         so that we don't need to worry about alignment.  All uses changed.
73437         This merges the 2005-10-28 md5 change into sha1.
73438
73439 2006-01-11  Jim Meyering  <jim@meyering.net>
73440
73441         Sync from coreutils.
73442         * lib/md5.c (OP): Fix spacing.
73443
73444 2006-01-11  Bruno Haible  <bruno@clisp.org>
73445
73446         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73447         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73448         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73449
73450 2006-01-11  Bruno Haible  <bruno@clisp.org>
73451
73452         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73453         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73454         the "early" section as well.
73455
73456 2006-01-11  Bruno Haible  <bruno@clisp.org>
73457
73458         Avoid "ar: no archive members specified" error on MacOS X.
73459         * gnulib-tool (func_modules_add_dummy): New function.
73460         (func_import, func_create_testdir): Invoke it.
73461
73462 2006-01-11  Bruno Haible  <bruno@clisp.org>
73463
73464         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73465         with $auxdir in AC_CONFIG_FILES statements.
73466
73467 2006-01-11  Bruno Haible  <bruno@clisp.org>
73468
73469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73470         Initialize also noinst_HEADERS to empty.
73471
73472 2006-01-11  Bruno Haible  <bruno@clisp.org>
73473
73474         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73475         variables.
73476         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73477         autoreconf.
73478
73479 2006-01-11  Bruno Haible  <bruno@clisp.org>
73480
73481         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73482         overridable by the user.
73483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73484
73485 2006-01-10  Simon Josefsson  <jas@extundo.com>
73486
73487         * modules/sys_socket: New file.
73488
73489 2006-01-10  Simon Josefsson  <jas@extundo.com>
73490
73491         * m4/sys_socket_h.m4: New file.
73492
73493 2006-01-10  Simon Josefsson  <jas@extundo.com>
73494
73495         * lib/socket_.h: New file.
73496
73497 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * modules/readutmp (Maintainer): Add myself.
73500
73501 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73502
73503         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73504         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73505         People who are still concerned with buggy memcmp implementations
73506         can invoke gl_FUNC_MEMCMP themselves.
73507
73508 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * lib/regex_internal.h (BITSET_WORD_BITS):
73511         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73512         preprocessor mishandles large unsigned values as if they were signed.
73513         Problem reported by Claudio Fontana in
73514         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73515
73516 2006-01-10  Jim Meyering  <jim@meyering.net>
73517
73518         Avoid the double-free (first in fts_read, second in fts_close) that
73519         would occur when an `active' directory is made inaccessible (e.g.,
73520         via chmod a-x) during a traversal.
73521         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73522         before returning.  Reproduce this failure by
73523         mkdir -p a/b; cd a; chmod a-x . b
73524         Reported by Stavros Passas.
73525
73526         Sync from coreutils.
73527         * lib/sha1.c: Tweak grammar in a comment.
73528
73529 2006-01-10  Jim Meyering  <jim@meyering.net>
73530
73531         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73532         Patch by Joerg Sonnenberger.
73533
73534 2006-01-10  Bruno Haible  <bruno@clisp.org>
73535
73536         * modules/readutmp: Depend on module free.
73537         * modules/strtok_r: Depend on module restrict.
73538
73539 2006-01-10  Bruno Haible  <bruno@clisp.org>
73540
73541         * modules/gettext (configure.ac): Add an invocation of
73542         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73543
73544 2006-01-10  Bruno Haible  <bruno@clisp.org>
73545
73546         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73547         Reported by Werner Lemberg <wl@gnu.org>.
73548
73549 2006-01-10  Bruno Haible  <bruno@clisp.org>
73550
73551         * lib/localcharset.c: Update from GNU gettext.
73552
73553 2006-01-10  Bruno Haible  <bruno@clisp.org>
73554
73555         * lib/argp.h (__const): Remove macro. Use const instead.
73556         * lib/argp-fmtstream.h (__const): Likewise.
73557         * lib/glob_.h (__const): Remove macro.
73558         * lib/glob-libc.h: Use const instead of __const.
73559
73560 2006-01-10  Bruno Haible  <bruno@clisp.org>
73561
73562         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73563         variable.
73564         Needed to avoid an automake error regarding the 'gettext' module.
73565
73566 2006-01-09  Simon Josefsson  <jas@extundo.com>
73567
73568         * modules/inet_ntop (Depends-on): Add restrict.
73569
73570 2006-01-09  Simon Josefsson  <jas@extundo.com>
73571
73572         * modules/gc-rijndael-tests (License): Put under LGPL.
73573
73574         * modules/gc-des-tests (License): Likewise.
73575
73576         * modules/gc-arcfour-tests (License): Likewise.
73577
73578         * modules/gc-arctwo-tests (License): Likewise.
73579
73580         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73581
73582         * modules/gc-hmac-sha1-tests (Files): Likewise.
73583
73584         * modules/gc-hmac-md5-tests (License): Likewise.
73585
73586         * modules/gc-sha1-tests (License): Likewise.
73587
73588         * modules/gc-md5-tests (License): Likewise.
73589
73590         * modules/gc-md4-tests (License): Likewise.
73591
73592         * modules/gc-md2-tests (License): Likewise.
73593
73594         * modules/gc-tests (License): Likewise.
73595
73596         * modules/des-tests (License): Likewise.
73597
73598         * modules/md4-tests (License): Likewise.
73599
73600         * modules/md2-tests (License): Likewise.
73601
73602 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73603
73604         Sync from coreutils:
73605
73606         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73607         * modules/lib-ignore: New file.
73608         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73609         chdir-safer.m4, lchmod.m4.
73610         * modules/openat: Add mkdirat.c, openat-priv.h.
73611
73612 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         Sync from coreutils.
73615         * m4/lib-ignore.m4: New file.
73616         * m4/lchmod.m4: New file.
73617
73618 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         Sync from coreutils.
73621         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73622         for write access: POSIX says that must fail.
73623         * lib/fts.c (diropen): Likewise.
73624         * lib/save-cwd.c (save_cwd): Likewise.
73625         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73626         well, for minor improvements on hosts that lack O_DIRECTORY.
73627         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73628         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73629         Fall back on chown if open failed with EACCES.
73630
73631         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73632         Report an error at compile-time if only a 1-second nominal clock
73633         resolution is found.
73634
73635         * lib/lchmod.h: New file.
73636         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73637         (make_dir_parents): Use lchown rather than chown, and
73638         lchmod rather than chmod.
73639
73640         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73641         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73642         "proc" reported by n0dalus.
73643
73644         * lib/mountlist.c: Include <limits.h>.
73645         (dev_from_mount_options)
73646         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73647         New function.  It no longer assumes "dev=" has the System V meaning
73648         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73649         (read_file_system_list)
73650         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73651         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73652         dev= in that case.
73653
73654         * lib/posixtm.h (PDS_PRE_2000): New macro.
73655         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73656         allow_century.  All usages changed.  Reject dates outside the range
73657         1969-1999 if PDS_PRE_2000 is used.
73658
73659 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         Sync from coreutils.
73662         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73663         (Time of day items): Mention the possibility of leap seconds.
73664         Problem reported by Dr. David Alan Gilbert.
73665
73666 2006-01-09  Jim Meyering  <jim@meyering.net>
73667
73668         Sync from coreutils.
73669
73670         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73671
73672         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73673
73674         * lib/modechange.c (mode_compile): Reject an invalid mode string
73675         that starts with an octal digit.  From Andreas Gruenbacher.
73676
73677         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73678         and dup to open_safer and dup_safer, respectively.
73679         (openat_permissive): Fix typo in comment.
73680
73681         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73682         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73683         (_): Remove; no longer needed.
73684         (openat): Renamed from rpl_openat; no need for rpl_openat
73685         since openat.h renames openat for us.
73686         Replace most of the body with a call to openat_permissive,
73687         to avoid duplicate code.
73688         Port to (probably hypothetical) environments were mode_t is
73689         wider than int.
73690         (openat_permissive): Require mode arg, so that we can check
73691         types better.  Put it just after flags.  Change cwd failure
73692         indicator from pointer-to-bool to pointer-to-errno-value.
73693         All callers changed.
73694         Invoke openat_save_fail and/or openat_restore_fail if
73695         cwd_errno is null, so that openat can call us.
73696         (openat_permissive, fdopendir, fstatat, unlinkat):
73697         Simplify errno handling to avoid some duplicate code,
73698         as it's OK to set errno on success.
73699         * lib/openat.h: Revamp code so that function macros depend on
73700         __OPENAT_PREFIX only, not also on AT_FDCWD.
73701         (openat_ro): Remove.  Caller changed to use openat_permissive.
73702         (openat_permissive): Now a macro, if not a function.
73703         (openat_restore_fail, openat_save_fail): Now always functions,
73704         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73705
73706         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73707         and openat.c.
73708         * lib/mkdirat.c: Include openat-priv.h.
73709         Remove definitions of macros defined therein.
73710         * lib/openat.c: Likewise.
73711
73712         * lib/mkdirat.c (mkdirat): New file and function.
73713         * lib/openat.h (mkdirat): Declare.
73714
73715         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73716
73717         * lib/openat.h (openat_permissive): Declare.
73718         (openat_ro): Define.
73719
73720         * lib/openat.c (EXPECTED_ERRNO): New macro.
73721         (openat_permissive): New function -- used in remove.c rewrite.
73722         (all functions): Set errno just before returning, only if there
73723         was an actual failure.
73724         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73725
73726         Emulate openat-family functions using Linux's procfs, if possible.
73727         Idea and some code based on Ulrich Drepper's glibc changes.
73728
73729         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73730         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73731         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73732         before falling back on save_cwd and restore_cwd.
73733         (fdopendir, fstatat, unlinkat): Likewise.
73734
73735         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73736         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73737
73738         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73739         as second argument to va_arg.  Otherwise, some versions of gcc
73740         warn that `if this code is reached, the program will abort'.
73741
73742 2006-01-09  Jim Meyering  <jim@meyering.net>
73743
73744         Sync from coreutils.
73745         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73746         Require openat-priv.h.
73747
73748 2006-01-09  Bruno Haible  <bruno@clisp.org>
73749
73750         * modules/strnlen (Include): Use strnlen.h.
73751
73752 2006-01-09  Bruno Haible  <bruno@clisp.org>
73753
73754         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73755
73756 2006-01-09  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/sysexit_.h (EX_OK): New macro.
73759         Suggested by Martin Lambers <marlam@marlam.de>.
73760
73761 2006-01-09  Bruno Haible  <bruno@clisp.org>
73762
73763         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73764         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73765
73766 2006-01-09  Bruno Haible  <bruno@clisp.org>
73767
73768         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73769         numbers.
73770
73771 2006-01-09  Bruno Haible  <bruno@clisp.org>
73772
73773         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73774         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73775         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73776         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73777
73778 2006-01-09  Bruno Haible  <bruno@clisp.org>
73779
73780         * build-aux/javacomp.sh.in: New file, moved from lib/.
73781         * modules/javacomp-script (Files): Update.
73782         (configure.ac): Add AC_CONFIG_FILES invocation.
73783         (EXTRA_DIST): Remove variable.
73784
73785         * build-aux/javaexec.sh.in: New file, moved from lib/.
73786         * modules/javaexec (Files): Update.
73787         (configure.ac): Add AC_CONFIG_FILES invocation.
73788         (EXTRA_DIST): Remove javaexec.sh.in.
73789
73790         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73791         * modules/csharpcomp-script (Files): Update.
73792         (configure.ac): Add AC_CONFIG_FILES invocation.
73793         (EXTRA_DIST): Remove variable.
73794
73795         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73796         * modules/csharpexec (Files): Update.
73797         (configure.ac): Add AC_CONFIG_FILES invocation.
73798         (EXTRA_DIST): Remove csharpexec.sh.in.
73799
73800 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73801
73802         Sync from coreutils.
73803
73804         Add POSIX ACL support
73805         * lib/acl.h (copy_acl, set_acl): Add declarations.
73806         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73807         systems other than Linux.
73808         (chmod_or_fchmod): New function: use fchmod when possible,
73809         and chmod otherwise.
73810         (file_has_acl): Add a POSIX ACL implementation, with a
73811         Linux-specific subcase.
73812         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73813         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73814         acls are unsupported.
73815         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73816         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73817         are unsupported.
73818
73819 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73820
73821         Sync from coreutils.
73822         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73823
73824 2006-01-07  Bruno Haible  <bruno@clisp.org>
73825
73826         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73827         gl_EARLY.
73828
73829 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73832         Problem reported for Mingw by Mark Junker.
73833
73834 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * README: Gnulib normally doesn't generate a tarball.
73837
73838 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73841         long int, not int, for nanosecond counts, so that people who are
73842         used to POSIX struct timespec won't be surprised.  Reported by Jim
73843         Meyering.
73844
73845 2005-12-28  Bruno Haible  <bruno@clisp.org>
73846
73847         * build-aux/config.rpath: Update from GNU gettext.
73848
73849 2005-12-16  Jim Meyering  <jim@meyering.net>
73850
73851         * modules/fprintftime: New module.
73852         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73853
73854 2005-12-16  Jim Meyering  <jim@meyering.net>
73855
73856         * m4/fprintftime.m4: New file.
73857
73858 2005-12-16  Jim Meyering  <jim@meyering.net>
73859
73860         * lib/fprintftime.c, lib/fprintftime.h: New files.
73861
73862 2005-12-15  Simon Josefsson  <jas@extundo.com>
73863
73864         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73865         new m4/socklen.m4.
73866
73867 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73868
73869         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73870         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73871
73872 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73873
73874         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73875         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73876         struct uparams is valid. Fall back to the default values if it is
73877         not.
73878
73879 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73880
73881         * modules/argp (Files): Add argp-pin.c
73882         (Depends-on): dirname
73883         (lib_SOURCES): Add argp-pin.c
73884
73885 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73886
73887         * m4/argp.m4:  Check if program_invocation_name and
73888         program_invocation_short_name are declared and define appropriate
73889         macros if they are not.
73890
73891 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73892
73893         * lib/argp-help.c (__argp_base_name): New function
73894         (__argp_short_program_name): Rewrite using __argp_base_name
73895         * lib/argp-namefrob.h: Define program_invocation_name and
73896         program_invocation_short_name if requested
73897         (__argp_base_name): Add prototype
73898         * lib/argp-parse.c (argp_def): Use gettext wrappers
73899         (argp_default_parser): Use __argp_base_name
73900         * lib/argp-pin.c: New file. Defines program_invocation_name and
73901         program_invocation_short_name on systems that lack them.
73902
73903 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73906         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73907         porting problem reported by Georg Schwarz in
73908         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73909
73910 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73913         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73914         porting problem reported by Georg Schwarz in
73915         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73916
73917 2005-12-05  Bruno Haible  <bruno@clisp.org>
73918
73919         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73920         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73921         Reported by Mark Junker <mjscod@gmx.de>.
73922
73923 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73926         Use implementation from Albert Chin, with some
73927         comments/corrections by Stepan Kasal and myself.
73928
73929 2005-12-02  Bruno Haible  <bruno@clisp.org>
73930
73931         * gnulib-tool (func_import): Accept GPLed build tool modules when
73932         --lgpl is given.
73933         * modules/csharpcomp-script: New file.
73934         * modules/csharpcomp: Depend on it.
73935         * modules/javacomp-script: New file.
73936         * modules/javacomp: Depend on it.
73937         Suggested by Simon Josefsson.
73938
73939 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73940
73941         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73942         statement, to work around an HP-UX 10.20 compiler bug reported by
73943         Peter O'Gorman.
73944
73945 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * modules/savedir (Depends-on): Add openat.
73948
73949 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73952         (uintmax_t) [defined uintmax_t]: Do not declare.
73953         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73954         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73955         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73956         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73957         sake of portability to weird hosts that C allows (though we don't
73958         know of any practical examples).
73959
73960         * lib/savedir.h (fdsavedir): New decl.
73961         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73962         contains most of the former guts of savedir.
73963         (savedir): Use savedirstream.
73964         Include "openat.h".
73965
73966 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * modules/obstack (Files): Add m4/ulonglong.m4.
73969         Problem reported by Davide Angelocola.
73970
73971 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73974         coreutils no longer futzes with rounding modes.
73975
73976 2005-11-14  Jim Meyering  <jim@meyering.net>
73977
73978         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73979         replacement of mkstemp.
73980
73981 2005-11-10  Simon Josefsson  <jas@extundo.com>
73982
73983         * lib/readline.c: Remove EOL.
73984
73985 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73986
73987         * modules/gethrxtime (Depends-on): Add gettime.
73988
73989 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73992         or gettimeofday; no longer needed.
73993
73994 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73997         time business.
73998         (gethrxtime) [! (HAVE_NANOUPTIME
73999         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74000         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74001         our own approximation.
74002
74003 2005-11-08  Eric Blake  <ebb9@byu.net>
74004
74005         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74006
74007 2005-11-08  Eric Blake  <ebb9@byu.net>
74008
74009         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74010
74011 2005-11-04  Bruno Haible  <bruno@clisp.org>
74012
74013         * gnulib-tool: Implement --update mode.
74014
74015 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74016
74017         Fix porting problem reported by Theodoros V. Kalamatianos.
74018         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74019         Don't assume that futimes failing means we must fail.
74020
74021 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74024         variables to suggest the intended function of the PATH_MAX check.
74025
74026 2005-10-30  Kean Johnston  <jkj@sco.com>
74027
74028         Trivial changes to support SCO systems.
74029         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74030         as PATH_MAX.
74031         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74032         where __ptr is null when no I/O is pending.
74033
74034 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74035
74036         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74037         leave errno alone.  Problem reported by Dmitry V. Levin.
74038
74039 2005-10-28  Simon Josefsson  <jas@extundo.com>
74040
74041         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74042         Test more.
74043
74044         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74045
74046         * modules/md2, modules/md2-tests: New files.
74047
74048 2005-10-28  Simon Josefsson  <jas@extundo.com>
74049
74050         * m4/inet_ntop.m4: More tests.
74051
74052         * m4/gc-md2.m4, md2.m4: New file.
74053
74054 2005-10-28  Simon Josefsson  <jas@extundo.com>
74055
74056         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74057         "restrict" keywords, as per POSIX.  Protect the function
74058         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74059         Don't use K&R prototypes.  Check the sprintf return values.
74060         Re-define EAFNOSUPPORT if not present.  Indent.
74061
74062         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74063         suggested by Bruno Haible <bruno@clisp.org>.
74064
74065         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74066
74067         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74068
74069         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74070         libgcrypt).
74071
74072         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74073
74074         * lib/md2.h, lib/md2.c: New files.
74075
74076 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74077
74078         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74079         errno alone.  Problem reported by Frederic Jolliton.
74080
74081 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74082
74083         * modules/verify (License): Change from GPL to LGPL.  This is a
74084         tiny module and there are apparently near-equivalents that are
74085         under the BSD license.
74086
74087 2005-10-24  Simon Josefsson  <jas@extundo.com>
74088
74089         * modules/sha1: Relicense to LGPL.
74090
74091 2005-10-24  Simon Josefsson  <jas@extundo.com>
74092
74093         * lib/md4.h: Shrink buffer size, now that we changed the type.
74094
74095 2005-10-23  Simon Josefsson  <jas@extundo.com>
74096
74097         * gnulib-tool (func_import): Fix --tests-base.
74098
74099 2005-10-22  Simon Josefsson  <jas@extundo.com>
74100
74101         * modules/arcfour (Depends-on): Need stdint.
74102
74103 2005-10-22  Simon Josefsson  <jas@extundo.com>
74104
74105         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74106         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74107
74108 2005-10-22  Simon Josefsson  <jas@extundo.com>
74109
74110         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74111         suggested by Bruno Haible <bruno@clisp.org>.
74112
74113 2005-10-22  Simon Josefsson  <jas@extundo.com>
74114
74115         * lib/crc.h: Include stddef.h, for size_t.
74116
74117 2005-10-22  Simon Josefsson  <jas@extundo.com>
74118
74119         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74120         arcfour_context struct (simplify test vector testing in GNU
74121         Shishi).
74122
74123 2005-10-21  Simon Josefsson  <jas@extundo.com>
74124
74125         * modules/des, modules/des-tests: New files.
74126
74127         * modules/gc-des, modules/gc-des-tests: New files.
74128
74129         * tests/test-des.c, tests/test-gc-des.c: New file.
74130
74131 2005-10-21  Simon Josefsson  <jas@extundo.com>
74132
74133         * modules/arctwo, modules/arctwo-tests: New files.
74134
74135         * tests/test-arctwo.c: New file.
74136
74137         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74138
74139         * tests/test-gc-arctwo.c: New file.
74140
74141 2005-10-21  Simon Josefsson  <jas@extundo.com>
74142
74143         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74144         Bruno Haible <bruno@clisp.org>.
74145
74146         * m4/gc-des.m4: New file.
74147
74148 2005-10-21  Simon Josefsson  <jas@extundo.com>
74149
74150         * m4/arctwo.m4: New file.
74151
74152         * m4/gc-arctwo.m4: New file.
74153
74154 2005-10-21  Simon Josefsson  <jas@extundo.com>
74155
74156         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74157         block.
74158
74159 2005-10-21  Simon Josefsson  <jas@extundo.com>
74160
74161         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74162         <bruno@clisp.org>.
74163
74164         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74165
74166         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74167         Bruno Haible <bruno@clisp.org>.
74168
74169         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74170         <bruno@clisp.org>.
74171
74172 2005-10-21  Simon Josefsson  <jas@extundo.com>
74173
74174         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74175
74176 2005-10-21  Simon Josefsson  <jas@extundo.com>
74177
74178         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74179
74180 2005-10-21  Simon Josefsson  <jas@extundo.com>
74181
74182         * lib/des.h, lib/des.c: New files.
74183
74184         * lib/gc-gnulib.c: Support DES.c
74185
74186 2005-10-21  Simon Josefsson  <jas@extundo.com>
74187
74188         * lib/arctwo.h, lib/arctwo.c: New files.
74189
74190         * lib/gc-gnulib.c: Support ARCTWO.
74191
74192 2005-10-21  Simon Josefsson  <jas@extundo.com>
74193
74194         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74195         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74196
74197 2005-10-21  Simon Josefsson  <jas@extundo.com>
74198
74199         * gnulib-tool (func_import, func_create_testdir): Define automake
74200         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74201         Makefile.am snippet),
74202         suggested by Bruno Haible <bruno@clisp.org>.
74203
74204         * modules/gc (Makefile.am): Use it.
74205
74206 2005-10-21  Bruno Haible  <bruno@clisp.org>
74207
74208         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74209         patch.
74210
74211 2005-10-19  Simon Josefsson  <jas@extundo.com>
74212
74213         * tests/test-gc-rijndael.c: New file.
74214
74215         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74216
74217 2005-10-19  Simon Josefsson  <jas@extundo.com>
74218
74219         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74220         interface too.
74221
74222 2005-10-19  Simon Josefsson  <jas@extundo.com>
74223
74224         * tests/test-gc-arcfour.c: New file.
74225
74226         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74227
74228 2005-10-19  Simon Josefsson  <jas@extundo.com>
74229
74230         * modules/gc-md4, modules/gc-md4-tests: New file.
74231
74232         * tests/test-gc-md4.c: New file.
74233
74234 2005-10-19  Simon Josefsson  <jas@extundo.com>
74235
74236         * m4/gc-md4.m4: New file.
74237
74238 2005-10-19  Simon Josefsson  <jas@extundo.com>
74239
74240         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74241         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74242         <kasal@ucw.cz>.
74243
74244 2005-10-19  Simon Josefsson  <jas@extundo.com>
74245
74246         * m4/gc-arcfour.m4: New file.
74247
74248         * m4/gc-rijndael.m4: New file.
74249
74250 2005-10-19  Simon Josefsson  <jas@extundo.com>
74251
74252         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74253
74254 2005-10-19  Simon Josefsson  <jas@extundo.com>
74255
74256         * lib/gc-gnulib.c: Support ARCFOUR.
74257
74258 2005-10-19  Simon Josefsson  <jas@extundo.com>
74259
74260         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74261         support.
74262
74263         * lib/gc.h: Add ECB enum type.
74264
74265         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74266
74267 2005-10-18  Simon Josefsson  <jas@extundo.com>
74268
74269         * tests/test-md5.c: New file.
74270
74271         * modules/md5-tests: New file.
74272
74273 2005-10-18  Simon Josefsson  <jas@extundo.com>
74274
74275         * tests/test-md4.c: New file.
74276
74277         * modules/md4, modules/md4-tests: New files.
74278
74279 2005-10-18  Simon Josefsson  <jas@extundo.com>
74280
74281         * m4/md4.m4: New file.
74282
74283 2005-10-18  Simon Josefsson  <jas@extundo.com>
74284
74285         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74286
74287 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74288
74289         * gnulib-tool (func_create_testdir): Omit the second check whether
74290         BUILT_SOURCES in nonempty.
74291
74292 2005-10-17  Simon Josefsson  <jas@extundo.com>
74293
74294         * tests/test-rijndael.c: New file.
74295
74296 2005-10-17  Simon Josefsson  <jas@extundo.com>
74297
74298         * modules/sha1: Depend on stdint instead of md5.
74299
74300         * modules/md5: Depend on stdint, remove uint32_t.
74301
74302 2005-10-17  Simon Josefsson  <jas@extundo.com>
74303
74304         * modules/gc-sha1-tests: New file.
74305
74306         * tests/test-gc-sha1.c: New file.
74307
74308 2005-10-17  Simon Josefsson  <jas@extundo.com>
74309
74310         * m4/md5.m4: Remove call to uint32_t.m4.
74311
74312 2005-10-17  Simon Josefsson  <jas@extundo.com>
74313
74314         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74315
74316         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74317         md5.h.
74318
74319         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74320
74321         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74322
74323 2005-10-17  Simon Josefsson  <jas@extundo.com>
74324
74325         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74326
74327 2005-10-17  Simon Josefsson  <jas@extundo.com>
74328
74329         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74330
74331 2005-10-17  Simon Josefsson  <jas@extundo.com>
74332
74333         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74334
74335         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74336
74337 2005-10-17  Bruno Haible  <bruno@clisp.org>
74338
74339         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74340         that it can also be used in a test.
74341
74342 2005-10-16  Bruno Haible  <bruno@clisp.org>
74343
74344         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74345         TESTS_ENVIRONMENT, so that individual tests can augment it.
74346
74347         * gnulib-tool (func_create_testdir): Use an intermediate target for
74348         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74349         macros, like $(ALLOCA_H), which cannot be passed through the command
74350         line.
74351
74352 2005-10-15  Simon Josefsson  <jas@extundo.com>
74353
74354         * modules/rijndael-tests: New file.
74355
74356         * modules/rijndael: New file.
74357
74358 2005-10-15  Simon Josefsson  <jas@extundo.com>
74359
74360         * m4/rijndael.m4: New file.
74361
74362 2005-10-15  Simon Josefsson  <jas@extundo.com>
74363
74364         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74365
74366         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74367
74368 2005-10-14  Simon Josefsson  <jas@extundo.com>
74369
74370         * tests/test-arcfour.c: New file.
74371
74372         * modules/arcfour, modules/arcfour-tests: New files.
74373
74374 2005-10-14  Simon Josefsson  <jas@extundo.com>
74375
74376         * m4/arcfour.m4: New file.
74377
74378 2005-10-14  Simon Josefsson  <jas@extundo.com>
74379
74380         * lib/arcfour.h, lib/arcfour.c: New files.
74381
74382 2005-10-14  Roland McGrath  <roland@redhat.com>
74383
74384         Import from libc.  [BZ #1331]
74385         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74386         macro argument.
74387         Reported by Matej Vela <vela@debian.org>.
74388
74389 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74390
74391         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74392         include <wchar.h>; no longer needed.
74393
74394 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74397
74398 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74399         and  Ulrich Drepper  <drepper@redhat.com>
74400
74401         Import from libc.
74402         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74403         instead of inline stream orientation test and two separate
74404         function calls.  Pay no attention to USE_IN_LIBIO.
74405
74406 2005-10-13  Simon Josefsson  <jas@extundo.com>
74407
74408         * modules/gc-hmac-md5-tests: New file.
74409
74410         * tests/test-gc-hmac-sha1.c: New file.
74411
74412         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74413
74414         * modules/gc-hmac-md5-tests: New file.
74415
74416         * tests/test-gc-md5.c: New file.
74417
74418         * modules/gc-md5-tests: New file.
74419
74420 2005-10-13  Simon Josefsson  <jas@extundo.com>
74421
74422         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74423         Move memory allocation outside of loop.
74424
74425 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74428         intermediate directory is in a read-only file system.  Problem
74429         reported by Eric Blake.
74430
74431 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74432
74433         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74434
74435 2005-10-12  Simon Josefsson  <jas@extundo.com>
74436
74437         * tests/test-hmac-sha1.c: New file.
74438
74439         * modules/hmac-sha1-tests: New file.
74440
74441         * modules/hmac-sha1: New file.
74442
74443 2005-10-12  Simon Josefsson  <jas@extundo.com>
74444
74445         * modules/gc-sha1: New file.
74446
74447 2005-10-12  Simon Josefsson  <jas@extundo.com>
74448
74449         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74450
74451         * tests/test-gc-pbkdf2-sha1.c: New file.
74452
74453 2005-10-12  Simon Josefsson  <jas@extundo.com>
74454
74455         * modules/gc-md5, modules/gc-hmac-md5: New files.
74456
74457         * modules/gc (Files): Remove md5, memxor and hmac files.
74458
74459 2005-10-12  Simon Josefsson  <jas@extundo.com>
74460
74461         * m4/gc-pbkdf2-sha1.m4: New file.
74462
74463         * m4/gc-hmac-sha1.m4: New file.
74464
74465         * m4/gc-sha1: New file.
74466
74467         * m4/hmac-sha1.m4: New file.
74468
74469 2005-10-12  Simon Josefsson  <jas@extundo.com>
74470
74471         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74472
74473         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74474
74475 2005-10-12  Simon Josefsson  <jas@extundo.com>
74476
74477         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74478         suggested by Bruno Haible <bruno@clisp.org>.
74479
74480 2005-10-12  Simon Josefsson  <jas@extundo.com>
74481
74482         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74483
74484 2005-10-12  Simon Josefsson  <jas@extundo.com>
74485
74486         * lib/gc-pbkdf2-sha1.c: New file.
74487
74488         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74489
74490 2005-10-12  Simon Josefsson  <jas@extundo.com>
74491
74492         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74493
74494         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74495
74496 2005-10-12  Simon Josefsson  <jas@extundo.com>
74497
74498         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74499         GC_USE_HMAC_MD5, respectively.
74500
74501         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74502         (gc_md5): Fix typo.
74503
74504         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74505
74506         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74507
74508         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74509
74510 2005-10-12  Bruno Haible  <bruno@clisp.org>
74511
74512         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74513         Reported by Stepan Kasal <kasal@ucw.cz>.
74514
74515 2005-10-11  Simon Josefsson  <jas@extundo.com>
74516
74517         * tests/test-crc.c: New file.
74518
74519         * modules/crc, modules/crc-tests: New files.
74520
74521 2005-10-11  Simon Josefsson  <jas@extundo.com>
74522
74523         * m4/crc.m4: New file.
74524
74525 2005-10-11  Simon Josefsson  <jas@extundo.com>
74526
74527         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74528
74529         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74530
74531         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74532
74533 2005-10-11  Simon Josefsson  <jas@extundo.com>
74534
74535         * lib/crc.h, lib/crc.c: New files.
74536
74537         * lib/gc.h (gc_hash_buffer): Add doc.
74538
74539 2005-10-11  Bruno Haible  <bruno@clisp.org>
74540
74541         * modules/c-strcasestr: New file.
74542         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74543
74544 2005-10-11  Bruno Haible  <bruno@clisp.org>
74545
74546         * modules/c-strcase: New file.
74547         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74548
74549 2005-10-11  Bruno Haible  <bruno@clisp.org>
74550
74551         * lib/strcasecmp.c: Include limits.h.
74552         (strcasecmp): Avoid integer overflow on exotic platforms.
74553         * lib/strncasecmp.c: Include limits.h.
74554         (strncasecmp): Avoid integer overflow on exotic platforms.
74555         Reported by Paul Eggert.
74556
74557 2005-10-11  Bruno Haible  <bruno@clisp.org>
74558
74559         * lib/c-strcasestr.h: New file, from GNU gettext.
74560         * lib/c-strcasestr.c: New file, from GNU gettext.
74561
74562 2005-10-11  Bruno Haible  <bruno@clisp.org>
74563
74564         * lib/c-strcase.h: New file, from GNU gettext.
74565         * lib/c-strcasecmp.c: New file, from GNU gettext.
74566         * lib/c-strncasecmp.c: New file, from GNU gettext.
74567
74568 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * modules/mempcpy (License): GPL -> LGPL.
74571         * modules/strchrnul (License): Likewise.
74572         * modules/sysexits (License): Likewise.
74573
74574 2005-10-08  Simon Josefsson  <jas@extundo.com>
74575
74576         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74577
74578 2005-10-07  Simon Josefsson  <jas@extundo.com>
74579
74580         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74581
74582 2005-10-06  Simon Josefsson  <jas@extundo.com>
74583
74584         * tests/test-hmac-md5.c: New file.
74585
74586         * modules/hmac-md5-tests: New file.
74587
74588         * modules/hmac-md5: New file.
74589
74590 2005-10-06  Simon Josefsson  <jas@extundo.com>
74591
74592         * m4/hmac-md5.m4: New file.
74593
74594         * m4/memxor.m4: Require gl_C_RESTRICT.
74595
74596 2005-10-06  Simon Josefsson  <jas@extundo.com>
74597
74598         * lib/memxor.c (memxor): Avoid casts and warnings.
74599
74600 2005-10-06  Simon Josefsson  <jas@extundo.com>
74601
74602         * lib/hmac-md5.c: New file.
74603
74604         * lib/hmac.h: New file.
74605
74606 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74609         promotes to int, not unsigned int, to catch the AIX 5.3
74610         compiler bug.
74611
74612 2005-10-05  Simon Josefsson  <jas@extundo.com>
74613
74614         * modules/memxor: New file.
74615
74616         * modules/iconv (Files): Move config.rpath to havelib, it is used
74617         there.
74618
74619         * modules/havelib (Files): Add config.rpath.
74620
74621 2005-10-05  Simon Josefsson  <jas@extundo.com>
74622
74623         * m4/memxor.m4: New file.
74624
74625 2005-10-05  Simon Josefsson  <jas@extundo.com>
74626
74627         * lib/memxor.c (memxor): Fix compiler error.
74628
74629         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74630         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74631
74632         * lib/memxor.h, lib/memxor.c: New files.
74633
74634         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74635         we assume all systems have it, suggested by Jim Meyering
74636         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74637         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74638         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74639         same reasons.
74640
74641 2005-10-05  Simon Josefsson  <jas@extundo.com>
74642
74643         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74644
74645 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74648         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74649         needed, since the source code now assumes these .h files.
74650
74651 2005-10-05  Derek Price  <derek@ximbiot.com>
74652
74653         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74654
74655 2005-10-05  Bruno Haible  <bruno@clisp.org>
74656
74657         * modules/stdint (License): Change to LGPL.
74658
74659 2005-10-04  Simon Josefsson  <jas@extundo.com>
74660
74661         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74662         D. Baushke" <mdb@gnu.org>.
74663
74664 2005-10-04  Bruno Haible  <bruno@clisp.org>
74665
74666         * lib/verify.h (verify_true): Provide alternative definition for C++.
74667
74668 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74671         (SSIZE_MAX): New macro, if not already defined.
74672         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74673         than 2 GiB.
74674
74675 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74676
74677         Sync from coreutils.
74678         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74679         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74680         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74681         ULLONG_MAX doesn't work with 2.7.2.1.
74682
74683 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74686         From Ben Pfaff.
74687
74688         * modules/exclude (Depends-on): Depend on verify.
74689         * modules/strtoimax (Depends-on): Likewise.
74690         * modules/utimecmp (Depends-on): Likewise.
74691
74692 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * lib/exclude.c: Include verify.h.
74695         (verify): Remove.  All callers changed to use verify.h's version.
74696         * lib/strtoimax.c: Likewise.
74697         * lib/utimecmp.c: Likewis.e
74698
74699         Sync from coreutils.
74700         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74701         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74702         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74703         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74704         bother returning ENOSYS if settimeofday or stime fails; just let
74705         them return whatever errno they want to return.
74706         * lib/utimens.c: Include unistd.h, for dup2.
74707         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74708         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74709
74710 2005-10-02  Jim Meyering  <jim@meyering.net>
74711
74712         Sync from coreutils.
74713         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74714         from glibc-2.2.5 that fails for read-only files.
74715
74716 2005-10-02  Jim Meyering  <jim@meyering.net>
74717
74718         Sync from coreutils.
74719         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74720         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74721         `#if HAVE_CONFIG_H'.
74722         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74723         Remove AT_FDCWD test.
74724         Do not consume the fd unless successful.
74725         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74726         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74727         block, so that we don't even try to compile it if settimeofday is
74728         available.  This works around a compilation failure on OSF1 V5.1,
74729         due to stime requiring a `long int*' while tv_sec is `int'.
74730
74731 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74732
74733         Sync from coreutils.
74734         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74735         against `yes', rather than just testing for nonempty.
74736
74737 2005-10-01  Simon Josefsson  <jas@extundo.com>
74738
74739         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74740         and Darwin.
74741
74742         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74743         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74744         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74745         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74746         Check if struct addrinfo is declared.
74747
74748 2005-10-01  Simon Josefsson  <jas@extundo.com>
74749
74750         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74751         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74752         AI_* and EAI_* definitions.  Protect function declarations.
74753
74754 2005-10-01  Jim Meyering  <jim@meyering.net>
74755
74756         Sync from coreutils.
74757
74758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74759         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74760         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74762         in the inet and nsl libraries.  Required on Solaris 5.7.
74763
74764 2005-10-01  Jim Meyering  <jim@meyering.net>
74765
74766         Sync from coreutils.
74767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74768         in the inet and nsl libraries.  Required on Solaris 5.7.
74769
74770 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74771
74772         * lib/getdelim.c (getdelim): Remove unused variables.
74773
74774 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74777         so that the code works even with ancient cpp.  Portability problem
74778         with GCC 2.7.2.1 reported by Thomas M.Ott.
74779
74780 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/regex (Depends-on): Add strcase.
74783
74784         * modules/gethostname (Licence): Change from GPL to LGPL, since
74785         gethostname.c is a trivial implementation of a standard library
74786         function.
74787         * modules/poll (License): Change from GPL to LGPL, since it's
74788         derived from LGPL code.
74789
74790 2005-09-27  Jim Meyering  <jim@meyering.net>
74791
74792         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74793         HAVE_CONFIG_H.
74794
74795         * lib/intprops.h (signed_type_or_expr__): Define.
74796         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74797         for unsigned types.
74798
74799 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * lib/verify.h (verify_expr): Remove, replacing with:
74802         (verify_true): New macro that returns true instead of void.
74803         (verify_type__): Remove.
74804         (verify): Use verify_true rather than verify_type__.
74805
74806 2005-09-26  Bruno Haible  <bruno@clisp.org>
74807
74808         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74809         is necessary.
74810         (lib_SOURCES): Remove mbchar.c.
74811         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74812         (Files): Add m4/mbrtowc.m4.
74813         * modules/mbiter: Likewise.
74814         * modules/mbuiter: Likewise.
74815
74816 2005-09-26  Bruno Haible  <bruno@clisp.org>
74817
74818         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74819         compile mbchar.c if they are not both present.
74820         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74821         * m4/mbiter.m4 (gl_MBITER): Likewise.
74822         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74823         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74824         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74825
74826 2005-09-25  Jim Meyering  <jim@meyering.net>
74827
74828         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74829         also uses socklen_t.
74830
74831 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * lib/utimens.c (ENOSYS): Define if not already defined.
74834         (futimens): Support having a null PATH if the file descriptor
74835         is nonnegative.
74836
74837         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74838         Remove.
74839         (__attribute): Define to empty unless GCC 3.1 or later.
74840         This works around a core dump on OpenBSD 3.4, which has GCC
74841         2.95.3, which dumps core when given __attribute__(()).  It also
74842         simplifies other tests, since we really don't want to bother with
74843         worrying about which ancient version of GCC supported what.
74844         Original problem reported by Yoann Vandoorselaere, with part of
74845         the fix suggested by Derek Price.
74846
74847 2005-09-24  Jim Meyering  <jim@meyering.net>
74848
74849         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74850         so we can once again use a positive bitfield width of 1 -- now we
74851         don't have to explain why we were using a bitfield width of 2.
74852
74853 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74856         and similarly for the other external symbols.  Problem reported
74857         by James Gallager.
74858
74859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74860         bug reported by Jim Meyering.
74861
74862         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74863         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74864         not needed, since socklen is a prerequisite module.
74865
74866 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74869         Problem reported by Eric Blake.
74870         (getaddrinfo): Initialize se so that it's not garbage.
74871         Redo internal storage allocation so that it doesn't make unportable
74872         assumptions about alignment.
74873         Fix a memory leak.
74874
74875         * lib/utimens.c (futimens): Use futimesat if available.
74876         Prefer it to futimes since it doesn't have the futimes bug.
74877
74878         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74879         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74880         Instead, declare a function that returns a pointer to an array,
74881         and use verify_type__ to declare the size of the array.
74882         Problem and germ of a solution reported by Bruno Haible.
74883         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74884         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74885
74886 2005-09-23  Jim Meyering  <jim@meyering.net>
74887
74888         Sync from coreutils.
74889         Correct build failure (socklen_t not defined) on at least
74890         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74892
74893 2005-09-23  Jim Meyering  <jim@meyering.net>
74894
74895         * modules/getaddrinfo (Depends-on): Add socklen.
74896
74897 2005-09-23  Bruno Haible  <bruno@clisp.org>
74898
74899         * tests/test-verify.c: New file.
74900
74901 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74902
74903         Sync from coreutils.
74904
74905         * modules/argmatch (Depends-on): Add verify.
74906         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74907         unistd-safer.
74908         * modules/save-cwd (Depends-on): Likewise.
74909
74910         * modules/openat (Files): Add lib/openat-die.c.
74911         (Depends-on): Remove error, exitfail.
74912         Add dirname.
74913
74914         * modules/verify: New file.
74915         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74916         with "verify" module.
74917
74918 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         Sync from coreutils.
74921
74922         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74923         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74924         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74925         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74926         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74927         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74928         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74929         Don't bother checking for string.h, stdlib.h, unistd.h.
74930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74931         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74932         module's job.
74933         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74934         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74935
74936         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74937         (gl_GETDATE): Use it.
74938
74939         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74940
74941 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74942
74943         Sync from coreutils.
74944
74945         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74946         stat-time.h.
74947         * lib/argmatch.h: Include verify.h
74948         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74949         (ARGMATCH_ASSERT): Remove; unused.
74950         * lib/canonicalize.c: Assume STDC_HEADERS.
74951         * lib/exclude.c: Include "strcase.h".
74952         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74953         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74954         and stdio-safer.h.
74955         (getusershell): Call fopen, not fopen_safer.
74956         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74957         Do not include unistd-safer.h.
74958         (save_cwd): Don't call fd_safer; no longer needed
74959         now that we include fcntl--.h.
74960
74961         * lib/getdate.y (relative_time): New type.
74962         (RELATIVE_TIME_0): New constant.
74963         (parser_control): Use relative_time instead of doing it ourselves.
74964         (%union): Add new relative_time rel member.
74965         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74966         Now typeless.
74967         (relunit, relunit_snumber): Now of type rel.
74968         (zone, rel, relunit, get_date): Adjust to above changes.
74969
74970         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74971         Do not include unistd-safer.h.
74972         (getloadavg): Don't call fd_safer; no longer needed
74973         now that we include fcntl--.h.
74974
74975         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74976         (make_dir_parents): Treat ENOSYS like EEXIST.
74977
74978         Improve quality of diagnostics on restore_cwd failure.
74979         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74980         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74981         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74982         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74983         each time through the loop.  Do not diagnose restore_cwd failure;
74984         that is the caller's job (and perhaps the caller does not care).
74985
74986         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74987         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74988         If the file already exists but is not a directory, don't bother
74989         to try to make its parents.
74990         Close potential file descriptor leak if we can't chdir("/") (!).
74991         Don't always return true if chdir($PWD) fails; return true only
74992         if the requested action was done successfully (except for the
74993         chdir($PWD)).
74994         Don't log final directory unless we actually made it.
74995         Refactor to avoid duplicate code to fix up permissions.
74996         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74997
74998         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74999         to make it a bit faster and (I hope) clearer.
75000         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75001         Fix bug in formats like %2N.
75002
75003         * lib/verify.h: New file.
75004
75005 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         Sync from coreutils.
75008         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75009
75010 2005-09-22  Jim Meyering  <jim@meyering.net>
75011
75012         Sync from coreutils.
75013
75014         * m4/lstat.m4 (gl_FUNC_LSTAT):
75015         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75016         Remove obsolete comment.
75017         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75018         * m4/xstrtod.m4: Likewise.
75019
75020         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75021
75022 2005-09-22  Jim Meyering  <jim@meyering.net>
75023
75024         Sync from coreutils.
75025
75026         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75027
75028         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75029         the .tm_year member, since otherwise gcc-4.0 would now warn about
75030         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75031
75032         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75033         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75034
75035         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75036         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75037         when run in a time zone for which daylight savings time is in effect
75038         for the starting date.
75039
75040         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75041         stop us from restricting permissions of just-created absolute-named
75042         directories.
75043         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75044         to restore initial working directory.
75045         * lib/mkdir-p.c (make_dir_parents): New parameter:
75046         different_working_dir, to tell caller if/when we change the working
75047         directory and are unable to return to the initial one.
75048         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75049         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75050         `return false'.  This fixes a bug introduced on 2004-07-30.
75051
75052         * lib/openat.c (fdopendir): Be sure to close the supplied
75053         file descriptor before returning.  This makes our replacement
75054         implementation a little closer to Solaris's, where fdopendir
75055         ties the file descriptor to the returned DIR* pointer.
75056         * lib/openat.c (unlinkat): New function.
75057         * lib/openat.h (unlinkat): Add prototype.
75058         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75059         (openat_restore_fail): Rename from openat_restore_die.
75060         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75061
75062         Provide an alternative to exiting immediately upon save_cwd or
75063         restore_cwd failure.  Now, an application can arrange e.g.,
75064         to perform a longjump in that case.
75065         * lib/openat.c: Include dirname.h.
75066         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75067         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75068         and openat_restore_die rather than calling error directly.
75069         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75070
75071         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75072         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75073         define.
75074
75075         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75076         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75077                             int utc, int nanoseconds);
75078         Background:
75079         date should not have to allocate a megabyte of virtual memory to
75080         handle a format argument like +%1048575T.  When implemented with
75081         strftime, it must allocate such a buffer, use strftime to fill it
75082         in, print it, then free it.
75083         With fprintftime, it simply prints everything and exits.
75084         With no need for memory allocation, that's one fewer way to fail.
75085         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75086         optional field width, not before, so we accept %9:z, not %:9z.
75087         (my_strftime): Be sure to use L_('x') for literals.
75088
75089         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75090         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75091         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75092         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75093         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75094         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75095         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75096         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75097         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75098         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75099         * lib/xgethostname.c, lib/xreadlink.c:
75100         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75101
75102         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75103         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75104         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75105         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75106         and don't include <sys/file.h>).
75107
75108 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75109
75110         Sync from coreutils.
75111
75112         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75113         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75114         [!LDAV_DONE]: Avoid unused variable warning.
75115
75116 2005-09-21  Bruno Haible  <bruno@clisp.org>
75117
75118         * lib/unicodeio.h (unicode_to_mb): New declaration.
75119
75120 2005-09-20  Derek Price  <derek@ximbiot.com>
75121
75122         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75123         getaddrinfo.h.
75124
75125 2005-09-20  Bruno Haible  <bruno@clisp.org>
75126
75127         * gnulib-tool: Remove trailing slashes from the values specified for
75128         --source-base, --m4-base, --tests-base, --aux-dir.
75129         Suggested by Simon Josefsson <jas@extundo.com>.
75130
75131 2005-09-20  Bruno Haible  <bruno@clisp.org>
75132
75133         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75134         func_modules_to_filelist, func_import, func_create_testdir): Make all
75135         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75136         change when gnulib-tool is invoked in a different locale.
75137
75138 2005-09-19  Simon Josefsson  <jas@extundo.com>
75139
75140         * m4/socklen.m4: Fix typo.
75141
75142 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75143
75144         Use a consistent style for including <config.h>.
75145         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75146         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75147         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75148         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75149         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75150         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75151         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75152         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75153         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75154         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75155         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75156         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75157         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75158         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75159         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75160         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75161         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75162         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75163         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75164         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75165         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75166         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75167         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75168         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75169         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75170         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75171         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75172         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75173         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75174         lib/xstrtoumax.c, lib/yesno.c:
75175         Standardize inclusion of config.h.
75176         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75177         lib/inttostr.h:  Removed inclusion of config.h from header files.
75178         * lib/inttostr.c:  Adjusted in-tree users.
75179         * lib/timespec.h: Remove superfluous warning to include config.h.
75180         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75181         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75182         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75183         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75184         config.h with HAVE_CONFIG_H.
75185
75186 2005-09-19  Jim Meyering  <jim@meyering.net>
75187
75188         * modules/pathmax (License): Change to LGPL.
75189
75190 2005-09-19  Derek Price  <derek@ximbiot.com>
75191
75192         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75193
75194 2005-09-19  Bruno Haible  <bruno@clisp.org>
75195
75196         * gnulib-tool (import): Provide default for --tests-base.
75197
75198 2005-09-19  Bruno Haible  <bruno@clisp.org>
75199
75200         * doc/quote.texi: New file, extracted from gnulib.texi.
75201         * doc/ctime.texi: New file, extracted from gnulib.texi.
75202         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75203         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75204         * doc/gnulib.texi: Include them.
75205
75206 2005-09-18  Bruno Haible  <bruno@clisp.org>
75207
75208         Portability fix.
75209         * gnulib-tool (func_readlink): New function.
75210         (func_ln_if_changed): Use it.
75211
75212 2005-09-18  Bruno Haible  <bruno@clisp.org>
75213
75214         * gnulib-tool: Support --with-tests also with --import.
75215         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75216         (func_import): Use variables $testsbase and $inctests. Emit a
75217         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75218         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75219         SUBDIRS += $testsdir.
75220         (func_create_testdir): Update.
75221
75222 2005-09-18  Bruno Haible  <bruno@clisp.org>
75223
75224         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75225         instead of $dry_run.
75226         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75227         (func_ln_if_changed): Don't handle dry-run here.
75228         (func_import): In dry-run mode, detect more precisely which actions
75229         would be performed, and don't use "...ing" verbs.
75230
75231 2005-09-18  Bruno Haible  <bruno@clisp.org>
75232
75233         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75234         (func_import): Use join on two temporary files instead of three nested
75235         loops, in order to determine which files are new or old.
75236
75237 2005-09-18  Bruno Haible  <bruno@clisp.org>
75238
75239         * gnulib-tool (func_import): Comment out code that spits out the
75240         new files with --dry-run.
75241
75242 2005-09-18  Bruno Haible  <bruno@clisp.org>
75243
75244         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75245
75246 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * lib/stat-time.h: New file.
75249         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75250         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75251         in a different way.
75252         (timespec_cmp): New function.
75253         * lib/utimecmp.c: Include stat-time.h.
75254         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75255         members exist, not on the obsolescent ST_MTIM_NSEC.
75256         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75257
75258 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75259
75260         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75261
75262 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         * MODULES.html.sh (File system functions): Add stat-time.
75265         * modules/stat-time: New file.
75266         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75267         is now done in a different way, by the stat-time module.
75268         * modules/utimecmp (Depends-on): Add stat-time.
75269
75270 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         * m4/st_mtim.m4: Remove.  Superseded by...
75273         * m4/stat-time.m4: New file.
75274         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75275         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75276
75277 2005-09-15  Derek Price  <derek@ximbiot.com>
75278
75279         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75280
75281 2005-09-15  Derek Price  <derek@ximbiot.com>
75282
75283         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75284         * lib/regex_internal.c: Ditto, using this...
75285         (__GNUC_PREREQ): ...new macro.
75286         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75287         using...
75288         (__GNUC_PREREQ): ...this new macro.
75289
75290         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75291
75292 2005-09-15  Derek Price  <derek@ximbiot.com>
75293             Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75296         changes, consolidating in...
75297         * lib/regex_internal.h: ...this file.
75298
75299 2005-09-13  Jim Meyering  <jim@meyering.net>
75300
75301         * lib/canon-host.c: Filter through gnu indent and reword comments
75302         slightly.
75303         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75304
75305 2005-09-13  Derek Price  <derek@ximbiot.com>
75306
75307         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75308         failure.
75309         Reported by Jim Meyering  <jim@meyering.net>.
75310
75311 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75312
75313         * lib/base64.c: Typo.
75314         (base64_encode): Put b64str in initialized data section.
75315
75316 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         Merge glibc and coreutils changes into gnulib, plus a few
75319         extra fixes.
75320         * lib/md5.c: Use #error rather than a string.
75321         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75322         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75323         (__attribute__): Define to empty for non recent-GCC.
75324         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75325         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75326         Renamed from their non-__ counterparts, with new macros replacing
75327         them if not _LIBC.  Add __THROW attribute.
75328         (rol): Remove.
75329         (struct md5_ctx): Align buffer if using GCC.
75330         * lib/sha1.h (struct sha1_ctx): Likewise.
75331         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75332         The old name was backwards.
75333         (NOTSWAP): Remove; not used.
75334         (rol): New macro, moved here from md5.h.
75335         (sha1_process_block): Remove a FIXME that doesn't make sense.
75336
75337 2005-09-12  Derek Price  <derek@ximbiot.com>
75338
75339         Return usable errors from canon-host.
75340         * lib/canon-host.h: New file.
75341         * lib/canon-host.c (canon_host): Wrap...
75342         (canon_host_r): ...this new function, which now relies exclusively on
75343         getaddrinfo.
75344         (ch_strerror): New function.
75345         (last_cherror): New global.
75346         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75347         interface.
75348         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75349         void *.
75350         (freeaddrinfo): Free ai->ai_canonname when set.
75351
75352 2005-09-12  Derek Price  <derek@ximbiot.com>
75353
75354         Make canon-host require getaddrinfo.
75355         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75356         AC_LIBSOURCE canon-host.h.  Call...
75357         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75358         gl_GETADDRINFO.
75359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75360
75361 2005-09-12  Derek Price  <derek@ximbiot.com>
75362
75363         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75364         LGPL.
75365         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75366
75367 2005-09-12  Derek Price  <derek@ximbiot.com>
75368
75369         * lib/gai_strerror.c: Include config.h when available.  Include
75370         getaddrinfo.h before other headers to test interface.
75371         Reported by Larry Jones <lawrence.jones@ugs.com>.
75372
75373 2005-09-12  Derek Price  <derek@ximbiot.com>
75374             Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * modules/glob (Files): Add glob-libc.h.
75377
75378 2005-09-12  Derek Price  <derek@ximbiot.com>
75379             Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75382         glob_.h, glob-libc.h.
75383         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75384
75385 2005-09-12  Derek Price  <derek@ximbiot.com>
75386             Paul Eggert  <eggert@cs.ucla.edu>
75387
75388         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75389         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75390         protecting things that should be done only in gnulib contexts.
75391         * lib/glob_.h: New file, containing only the glob things needed for
75392         gnulib.
75393         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75394         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75395         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75396         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75397         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75398         and to respect the namespace rules better.
75399
75400 2005-09-08  Simon Josefsson  <jas@extundo.com>
75401
75402         * modules/socklen: New file.
75403
75404 2005-09-08  Simon Josefsson  <jas@extundo.com>
75405
75406         * m4/socklen.m4: New file.
75407
75408 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * modules/utimens (Files): Add m4/utimbuf.m4, since
75411         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75412         Reported by Sergey Poznyakoff.
75413
75414 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75417         definitions, since that's the preferred style in glibc.
75418         Fix a minor spacing issue, and update copyright notice to match
75419         glibc's.
75420
75421 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75422
75423         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75424
75425 2005-09-06  Simon Josefsson  <jas@extundo.com>
75426
75427         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75428         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75429
75430 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75433         warning.
75434
75435 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * config/srclist.txt: Add glibc bug 1302.
75438
75439 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75440
75441         Change bitset word type from unsigned int to unsigned long int,
75442         as this has better performance on typical 64-bit hosts.
75443         Port bitset code to hosts with unusual word sizes.
75444         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75445         (build_collating_symbol):
75446         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75447         argument is a bitset.  This is merely a style issue, but it makes
75448         it clearer that an entire array is expected.
75449         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75450         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75451         Port to the case where bitset_word is not the same as unsigned int.
75452         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75453         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75454         Likewise.
75455         * lib/regexec.c (check_dst_limits_calc_pos_1,
75456         check_subexp_matching_top):
75457         (build_trtable, group_nodes_into_DFAstates):
75458         Likewise.
75459         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75460         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75461         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75462         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75463         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75464         * lib/regcomp.c (optimize_subexps, lower_subexp):
75465         Work even if bitset_word has holes in its bitwise representation.
75466         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75467         * lib/regexec.c (check_dst_limits_calc_pos_1,
75468         check_subexp_matching_top):
75469         Likewise.
75470         * lib/regex_internal.c (re_string_reconstruct):
75471         Don't assume UCHAR_MAX == 255.
75472         * lib/regex_internal.h (bitset_set_all): Likewise.
75473         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75474         All uses changed.
75475         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75476         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75477         All uses changed.
75478         (BITSET_WORD_MAX): New macro.
75479         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75480         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75481         (bitset_empty, bitset_copy):
75482         Prefer sizeof (bitset) to multiplying it out ourselves.
75483         (bitset_not_merge): Remove; unused.
75484         (bitset_contain): Return bool, not unsigned int with one bit on.
75485         All callers changed.
75486         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75487         alignment than re_node_set; do this by defining a new internal
75488         type struct dests_alloc and using it to allocate memory.
75489
75490 2005-09-05  Bruno Haible  <bruno@clisp.org>
75491
75492         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75493         links.
75494
75495 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75496
75497         * modules/size_max (Makefile.am): Add size_max.h
75498
75499 2005-09-04  Derek Price  <derek@ximbiot.com>
75500
75501         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75502
75503 2005-09-03  Simon Josefsson  <jas@extundo.com>
75504
75505         * gnulib-tool: Fix typo.
75506
75507 2005-09-03  Simon Josefsson  <jas@extundo.com>
75508
75509         * config/srclist.txt: Add glibc bug 1293.
75510
75511 2005-09-03  Derek Price  <derek@ximbiot.com>
75512
75513         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75514         From Larry Jones <lawrence.jones@ugs.com>.
75515
75516 2005-09-02  Simon Josefsson  <jas@extundo.com>
75517
75518         * modules/socklen: New file.
75519
75520 2005-09-02  Simon Josefsson  <jas@extundo.com>
75521
75522         * modules/havelib: New module.
75523
75524         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75525         Use havelib.
75526
75527 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75528
75529         Check for arithmetic overflow when calculating sizes, to prevent
75530         some buffer-overflow issues.  These patches are conservative, in the
75531         sense that when I couldn't determine whether an overflow was possible,
75532         I inserted a run-time check.
75533         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75534         macros.
75535         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75536         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75537         (re_xnrealloc, re_x2nrealloc): New inline functions.
75538         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75539         parse_bracket_exp):
75540         (build_equiv_class, build_charclass): Check for arithmetic overflow
75541         in size expression calculations.
75542         * lib/regex_internal.c (re_string_realloc_buffers):
75543         (build_wcs_upper_buffer, re_node_set_add_intersect):
75544         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75545         (re_dfa_add_node, register_state): Likewise.
75546         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75547         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75548         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75549         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75550
75551 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75554         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75555
75556 2005-09-02  Bruno Haible  <bruno@clisp.org>
75557
75558         Support for lib vs. lib64 distinction on biarch platforms.
75559         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75560         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75561         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75562
75563 2005-09-02  Bruno Haible  <bruno@clisp.org>
75564
75565         * gnulib-tool (import): In the other first-use case, provide defaults
75566         as well.
75567
75568 2005-09-02  Bruno Haible  <bruno@clisp.org>
75569
75570         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75571         patches not yet found in the latest gettext release.
75572
75573 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75576         to avoid a collision with bits/local_lim.h in glibc.
75577         All uses changed.  Problem reported by Dmitry V. Levin in
75578         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75579
75580         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75581         bugs in int versus size_t comparisons.
75582         (re_string_context_at): Fix bug where the code assumed that
75583         Idx is signed.
75584
75585         Use bool where appropriate.
75586         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75587         All callers changed.
75588         (calc_eclosure_iter): Likewise, for ROOT arg.
75589         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75590         (build_charclass_op): Likewise, for NON_MATCH arg.
75591         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75592         (re_string_construct_common): Likewise, for ICASE arg.
75593         * lib/regexec.c (re_search_2_stub, re_search_stub):
75594         Likewise, for RET_LEN arg.
75595         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75596         (set_regs): Likewise, for FL_BACKTRACK arg.
75597         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75598         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75599         (calc_eclosure_iter, parse_bracket_exp):
75600         Use bool for internal variables that are booleans.
75601         * lib/regexec.c (re_search_internal, check_matching,
75602         proceed_next_node):
75603         (set_regs, build_sifted_states, sift_states_bkref):
75604         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75605         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75606         (find_collation_sequence_value):
75607         Likewise.
75608         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75609         (re_node_set_compare):
75610         Return bool, not int. All callers changed.
75611         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75612         (build_trtable, check_node_accept): Likewise.
75613         * lib/regex_internal.h: Include stdbool.h.
75614
75615         Fix bugs uncovered when converting to bool.
75616         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75617         failure instead of charging ahead blindly.
75618         * lib/regex_internal.c (register_state): Likewise.
75619         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75620         for freeing internal storage.
75621         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75622         bitset pieces used as boolean, to avoid undefined behavior
75623         on hosts that do int overflow checking.
75624
75625 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * config/srclist.txt: Add glibc bugs 1285-1287.
75628
75629 2005-09-01  Jim Meyering  <jim@meyering.net>
75630
75631         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75632         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75633         Require gl_STAT_MACROS, too.
75634
75635 2005-09-01  Bruno Haible  <bruno@clisp.org>
75636
75637         * gnulib-tool (import): In the first-use case, provide defaults.
75638
75639 2005-09-01  Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool (func_import): Remove the .tmp files.
75642
75643 2005-09-01  Bruno Haible  <bruno@clisp.org>
75644
75645         * gnulib-tool (func_import): Fix handling of symbolic links.
75646
75647 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75650         old glibc regex code mishandles strings longer than 2**31 bytes.
75651         This patch fixes this when the regex code is used in gnulib
75652         (i.e., outside glibc).
75653
75654         This patch should not affect the use of the regex code inside
75655         glibc.  No doubt this problem also needs to be handled for glibc
75656         as well, but the result will be an incompatible change to the
75657         glibc ABI, and the old ABI will have to be supported too.  That
75658         can be the the subject for another patch.
75659
75660         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75661         governing whether the rest of this patch is active.  By default,
75662         the macro is disabled and the patch has no effect.
75663         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75664         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75665         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75666         (re_match_2, re_set_registers): Use the new types.
75667         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75668         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75669         New macros.
75670         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75671         (re_string_context_at, bin_tree_t, re_dfastate_t):
75672         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75673         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75674         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75675         (re_string_char_size_at, re_string_wchar_at):
75676         (re_string_elem_size_at):
75677         Use the new types and macros to port to 64-bit hosts.
75678         Use unsigned types for internal values, so that the code
75679         mostly works even for arrays larger than SSIZE_MAX.
75680         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75681         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75682         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75683         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75684         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75685         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75686         (calc_inveclosure, parse_dup_op, build_range_exp):
75687         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75688         (fetch_number, create_token_tree, mark_opt_subexp):
75689         Likewise.
75690         * lib/regex_internal.c (re_string_construct_common,
75691         create_ci_newstate):
75692         (create_cd_newstate, re_string_allocate, re_string_construct):
75693         (re_string_realloc_buffers, build_wcs_upper_buffer):
75694         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75695         (re_string_reconstruct, re_string_peek_byte_case):
75696         (re_string_fetch_byte_case, re_string_context_at):
75697         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75698         (re_node_set_init_copy, re_node_set_add_intersect):
75699         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75700         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75701         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75702         (re_acquire_state, re_acquire_state_context, register_state):
75703         Likewise.
75704         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75705         search_cur_bkref_entry):
75706         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75707         (re_search_internal, re_search_2_stub, re_search_stub)
75708         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75709         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75710         (update_cur_sifted_state, check_dst_limits):
75711         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75712         (check_subexp_limits, sift_states_bkref, merge_state_array):
75713         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75714         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75715         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75716         (expand_bkref_cache, check_node_accept_bytes):
75717         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75718         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75719         (acquire_init_state_context, check_halt_node_context):
75720         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75721         (sift_states_backward, clean_state_log_if_needed):
75722         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75723         (find_recover_state, transit_state_sb, transit_state_mb):
75724         (transit_state_bkref, build_trtable, match_ctx_clean):
75725         Likewise.
75726         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75727         to work around an assumption that REG_MISSING is negative.
75728
75729         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75730         (seek_collating_symbol_entry) [defined _LIBC]:
75731         (lookup_collation_sequence_value) [defined _LIBC]:
75732         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75733         Use prototypes rather than old-style function definitions.
75734         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75735         (transit_state_sb) [0]:
75736         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75737
75738         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75739         rm_eo.
75740
75741         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75742         (optimize_subexps, lower_subexp):
75743         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75744         since the signed shift might overflow.  Use 1u<<31 instead.
75745         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75746         Likewise.
75747         * lib/regexec.c (check_dst_limits_calc_pos_1,
75748         check_subexp_matching_top): Likewise.
75749
75750         * lib/regcomp.c (optimize_subexps, lower_subexp):
75751         Use CHAR_BIT rather than 8, for clarity.
75752         * lib/regexec.c (check_dst_limits_calc_pos_1):
75753         (check_subexp_matching_top): Likewise.
75754         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75755         have to worry about portability issues when shifting it left.
75756         Remove no-longer-needed test for table_size > 0.
75757         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75758         in a word, as the resulting behavior is undefined.
75759         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75760         in one case, a <= should have been an <, and in another case the
75761         whole test was missing.
75762         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75763         the standard name CHAR_BIT.
75764         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75765         this is not true on one's complement and signed-magnitude hosts.
75766
75767         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75768         next_last_offset.
75769         (struct re_dfa_t): Remove unused member states_alloc.
75770         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75771
75772 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75775         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75776         and large-file glibc and in 32-bit large-file Solaris.
75777
75778 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75781         lengths fit in regoff_t; this isn't true if regoff_t is the same
75782         width as size_t.
75783         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75784         (= START + RANGE) instead of RANGE.  This avoids overflow
75785         problems when regoff_t is the same width as size_t.
75786         All callers changed.
75787         (re_search_2_stub): Check for overflow when adding the
75788         sizes of the two strings.
75789         (re_search_stub): Check for overflow when adding START
75790         to RANGE; if it occurs, substitute the extreme value.
75791
75792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75793
75794         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75795
75796 2005-08-31  Jim Meyering  <jim@meyering.net>
75797
75798         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75799         a pointer-to-const.
75800         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75801         (register_state): Likewise.
75802         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75803         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75804         (group_nodes_into_DFAstates): Likewise.
75805
75806 2005-08-31  Jim Meyering  <jim@meyering.net>
75807
75808         * check-module: Add a FIXME comment.
75809
75810 2005-08-31  Eric Blake  <ebb9@byu.net>
75811
75812         * modules/unistd-safer (Files): Add unistd--.h.
75813         * modules/stdio-safer (Files): Add stdio--.h.
75814
75815 2005-08-31  Derek Price  <derek@ximbiot.com>
75816
75817         * lib/getdelim.c (getdelim): Return EOF on EOF.
75818         Reported by Larry Jones <lawrence.jones@ugs.com>.
75819
75820 2005-08-31  Bruno Haible  <bruno@clisp.org>
75821
75822         Avoid unnecessary diffs in the generated lib/Makefile.am.
75823         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75824         the generated files.
75825         (func_import): Don't set cmd.
75826
75827 2005-08-31  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/strstr.c: Include <stddef.h>, for NULL.
75830         * lib/strcasestr.c: Likewise.
75831         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75832
75833 2005-08-31  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool: New option --macro-prefix.
75836         (func_import): Use macro_prefix.
75837         (import): Handle option --macro-prefix.
75838
75839 2005-08-31  Bruno Haible  <bruno@clisp.org>
75840
75841         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75842         Also use new variables cached_lgpl, cached_libtool.
75843
75844 2005-08-31  Bruno Haible  <bruno@clisp.org>
75845
75846         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75847         always instantiating them.
75848
75849 2005-08-31  Bruno Haible  <bruno@clisp.org>
75850
75851         * gnulib-tool (func_import): Read the previous cached settings
75852         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75853         earlier added by gnulib but are now dropped. Warn when a gnulib file
75854         overwrites a non-gnulib file.
75855
75856 2005-08-31  Bruno Haible  <bruno@clisp.org>
75857
75858         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75859         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75860         projects that don't keep autogenerated files in CVS. Put into
75861         actioncmd only the specified modules, not the transitive closure.
75862
75863 2005-08-31  Bruno Haible  <bruno@clisp.org>
75864
75865         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75866         Create directories that shall be filled.
75867         (import): Don't look for gl_* macros in configure.ac. Recurse across
75868         all directories containing a gnulib-cache.m4 files, if meaningful.
75869
75870 2005-08-31  Bruno Haible  <bruno@clisp.org>
75871
75872         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75873         (import): Set seen_libtool when we see gl_LIBTOOL.
75874
75875 2005-08-31  Bruno Haible  <bruno@clisp.org>
75876
75877         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75878         declaration macro definitions from generated gnulib.m4.
75879
75880 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75881
75882         * lib/iconvme.h: Add prototype for iconv_alloc.
75883
75884 2005-08-29  Simon Josefsson  <jas@extundo.com>
75885
75886         * lib/iconvme.c: Fix errno.
75887
75888 2005-08-29  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75891         that it works when the directory contains spaces.
75892
75893 2005-08-29  Bruno Haible  <bruno@clisp.org>
75894
75895         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75896
75897 2005-08-29  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75900         Emit more advice.
75901
75902 2005-08-29  Bruno Haible  <bruno@clisp.org>
75903         and Stepan Kasal  <kasal@ucw.cz>
75904
75905         * check-module: If more parameters are given, check each of them
75906         separately; add more exceptions, as noted by Jim Meyering.
75907         (check_module): New procedure.
75908         (%exempt_header): Now contains all exceptions.
75909
75910 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75911
75912         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75913
75914 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75915
75916         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75917
75918 2005-08-28  Bruno Haible  <bruno@clisp.org>
75919
75920         * m4/gnulib-tool.m4: New file.
75921
75922 2005-08-27  Jim Meyering  <jim@meyering.net>
75923
75924         * modules/unistd-safer (Files): Add pipe-safer.c.
75925         * modules/fcntl-safer (Files): Add creat-safer.c.
75926
75927 2005-08-27  Jim Meyering  <jim@meyering.net>
75928
75929         * m4/stdlib-safer.m4: New file.  From coreutils.
75930         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75931         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75932         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75933         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75934         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75935
75936 2005-08-27  Jim Meyering  <jim@meyering.net>
75937
75938         * lib/fopen-safer.c: Merge minor changes from coreutils.
75939         * lib/dup-safer.c: Likewise.
75940         * lib/fd-safer.c: Likewise.
75941
75942         Merge from coreutils.
75943         * lib/stdio--.h: New file.
75944         * lib/stdlib--.h: New file.
75945         * lib/mkstemp-safer.c: New file.
75946
75947         GNU tar needs these.
75948         * lib/pipe-safer.c: New file.
75949         * lib/creat-safer.c: New file.
75950         * lib/fcntl--.h (creat): Define to creat_safer.
75951         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75952         * lib/unistd--.h (pipe): Define to pipe_safer.
75953         * lib/unistd-safer.h: Declare pipe_safer.
75954
75955 2005-08-26  Simon Josefsson  <jas@extundo.com>
75956
75957         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75958         Haible <bruno@clisp.org>.
75959
75960 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * lib/regex_internal.h: Remove all references to
75963         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75964         or better.
75965         (bitset_not, bitset_merge, bitset_not_merge):
75966         (bitset_mask, re_string_allocate, re_string_construct):
75967         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75968         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75969         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75970         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75971         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75972         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75973         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75974         (re_acquire_state_context):
75975         Remove unnecessary forward decls.
75976         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75977         Put __attribute at function definition,
75978         now that the function decl has been removed.
75979         * lib/regex_internal.c (re_string_peek_byte_case):
75980         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75981         Likewise.
75982
75983 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75984
75985         * m4/regex.m4: Add AC_PREREQ(2.50).
75986         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75987
75988 2005-08-25  Simon Josefsson  <jas@extundo.com>
75989
75990         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75991         __fsetlocking.
75992
75993 2005-08-25  Simon Josefsson  <jas@extundo.com>
75994
75995         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75996         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75997         GLIBC specific code.
75998
75999 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         Make regex safe for g++.  This fixes one real bug (an "err"
76002         that should have been "*err").  g++ problem reported by
76003         Sam Steingold.
76004         * lib/regex_internal.h (re_calloc): New macro, consistent with
76005         re_malloc etc.  All callers of calloc changed to use re_calloc.
76006         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76007         not int.  All callers changed.
76008         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76009         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76010         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76011         (find_recover_state): Change "err" to "*err"; this fixes what
76012         appears to be a real bug.
76013         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76014         versus int.
76015
76016 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         * modules/regex (Depends-on): Add malloc, since the code
76019         assumes that !malloc(0) means failure.
76020
76021 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76024
76025         alloca modernization/simplification for regex.
76026         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76027         needs to be at the start of the file, and can be moved into
76028         regex_internal.h and simplified.
76029         * lib/regex_internal.h: Include <alloca.h>.
76030         (__libc_use_alloca) [!defined _LIBC]: New macro.
76031         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76032         now works outside glibc.
76033
76034 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * config/srclist.txt: Add glibc bugs 1241, 1245.
76037
76038 2005-08-25  Jim Meyering  <jim@meyering.net>
76039
76040         * lib/open-safer.c: Include <config.h>.
76041         Otherwise, we'd lose LARGEFILE support in any file using
76042         e.g. "fcntl--.h"
76043
76044 2005-08-25  Bruno Haible  <bruno@clisp.org>
76045
76046         * m4/minmax.m4: Require autoconf 2.52.
76047         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76048         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76049         alternatives of translit over the alphabet.
76050         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76051
76052 2005-08-24  Simon Josefsson  <jas@extundo.com>
76053
76054         * tests/test-getpass.c: New file.
76055
76056 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76057
76058         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76059         for GNU regex features.
76060
76061 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76062
76063         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76064         * lib/regex.h (regerror): Likewise.
76065
76066         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76067         requires this.  (The code never needed it.)
76068
76069         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76070         All uses of recently-renamed identifiers changed to use the new,
76071         POSIX-compliant names.  The code will build and run just fine
76072         without these changes, but it's better to eat our own dog food
76073         and use the standard-conforming names.
76074
76075         * lib/regex.h: Fix a multitude of POSIX name space violations.
76076         These changes have an effect only for programs that define
76077         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76078         do not change anything for programs compiled in the normal way.
76079         Also, there is no effect on the ABI.
76080
76081         (_REGEX_SOURCE): New macro.
76082         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76083         defined and _GNU_SOURCE is not; this fixes a name space violation.
76084
76085         Rename the following macros to obey POSIX requirements.
76086         The old names are still visible as macros if _REGEX_SOURCE is defined.
76087         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76088         RE_BACKSLASH_ESCAPE_IN_LISTS.
76089         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76090         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76091         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76092         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76093         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76094         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76095         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76096         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76097         (REG_INTERVALS): renamed from RE_INTERVALS.
76098         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76099         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76100         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76101         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76102         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76103         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76104         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76105         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76106         RE_UNMATCHED_RIGHT_PAREN_ORD.
76107         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76108         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76109         (REG_DEBUG): renamed from RE_DEBUG.
76110         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76111         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76112         unusual, since we can't clash with the POSIX REG_ICASE.
76113         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76114         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76115         (REG_NO_SUB): renamed from RE_NO_SUB.
76116         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76117         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76118         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76119         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76120         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76121         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76122         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76123         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76124         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76125         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76126         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76127         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76128         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76129         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76130         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76131         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76132         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76133         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76134         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76135         (REG_FIXED): Renamed from REGS_FIXED.
76136         (REG_NREGS): Renamed from RE_NREGS.
76137
76138         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76139         of other REG_* macros, since POSIX says the user is allowed to
76140         #undef these macros selectively.
76141
76142         (reg_errcode_t): Update comment stating what other tables need
76143         to be consistent.
76144
76145         Rename the following enum values to obey POSIX requirements.
76146         The old names are still visible as macros.
76147         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76148         is not defined, since GNU is supposed to be a superset of POSIX as
76149         much as possible, and since we want reg_errcode_t to be a signed
76150         type for implementation consistency.
76151         (_REG_NOERROR): Renamed from REG_NOERROR.
76152         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76153         (_REG_BADPAT): Renamed from REG_BADPAT.
76154         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76155         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76156         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76157         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76158         (_REG_EBRACK): Renamed from REG_EBRACK.
76159         (_REG_EPAREN): Renamed from REG_EPAREN.
76160         (_REG_EBRACE): Renamed from REG_EBRACE.
76161         (_REG_BADBR): Renamed from REG_BADBR.
76162         (_REG_ERANGE): Renamed from REG_ERANGE.
76163         (_REG_ESPACE): Renamed from REG_ESPACE.
76164         (_REG_BADRPT): Renamed from REG_BADRPT.
76165         (_REG_EEND): Renamed from REG_EEND.
76166         (_REG_ESIZE): Renamed from REG_ESIZE.
76167         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76168         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76169         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76170         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76171         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76172
76173         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76174         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76175         changed.  But support the old name if the new one is not defined
76176         and if _REGEX_SOURCE.
76177
76178         Change the following member names in struct re_pattern_buffer.
76179         The old names are still supported if !_REGEX_SOURCE.
76180         The new names are always supported, regardless of _REGEX_SOURCE.
76181         (re_buffer): Renamed from buffer.
76182         (re_allocated): Renamed from allocated.
76183         (re_used): Renamed from used.
76184         (re_syntax): Renamed from syntax.
76185         (re_fastmap): Renamed from fastmap.
76186         (re_translate): Renamed from translate.
76187         (re_can_be_null): Renamed from can_be_null.
76188         (re_regs_allocated): Renamed from regs_allocated.
76189         (re_fastmap_accurate): Renamed from fastmap_accurate.
76190         (re_no_sub): Renamed from no_sub.
76191         (re_not_bol): Renamed from not_bol.
76192         (re_not_eol): Renamed from not_eol.
76193         (re_newline_anchor): Renamed from newline_anchor.
76194
76195         Change the following member names in struct re_registers.
76196         The old names are still supported if !_REGEX_SOURCE.
76197         The new names are always supported, regardless of _REGEX_SOURCE.
76198         (rm_num_regs): Renamed from num_regs.
76199         (rm_start): Renamed from start.
76200         (rm_end): Renamed from end.
76201
76202         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76203         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76204         Prepend __ to parameter names.
76205
76206         Undo yesterday's changes.
76207
76208 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76211         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76212         lib/regex.c.
76213
76214 2005-08-24  Jim Meyering  <jim@meyering.net>
76215
76216         Sync from coreutils.
76217         * m4/fcntl-safer.m4: New file.
76218
76219         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76220         and object files for this module.
76221
76222 2005-08-24  Jim Meyering  <jim@meyering.net>
76223
76224         Sync from coreutils.
76225         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76226
76227 2005-08-24  Jim Meyering  <jim@meyering.net>
76228
76229         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76230         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76231
76232 2005-08-24  Jim Meyering  <jim@meyering.net>
76233
76234         * modules/fcntl-safer: New module.
76235         * modules/fts (Depends-on): Add fcntl-safer.
76236         * MODULES.html.sh (File descriptor based Input/Output):
76237         Add fcntl-safer.
76238
76239 2005-08-24  Bruno Haible  <bruno@clisp.org>
76240
76241         Support for unit test modules.
76242         * modules/README: Mention tests modules.
76243         * modules/TEMPLATE-TESTS: New file.
76244         * gnulib-tool: New options --extract-tests-module, --with-tests and
76245         --tests-base (unused for the moment).
76246         (testsbase, inctests): New variables.
76247         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76248         (func_verify_module): Exclude TEMPLATE-TESTS.
76249         (func_verify_nontests_module, func_verify_tests_module): New functions.
76250         (func_get_dependencies): Add implicit dependency for tests modules.
76251         (func_get_tests_module): New function.
76252         (func_modules_transitive_closure): When --with-tests was specified,
76253         include the unit tests as well, unless explicitly avoided.
76254         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76255         (func_emit_tests_Makefile_am): New function.
76256         (func_create_testdir): When --with-tests was specified, emit a
76257         tests/ directory.
76258         * MODULES.html.sh (Future developments): Update.
76259
76260 2005-08-24  Bruno Haible  <bruno@clisp.org>
76261
76262         * modules/tls-tests: New file.
76263         * tests/test-tls.c: New file, from GNU gettext.
76264
76265 2005-08-24  Bruno Haible  <bruno@clisp.org>
76266
76267         * modules/lock-tests: New file.
76268         * tests/test-lock.c: New file, from GNU gettext.
76269
76270 2005-08-24  Bruno Haible  <bruno@clisp.org>
76271
76272         * lib/lock.h: Add multiple inclusion guard.
76273         * lib/tls.h: Add multiple inclusion guard.
76274
76275 2005-08-24  Bruno Haible  <bruno@clisp.org>
76276
76277         * gnulib-tool: Add support for the --aux-dir option to
76278         --create-testdir, --create-megatestdir, --test, --megatest.
76279         (func_create_testdir, func_create_megatestdir): Optionally emit a
76280         AC_CONFIG_AUX_DIR directive.
76281         (create-testdir, create-megatestdir, test, megatest): Provide a
76282         default value for $auxdir.
76283
76284 2005-08-24  Bruno Haible  <bruno@clisp.org>
76285
76286         * gnulib-tool (import): Use compound statement instead of subshell
76287         where possible.
76288
76289 2005-08-24  Bruno Haible  <bruno@clisp.org>
76290
76291         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76292
76293 2005-08-24  Bruno Haible  <bruno@clisp.org>
76294
76295         * gnulib-tool (func_version): Update.
76296
76297 2005-08-24  Bruno Haible  <bruno@clisp.org>
76298
76299         * gnulib-tool (func_import, func_create_testdir,
76300         func_create_megatestdir): Quote all autoconf macro arguments.
76301
76302 2005-08-24  Bruno Haible  <bruno@clisp.org>
76303
76304         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76305         option --force, because --force causes the aclocal.m4 of each
76306         subdirectory to be newer than the corresponding config.h.in.
76307
76308 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76311         All contents moved to gl_REGEX.
76312         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76313         assume that it does.
76314
76315 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76316
76317         * lib/regex.h (REG_NOSYS)
76318         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76319         Define, since POSIX requires it as of 2001.
76320         (_REG_ENOSYS)
76321         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76322         New private symbol, used to keep the enum signed in all cases.
76323         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76324         Youngman in
76325         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76326
76327         * lib/regex_internal.c (re_string_skip_chars, register_state):
76328         (calc_state_hash):
76329         Remove forward decls; no longer needed now that we use prototypes.
76330         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76331         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76332         (clean_state_log_if_needed): Likewise.
76333
76334 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * config/srclist.txt: Add glibc bugs 1231-1233.
76337
76338 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         Fix problems reported by Sam Steingold in
76341         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76342         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76343         assumed that reg_errcode_t is a signed type, which is not
76344         necessarily true if _XOPEN_SOURCE is not defined.
76345         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76346         since some compilers warn about it otherwise.
76347
76348 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76351         (init_word_char, create_initial_state, duplicate_node_closure):
76352         (fetch_token, peek_token_bracket, build_range_exp):
76353         (build_collating_symbol): Remove forward decls; no longer needed
76354         now that we use prototypes.
76355
76356         * lib/regcomp.c:
76357         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76358         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76359         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76360         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76361         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76362         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76363         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76364         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76365         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76366         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76367         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76368         (build_charclass, build_charclass_op, fetch_number, create_tree):
76369         (create_token_tree, mark_opt_subexp, duplicate_tree):
76370         Use prototypes rather than old-style definitions.
76371
76372         * lib/regex_internal.c:
76373         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76374         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76375         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76376         (re_string_reconstruct, re_string_peek_byte_case):
76377         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76378         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76379         (re_node_set_init_copy, re_node_set_add_intersect):
76380         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76381         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76382         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76383         (re_acquire_state, re_acquire_state_context, register_state):
76384         (create_ci_newstate, create_cd_newstate, free_state):
76385         Likewise.
76386         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76387         re_search_2):
76388         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76389         (re_search_internal, prune_impossible_nodes):
76390         (acquire_init_state_context, check_matching, static):
76391         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76392         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76393         (update_regs, sift_states_backward, build_sifted_states):
76394         (clean_state_log_if_needed, merge_state_array):
76395         (update_cur_sifted_state, add_epsilon_src_nodes):
76396         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76397         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76398         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76399         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76400         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76401         (check_arrival, check_arrival_add_next_nodes):
76402         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76403         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76404         (check_node_accept_bytes, check_node_accept, extend_buffers):
76405         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76406         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76407         (sift_ctx_init):
76408         Likewise.
76409
76410         * lib/regex_internal.h:
76411         (re_string_allocate, re_string_construct, re_string_reconstruct):
76412         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76413         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76414         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76415         (re_string_context_at, re_string_peek_byte_case):
76416         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76417         is defined, since we now use prototypes always.
76418
76419         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76420         C89 or better.  All uses removed.
76421
76422 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76423
76424         * config/srclist.txt: Add glibc bugs 1220-1227.
76425
76426 2005-08-20  Jim Meyering  <jim@meyering.net>
76427
76428         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76429         of unused local, dfa.
76430
76431 2005-08-20  Bruno Haible  <bruno@clisp.org>
76432
76433         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76434
76435 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76438         (re_node_set_insert_last, re_dfa_add_node):
76439         Rename local variables to avoid GCC shadowing warnings.
76440
76441 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76444         [defined lint]: Suppress bogus uninitialized-variable warnings.
76445
76446         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76447         and let the caller return REG_ESPACE if out of space.  This
76448         removes an uninitialied-variable warning with GCC 4.0.1, and also
76449         avoids taking the address of a local variable.  All callers
76450         changed.
76451
76452 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76453
76454         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76455         $LIBCSRC/posix/regexec.c.
76456         Add glibc bug 1217 for regcomp.c.
76457
76458 2005-08-19  Jim Meyering  <jim@meyering.net>
76459
76460         * lib/regexec.c (proceed_next_node): Redo local variables to
76461         avoid GCC shadowing warnings.
76462
76463 2005-08-18  Bruno Haible  <bruno@clisp.org>
76464
76465         * lib/strstr.c (strstr): Fix return value in multibyte case.
76466         * lib/strcasestr.c (strcasestr): Likewise.
76467
76468 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76471
76472 2005-08-17  Jim Meyering  <jim@meyering.net>
76473
76474         Make the %s format (seconds since the epoch) work for a negative
76475         number and when used with a zero-padded field width, e.g. %015s.
76476
76477         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76478         label so that it precedes the code to set `digits'.  Otherwise,
76479         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76480         print `00-22'.  Now, it prints `-0022', as it should.
76481
76482 2005-08-17  Bruno Haible  <bruno@clisp.org>
76483
76484         * modules/strstr (Files): Add m4/mbrtowc.m4.
76485         (Depends-on): Add mbuiter.
76486
76487 2005-08-17  Bruno Haible  <bruno@clisp.org>
76488
76489         * modules/strcasestr: New file.
76490         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76491         strcasestr.
76492
76493 2005-08-17  Bruno Haible  <bruno@clisp.org>
76494
76495         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76496
76497 2005-08-17  Bruno Haible  <bruno@clisp.org>
76498
76499         * modules/mbuiter: New file.
76500         * MODULES.html.sh (Extended multibyte and wide character utilities):
76501         Add mbuiter.
76502
76503 2005-08-17  Bruno Haible  <bruno@clisp.org>
76504
76505         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76506         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76507
76508 2005-08-17  Bruno Haible  <bruno@clisp.org>
76509
76510         * m4/strcasestr.m4: New file.
76511
76512 2005-08-17  Bruno Haible  <bruno@clisp.org>
76513
76514         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76515         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76516
76517 2005-08-17  Bruno Haible  <bruno@clisp.org>
76518
76519         * lib/strcasestr.h: New file.
76520         * lib/strcasestr.c: New file.
76521
76522 2005-08-17  Bruno Haible  <bruno@clisp.org>
76523
76524         * lib/strcasecmp.c: Use mbuiter.h.
76525
76526 2005-08-17  Bruno Haible  <bruno@clisp.org>
76527
76528         * lib/mbuiter.h: New file.
76529
76530 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76533         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76534         and gl_GETOPT are both invoked via different paths (as happens
76535         with GNU tar CVS because it uses both argp and getopt), the former
76536         wins.
76537
76538 2005-08-16  Bruno Haible  <bruno@clisp.org>
76539
76540         * modules/tls: New file.
76541         * MODULES.html.sh (Multithreading): Add tls.
76542
76543 2005-08-16  Bruno Haible  <bruno@clisp.org>
76544
76545         * modules/strnlen1: New file.
76546         * MODULES.html.sh (String handling): Add strnlen1.
76547
76548 2005-08-16  Bruno Haible  <bruno@clisp.org>
76549
76550         * modules/strcase (Files): Add m4/mbrtowc.m4.
76551         (Depends-on): Add strnlen1, mbchar.
76552
76553 2005-08-16  Bruno Haible  <bruno@clisp.org>
76554
76555         * modules/mbiter: New file.
76556         * MODULES.html.sh (Extended multibyte and wide character utilities):
76557         Add mbiter.
76558
76559 2005-08-16  Bruno Haible  <bruno@clisp.org>
76560
76561         * modules/mbfile: New file.
76562         * MODULES.html.sh (Extended multibyte and wide character utilities):
76563         Add mbfile.
76564
76565 2005-08-16  Bruno Haible  <bruno@clisp.org>
76566
76567         * modules/mbchar: New file.
76568         * MODULES.html.sh (Extended multibyte and wide character utilities):
76569         New section.
76570
76571 2005-08-16  Bruno Haible  <bruno@clisp.org>
76572
76573         * m4/tls.m4: New file, from GNU gettext.
76574
76575 2005-08-16  Bruno Haible  <bruno@clisp.org>
76576
76577         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76578         always.
76579         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76580
76581 2005-08-16  Bruno Haible  <bruno@clisp.org>
76582
76583         * m4/mbiter.m4: New file.
76584
76585 2005-08-16  Bruno Haible  <bruno@clisp.org>
76586
76587         * m4/mbfile.m4: New file.
76588
76589 2005-08-16  Bruno Haible  <bruno@clisp.org>
76590
76591         * m4/mbchar.m4: New file.
76592
76593 2005-08-16  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/tls.h: New file, from GNU gettext.
76596         * lib/tls.c: New file, from GNU gettext.
76597
76598 2005-08-16  Bruno Haible  <bruno@clisp.org>
76599
76600         * lib/strnlen1.h: New file.
76601         * lib/strnlen1.c: New file.
76602
76603 2005-08-16  Bruno Haible  <bruno@clisp.org>
76604
76605         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76606         (mbi_init): Update.
76607         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76608         NUL byte, not after it.
76609
76610 2005-08-16  Bruno Haible  <bruno@clisp.org>
76611
76612         * lib/strcase.h (strcasecmp): Add note in comments.
76613         * lib/strncasecmp.c: Use code from strcasecmp.c.
76614         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76615         (strcasecmp): Work correctly in multibyte locales.
76616
76617 2005-08-16  Bruno Haible  <bruno@clisp.org>
76618
76619         * lib/mbiter.h: New file.
76620
76621 2005-08-16  Bruno Haible  <bruno@clisp.org>
76622
76623         * lib/mbfile.h: New file.
76624
76625 2005-08-16  Bruno Haible  <bruno@clisp.org>
76626
76627         * lib/mbchar.h: New file.
76628         * lib/mbchar.c: New file.
76629
76630 2005-08-16  Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76633         the valid ones. Makes the comparison operations transitive:
76634         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76635         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76636
76637 2005-08-15  Simon Josefsson  <jas@extundo.com>
76638
76639         * modules/ssize_t (License): Change to 'unlimited'.
76640
76641         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76642
76643 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76646         Add comments for each pending glibc patch.
76647
76648 2005-08-15  Bruno Haible  <bruno@clisp.org>
76649
76650         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76651         __cplusplus is defined.
76652
76653 2005-08-14  Jim Meyering  <jim@meyering.net>
76654
76655         Sync from coreutils.
76656
76657         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76658         Use the hash-table-based cycle-detection code not just when
76659         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76660         Reported by James Youngman in
76661         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76662         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76663         FTS_TIGHT_CYCLE_CHECK.
76664         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76665         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76666         once again.
76667         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76668         * lib/fts.c (fd_safer): Remove decl.
76669         Include fcntl--.h rather than unistd-safer.h
76670         (fts_safe_changedir): Don't call fd_safer; no longer needed
76671         now that we include fcntl--.h.
76672
76673 2005-08-12  Simon Josefsson  <jas@extundo.com>
76674
76675         * modules/getndelim2: Use ssize_t module.
76676         * modules/getnline: Likewise.
76677         * modules/safe-read: Likewise.
76678         * modules/xreadlink: Likewise.
76679
76680         * modules/ssize_t: New file.
76681
76682 2005-08-12  Simon Josefsson  <jas@extundo.com>
76683
76684         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76685
76686 2005-08-12  Simon Josefsson  <jas@extundo.com>
76687
76688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76689         ssize_t.
76690
76691 2005-08-12  Simon Josefsson  <jas@extundo.com>
76692
76693         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76694         readline, getdelim and check_version.
76695         (Support for systems lacking ISO C 99: Sizes of integer types):
76696         Add size_max.
76697
76698 2005-08-12  Bruno Haible  <bruno@clisp.org>
76699
76700         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76701
76702 2005-08-11  Simon Josefsson  <jas@extundo.com>
76703
76704         * modules/readline: New file.
76705
76706         * modules/strnlen (Files): Add strnlen.h.
76707
76708 2005-08-11  Simon Josefsson  <jas@extundo.com>
76709
76710         * m4/readline.m4: New file.
76711
76712 2005-08-11  Simon Josefsson  <jas@extundo.com>
76713
76714         * lib/readline.h, readline.c: New file.
76715
76716 2005-08-11  Simon Josefsson  <jas@extundo.com>
76717
76718         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76719         gl_AVOID.
76720
76721 2005-08-11  Bruno Haible  <bruno@clisp.org>
76722
76723         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76724
76725 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76726
76727         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76728
76729 2005-08-10  Simon Josefsson  <jas@extundo.com>
76730
76731         * tests/test-iconvme.c: New file.
76732
76733 2005-08-10  Simon Josefsson  <jas@extundo.com>
76734
76735         * m4/strnlen.m4: New file.
76736
76737         * m4/strndup.m4: Don't check for strnlen declaration, done in
76738         strnlen.m4.
76739
76740 2005-08-10  Simon Josefsson  <jas@extundo.com>
76741
76742         * lib/strndup.c: Use strnlen.h.
76743
76744         * lib/strnlen.h: New file.
76745
76746 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76747
76748         * README: Typos.
76749
76750 2005-08-02  Simon Josefsson  <jas@extundo.com>
76751
76752         * modules/readline: New file.
76753
76754 2005-08-02  Simon Josefsson  <jas@extundo.com>
76755
76756         * modules/getdelim: New file.
76757
76758         * modules/getline: Rewrite, don't use getndelim2.
76759
76760 2005-08-02  Simon Josefsson  <jas@extundo.com>
76761
76762         * m4/getline.m4: Separate out getdelim stuff into separate module.
76763
76764         * m4/getdelim.m4: New file.
76765
76766 2005-08-02  Simon Josefsson  <jas@extundo.com>
76767
76768         * lib/getline.h, getline.c: Rewrite.
76769
76770         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76771
76772 2005-07-31  Bruno Haible  <bruno@clisp.org>
76773
76774         * lib/lock.h (gl_lock_initializer): New macro.
76775         (gl_lock_define_initialized): Use it.
76776         (gl_rwlock_initializer): New macro.
76777         (gl_rwlock_define_initialized): Use it.
76778         (gl_recursive_lock_initializer): New macro.
76779         (gl_recursive_lock_define_initialized): Use it.
76780
76781 2005-07-30  Karl Berry  <karl@gnu.org>
76782
76783         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76784         Report from Ben Pfaff, regarding getopt.
76785
76786 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76789         normal way.
76790         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76791         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76792         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76793         (gl_GETOPT): Use the new macros.  Most of the implementation
76794         is moved to the new macros.  This is for programs like Emacs
76795         that don't want all the functionality of gl_GETOPT.
76796
76797 2005-07-26  Bruno Haible  <bruno@clisp.org>
76798
76799         * m4/lock.m4: Update from GNU gettext.
76800
76801 2005-07-26  Bruno Haible  <bruno@clisp.org>
76802
76803         * lib/lock.h: Update from GNU gettext.
76804         * lib/lock.c: Update from GNU gettext.
76805
76806 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76809         obsolescent AC_TRY_RUN.  Include the default includes files, for
76810         'exit'.
76811
76812 2005-07-24  Bruno Haible  <bruno@clisp.org>
76813
76814         * modules/visibility: New file.
76815         * MODULES.html.sh (Misc): Add visibility.
76816
76817 2005-07-24  Bruno Haible  <bruno@clisp.org>
76818
76819         * m4/visibility.m4: New file.
76820
76821 2005-07-24  Bruno Haible  <bruno@clisp.org>
76822
76823         * doc/visibility.texi: New file.
76824
76825 2005-07-22  Bruno Haible  <bruno@clisp.org>
76826
76827         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76828         $(ALLOCA_H), redundant through BUILT_SOURCES.
76829         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76830         redundant through BUILT_SOURCES.
76831         * modules/byteswap (Makefile.am): Remove explicit dependency on
76832         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76833         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76834         $(FNMATCH_H), redundant through BUILT_SOURCES.
76835         * modules/getopt (Makefile.am): Remove explicit dependency on
76836         $(GETOPT_H), redundant through BUILT_SOURCES.
76837         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76838         redundant through BUILT_SOURCES.
76839         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76840         redundant through BUILT_SOURCES.
76841         * modules/stdbool (Makefile.am): Remove explicit dependency on
76842         $(STDBOOL_H), redundant through BUILT_SOURCES.
76843         * modules/stdint (Makefile.am): Remove explicit dependency on
76844         $(STDINT_H), redundant through BUILT_SOURCES.
76845         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76846         Remove explicit dependency on $(SYSEXITS_H).
76847         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76848
76849 2005-07-18  Simon Josefsson  <jas@extundo.com>
76850
76851         * lib/check-version.c (check_version): Accept identical versions too.
76852
76853 2005-07-18  Bruno Haible  <bruno@clisp.org>
76854
76855         * modules/lock: New file.
76856         * MODULES.html.sh (Multithreading): New section.
76857
76858 2005-07-18  Bruno Haible  <bruno@clisp.org>
76859
76860         * m4/lock.m4: New file, from GNU gettext.
76861
76862 2005-07-18  Bruno Haible  <bruno@clisp.org>
76863
76864         * lib/lock.h: New file, from GNU gettext.
76865         * lib/lock.c: New file, from GNU gettext.
76866
76867 2005-07-18  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/lock.h (gl_once_t): New type.
76870         (gl_once_define, gl_once): New macros.
76871         * lib/lock.c (fresh_once): New variable.
76872         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76873         functions.
76874
76875 2005-07-16  Simon Josefsson  <jas@extundo.com>
76876
76877         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76878         workaround, suggested by Bruno.
76879
76880 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * modules/xalloc (Depends-on): Add xalloc-die.
76883         * modules/xvasprintf (Depends-on): Add xalloc-die.
76884
76885 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76888         with a minor change.
76889
76890 2005-07-15  Bruno Haible  <bruno@clisp.org>
76891
76892         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76893         When using lib/poll.c, define poll as rpl_poll.
76894
76895 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * modules/argp (Depends-on): Remove unlocked-io.
76898
76899 2005-07-14  Derek Price  <derek@ximbiot.com>
76900
76901         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76902         for glob symlink bug.
76903
76904 2005-07-14  Bruno Haible  <bruno@clisp.org>
76905
76906         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76907         Instead, test for *_unlocked function declarations directly.
76908
76909 2005-07-11  Simon Josefsson  <jas@extundo.com>
76910
76911         * modules/size_max: New file.
76912
76913         * modules/xsize: Depend on size_max module for size_max.m4.
76914
76915 2005-07-11  Simon Josefsson  <jas@extundo.com>
76916
76917         * lib/size_max.h: New file.
76918
76919 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76922         copyright symbol and the year.
76923         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76924         (version_etc_va): Use parameterized copyright notice.
76925         Reword to conform to the current GNU coding standards.
76926
76927 2005-07-11  Karl Berry  <karl@gnu.org>
76928
76929         * doc/gnulib.texi (Quoting): new node.
76930         (Initial import): more info, from Patrice.
76931
76932 2005-07-11  Bruno Haible  <bruno@clisp.org>
76933
76934         * gnulib-tool (func_usage): Document option --avoid.
76935         (Command line options): Handle --avoid.
76936         (func_acceptable): New function.
76937         (func_modules_transitive_closure): Use it.
76938
76939 2005-07-11  Bruno Haible  <bruno@clisp.org>
76940
76941         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76942         Reported by Jim Meyering.
76943
76944 2005-07-10  Bruno Haible  <bruno@clisp.org>
76945
76946         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76947         Needed when size_t is smaller than 'unsigned int'.
76948         Reported by Paul Eggert.
76949
76950 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76951
76952         * modules/argp (Depends-on): Add unlocked-io
76953
76954 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76955
76956         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76957         block of defines.
76958
76959 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76962         fix now.
76963
76964 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76965         and Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76968         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76969
76970 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * modules/regex (Files): Add lib/regex_internal.c,
76973         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76974         (Depends-on): Add extensions.
76975         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76976
76977 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76980         pathconf.
76981         * m4/same.m4 (gl_SAME): Likewise.
76982         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76983
76984         * m4/regex.m4: Adjust to new libc regex implementation.
76985         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76986         all the .c and .h parts of (the new) regex.
76987         Quote the m4 stuff better.
76988         Check for RE_ICASE bug of old gnulib.
76989         Check for REG_STARTEND of recent libc.
76990         Rename local variables from jm_* to gl_*.
76991         Quote operand of "test -f".
76992         Say "recent enough" version of libc, not "version 2".
76993         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76994         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76995         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76996         Remove check for btowc, isascii.
76997         Require AM_LANGINFO_CODESET.
76998
76999 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * lib/regex.c, regex.h: Sync from libc.
77002         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77003         * lib/regexec.c:
77004         New files, synced from libc, except that regex_internal.h
77005         currently has a small porting fix.
77006
77007 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77008
77009         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77010         regex_internal.c, regexec.c.
77011         Add regex_internal.h too, but as a comment, since the libc version
77012         is currently broken in gnulib mode.
77013
77014 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         Support programs like Emacs that use gnulib but not gettext.
77017         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77018         * modules/gettext-h: New file.
77019         * modules/gettext (Files): Remove lib/gettext.h.
77020         (Depends-on): Add gettext-h.
77021         (Makefile.am): Remove lib_SOURCES.
77022         * modules/argmatch, modules/c-stack, modules/closeout:
77023         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77024         * modules/execute, modules/file-type, modules/getaddrinfo:
77025         * modules/getopt, modules/human, modules/javacomp:
77026         * modules/javaexec, modules/mkdir-p, modules/obstack:
77027         * modules/openat, modules/pagealign_alloc, modules/pipe:
77028         * modules/quotearg, modules/regex, modules/rpmatch:
77029         * modules/unicodeio, modules/userspec, modules/version-etc:
77030         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77031         * modules/xsetenv:
77032         Depend on gettext-h, not gettext.
77033
77034 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * gnulib-tool (func_import): Add support for 'public domain' license.
77037         * modules/alloca, modules/atexit, modules/memmove:
77038         Now public domain, not GPL.
77039         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77040         * modules/realloc, modules/strerror, modules/strtod:
77041         Now LGPL, not GPL.
77042
77043 2005-07-05  Bruno Haible  <bruno@clisp.org>
77044
77045         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77046         autoconf CVS. Needed for mingw.
77047
77048 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77049
77050         Remove the dependency of the strftime module on the tzset module.
77051         * modules/strftime (Depends-on): Remove dependency on tzset.
77052
77053 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         Remove the dependency of the strftime module on the tzset module.
77056         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77057         gl_FUNC_TZSET_CLOBBER.
77058
77059 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         Remove the dependency of the strftime module on the tzset module.
77062         * lib/strftime.c (my_strftime)
77063         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77064         Copy the input structure, to work around some of the bug with
77065         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77066         Solaris releases, you should also use the tzset module, but we won't
77067         require it as a dependency any more since we don't want LGPLed code
77068         to depend on GPLed code.
77069
77070 2005-07-02  Jim Meyering  <jim@meyering.net>
77071
77072         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77073         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77074         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77075         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77076
77077 2005-07-02  Jim Meyering  <jim@meyering.net>
77078
77079         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77080
77081 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77084         declares only 'struct timespec;' (!).
77085
77086 2005-07-01  Jim Meyering  <jim@meyering.net>
77087
77088         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77089         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77090         * lib/save-cwd.c, tempname.c:
77091         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77092         and don't include <sys/file.h>).
77093
77094 2005-06-29  Jim Meyering  <jim@meyering.net>
77095
77096         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77097         type name.  Use the variable name instead.
77098         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77099         Likewise.
77100
77101 2005-06-28  Simon Josefsson  <jas@extundo.com>
77102
77103         * modules/check-version (Files): Add check-version.m4.
77104
77105 2005-06-28  Simon Josefsson  <jas@extundo.com>
77106
77107         * m4/check-version.m4: New file, suggested by Jim Meyering
77108         <jim@meyering.net>.
77109
77110 2005-06-28  Simon Josefsson  <jas@extundo.com>
77111
77112         * lib/check-version.h, lib/check-version.c: New files.
77113
77114 2005-06-28  Simon Josefsson  <jas@extundo.com>
77115
77116         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77117         collision with global variable.  Better indentation.  Don't
77118         increment buffer pointer beyond buffer end.  Based on comments
77119         from Paul Eggert <eggert@cs.ucla.edu>.
77120
77121         * lib/base64.h: Indent.
77122
77123 2005-06-28  Simon Josefsson  <jas@extundo.com>
77124
77125         * doc/gnulib.texi (Library version handling): New section.
77126
77127 2005-06-28  Jim Meyering  <jim@meyering.net>
77128
77129         * check-module (find_included_lib_files): Hard-code another
77130         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77131         but modules/fts-lgpl (correctly) does not list those files.
77132
77133         * modules/canonicalize (Files): Add lib/pathmax.h.
77134
77135 2005-06-25  Simon Josefsson  <jas@extundo.com>
77136
77137         * modules/check-version: New file.
77138
77139 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77142         initializer of struct addrinfo, as an indication that we don't
77143         care how many members the structure has.
77144
77145 2005-06-24  Derek Price  <derek@ximbiot.com>
77146         and Bruno Haible  <bruno@clisp.org>
77147
77148         Remove stat module & update lstat.
77149         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77150         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77151         * m4/stat.m4: Remove this file.
77152
77153 2005-06-24  Derek Price  <derek@ximbiot.com>
77154         and Bruno Haible  <bruno@clisp.org>
77155
77156         Remove stat module & update lstat.
77157         * lib/stat.c: Remove this file...
77158         (slash_aware_lstat): ...moving this content and its support...
77159         * lib/lstat.c (rpl_lstat): ...into here.
77160         * lib/lstat.h: New file.
77161
77162 2005-06-24  Derek Price  <derek@ximbiot.com>
77163         and Bruno Haible  <bruno@clisp.org>
77164
77165         Remove stat module & update lstat.
77166         * config/srclist.txt (libc sources): Remove stat.
77167
77168 2005-06-24  Derek Price  <derek@ximbiot.com>
77169         and Bruno Haible  <bruno@clisp.org>
77170
77171         Remove stat module & update lstat.
77172         * MODULES.html.sh (stat): Remove.
77173         * MODULES.html: Regenerated.
77174         * modules/lstat (Description): Correct function name.
77175         (Files): Add "lstat.h".
77176         (Depends-on): Remove stat, add xalloc, stat-macros.
77177         * modules/stat: Remove this file.
77178         (Include): Add "lstat.h", remove <sys/stat.h>.
77179
77180 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77183         (ranged_convert): Don't save conversion in a temporary struct.
77184         This causes a warning with GCC 4.0.0, and anyway in the typical
77185         case it's not worth the extra 100 bytes or so of code.
77186         (ranged_convert, __mktime_internal): When calling a function via a
77187         pointer P, use P () rather than (*P) (), as we now assume C89 or
77188         better.
77189
77190 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77193         "who -r" failed to give output.  Problem reported by Tim Waugh.
77194
77195         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77196         (xcalloc): Use it to avoid needless tests.
77197         Problem reported by Jim Meyering.
77198
77199 2005-06-20  Derek Price  <derek@ximbiot.com>
77200
77201         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77202         unnecessary for Autoconfs > 2.59c.
77203
77204 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77205
77206         * lib/argp.h (__option_is_short): Check upper limit of
77207         __key. Isprint() requires its argument to have the value
77208         of an unsigned char or EOF.
77209
77210 2005-06-16  Jim Meyering  <jim@meyering.net>
77211
77212         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77213         when either N or S is zero.
77214
77215 2005-06-16  Derek Price  <derek@ximbiot.com>
77216
77217         * m4/bison.m4: Declare YACC & YFLAGS precious.
77218
77219 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77222         multibyte string or pattern, fall back on unibyte matching.
77223         Problem reported by James Youngman.
77224
77225 2005-06-08  Bruno Haible  <bruno@clisp.org>
77226
77227         * modules/csharpcomp: New file.
77228         * MODULES.html.sh (C#): Add csharpcomp.
77229
77230 2005-06-08  Bruno Haible  <bruno@clisp.org>
77231
77232         * m4/csharpcomp.m4: New file, from GNU gettext.
77233
77234 2005-06-08  Bruno Haible  <bruno@clisp.org>
77235
77236         * lib/csharpcomp.h: New file, from GNU gettext.
77237         * lib/csharpcomp.c: New file, from GNU gettext.
77238         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77239
77240 2005-06-08  Bruno Haible  <bruno@clisp.org>
77241
77242         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77243         warning on mingw.
77244
77245 2005-06-07  Derek Price  <derek@ximbiot.com>
77246
77247         Sync from CVS.
77248         * lib/glob_.h: Indent nested #ifdef.
77249
77250 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         Sync from coreutils.
77253         Use "file name" when talking about file names, instead of "filename"
77254         or "path", as per the GNU coding standards.
77255         * lib/mkdir-p.c: Renamed from makepath.c.
77256         (make_dir_parents): Renamed from make_path.  All callers changed.
77257         * lib/mkdir-p.h: Likewise.  All includers changed.
77258         * lib/filenamecat.c: Renamed from path-concat.c.
77259         (file_name_concat): Renamed from path_concat.  All callers changed.
77260         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77261         * lib/filenamecat.h: Likewise.  All includers changed.
77262         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77263         in comments or local variable names.
77264         * lib/basename.c: Likewise.
77265         * lib/canonicalize.c, canonicalize.h: Likewise.
77266         * lib/dirname.c, dirname.h: Likewise.
77267         * lib/euidaccess.c: Likewise.
77268         * lib/exclude.c: Likewise
77269         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77270         * lib/fsusage.c, fsuage.h: Likewise.
77271         * lib/fts.c, fts_.h: Likewise.
77272         * lib/getcwd.c: Likewise.
77273         * lib/getloadavg.c: Likewise.
77274         * lib/mkstemp.c: Likewise.
77275         * lib/mountlist.c, mountlist.h: Likewise.
77276         * lib/openat.c, openat.h: Likewise.
77277         * lib/readlink-stub.c: Likewise.
77278         * lib/readutmp.c, readutmp.h: Likewise.
77279         * lib/rename.c: Likewise.
77280         * lib/rmdir.c: Likewise.
77281         * lib/same.c: Likewise.
77282         * lib/savedir.c: Likewise.
77283         * lib/stripslash.c: Likewise.
77284         * lib/tempname.c: Likewise.
77285         * lib/xreadlink.c: Likewise.
77286         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77287         All uses changed.
77288         * lib/exclude.h: Likewise.
77289
77290         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77291         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77292         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77293         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77294         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77295         files have been getting away with it for years (MORE/BSD 4.3
77296         is extinct now).
77297         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77298         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77299
77300         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77301         Define to 256, not 255, as per modern POSIX.
77302
77303 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         Sync from coreutils.
77306         Use "file name" when talking about file names, instead of "filename"
77307         or "path", as per the GNU coding standards.
77308         * MODULES.html.sh: mkdir-p renamed from makepath.
77309         filenamecat renamed from path-concat.
77310         * modules/filenamecat: Renamed from modules/path-concat.
77311         (Files): filenamecat.h and filenamecat.c renamed from
77312         path-concat.h and path-concat.c.
77313         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77314         (Include): filenamecat.h, not path-concat.h.
77315         * modules/mkdir-p: Renamed from modules/makepath.
77316         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77317         makepath.c.
77318         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77319         (Include): mkdir-p.h, not makepath.h.
77320
77321 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77322
77323         Sync from coreutils.
77324         * m4/mkdir-p.m4: Renamed from makepath.m4.
77325         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77326         Rename files from makepath.c to mkdir-p.c, and from
77327         makepath.h to mkdir-p.h.
77328         * m4/filenamecat.m4: Renamed from path-concat.m4.
77329         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77330         Rename files from path-concat.c to filenamecat.c,
77331         and from path-concat.h to filenamecat.h.
77332         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77333         "file name" in local variables or comments.
77334         * m4/rename.m4: Likewise.
77335
77336 2005-06-01  Bruno Haible  <bruno@clisp.org>
77337
77338         * modules/csharpexec: New file.
77339         * MODULES.html.sh (C#): New section.
77340
77341 2005-06-01  Bruno Haible  <bruno@clisp.org>
77342
77343         * m4/csharp.m4: New file, from GNU gettext.
77344         * m4/csharpexec.m4: New file, from GNU gettext.
77345
77346 2005-06-01  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/csharpexec.h: New file, from GNU gettext.
77349         * lib/csharpexec.c: New file, from GNU gettext.
77350         * lib/csharpexec.sh.in: New file, from GNU gettext.
77351
77352 2005-05-31  Derek Price  <derek@ximbiot.com>
77353             Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         Sync from cvs.
77356         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77357
77358 2005-05-31  Derek Price  <derek@ximbiot.com>
77359             Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         Sync from cvs.
77362         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77363
77364 2005-05-29  Derek Price  <derek@ximbiot.com>
77365
77366         * config/srclist.txt (glob_.h, glob.c): Add these files.
77367
77368 2005-05-29  Derek Price  <derek@ximbiot.com>
77369
77370         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77371         * modules/glob: New file.
77372         * modules/getlogin_r: Add link to POSIX spec in description.
77373
77374 2005-05-29  Derek Price  <derek@ximbiot.com>
77375             Paul Eggert  <eggert@cs.ucla.edu>
77376
77377         * m4/glob.m4: New file.
77378
77379 2005-05-29  Derek Price  <derek@ximbiot.com>
77380             Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * lib/glob_.h, lib/glob.c: New files.
77383
77384 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77385
77386         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77387         * modules/fts-lgpl (Depends-on): Remove gettext.
77388
77389 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77392         and don't require gt_INTTYPES_PRI.
77393
77394 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77397
77398         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77399         the configuration hassle isn't worth it.
77400         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77401         (LONGEST_MODIFIER, PRIuMAX): Remove.
77402
77403 2005-05-27  Bruno Haible  <bruno@clisp.org>
77404
77405         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77406
77407 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77410         _POSIX_PTHREAD_SEMANTICS for Solaris.
77411
77412 2005-05-25  Derek Price  <derek@ximbiot.com>
77413
77414         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77415
77416 2005-05-25  Derek Price  <derek@ximbiot.com>
77417             Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77420         * lib/getlogin_r.c, getlogin_r.h: New files.
77421
77422 2005-05-25  Bruno Haible  <bruno@clisp.org>
77423             Derek Price  <derek@ximbiot.com>
77424
77425         * lib/getlogin_r.h: Simplify API documentation.
77426
77427 2005-05-23  Derek Price  <derek@ximbiot.com>
77428
77429         * modules/minmax (Files): Add m4/minmax.m4.
77430         (configure.ac): Add gl_MINMAX.
77431
77432 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77433
77434         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77435         so that unistd-safer.h (GPL'ed code) need not be included.
77436
77437 2005-05-22  Bruno Haible  <bruno@clisp.org>
77438
77439         * m4/minmax.m4: New file.
77440         Based on a patch by Derek Price <derek@ximbiot.com>.
77441
77442 2005-05-22  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77445         (INT64_MIN): Fix definition.
77446         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77447
77448         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77449         NEED_SIGNED_INT_TYPES.
77450
77451         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77452         HAVE_SYSTEM_INTTYPES.
77453
77454 2005-05-22  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77457         Also include <sys/param.h> if it defines MIN, MAX.
77458         Based on a patch by Derek Price <derek@ximbiot.com>.
77459
77460 2005-05-21  Jim Meyering  <jim@meyering.net>
77461
77462         * modules/fts (Files): Add m4/inttypes-pri.m4.
77463         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77464
77465 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         New fts module.
77468         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77469         (setup_dir, free_dir): New functions.
77470         (enter_dir, leave_dir): Define trivial
77471         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77472         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77473         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77474         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77475         Move to fts-cycle.c.
77476         (fts_open): Use setup_dir.
77477         (fts_close): Use free_dir.
77478         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77479         This adds a label and some gotos, but the alternatives were messier.
77480         Check for memory allocation failure when entering a dir.
77481         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77482         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77483         (FTS): New member fts_cycle, that is a union that contains the
77484         old active_dir_ht and cycle_state.  All uses changed to mention
77485         fts_cycle.ht and fts_cycle.state.
77486         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77487         fts.c, with the following changes:
77488         (setup_dir, free_dir): New functions.
77489         (enter_dir): Now returns bool.  Return true if successful, false
77490         if memory exhausted.  All callers changed.
77491         Do not bother partly cleaning up on
77492         memory allocation failure; that is free_dir's job.
77493         However, free ad if hash_insert fails, to avoid memory leak.
77494         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77495         fts->fts_options to see which union member to use.
77496
77497 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77500         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77501
77502 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77505
77506 2005-05-20  Jim Meyering  <jim@meyering.net>
77507
77508         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77509         Now a macro, to pacify GCC.
77510
77511 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77512
77513         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77514         of -1.
77515
77516 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77517
77518         * lib/chown.c (rpl_chown): Return -1 on failure.
77519
77520 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77523         Don't check for stddef.h.
77524         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77525         don't use its results.
77526         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77527         since we include them unconditionally.  Don't require
77528         AM_STDBOOL_H, since stdbool is a prerequisite.
77529         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77530         since we assume C89 or better.
77531         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77532         as we don't use their results.
77533         Don't check for fchdir, memmove, memset, strrchr, as we use
77534         them unconditionally.
77535         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77536         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77537
77538 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77539
77540         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77541         Include <stddef.h> unconditionally, since we assume C89 now.
77542         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77543         * lib/fts.c: Include fts_.h first, to check interface.
77544         Do not include intprops.h; no longer needed.
77545         Include cycle-check.h and hash.h, since fts_.h no longer does.
77546         Remove unnecessary casts of closedir to void.
77547         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77548         decide whether to decrement nlinks.
77549         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77550         (FTS): Use struct hash_table * instead of Hash_table, so that
77551         we no longer need to include hash.h here.
77552
77553 2005-05-18  Jim Meyering  <jim@meyering.net>
77554
77555         * modules/dirfd (License): Change to LGPL.  Most of the code
77556         is already in the public domain.
77557
77558 2005-05-18  Jim Meyering  <jim@meyering.net>
77559
77560         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77561         Reported by Yoann Vandoorselaere.
77562
77563 2005-05-17  Jim Meyering  <jim@meyering.net>
77564
77565         * m4/fts.m4: New file, from coreutils.
77566
77567 2005-05-17  Jim Meyering  <jim@meyering.net>
77568
77569         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77570
77571 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         Sync from coreutils.
77574         * m4/unlinkdir.m4: New file.
77575
77576 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         Sync from coreutils.
77579         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77580         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77581         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77582         White space changes only.
77583         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77584         special.
77585         * lib/yesno.c: Include getline.h, not ctype.h.
77586         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77587         Use getline to remove arbitrary restriction on response length.
77588
77589 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * config/srclist-update: Spell out "Street" in FSF postal
77592         mail address; this is the style the FSF seems to prefer.
77593
77594         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77595         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77596         this updates FSF postal mail address.
77597
77598         Sync from coreutils.
77599         * modules/unlinkdir: New file.
77600         * modules/yesno (Depends-on): Add getline.
77601         * MODULES.html.sh (File system functions): Add unlinkdir.
77602
77603 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77606         lib/strsep.h:
77607         Change the initial comment to refer to GPL, not LGPL.
77608         gnulib-tool will change it to LGPL as needed.
77609
77610         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77611         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77612         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77613         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77614         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77615         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77616         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77617         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77618         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77619         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77620         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77621         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77622         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77623         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77624         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77625         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77626         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77627         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77628         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77629         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77630         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77631         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77632         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77633         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77634         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77635         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77636         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77637         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77638         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77639         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77640         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77641         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77642         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77643         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77644         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77645         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77646         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77647         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77648         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77649         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77650         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77651         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77652         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77653         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77654         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77655         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77656         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77657         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77658         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77659         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77660         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77661         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77662         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77663         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77664         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77665         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77666         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77667         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77668         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77669         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77670         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77671         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77672         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77673         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77674         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77675         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77676         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77677         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77678         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77679         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77680         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77681         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77682         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77683         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77684         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77685         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77686         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77687         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77688         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77689         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77690         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77691         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77692         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77693         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77694         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77695         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77696         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77697         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77698         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77699         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77700         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77701         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77702         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77703         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77704         lib/yesno.c, lib/yesno.h:
77705         Update FSF postal mail address.
77706
77707 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77710         tests/test-memmem.c, tests/test-stpncpy.c:
77711         Update FSF postal mail address.
77712
77713 2005-05-13  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77716         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77717         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77718         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77719         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77720         Add support for 64-bit integers in the MSVC compiler.
77721
77722 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77723
77724         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77725
77726 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77727
77728         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77729
77730 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * doc/getdate.texi (General date syntax): Don't say that date
77733         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77734         Problem reported by Nic Ferrier.
77735
77736 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77737
77738         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77739         specified in ai_socktype. Fix invalid ai_protocol
77740         check. ai_protocol is usually set to 0 or depending on
77741         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77742         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77743         ai_socktype / ai_protocol in the returned addrinfo structure.
77744
77745 2005-05-10  Simon Josefsson  <jas@extundo.com>
77746
77747         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77748         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77749
77750 2005-05-10  Karl Berry  <karl@gnu.org>
77751
77752         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77753         (from http://www.gnu.org/licenses).
77754         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77755         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77756         fdl.texi suffices.
77757
77758 2005-05-10  Karl Berry  <karl@gnu.org>
77759
77760         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77761         (COPYING.DOC): remove.
77762
77763         * config/srclist-update: new FSF address.
77764
77765 2005-05-10  Derek Price  <derek@ximbiot.com>
77766
77767         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77768         possible.
77769
77770 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77771             Bruno Haible  <bruno@clisp.org>
77772
77773         * modules/inet_ntop: New file.
77774         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77775         inet_ntop.
77776
77777 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77778             Bruno Haible  <bruno@clisp.org>
77779
77780         * m4/inet_ntop.m4: New file.
77781
77782 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77783             Bruno Haible  <bruno@clisp.org>
77784
77785         * lib/inet_ntop.h: New file.
77786         * lib/inet_ntop.c: New file, from glibc with modifications.
77787
77788 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * modules/time_r (License): Change to LGPL.
77791         * modules/extensions (License): Change to LGPL.  Actually,
77792         the license is more permissive than that, but currently gnulib-tool
77793         doesn't know how to handle more-permissive licenses.
77794
77795         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77796         Problem reported by Dave Love.
77797
77798 2005-05-08  Jim Meyering  <jim@meyering.net>
77799
77800         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77801         blank.
77802
77803 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * modules/argmatch (Depends-on): Add stdbool.
77806         * modules/backupfile (Depends-on): Likewise.
77807         * modules/chdir-long (Depends-on): Likewise.
77808         * modules/closeout (Depends-on): Likewise.
77809         * modules/cycle-check (Depends-on): Likewise.
77810         * modules/dirname (Depends-on): Likewise.
77811         * modules/fnmatch (Depends-on): Likewise.
77812         * modules/fsusage (Depends-on): Likewise.
77813         * modules/fwriteerror (Depends-on): Likewise.
77814         * modules/getcwd (Depends-on): Likewise.
77815         * modules/getloadavg (Depends-on): Likewise.
77816         * modules/hard-locale (Depends-on): Likewise.
77817         * modules/makepath (Depends-on): Likewise.
77818         * modules/mountlist (Depends-on): Likewise.
77819         * modules/nanosleep (Depends-on): Likewise.
77820         * modules/posixtm (Depends-on): Likewise.
77821         * modules/quotearg (Depends-on): Likewise.
77822         * modules/readtokens (Depends-on): Likewise.
77823         * modules/readtokens0 (Depends-on): Likewise.
77824         * modules/readutmp (Depends-on): Likewise.
77825         * modules/save-cwd (Depends-on): Likewise.
77826         * modules/strftime (Depends-on): Likewise.
77827         * modules/userspec (Depends-on): Likewise.
77828         * modules/utimecmp (Depends-on): Likewise.
77829         * modules/xgetcwd (Depends-on): Likewise.
77830         * modules/xnanosleep (Depends-on): Likewise.
77831         * modules/xstrtod (Depends-on): Likewise.
77832         * modules/yesno (Depends-on): Likewise.
77833
77834 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77837         needless checks.
77838
77839 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         Merge from coreutils.  Among other things,
77842         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77843         * lib/fd-safer.c: New file.
77844         * lib/fcntl-safer.h, open-safer.c: Remove.
77845         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77846         * lib/dup-safer.c: Include unistd-safer.h first.
77847         Don't include errno.h.
77848         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77849         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77850         * lib/file-type.c: Rely on file-type.h change.
77851         * lib/getloadavg.c: Include unistd-safer.h.
77852         (getloadavg): Use safer open.
77853         * lib/getusershell.c: Include "stdio-safer.h".
77854         (getusershell): Use safer fopen.
77855         * lib/long-options.c (long_options): Use NULL rather than 0.
77856         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77857         'free'.
77858         * lib/modechange.c: Likewise.
77859         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77860         (MODE_DONE): New constant.
77861         (struct mode_change): Remove 'next' member.
77862         (make_node_op_equals): New function; like the old one of the
77863         same name, except it allocates an array.
77864         (mode_compile, mode_create_from_ref): Use it.
77865         (mode_compile): Allocate result as an array, not a linked list.
77866         Parse octal string ourself, so that we catch mistakes like "+0".
77867         (mode_adjust): Arg is an array, not a linked list.
77868         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77869         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77870         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77871         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77872         Remove.  This is now stat-macros.h's job.
77873         (talloc): Remove.  All callers replaced by xalloc, so that
77874         our invokers don't have to worry about reporting memory failures.
77875         (make_node_op_equals): Remove.
77876         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77877         New constants.
77878         (struct mode_change): Moved here from modechange.h.
77879         (mode_append_entry): Remove.
77880         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77881         apps to have incorrect behavior.  Use simpler algorithm for head
77882         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77883         Detect more invalid usages rather than having somewhat-random behavior.
77884         Don't insert an "a=" action, as that leads to incorrect behavior.
77885         (mode_compile, mode_create_from_ref): Return NULL on error instead
77886         of an enum, since now there's only one way to have an error.  All
77887         callers changed.
77888         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77889         at the correct time.  Simplify calculation of "+u" and its ilk.
77890         Don't mishandle "+X".
77891         (mode_free): Remove "register" and localize decls.
77892         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77893         (struct mode_change): Move to modechange.c; callers don't
77894         need to see this stuff.
77895         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77896         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77897         (mode_change, mode_adjust): Reflect the new signatures noted above.
77898         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77899         that might redefine system include files.
77900         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77901         (my_usleep): Use NULL rather than (void *) 0.
77902         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77903         Use siginterrupt to specify that system calls should be interrupted.
77904         (rpl_nanosleep): Move initialization of suspended closer to call of
77905         my_usleep.
77906         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77907         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77908         (desirable_utmp_entry): New function.
77909         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77910         using x2nrealloc, to simplify logic.
77911         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77912         size calculation.  Do not assume utmp file is a regular file.
77913         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77914         (READ_UTMP_CHECK_PIDS): New constant.
77915         * lib/save-cwd.c: Include unistd-safer.h.
77916         (save_cwd): Use fd_safer.
77917         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77918         [!_LIBC] Include "stat-macros.h" instead.
77919         * lib/unistd-safer.h (fd_safer): New decl.
77920
77921 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * modules/getloadavg (Depends-on): Add unistd-safer.
77924         * modules/getusershell (Depends-on): Add stdio-safer.
77925         * modules/lstat (Depends-on): Remove xalloc.
77926         * modules/mkstemp (Depends-on): Add stat-macros.
77927         * modules/modechange (Depends-on): Remove xstrtol.
77928         Add stat-macros, xalloc.
77929         * modules/save-cwd (Depends-on): Add unistd-safer.
77930         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77931         * modules/unistd-safer (Files): Add lib/fd-safer.c
77932         (Makefile.am): Remove lib_SOURCES.
77933
77934         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77935         Remove fcntl-safer; unistd-safer supersedes it.
77936
77937 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77940         AC_HEADER_STAT.
77941         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77942         (gl_PREREQ_CHOWN): Remove.
77943         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77944         it.  Don't require AC_HEADER_STAT.
77945         (gl_PREREQ_LSTAT): Remove.
77946         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77947         Don't require AC_HEADER_STAT.
77948         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77949         (gl_PREREQ_RMDIR): Remove.
77950         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77951         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77952         the stat-macros module a prerequisite.
77953         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77954         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77955         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77956         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77957         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77958         variable names.
77959         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77960         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77961         variable prefixes.
77962         * m4/fcntl-safer.m4: Remove.
77963         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77964         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77965         Invoke gl_PREREQ_FD_SAFER.
77966         (gl_PREREQ_FD_SAFER): New macro.
77967         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77968         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77969         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77970         Remove duplicate call to AC_LIBOBJ(readutmp).
77971         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77972
77973         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77974         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77975
77976 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * MODULES.html.sh (Misc): Add byteswap.
77979
77980 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77981
77982         * modules/getcwd (Depends-on): Add extensions.
77983         * modules/openat (Depends-on): Likewise.
77984
77985 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77986
77987         * modules/byteswap: New file.
77988
77989 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77990
77991         * m4/byteswap.m4: New file.
77992
77993 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77994
77995         * lib/byteswap_.h: New file.
77996
77997 2005-04-25  Karl Berry  <karl@gnu.org>
77998
77999         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78000
78001 2005-04-25  Albert Chin  <china@thewrittenword.com>
78002
78003         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78004         Toolkit C bug.
78005
78006 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78007
78008         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78009         (func_ln_if_changed): Remove forcibly for no error message
78010         in case file does not exist.
78011
78012 2005-04-19  Simon Josefsson  <jas@extundo.com>
78013
78014         * gnulib-tool (Options): Make --symlink mean --symbolic.
78015
78016 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78017
78018         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78019
78020 2005-04-16  Simon Josefsson  <jas@extundo.com>
78021
78022         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78023
78024 2005-04-15  Simon Josefsson  <jas@extundo.com>
78025
78026         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78027
78028 2005-04-15  Simon Josefsson  <jas@extundo.com>
78029
78030         * gnulib-tool: Rename --symlink to --symbolic.
78031
78032 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78033
78034         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78035         symbolic links to files instead of copying/moving.  Add --aux-dir,
78036         specifying directory relative --dir where auxiliary build tools
78037         are placed.
78038
78039 2005-04-14  Bruno Haible  <bruno@clisp.org>
78040
78041         * modules/allocsa (License): Change to LGPL.
78042         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78043
78044 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78047         that "UTC +1 second" continues to work.  Problem reported
78048         by Dmitry V. Levin.
78049         (relunit_snumber): New rule.
78050         (relunit): Use it.
78051
78052 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * lib/getdate.y (universal_time_zone_table): New constant.
78055         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78056         universal_time_zone_table.
78057         (lookup_zone): Prefer universal_time_zone_table to
78058         local_time_zone_table, so that "GMT" time stamps are allowed in
78059         London during the summer.  Problem reported by Ian Abbott.
78060
78061 2005-04-12  Jim Meyering  <jim@meyering.net>
78062
78063         * lib/human.c (humblock): Set *options even when returning due to
78064         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78065         warning from gcc-4.
78066
78067 2005-04-09  Jim Meyering  <jim@meyering.net>
78068
78069         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78070         -Wuninitialized: initialize tm0.tm_year.
78071
78072 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78075         count, since there's no maximum.  All uses changed.
78076         Add member dsts_seen.
78077         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78078         not being INT_MAX.
78079         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78080         Use pc_rels_seen to decide whther a date is absolute.
78081
78082         * lib/getdate.y (number): Don't overwrite year.
78083         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78084         check.
78085
78086 2005-04-02  Simon Josefsson  <jas@extundo.com>
78087
78088         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78089         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78090
78091 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78092
78093         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78094         where no absolute path name can be longer than PATH_MAX.
78095
78096 2005-03-27  Jim Meyering  <jim@meyering.net>
78097
78098         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78099
78100 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78101
78102         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78103         "one's complement" -> "ones' complement" in comment, as per Knuth.
78104         "value of type" -> "type or expression" in comment.
78105         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78106
78107 2005-03-26  Jim Meyering  <jim@meyering.net>
78108
78109         Comment nits.
78110         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78111         Correct typos: s/or/of/.
78112
78113 2005-03-26  Jim Meyering  <jim@meyering.net>
78114
78115         * modules/check-include-files: Move to ../ and rename to...
78116         * check-module: ...this.
78117
78118 2005-03-25  Jim Meyering  <jim@meyering.net>
78119
78120         * modules/xvasprintf (Files): Add xalloc.h.
78121
78122 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * modules/gettext (Files): config/config.rpath ->
78125         build-aux/config.rpath
78126         * modules/iconv (Files): Likewise.
78127         Problem reported by Oskar Liljeblad.
78128
78129 2005-03-23  Jim Meyering  <jim@meyering.net>
78130
78131         * modules/check-include-files: New script to check for
78132         missing dependencies, multiple includes, etc.
78133
78134         * modules/c-strtold (Depends-on): Add xalloc.
78135         * modules/c-strtod (Depends-on): Add xalloc.
78136         * modules/hash (Depends-on): Add xalloc.
78137         (Files): Remove lib/xalloc.h.
78138
78139         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78140         * modules/userspec (Files): Add lib/inttostr.h.
78141
78142 2005-03-23  Jim Meyering  <jim@meyering.net>
78143
78144         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78145
78146 2005-03-22  Jim Meyering  <jim@meyering.net>
78147
78148         * modules/stat-macros: New module.
78149         * modules/canonicalize, modules/euidaccess, modules/file-type,
78150         * modules/filemode, modules/lchown, modules/makepath,
78151         * modules/rmdir, modules/stat: Depend on new stat-macros module
78152         rather than listing lib/stat-macros.h manually.
78153         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78154
78155 2005-03-22  Jim Meyering  <jim@meyering.net>
78156
78157         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78158
78159 2005-03-22  Bruno Haible  <bruno@clisp.org>
78160
78161         * config/srclist.txt: Replace target directory 'config' with
78162         'build-aux'.
78163         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78164         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78165         ../build-aux/.
78166
78167 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         * modules/chdir-long (Depends-on): Add mempcpy.
78170
78171         * modules/acl, modules/backupfile, modules/c-strtod,
78172         modules/c-strtold, modules/canon-host, modules/canonicalize,
78173         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78174         modules/exclude, modules/exitfail, modules/file-type,
78175         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78176         modules/getdate, modules/getline, modules/getpagesize,
78177         modules/getpass, modules/getugroups, modules/group-member,
78178         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78179         modules/inttostr, modules/long-options, modules/makepath,
78180         modules/md5, modules/memcasecmp, modules/memcoll,
78181         modules/modechange, modules/mountlist, modules/path-concat,
78182         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78183         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78184         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78185         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78186         modules/strftime, modules/strndup, modules/strverscmp,
78187         modules/timespec, modules/unlocked-io, modules/userspec,
78188         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78189         modules/yesno:
78190         Remove lib_SOURCES line from Makefile.am section, as this is now
78191         done automatically by the corresponding Autoconf macro.
78192
78193 2005-03-21  Jim Meyering  <jim@meyering.net>
78194
78195         Changes imported from coreutils.
78196
78197         * lib/cycle-check.c: Don't include xalloc.h.
78198
78199         * lib/path-concat.c: Don't include assert.h.
78200         (path_concat): Remove assertion that would have triggered
78201         for ABASE starting with more than one slash.
78202         Reported by Andreas Schwab.
78203
78204         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78205         properly when ABASE is an absolute file name.
78206         Correct the description of this function.
78207         Include <assert.h>.
78208         Add an assertion and a test driver.
78209         This fixes a bug introduced on 2004-07-02.
78210         Andreas Schwab reported the resulting failure of cp --parents:
78211         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78212
78213 2005-03-21  Jim Meyering  <jim@meyering.net>
78214
78215         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78217
78218 2005-03-21  Jim Meyering  <jim@meyering.net>
78219         and  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78222         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78223         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78224         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78225         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78226         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78227         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78228         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78229         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78230         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78231         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78232         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78233         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78234         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78235         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78236         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78237         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78238         for these modules.
78239
78240 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78241
78242         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78243         (which shouldn't happen), generate nothing instead of returning 0
78244         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78245
78246 2005-03-16  Bruno Haible  <bruno@clisp.org>
78247
78248         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78249         HAVE_LONGLONG_64BIT.
78250
78251 2005-03-16  Bruno Haible  <bruno@clisp.org>
78252
78253         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78254         HAVE_LONGLONG_64BIT.
78255
78256 2005-03-16  Bruno Haible  <bruno@clisp.org>
78257
78258         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78259         HAVE_LONGLONG_64BIT.
78260
78261 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78264         reliably distinguish strftime failure from empty output on POSIX
78265         hosts.
78266
78267 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78270         (iconv_string): Don't guess a size-zero buffer, as that might cause
78271         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78272         result would be 'too large', where 'too large' is (heuristically)
78273         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78274         overflow concerns.  This will prevent some unwanted malloc failures
78275         when the inputs are very large.
78276
78277 2005-03-15  Karl Berry  <karl@gnu.org>
78278
78279         * config/srclist.txt (config.rpath): from gettext.
78280         * config/config.rpath: update.
78281
78282 2005-03-15  Bruno Haible  <bruno@clisp.org>
78283
78284         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78285         to 'negate'.
78286
78287         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78288         variable.
78289
78290         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78291         results.
78292
78293 2005-03-14  Simon Josefsson  <jas@extundo.com>
78294
78295         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78296         <fx@gnu.org>.
78297
78298 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78301         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78302         intprops.h.
78303         * lib/strtol.c: Likewise.
78304
78305 2005-03-14  Jim Meyering  <jim@meyering.net>
78306
78307         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78308         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78309         to be nonzero so that we (and caller) can detect the difference
78310         between a valid zero-length expansion and an error return, even
78311         when the underlying strftime fails before writing anything into
78312         that location.
78313
78314 2005-03-14  Bruno Haible  <bruno@clisp.org>
78315
78316         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78317         Update from GNU gettext 0.14.3.
78318
78319 2005-03-10  Jim Meyering  <jim@meyering.net>
78320
78321         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78322
78323 2005-03-10  Jim Meyering  <jim@meyering.net>
78324
78325         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78326         so that this module works on systems without fchdir.
78327
78328 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         Factor int-properties macros into a single file, except for
78331         glibc-related files.
78332         * lib/intprops.h: New file.
78333         * lib/getloadavg.c: Include it instead of limits.h.
78334         (INT_STRLEN_BOUND): Remove.
78335         * lib/human.c: Include intprops.h.
78336         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78337         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78338         302/1000.
78339         * lib/inttostr.h: Include intprops.h instead of limits.h.
78340         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78341         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78342         for consistency with intprops.h.
78343         (time_t_is_integer, twos_complement_arithmetic): Use them.
78344         * lib/sig2str.h: Include <signal.h>, intprops.h.
78345         (INT_STRLEN_BOUND): Remove.
78346         * lib/strftime.c (TYPE_SIGNED): Remove.
78347         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78348         * lib/strtol.c: Adjust comments to match intprops.h.
78349         * lib/userspec.c: Include intprops.h.
78350         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78351         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78352         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78353         instead of rolling our own expressions.
78354         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78355
78356         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78357         instead of int.
78358         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78359         the right thing even if adding 1900 would overflow.  Similarly
78360         for tm_mon + 1 and tm_yday + 1.
78361         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78362         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78363         (DO_SIGNED_NUMBER): New macro.
78364         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78365
78366 2005-03-07  Bruno Haible  <bruno@clisp.org>
78367
78368         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78369
78370 2005-03-07  Bruno Haible  <bruno@clisp.org>
78371
78372         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78373
78374 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78375
78376         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78377         (func_import): Only replace files via --import when they have actually
78378         changed.
78379
78380 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78381
78382         * m4/mmap-anon.m4: New file.
78383         * m4/pagealign_alloc.m4: New file.
78384
78385 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78386             Bruno Haible  <bruno@clisp.org>
78387
78388         * modules/pagealign_alloc: New file.
78389         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78390
78391 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78392             Bruno Haible  <bruno@clisp.org>
78393
78394         * lib/pagealign_alloc.h: New file.
78395         * lib/pagealign_alloc.c: New file.
78396
78397 2005-03-03  Bruno Haible  <bruno@clisp.org>
78398
78399         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78400         Use an all-permissive copyright notice, recommended by RMS.
78401
78402 2005-03-02  Bruno Haible  <bruno@clisp.org>
78403
78404         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78405         of AIX, the replacement has to be done only after <string.h> is
78406         included, therefore not in config.h. stpncpy.h does the replacement,
78407         and stpncpy.c uses it.
78408
78409 2005-03-02  Bruno Haible  <bruno@clisp.org>
78410
78411         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78412         stpncpy.c uses it.
78413
78414 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78417         The workaround isn't strictly needed for POSIX conformance, and
78418         it's too much of a pain to configure and maintain.  We'll ask
78419         people to fix their kernels instead.
78420         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78421         (NANOSLEEP_BUG_WORKAROUND): Remove.
78422         (xnanosleep): Remove the workaround.
78423
78424 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78427         Reported by Derek Price.
78428         (Include): Add "timespec.h".
78429
78430         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78431
78432 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78435         to detect nanosleep bug.
78436
78437 2005-03-01  Bruno Haible  <bruno@clisp.org>
78438
78439         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78440
78441 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * modules/gethrxtime: New file.
78444         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78445         (Depends-on): Add gethrxtime.
78446         (configure.ac): Add gl_XNANOSLEEP.
78447         (Makefile.am): Remove lib_SOURCES line.
78448
78449 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78450
78451         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78452         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78453
78454 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78455
78456         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78457         * lib/timespec.h (gettime): Return void, since it always
78458         succeeds now.  All uses changed.
78459         * lib/gettime.c (gettime): Likewise.
78460         [HAVE_NANOTIME]: Prefer nanotime.
78461         Assume gettimeofday succeeds, as POSIX requires.
78462         Assime time () succeeds, since other code already does.
78463         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78464         (timespec_subtract): Remove.
78465         (NANOSLEEP_BUG_WORKAROUND): New constant.
78466         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78467         things considerably.  Use it only on GNU/Linux hosts, since the
78468         workaround shouldn't be needed elsewhere.
78469
78470 2005-02-24  Bruno Haible  <bruno@clisp.org>
78471
78472         * modules/gettext (Files): Add m4/glibc2.m4.
78473
78474 2005-02-24  Bruno Haible  <bruno@clisp.org>
78475
78476         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78477         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78478         * m4/progtest.m4:
78479         Update from GNU gettext 0.14.2.
78480         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78481
78482 2005-02-24  Bruno Haible  <bruno@clisp.org>
78483
78484         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78485         * lib/config.charset: Update from GNU gettext 0.14.2.
78486
78487 2005-02-24  Bruno Haible  <bruno@clisp.org>
78488
78489         * lib/gettext.h: Update from GNU gettext 0.14.2.
78490
78491 2005-02-23  Simon Josefsson  <jas@extundo.com>
78492
78493         * m4/iconvme.m4: New file.
78494
78495 2005-02-23  Jim Meyering  <jim@meyering.net>
78496
78497         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78498         change.
78499         Thanks to Bruno Haible for catching it.
78500
78501 2005-02-22  Simon Josefsson  <jas@extundo.com>
78502
78503         * modules/iconvme: New file.
78504
78505         * MODULES.html.sh: Add iconvme.
78506
78507 2005-02-22  Simon Josefsson  <jas@extundo.com>
78508
78509         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78510
78511 2005-02-22  Simon Josefsson  <jas@extundo.com>
78512
78513         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78514
78515 2005-02-22  Jim Meyering  <jim@meyering.net>
78516
78517         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78518         s/ifndef/ifdef/.
78519
78520 2005-02-20  Neil Conway  <neilc@samurai.com>
78521
78522         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78523         returned by OSX/Darwin if the specified buffer is not large
78524         enough for the hostname.
78525
78526 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78527
78528         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78529         pass it to _help, otherwise the latter coredumps trying to
78530         dereference state.root_argp.
78531
78532 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * modules/chdir-long (Depends-on): Add memrchr.
78535         * modules/memrchr (Files): Add lib/memrchr.h.
78536         (Include): "memrchr.h".
78537
78538 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78541
78542 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * lib/memrchr.h: New file.
78545         * lib/chdir-long.c: Include it.
78546         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78547         Don't bother including stddef.h.
78548
78549 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78550
78551         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78552         inclusion.
78553         Include <sys/types.h>, for dev_t.
78554         (ME_DUMMY, ME_REMOTE): Move from here....
78555         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78556         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78557         Dmitry V. Levin.
78558         Include mountlist.h first, to test the interface.
78559
78560 2005-01-29  Bruno Haible  <bruno@clisp.org>
78561
78562         * lib/progname.c (program_name): Initialize.
78563         Needed when linking statically on MacOS X.
78564
78565 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78566
78567         Sync from coreutils.
78568         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78569         (Depends-on): Add c-strtod.
78570         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78571
78572 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         Sync from coreutils.
78575         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78576
78577         Remove files that are specific to coreutils.
78578         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78579
78580 2005-01-28  Bruno Haible  <bruno@clisp.org>
78581
78582         * modules/javacomp: New file.
78583         * MODULES.html.sh (Java): Add javacomp.
78584
78585 2005-01-28  Bruno Haible  <bruno@clisp.org>
78586
78587         * m4/javacomp.m4: New file, from GNU gettext.
78588
78589 2005-01-28  Bruno Haible  <bruno@clisp.org>
78590
78591         * lib/javacomp.sh.in: New file, from GNU gettext.
78592         * lib/javacomp.h: New file, from GNU gettext.
78593         * lib/javacomp.c: New file, from GNU gettext.
78594
78595 2005-01-26  Simon Josefsson  <jas@extundo.com>
78596
78597         * lib/gai_strerror.c: Use GPL in header.
78598
78599 2005-01-26  Bruno Haible  <bruno@clisp.org>
78600
78601         * modules/javaexec: New file.
78602         * MODULES.html.sh (Java): Add javaexec.
78603
78604 2005-01-26  Bruno Haible  <bruno@clisp.org>
78605
78606         * m4/javaexec.m4: New file, from GNU gettext.
78607
78608 2005-01-26  Bruno Haible  <bruno@clisp.org>
78609
78610         * lib/javaexec.sh.in: New file, from GNU gettext.
78611         * lib/javaexec.h: New file, from GNU gettext.
78612         * lib/javaexec.c: New file, from GNU gettext.
78613
78614 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78615
78616         * modules/lchown (Depends-on): Remove lchown.h
78617
78618 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78619
78620         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78621         must be defined if the header file was not found, in order
78622         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78623
78624 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78625
78626         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78627         initializers for struct pentry_state.
78628         (__argp_error): Check return value of __asprintf
78629         (__argp_failure): Translate error message
78630
78631         * lib/argp-parse.c: Removed braces around the expansion of N_()
78632
78633 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78636         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78637         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78638         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78639         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78640         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78641         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78642         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78643         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78644         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78645         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78646         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78647         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78648         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78649         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78650         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78651         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78652         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78653         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78654         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78655         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78656         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78657         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78658         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78659         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78660         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78661         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78662         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78663         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78664         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78665         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78666         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78667         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78668         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78669         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78670         Use an all-permissive copyright notice, recommended by RMS.
78671
78672 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * modules/chdir-long (Depends-on): Remove mempcpy.
78675
78676 2005-01-21  Jim Meyering  <jim@meyering.net>
78677
78678         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78679         same value as for Solaris 9.
78680
78681         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78682         component length.  This included changing the parameter to be
78683         of type `char *' rather than `char const *'.
78684         * lib/chdir-long.h (chdir_long): Update prototype.
78685
78686         * lib/openat.c (fdopendir, fstatat): New functions.
78687         * lib/openat.h: Include headers required for use of DIR and struct
78688         stat.
78689         [AT_SYMLINK_NOFOLLOW]: Define.
78690         (fdopendir, fstatat): Add prototypes.
78691
78692 2005-01-21  Bruno Haible  <bruno@clisp.org>
78693
78694         * modules/classpath: New file.
78695         * MODULES.html.sh (Java): Add classpath.
78696
78697 2005-01-21  Bruno Haible  <bruno@clisp.org>
78698
78699         * lib/classpath.h: New file, from GNU gettext.
78700         * lib/classpath.c: New file, from GNU gettext.
78701
78702 2005-01-20  Simon Josefsson  <jas@extundo.com>
78703
78704         * modules/version-etc-fsf: New file.
78705
78706 2005-01-20  Simon Josefsson  <jas@extundo.com>
78707
78708         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78709         * lib/version-etc.c: Remove version_etc_copyright.
78710         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78711         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78712
78713 2005-01-20  Simon Josefsson  <jas@extundo.com>
78714
78715         * lib/base64.h (isbase64): Add.
78716
78717         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78718         using a unsigned prototype, don't inline.
78719         (base64_decode): Use it.
78720
78721 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78724         it.
78725
78726 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78727
78728         * lib/save-cwd.c (save_cwd): Remove code to support the case
78729         where fchdir is missing or flaky.
78730
78731 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78734
78735 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78736
78737         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78738         AC_LIBSOURCES now does this.
78739         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78740         with new ullong_max module.
78741
78742 2005-01-19  Bruno Haible  <bruno@clisp.org>
78743
78744         * modules/sh-quote: New file.
78745         * MODULES.html.sh (Executing programs): Add sh-quote.
78746
78747 2005-01-19  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/sh-quote.h: New file, from GNU gettext.
78750         * lib/sh-quote.c: New file, from GNU gettext.
78751
78752 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         Merge from coreutils.
78755         * m4/ullong_max.m4: New file.
78756         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78757         (gl_MACROS): Assume localeconv exists.
78758
78759 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         Merge changes from coreutils, as described below in several
78762         changelogs dated today.
78763
78764         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78765         (O_DIRECTORY): Remove; not needed here, since "." must be
78766         a directory.  All uses removed.
78767         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78768         universal on Suns, and we also need to test for IRIX.
78769         Revamp code to use 'if' rather than '#if'.
78770         Avoid unnecessary comparison of cwd->desc to 0.
78771
78772         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78773         for known valid error numbers rather than observed invalid ones.
78774
78775 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * modules/ullong_max: New file.
78778
78779         * modules/chdir-long, modules/openat: New files.
78780         * modules/save-cwd (Depends-on): Depend on chdir-long.
78781         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78782
78783 2005-01-18  Jim Meyering  <jim@meyering.net>
78784
78785         Merge from coreutils.
78786         * m4/chdir-long.m4, m4/openat.m4: New files.
78787         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78788         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78789         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78790         is sane and DOES follow symlinks.  Besides, testing 20 different
78791         systems found no broken chown implementations.
78792         Prompted by a change in rsync's copy of this macro.
78793         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78794
78795         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78796
78797         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78798         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78799         NULL-means-set-to-current-time semantics.
78800         Remove temporary file immediately, rather than waiting
78801         for configure's at-exit trap code to do it.
78802
78803 2005-01-18  Jim Meyering  <jim@meyering.net>
78804
78805         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78806
78807         * lib/utimens.c (futimens): Account for the fact that futimes
78808         can also fail with errno == ENOSYS or errno == ENOENT.
78809         Patch from Dmitry V. Levin.
78810
78811         Change the name of the robust chdir function from chdir to chdir_long.
78812         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78813         (restore_cwd): Use chdir_long, not chdir.
78814         * lib/chdir-long.c: Renamed from chdir.c.
78815         * lib/chdir-long.h: Renamed from chdir.h.
78816         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78817         Hurd.
78818
78819 2005-01-18  Bruno Haible  <bruno@clisp.org>
78820
78821         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78822         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78823         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78824         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78825         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78826         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78827         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78828         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78829         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78830         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78831         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78832         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78833         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78834         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78835         Use an all-permissive copyright notice, recommended by RMS.
78836
78837 2005-01-18  Bob Proulx  <bob@proulx.com>
78838
78839         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78840         simplify offsetof() macro construct to avoid compile failure with
78841         native HP-UX 11.0 ANSI C compiler.
78842
78843 2005-01-17  Bruno Haible  <bruno@clisp.org>
78844
78845         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78846         redundant because stpncpy.m4 takes care of it.
78847
78848 2005-01-17  Bruno Haible  <bruno@clisp.org>
78849
78850         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78851
78852 2005-01-17  Bruno Haible  <bruno@clisp.org>
78853
78854         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78855         used.
78856
78857 2005-01-17  Bruno Haible  <bruno@clisp.org>
78858
78859         * lib/fwriteerror.h (fwriteerror): Change specification to include
78860         fclose.
78861         * lib/fwriteerror.c: Include <stdbool.h>.
78862         (fwriteerror): At the end, close the file stream. Record whether
78863         stdout was already closed.
78864
78865 2005-01-17  Bruno Haible  <bruno@clisp.org>
78866
78867         * lib/execute.c (environ): Declare if needed.
78868         * lib/pipe.c (environ): Likewise.
78869         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78870
78871 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78872
78873         * modules/argp: Depend on vsnprintf
78874
78875 2005-01-10  Jim Meyering  <jim@meyering.net>
78876
78877         * modules/closeout (Depends-on): Add atexit.
78878
78879 2005-01-06  Bruno Haible  <bruno@clisp.org>
78880
78881         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78882
78883 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78886         definitions to be after all include files, to avoid collisions.
78887         Problem reported by Bob Proulx.
78888
78889 2005-01-04  Jim Meyering  <jim@meyering.net>
78890
78891         Changes imported from coreutils.
78892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78893         as the mkstemp template, use a temporary directory and an
78894         8.3-friendly template to avoid trouble on systems like DJGPP.
78895         Reported by Juan M. Guerrero via Stepan Kasal.
78896         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78897         close. Remove the temporary directory right away, rather than waiting
78898         for configure's at-exit trap code to do it.
78899         Suggestion from Stepan Kasal.
78900
78901 2005-01-01  Simon Josefsson  <jas@extundo.com>
78902
78903         * gnulib-tool: Print #include directives when --import'ing.
78904
78905 2004-12-28  Simon Josefsson  <jas@extundo.com>
78906
78907         * tests/test-base64.c: Include required header files.  Remove
78908         unused variables.
78909
78910 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * modules/error (Depends-on): Remove gettext.
78913
78914 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78917         not needed.  This removes a dependency on the gettext module.
78918         [defined _LIBC]: Do not include <libintl.h>; not needed.
78919
78920 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78923         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78924
78925 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78928         HAVE_DECL_STRTOLD.
78929
78930 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * modules/getdate (Depends-on): Remove alloca-opt.
78933
78934 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78937
78938 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * lib/argp-parse.c: Include <stddef.h>.
78941         (alignof, alignto): New macros.
78942         (parser_init): Don't assume that void * is aligned sufficiently
78943         for struct option.
78944
78945         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78946         need to extend the stack.
78947         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78948         large.
78949
78950 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78951
78952         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78953
78954 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78955
78956         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78957         (2004-10-24) change.  Apparently this was a false alarm.
78958
78959         * modules/getdate: Depend on alloca-opt, not alloca.
78960
78961 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78962
78963         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78964         Remove now-obsolete comment about AIX.
78965         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78966         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78967         (YYMAXDEPTH): New macro.
78968
78969 2004-12-18  Simon Josefsson  <jas@extundo.com>
78970
78971         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78972
78973 2004-12-18  Bruno Haible  <bruno@clisp.org>
78974
78975         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78976
78977 2004-12-18  Bruno Haible  <bruno@clisp.org>
78978
78979         * lib/fatal-signal.c (fatal_signals): Make non-const.
78980         (init_fatal_signals): New function.
78981         (uninstall_handlers, install_handlers): Ignore signals that were set to
78982         SIG_IGN.
78983         (at_fatal_signal): Call init_fatal_signals.
78984         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78985         SIG_IGN.
78986         Reported by Paul Eggert.
78987
78988 2004-12-18  Bruno Haible  <bruno@clisp.org>
78989
78990         * doc/alloca.texi: New file.
78991         * doc/alloca-opt.texi: New file.
78992
78993 2004-12-17  Jim Meyering  <jim@meyering.net>
78994
78995         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78996         Otherwise, install-sh could exit with improper exit status when
78997         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78998
78999 2004-12-16  Simon Josefsson  <jas@extundo.com>
79000
79001         * tests/test-base64.c: Add license.
79002
79003 2004-12-15  Stepan Kasal  <address@hidden>
79004
79005         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79006
79007 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * modules/getcwd (Files): Add m4/d-ino.m4.
79010         Suggested by Mark D. Baushke.
79011
79012 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * lib/getdate.y (textint): New member "negative".
79015         (time_zone_hhmm): New function.
79016         Expect 14 shift-reduce conflicts, not 13.
79017         (o_colon_minutes): New rule.
79018         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79019         (yylex): Set the "negative" member of signed numbers.
79020
79021 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * doc/getdate.texi (Time of day items, Time zone items):
79024         Describe new formats +00:00, UTC+00:00.
79025
79026 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79029         spurious "-l"s.  Problem reported by Stepan Kasal.
79030
79031 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79034         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79035
79036 2004-12-04  Simon Josefsson  <jas@extundo.com>
79037
79038         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79039         Vandoorselaere <yoann@prelude-ids.org>.
79040
79041 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         Changes imported from coreutils.
79044         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79045         exist.
79046         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79047
79048 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         Changes imported from coreutils.
79051         * lib/hard-locale.c: Assume <locale.h> exists.
79052         Include "strdup.h".
79053         (GLIBC_VERSION): New macro.
79054         (hard_locale): Assume setlocale exists.
79055         Rewrite to avoid #ifdef.
79056         Use strdup rather than malloc + strcpy.
79057         * lib/human.c: Assume <locale.h> exists.
79058         (human_readable): Assume localeconv exists.
79059
79060 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         * modules/hard-locale (Depends-on): Add strdup.
79063
79064 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79065
79066         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79067         convert T2, not T.  (Imported from libc.)
79068
79069 2004-11-30  Simon Josefsson  <jas@extundo.com>
79070
79071         * modules/restrict (License): Change to LGPL.
79072
79073 2004-11-30  Simon Josefsson  <jas@extundo.com>
79074
79075         * m4/restrict.m4: Add copyright and copying conditions.
79076
79077 2004-11-30  Simon Josefsson  <jas@extundo.com>
79078
79079         * m4/base64.m4: New file.
79080
79081 2004-11-30  Simon Josefsson  <jas@extundo.com>
79082
79083         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79084         base64.
79085
79086         * tests/test-base64.c: New file.
79087
79088         * modules/base64: New file.
79089
79090 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79093         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79094
79095         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79096
79097 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79098
79099         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79100         (__getcwd.c): Don't restore errno; glibc doesn't.
79101         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79102         first, falling back to our code only if its results look suspicious.
79103         Ensure that the resulting buffer is only as large as necessary.
79104
79105         * lib/readutmp.c: Include readutmp.h first.
79106         Include <errno.h>, since readutmp.h no longer does that.
79107         * lib/readutmp.h: Don't include <errno.h>,
79108         <sys/param.h>, <time.h>; not needed to establish interface.
79109         (errno): Remove decl.
79110         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79111         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79112         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79113
79114 2004-11-28  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/base64.h, base64.c: New file.
79117
79118 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79121
79122 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79125         (Depends-on): Remove pathmax, same.  Add mempcpy.
79126         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79127         (Makefile.am): Append getcwd.h to lib_SOURCES.
79128         (Include): Add getcwd.h.
79129         (Maintainer): Change from Jim Meyering to "all, glibc",
79130         since getdate now uses intended-for-glibc code.
79131         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79132         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79133
79134 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79137         HP's ANSI C compiler.
79138         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79139         Declaring int functions causes warnings on some modern systems and
79140         shouldn't be needed to compile on ancient ones.
79141         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79142         defined.
79143
79144         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79145         with the following changes.
79146         (__set_errno): Parenthesize properly.
79147         Include <stdbool.h>.
79148         (MIN, MAX, MATCHING_INO): New macros.
79149         (__getcwd): Define with prototype, not K&R form.
79150         Use heuristics to allocate default buffer on stack if possible.
79151         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79152         behavior, and to avoid the PATH_MAX limit when computing
79153         ../../../../...
79154         Use MATCHING_INO to compare inode number to file.
79155         Check for arithmetic overflow in size calculations.
79156         Fix bug in reallocation of dot array that caused getcwd to fail
79157         on directories nested deeper than 75.
79158         Be more careful about saving errno on error.
79159         Do not use realloc; use only free+malloc, as this is a bit
79160         more flexible and avoids a needless copy operation.
79161         Do not inspect st_dev and st_ino for symbolic links; POSIX
79162         doesn't specify the latter.
79163         Check for closedir errors.
79164         Avoid needless casts.
79165         Use "#ifdef weak_alias" around weak_alias, to be like other
79166         glibc code.
79167         The following changes to getcwd.c have effect only when used in
79168         gnulib; they have no effect inside glibc proper.
79169         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79170         as alloca isn't used.
79171         (alloca, __alloca): Likewise.
79172         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79173         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79174         unconditionally, as gnulib assumes C89 or better.
79175         Do not include <sys/param.h>.
79176         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79177         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79178         better.
79179         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79180         Include <dirent.h> in a way that is compatible with modern Autoconf.
79181         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79182         New macros, if not already defined.
79183         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79184         Use "_LIBC", not "defined _LIBC", for consistency.
79185         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79186         a mempcpy module.
79187         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79188         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79189         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79190         credit only to Jim Meyering and adjust the copyright dates.
79191         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79192         <stdlib.h>, <unistd.h>, "pathmax.h".
79193         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79194         (INITIAL_BUFFER_SIZE): Remove.
79195         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79196
79197 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79200         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79201         Use the _ONCE methods, for efficiency.
79202         Check for fcntl.h.  In test program, include <errno.h>
79203         and <fcntl.h> if available.  Remove old K&R cruft from
79204         test program.  Check for common errors in GNU/Linux,
79205         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79206         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79207         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79208         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79209         name accordingly.
79210         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79211         accommodate new getcwd.c.
79212         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79213         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79214         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79215         that's all we need now.
79216
79217 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79218
79219         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79220         argp-parse.c depends on getopt internals, that means we should
79221         always use our getopt, to be on the safe side.
79222         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79223         order not to spoil the result of an eventual previous invocation
79224         of gl_GETOPT_SUBSTITUTE.
79225
79226 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79227
79228         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79229         redefinition warnings. To avoid them, include the defines
79230         in `#if !defined __need_getopt ... #endif'. The only place
79231         where __getopt_argv_const is used is in definitions
79232         of getopt_long and getopt_long_only below, which are as well
79233         protected by `#ifndef __need_getopt'.
79234         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79235         __need_getopt after including <stdio.h> and <unistd.h> These
79236         headers might have defined it.
79237
79238 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79241
79242 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79245         (futimens): New function, which uses futimes if available.
79246         (futimens, utimens): Support timespec==NULL, with same semantics
79247         as utime and utimens.
79248         * lib/utimens.h (futimens): New decl.
79249
79250 2004-11-23  Jim Meyering  <jim@meyering.net>
79251
79252         * lib/getopt_.h: Remove trailing blanks.
79253
79254 2004-11-23  Jim Meyering  <jim@meyering.net>
79255
79256         * lib/__fpending.c: Add comment.
79257
79258 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * modules/canonicalize (Depends-on): Add xreadlink.
79261         Problem reported by James Youngman.
79262
79263 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79266         New macros.
79267         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79268         optopt): Use them instead of invoking ## directly; otherwise, the
79269         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79270
79271 2004-11-19  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/strtok_r.c: Move comments from here...
79274         * lib/strtok_r.h: ... to here.
79275
79276 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79279         implementations that mishandle size_t overflow.
79280
79281 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79284         might fail.  Problem reported by Yoann Vandoorselaere.
79285         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79286         implementations that mishandle size_t overflow.
79287
79288 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * modules/canon-host (Depends-on): Add strdup.
79291
79292 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79295
79296 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * lib/canon-host.c: Include "strdup.h".
79299         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79300         Use strdup instead of malloc/strcpy to duplicate strings.
79301
79302         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79303         (human_space_before_unit): New constant.
79304         * lib/human.c (human_readable): Support it.
79305
79306         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79307         (xgetcwd): Set errno correctly when failing.
79308         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79309         the failure is actually due to a PATH_MAX problem.
79310
79311         Further getopt changes to make it more likely that glibc will
79312         buy the changes back.
79313         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79314         (getopt): Use it, so to preserve glibc semantic
79315         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79316         when compiling for libc.
79317         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79318         (getopt_long, getopt_long_only): Use it.
79319
79320         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79321         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79322         (getopt): Argv is now char * const *, as per standard.
79323         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79324         not char *__getopt_argv_const *.
79325         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79326         _getopt_long_only_r): Likewise.
79327         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79328         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79329         _getopt_long_r, _getopt_long_only_r): Likewise.
79330         * lib/getopt_.h (__getopt_argv_const): Remove.
79331         (getopt): Argv is now char * const *, as per standard.
79332
79333         * lib/getdate.y (tORDINAL): New token.
79334         (day, relunit): Allow it for relative times.
79335         (relative_time_table): Use tORDINAL for ordinals.
79336
79337 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79340         Document that "second" isn't allowed as an ordinal number.
79341
79342 2004-11-16  Jim Meyering  <jim@meyering.net>
79343
79344         * modules/closeout (Depends-on): Add fpending.
79345
79346 2004-11-15  Jim Meyering  <jim@meyering.net>
79347
79348         * lib/closeout.c: Include "__fpending.h" once again.
79349         Include <stdbool.h>.
79350         (close_stdout): Don't fail just because stdout was closed initially,
79351         since some programs don't write to stdout in the normal course of
79352         operation (other than --version and --help), and we don't want this
79353         function to make e.g. `touch file >&-' fail.
79354         But do fail if it was closed and someone has tried to write to it.
79355         E.g., `printf foo >&-' must fail.
79356
79357 2004-11-13  Jim Meyering  <jim@meyering.net>
79358
79359         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79360
79361 2004-11-12  Simon Josefsson  <jas@extundo.com>
79362
79363         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79364         small doc fix is still pending.
79365
79366 2004-11-11  Simon Josefsson  <jas@extundo.com>
79367
79368         * modules/strtok_r: New file.
79369
79370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79371         strtok_r.
79372
79373 2004-11-11  Simon Josefsson  <jas@extundo.com>
79374
79375         * m4/strtok_r.m4: New file.
79376
79377         * m4/getopt.m4: Replace opterr.
79378
79379 2004-11-11  Simon Josefsson  <jas@extundo.com>
79380
79381         * lib/strtok_r.h, strtok_r.c: New file.
79382
79383 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79384
79385         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79386         of replacing opterr, getopt, etc.  This should handle the
79387         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79388
79389 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79392         we can stop lying to compilers about the constness of argv when we
79393         are compiled outside glibc.
79394         (getopt, getopt_long, getopt_long_only): Use it.
79395         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79396         _getopt_internal, getopt): Likewise.
79397         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79398         _getopt_long_only_r): Likewise.
79399         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79400         _getopt_long_r, _getopt_long_only_r): Likewise.
79401
79402         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79403         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79404         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79405         the other external symbols.
79406         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79407         declaration, since the above renaming now works around collisions.
79408
79409 2004-11-11  Jim Meyering  <jim@meyering.net>
79410
79411         * lib/linebreak.c: Remove trailing blanks.
79412         * lib/alloca_.h: Likewise.
79413         * lib/acosl.c: Likewise.
79414         * lib/euidaccess.c: Likewise.
79415         * lib/allocsa.h: Likewise.
79416
79417 2004-11-10  Simon Josefsson  <jas@extundo.com>
79418
79419         * m4/getaddrinfo.m4: New file.
79420
79421 2004-11-10  Simon Josefsson  <jas@extundo.com>
79422
79423         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79424
79425 2004-11-10  Simon Josefsson  <jas@extundo.com>
79426
79427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79428         getaddrinfo.
79429
79430         * modules/getaddrinfo: New file.
79431
79432 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79435
79436 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79437
79438         * lib/mktime.c (SHR): New macro, which is a portable
79439         substitute for >> that should work even on Crays.
79440         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79441         Problem reported by Mark D. Baushke in
79442         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79443         * lib/getdate.y (SHR): Likewise.
79444         (tm_diff): Use it.
79445         * lib/strftime.c (SHR): Likewise.
79446         (tm_diff): Use it.
79447         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79448         quote_these_too, so that right shifts are well defined.  All uses
79449         changed.
79450
79451 2004-11-10  Jim Meyering  <jim@meyering.net>
79452
79453         Ensure that no close failure goes unreported.
79454         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79455         return early when it seems there's nothing to flush.
79456         Don't include __fpending.h.
79457
79458 2004-11-10  Jim Meyering  <jim@meyering.net>
79459
79460         * modules/closeout (Depends-on): Remove fpending.
79461
79462 2004-11-10  Jim Meyering  <jim@meyering.net>
79463
79464         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79465
79466 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79469         gl_FUNC_STRFTIME.
79470         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79471         and AC_REQUIRE when possible, to avoid duplicate checks.
79472         Check for <wchar.h>.
79473
79474 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79477
79478 2004-11-09  Bruno Haible  <bruno@clisp.org>
79479
79480         * m4/sockpfaf.m4: New file.
79481
79482 2004-11-05  Bruno Haible  <bruno@clisp.org>
79483
79484         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79485         Reported by Mark D. Baushke <mdb@cvshome.org>.
79486
79487 2004-11-04  Bruno Haible  <bruno@clisp.org>
79488
79489         2004-09-11  Bruno Haible  <bruno@clisp.org>
79490                 * allocsa.valgrind: New file.
79491         2004-02-06  Bruno Haible  <bruno@clisp.org>
79492                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79493                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79494                 Reported by Christopher Seip <chris.seip@hp.com>.
79495
79496 2004-11-04  Bruno Haible  <bruno@clisp.org>
79497
79498         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79499         (Makefile.am): Distribute it.
79500
79501 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79504         with errno == ERANGE if the buffer is too small.
79505         Problem reported by Mark D. Baushke.
79506
79507 2004-11-03  Albert Chin  <china@thewrittenword.com>
79508             Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79511         equivalent, substitute $ac_type for equivalent type rather than
79512         blindly using uint32_t *always* which won't work if uint32_t is not
79513         available.  Define _UINT32_T to work around typedef of uint32_t if
79514         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79515         2.5.1.
79516
79517 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/jm-macros.m4: Sync from coreutils.
79520         (gl_MACROS): Check for mbrlen, for pathchk.
79521         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79522
79523 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * lib/xreadlink.c (MAXSIZE): New macro.
79526         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79527         size does not exceed MAXSIZE.  Avoid cast.
79528         As suggested by Mark D. Baushke in
79529         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79530         if readlink fails with buffer size just under MAXSIZE, try again
79531         with MAXSIZE.
79532
79533 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79536
79537 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79538         and  Paul Eggert  <eggert@cs.ucla.edu>
79539
79540         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79541         (get_date): Overparenthesize to avoid GCC warning.
79542
79543 2004-11-02  Bruno Haible  <bruno@clisp.org>
79544
79545         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79546         returns void.
79547
79548 2004-11-02  Bruno Haible  <bruno@clisp.org>
79549
79550         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79551         function returns void.
79552
79553 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79556         fflush_unlocked, flockfile, funlockfile, funlockfile,
79557         fputs_unlocked, putc_unlocked.
79558
79559 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79562         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79563         already declared.
79564
79565 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * modules/getdate (Files): Add doc/getdate.texi.
79568         (Depends-on): Add setenv, xalloc.
79569
79570 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * lib/getdate.y: Add support for TZ="foo" within a date string.
79573         Fix some bugs near time_t boundaries.  Reject dates with
79574         out-of-range components, e.g., "Sept 31".
79575         Include <stdlib.h>, "setenv.h", "xalloc.h".
79576         (ISDIGIT_LOCALE): Remove; unused.
79577         Note that the TZ and time functions used here are not reentrant.
79578         (mktime_ok, get_tz): New functions.
79579         (TZBUFSIZE): New constant.
79580         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79581         This requires that we sometimes generate our own TZ="XXX..." setting.
79582
79583 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * doc/getdate.texi: New file, from coreutils with modifications for
79586         the new TZ parsing.
79587
79588 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79589
79590         * lib/mktime.c (not_equal_tm): Remove redundant check.
79591
79592 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         * modules/regex (lib_SOURCES): Add regex.c.
79595         Reported by James Youngman in
79596         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79597
79598 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         * lib/getdate.y: Use Bison 1.875 features, and some minor
79601         code cleanups.  This change does not affect semantics.
79602         Don't include <stdlib.h>; no longer needed.
79603         Don't include unlocked-io.h; only the "#if TEST" code uses
79604         stdio, and performance isn't crucial there.
79605         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79606         Bison 1.875 features as described below.
79607         All uses of "PC." replaced by "pc->".
79608         (YYSTYPE): Add a forward declaration.
79609         (yylex, yyerror): Use full prototypes in forward decls.
79610         Use "%pure-parser" rather than obsolescent "%pure_parser".
79611         Use %parse-param and %lex-param instead of obsolescent
79612         YYPARSE_PARAM and YYLEX_PARAM.
79613         (meridian_table, month_and_day_table, time_units_table,
79614         relative_time_table, time_zone_table, military_table,
79615         lookup_zone, lookup_word, get_date):
79616         Use NULL instead of 0 where appropriate.
79617         (to_hour): Avoid abort (), to avoid a dependency on
79618         stdlib.h.
79619         (yyerror, yylex): Now accepts parser_control * arg.
79620         (main) [TEST]: Use '\0' rather than 0 for char.
79621
79622 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79623
79624         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79625
79626 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79629         It's now the caller's responsibility to handle the case where
79630         !HAVE_GETPAGESIZE && !defined getpagesize.
79631
79632         * lib/mktime.c (leapyear): Arg is long int, not int.
79633
79634 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79637
79638 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79641         missing.  Problem reported by James Youngman.
79642
79643 2004-10-16  Simon Josefsson  <jas@extundo.com>
79644
79645         * gnulib-tool: Fix comments.  Fix parse problem.
79646         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79647
79648 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79651         implementation of getopt_long.  Problem reported by Alexander Taler in:
79652         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79653
79654 2004-10-15  Bruno Haible  <bruno@clisp.org>
79655
79656         * gnulib-tool: Untabify. Initialize supplied_libname.
79657         (func_usage): More homogenous output.
79658         (func_modules_transitive_closure, func_modules_to_filelist,
79659         func_emit_lib_Makefile_am): New functions.
79660         (func_import): New function, extracted from big case statement. Use
79661         func_get_license, func_modules_transitive_closure,
79662         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79663         opt_lgpl. Don't use test -a, as it's not portable.
79664         (func_create_testdir): Use func_modules_transitive_closure,
79665         func_modules_to_filelist, func_emit_lib_Makefile_am.
79666
79667 2004-10-15  Bruno Haible  <bruno@clisp.org>
79668
79669         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79670
79671 2004-10-15  Bruno Haible  <bruno@clisp.org>
79672
79673         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79674         the portions belonging to each module.
79675         Suggested by Derek Robert Price <derek@ximbiot.com>.
79676
79677 2004-10-12  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79680         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79681         to real functions.
79682
79683 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79684
79685         * modules/vsnprintf: New file.
79686
79687 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79688
79689         * m4/vsnprintf.m4: New file.
79690
79691 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79692
79693         * lib/vsnprintf.h: New file.
79694         * lib/vsnprintf.c: New file.
79695
79696 2004-10-11  Bruno Haible  <bruno@clisp.org>
79697
79698         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79699         vsnprintf.
79700
79701 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79704
79705 2004-10-07  Bruno Haible  <bruno@clisp.org>
79706
79707         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79708         fits into the provided buffer.
79709
79710 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * lib/diacrit.c, diacrit.h: Add GPL notice.
79713
79714         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79715         notice.
79716         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79717         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79718         This avoids a potential constant-folding bug.
79719
79720 2004-10-05  Bruno Haible  <bruno@clisp.org>
79721
79722         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79723         for the declaration of strsep.
79724
79725 2004-10-05  Bruno Haible  <bruno@clisp.org>
79726
79727         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79728
79729 2004-10-04  Simon Josefsson  <jas@extundo.com>
79730
79731         * modules/memmem: New file.
79732         * tests/test-memmem.c: New file.
79733         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79734
79735 2004-10-04  Simon Josefsson  <jas@extundo.com>
79736
79737         * m4/memmem.m4: New file.
79738
79739 2004-10-04  Simon Josefsson  <jas@extundo.com>
79740
79741         * lib/memmem.h: New file.
79742         * lib/memmem.c: New file, taken from glibc.
79743
79744 2004-10-04  Simon Josefsson  <jas@extundo.com>
79745
79746         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79747         '#ifdef USE_UNLOCKED_IO'.
79748
79749 2004-10-04  Simon Josefsson  <jas@extundo.com>
79750
79751         * config/srclist.txt: Add memmem from glibc.
79752
79753 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79756
79757         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79758         modules/exclude, modules/getdate, modules/getline,
79759         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79760         modules/getusershell, modules/linebuffer, modules/md5,
79761         modules/mountlist, modules/posixtm, modules/readtokens,
79762         modules/readutmp, modules/regex, modules/sha1,
79763         modules/version-etc, modules/yesno:
79764         Remove dependency on unlocked-io.
79765
79766 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79769
79770         * m4/unlocked-io.m4: Add copyright notice.
79771         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79772
79773 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79776         * lib/xmalloc.c (xmemdup): Likewise.
79777         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79778         XFREE): Remove these long-obsolescent macros.
79779         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79780         * lib/xstrdup.c: Remove.
79781
79782         * lib/regex.c (re_comp): Cast gettext return value to char *,
79783         Problem reported by Martin Neitzel via Mark D. Baushke.
79784
79785 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79788         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79789         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79790         regex.c, sha1.c, version-etc.c, yesno.c:
79791         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79792         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79793         the includer's responsibility.
79794
79795         Sync from coreutils.
79796
79797         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79798         points to the start of a string, as the C Standard says the
79799         resulting behavior is undefined.
79800
79801         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79802         simple -> simple_backups, numbered_existing ->
79803         numbered_existing_backups, numbered -> numbered_backups
79804         to avoid shadowing problems.  All uses changed.
79805         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79806         * lib/backupfile.c (check_extension, numbered_backup):
79807         Rename locals to avoid shadowing 'basename'.
79808         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79809         once.
79810
79811         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79812         * lib/.cvsignore: Add getopt.h.
79813
79814 2004-10-04  Bruno Haible  <bruno@clisp.org>
79815
79816         * modules/README: New file.
79817         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79818         not a module.
79819
79820 2004-10-02  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79823
79824 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79825
79826         * modules/strsep: New file.
79827
79828 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79829
79830         * m4/strsep.m4: New file.
79831
79832 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79833
79834         * lib/strsep.h: New file.
79835         * lib/strsep.c: New file.
79836
79837 2004-10-01  Simon Josefsson  <jas@extundo.com>
79838
79839         * lib/snprintf.c (snprintf): Handle size==0.
79840
79841 2004-10-01  Simon Josefsson  <jas@extundo.com>
79842             Bruno Haible  <bruno@clisp.org>
79843
79844         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79845         (snprintf): Declare 'args'.
79846
79847 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * lib/snprintf.c: Remove comments as to why each header is needed.
79850
79851 2004-10-01  Bruno Haible  <bruno@clisp.org>
79852
79853         * MODULES.html.sh: Add strsep.
79854
79855 2004-09-30  Simon Josefsson  <jas@extundo.com>
79856
79857         * modules/snprintf: New file.
79858
79859 2004-09-30  Simon Josefsson  <jas@extundo.com>
79860
79861         * m4/snprintf.m4: New file.
79862
79863 2004-09-30  Simon Josefsson  <jas@extundo.com>
79864
79865         * lib/snprintf.h, lib/snprintf.c: New files.
79866
79867 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79868
79869         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79870         (hol_entry_help): Never translate an empty string.
79871         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79872         * lib/argp.h (OPTION_NO_TRANS): New option.
79873
79874 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * modules/argp (Maintainer): Replace Simon Josefsson
79877         by Sergey Poznyakoff.
79878
79879 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79882         changes merged back into glibc.
79883
79884 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79887
79888 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79889
79890         * lib/xvasprintf.c: Include xalloc.h.
79891         (xvasprintf): Use xalloc_die, not xmalloc_die.
79892
79893 2004-09-29  Bruno Haible  <bruno@clisp.org>
79894
79895         * modules/alloca-opt: New file, derived from modules/alloca.
79896         * modules/allocsa: Depend on alloca-opt instead of alloca.
79897         * modules/setenv: Likewise.
79898         * modules/vasnprintf: Likewise.
79899         * MODULES.html.sh: Add alloca-opt.
79900
79901 2004-09-28  Simon Josefsson  <jas@extundo.com>
79902
79903         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79904         LGPL, and to replace license template from GPL to LGPL.
79905
79906 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * modules/dummy: Change license to LGPL.
79909
79910 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79913
79914 2004-09-24  Simon Josefsson  <jas@extundo.com>
79915
79916         * modules/minmax (License): Change from GPL to LGPL.
79917
79918 2004-09-23  Simon Josefsson  <jas@extundo.com>
79919
79920         * gnulib-tool (--import): Typo.
79921
79922 2004-09-23  Simon Josefsson  <jas@extundo.com>
79923
79924         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79925
79926 2004-09-22  Bruno Haible  <bruno@clisp.org>
79927
79928         * modules/*: Add 'License' field.
79929         * gnulib-tool: Accept --extract-license option.
79930         (func_get_license): New function.
79931
79932 2004-09-21  Bruno Haible  <bruno@clisp.org>
79933
79934         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79935         Reported by Simon Josefsson.
79936
79937 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79940         gl_AC_TYPE_LONG_LONG.
79941
79942 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79945
79946 2004-09-18  Simon Josefsson  <jas@extundo.com>
79947         and  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79950         calls with autoreconf.  Define GL_LIB.
79951
79952 2004-09-14  Karl Berry  <karl@gnu.org>
79953
79954         * config/srclist.txt: unsync setenv.c, sigh.
79955
79956 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79959         Problem reported by Bruno Haible in:
79960         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79961
79962 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * config/srclist.txt: Comment out argp-pvh.c.
79965
79966 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79967
79968         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79969         in case some system header has #define'd it.  Problem reported by
79970         Soeren D. Schulze in
79971         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79972
79973 2004-09-09  Karl Berry  <karl@gnu.org>
79974
79975         * regex.[ch]: delete from the root.  These were supposed to be
79976                 synced with emacs cvs, but this has not happened for about
79977                 a year, and anyway nothing else uses emacs regex.[ch].
79978                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79979                 lib/regex[.ch] is untouched.
79980
79981 2004-09-09  Bruno Haible  <bruno@clisp.org>
79982
79983         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79984
79985 2004-09-09  Bruno Haible  <bruno@clisp.org>
79986
79987         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79988         modifications.
79989         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79990
79991 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79992
79993         * modules/xvasprintf: New file.
79994         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79995
79996 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79997
79998         * lib/xvasprintf.h: New file.
79999         * lib/xvasprintf.c: New file.
80000         * lib/xasprintf.c: New file.
80001
80002 2004-09-08  Bruno Haible  <bruno@clisp.org>
80003
80004         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80005
80006 2004-09-08  Bruno Haible  <bruno@clisp.org>
80007
80008         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80009         length is > INT_MAX.
80010         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80011         more.
80012
80013 2004-09-08  Bruno Haible  <bruno@clisp.org>
80014
80015         * lib/stdint_.h: New file, taken from GNU clisp.
80016
80017 2004-09-08  Bruno Haible  <bruno@clisp.org>
80018             Oskar Liljeblad  <oskar@osk.mine.nu>
80019
80020         * modules/stdint: New file.
80021         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80022
80023 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         Import from coreutils.
80026         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80027         strings on unbounded length.  alloca's performance benefits aren't
80028         that important here.
80029         (V_STRDUP): Remove.
80030         (parse_with_separator): New function, with most of the internals
80031         of the old parse_user_spec.  Allow user to omit both user and group,
80032         for compatibility with FreeBSD.
80033         Clone only the user name, not the entire spec.
80034         Do not set *uid, *gid unless entirely successful.
80035         Avoid memory leak in some failing cases.
80036         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80037         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80038         (parse_user_spec): Rewrite to use parse_with_separator.
80039
80040 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * modules/userspec: Don't depend on alloca.
80043
80044 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80047
80048 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80051         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80052         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80053
80054 2004-08-16  Simon Josefsson  <jas@extundo.com>
80055
80056         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80057         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80058         Add --dry-run for --import.
80059         Let user provided command line parameters override configure.ac
80060         settings.
80061
80062 2004-08-12  Simon Josefsson  <jas@extundo.com>
80063
80064         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80065         as discussed with Paul Eggert in threads rooted at
80066         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80067         and
80068         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80069         Before, the test was empty, and relied on ELIDE_CODE in source
80070         code.)
80071         (gl_PREREQ_GETOPT): New macro.
80072         (gl_GETOPT): Use them.
80073
80074 2004-08-12  Simon Josefsson  <jas@extundo.com>
80075
80076         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80077         * lib/getopt_.h: Renamed from getopt.h.
80078
80079 2004-08-12  Simon Josefsson  <jas@extundo.com>
80080
80081         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80082         Change default library name from libfoo to libgnu.
80083         Now, if you have a configure.ac that says:
80084                 gl_SOURCE_BASE(gl)
80085                 gl_M4_BASE(gl/m4)
80086                 gl_MODULES(error getopt etcetera)
80087                 gl_INIT
80088         you can import all you need by running:
80089                 ../gnulib/gnulib-tool --import
80090
80091         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80092         (Makefile.am): Rewrite, use logic from argz.
80093         (Include): Use <getopt.h> instead of "getopt.h".
80094
80095 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * modules/argp (Files): Add m4/unlocked-io.m4.
80098         (Depends-on): Add extensions.
80099
80100 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80103         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80104         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80105         Check for program_invocation_name, program_invocation_short_name,
80106         flockfile, funlockfile, features.h, _getopt_long_only_r.
80107
80108 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80109
80110         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80111         its complicated substitute.
80112         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80113         and program_invocation_name.
80114         (__argp_basename) [!_LIBC]: Remove; the only use was
80115         replaced by its body.
80116         (__argp_short_program_name): Change condition from
80117         !defined __argp_short_program_name to
80118         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80119         to match argp-namefrob.h.
80120         (__argp_failure): Don't assume strerror_r returns char *.
80121         * lib/argp-parse.c (N_): Define unconditionally.
80122         (argp_default_options): Fill out initializers with 0 to avoid
80123         gcc warnings.
80124
80125 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80128         getopt1.c.
80129
80130 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         Merge from coreutils.
80133
80134         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80135
80136         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80137         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80138
80139 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         Merge from coreutils.
80142
80143         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80144         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80145         for Reliant Unix 5.43.
80146
80147         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80148         (union fooround): Use uintmax_t, not long int.
80149         The rest is a merge from libc:
80150         [defined _LIBC]: Include <shlib-compat.h>.
80151         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80152
80153         * lib/settime.c (settime): Recode to avoid warning with
80154         Sun Forte C 6U2.
80155
80156         * lib/strverscmp.c: Convert to UTF-8.
80157
80158 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80159
80160         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80161         m4/uintmax_t.m4.
80162
80163 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * modules/xalloc-die: New file.
80166         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80167
80168         * modules/md5 (Files): Add m4/uint32_t.m4.
80169         * modules/sha1: Renamed from modules/sha.
80170         (Files):
80171         Rename lib/sha.h to lib/sha1.h.
80172         Rename lib/sha.c to lib/sha1.c.
80173         Rename m4/sha.m4 to m4/sha1.m4.
80174         (lib_SOURCES): Likewise.
80175         (configure.ac): Rename gl_SHA to gl_SHA1.
80176         (Include): sha.h -> sha1.h.
80177
80178 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80181         * m4/sha1.m4: Renamed from sha.m4.
80182         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80183
80184 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * lib/obstack.h (obstack_empty_p):
80187         Don't assume that chunk->contents is suitably aligned.
80188         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80189         Likewise. Problem reported by Benno in
80190         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80191
80192         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80193         readable.  This could be improved further but it'd take some work.
80194
80195 2004-08-08  Simon Josefsson  <jas@extundo.com>
80196
80197         * modules/xgethostname (Depends-on): Remove exit and error (not
80198         used).
80199
80200         * modules/getpass-gnu: Add getpass.h.
80201         (Depends-on): Add stdbool.
80202         * modules/getpass: Add getpass.h.
80203
80204 2004-08-08  Simon Josefsson  <jas@extundo.com>
80205
80206         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80207         Check getpass declaration.
80208
80209 2004-08-08  Simon Josefsson  <jas@extundo.com>
80210
80211         * lib/xgethostname.c: Don't include error.h (not used).
80212
80213         * lib/getpass.h: Add.
80214         * lib/getpass.c: Include getpass.h first.
80215
80216 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         * lib/xalloc-die.c: New file.
80219         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80220         All uses removed.
80221         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80222         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80223         xalloc-die.c.
80224         (_, N_, xalloc_die): Move to xalloc-die.c.
80225         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80226         so that we needn't mess with xalloc_msg_memory_exhausted.
80227
80228         * lib/sha1.h: Renamed from sha.h.
80229         (SHA1_H): Renamed from _SHA_H.
80230         (sha1_ctx): Renamed from sha_ctx.
80231         (sha1_init_ctx): Renamed from sha_init_ctx.
80232         (sha1_process_block): Renamed from sha_process_block.
80233         (sha1_process_bytes): Renamed from sha_process_bytes.
80234         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80235         (sha1_read_ctx): Renamed from sha_read_ctx.
80236         (sha1_stream): Renamed from sha_stream.
80237         (sha1_buffer): Renamed from sha_buffer.
80238         * lib/sha1.c: Likewise; renamed from sha.c.
80239         Do not include <sys/types.h>.
80240         Include <stddef.h> rather than <stdlib.h>.
80241
80242 2004-08-08  Bruno Haible  <bruno@clisp.org>
80243
80244         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80245         FILESYSTEM_PREFIX_LEN.
80246         * lib/progreloc.c: Likewise.
80247         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80248
80249 2004-08-06  Simon Josefsson  <jas@extundo.com>
80250
80251         * modules/progname (Depends-on): Don't depend on stdbool.
80252
80253 2004-08-06  Simon Josefsson  <jas@extundo.com>
80254
80255         * modules/getsubopt: New file.
80256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80257         getsubopt.
80258
80259 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         More merge from coreutils.
80262
80263         * m4/utimens.m4, m4/utimecmp.m4: New files.
80264         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80265         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80266         prereq.m4, sha.m4: Import changes from coreutils.
80267
80268 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         More merge from coreutils.
80271         * modules/raise, modules/readtokens0, modules/utimens:
80272         * modules/utimecmp, module/xnanosleep: New files.
80273         * modules/strftime: Add lib/strftime.h.
80274         Change include from <time.h> to "strftime.h".
80275         * modules/yesno: Add lib/yesno.h.
80276         * modules/backupfile: Remove lib/addext.c.
80277         * modules/euidaccess: Add stat-macros.h.
80278         * modules/canonicalize, modules/euidaccess,
80279         modules/filemode, modules/lchown, modules/makepath,
80280         modules/rmdir, modules/stat: Likewise.
80281
80282 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80283
80284         Merge from tar.
80285         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80286         SIZE_MAX is a valid preprocessor constant.
80287         (__argp_basename): Change from "#ifndef _LIBC"
80288         to "#ifndef __argp_short_program_name", so that
80289         we don't compile these functions for tar.
80290
80291         More merges from coreutils.
80292         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80293         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80294         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80295         * lib/addext.c: Remove; no longer needed.
80296         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80297         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80298         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80299         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80300         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80301         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80302         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80303         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80304         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80305         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80306         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80307         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80308         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80309         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80310         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80311         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80312         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80313         Import changes from coreutils.
80314
80315 2004-08-05  Simon Josefsson  <jas@extundo.com>
80316
80317         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80318
80319 2004-08-05  Simon Josefsson  <jas@extundo.com>
80320
80321         * m4/getsubopt.m4: New file.
80322
80323 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         Merge from coreutils.
80326
80327         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80328         * m4/getcwd-path-max.m4: New files.
80329
80330         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80331         FILESYSTEM_PREFIX_LEN ->
80332         FILE_SYSTEM_PREFIX_LEN.
80333         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80334         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80335         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80336         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80337
80338         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80339         prerequisite modules now handle the DOS stuff.
80340         Don't check for unistd.h.
80341
80342 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         Merge from coreutils.
80345
80346         * lib/.gdb-history: Remove; this doesn't belong here.
80347
80348         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80349         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80350         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80351         * lib/getcwd.c: New files.
80352
80353         * lib/dirname.h: Include <stdbool.h>.
80354         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80355         for consistency with POSIX terminology.  All uses changed.
80356         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80357         (strip_trailing_slashes): Use bool for booleans.
80358         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80359
80360         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80361         sometimes returns a positive errno value even when it succeeds.
80362         (print_errno_message) [!LIBC]: Fall back on strerror if
80363         __strerror_r fails.
80364
80365         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80366         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80367         (longest_relative_suffix): New function.
80368         (path_concat): Use it.  Assume first argument is not NULL.
80369         Port to DOS.  Omit redundant separators.
80370         Report an error instead of returning NULL.
80371         Use mempcpy instead of memcpy.
80372         (xpath_concat): Remove: not declared or used.
80373
80374         * lib/same.h: Include <stdbool.h>
80375         (same_name): Return bool, not int.
80376         * lib/same.c (same_name): Likewise.
80377         (errno): Don't declare; we assume C89 or better now.
80378
80379         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80380         if not already defined.
80381
80382         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80383         * lib/dup-safer.c (errno): Likewise.
80384
80385 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80386
80387         Merge from coreutils.
80388         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80389         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80390         * modules/path-concat: Don't depend on strdup.
80391
80392 2004-08-03  Simon Josefsson  <jas@extundo.com>
80393
80394         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80395         * lib/progname.h: Don't include stdbool.h.
80396
80397 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80400         * MODULES.html.sh (func_all_modules): Remove fatal.
80401
80402 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80403
80404         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80405
80406 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80407
80408         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80409         working.
80410
80411 2004-08-02  Simon Josefsson  <jas@extundo.com>
80412
80413         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80414         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80415         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80416
80417 2004-08-01  Simon Josefsson  <jas@extundo.com>
80418
80419         * lib/xgetdomainname.c: Include stdlib.h, for free().
80420
80421 2004-07-19  Bruno Haible  <bruno@clisp.org>
80422
80423         * MODULES.html.sh (func_all_modules): Add dummy.
80424
80425 2004-07-16  Simon Josefsson  <jas@extundo.com>
80426
80427         * modules/dummy: New file.
80428
80429 2004-07-16  Simon Josefsson  <jas@extundo.com>
80430
80431         * lib/dummy.c: New file.
80432
80433 2004-07-16  Bruno Haible  <bruno@clisp.org>
80434
80435         * lib/backupfile.h: Add extern "C" for C++.
80436         * lib/closeout.h: Likewise.
80437         * lib/copy-file.h: Likewise.
80438         * lib/findprog.h: Likewise.
80439         * lib/full-write.h: Likewise.
80440         * lib/pathname.h: Likewise.
80441         * lib/progname.h: Likewise.
80442         * lib/stpcpy.h: Likewise.
80443         * lib/stpncpy.h: Likewise.
80444         * lib/strcase.h: Likewise.
80445         * lib/strstr.h: Likewise.
80446         * lib/xalloc.h: Likewise.
80447
80448         * lib/mbswidth.h: Add extern "C" for C++.
80449         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80450
80451 2004-07-13  Robert Millan  <robertmh@gnu.org>
80452
80453         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80454
80455 2004-07-09  Simon Josefsson  <jas@extundo.com>
80456
80457         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80458         failed without this.)
80459
80460 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         * modules/chown (Files): Add lib/fchown-stub.c, since
80463         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80464
80465 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * lib/fchown-stub.c: New file.
80468
80469 2004-06-24  Jim Meyering  <jim@meyering.net>
80470
80471         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80472
80473 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80474
80475         * modules/argz: Omit "#include".
80476
80477         * MODULES.html.sh (func_all_modules): Add calloc, to match
80478         2004-06-01 addition of calloc module.
80479
80480 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         * m4/argz.m4: New file, which is autoupdated from libtool.
80483
80484 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80485
80486         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80487         libtool.
80488
80489 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80490
80491         * config/srclist-update: Don't insist on "USA." before the
80492         close-comment, as libtool omits the period and puts the */ on a
80493         separate line.
80494         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80495         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80496
80497 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80498
80499         * modules/argz: New file.
80500         * MODULES.html.sh (func_all_modules): Add argz.
80501
80502 2004-06-12  Jim Meyering  <jim@meyering.net>
80503         and  Paul Eggert  <eggert@cs.ucla.edu>
80504
80505         * modules/hash (Files): Add lib/xalloc.h.
80506         * modules/pipe (Depends-on): Add wait-process.
80507         * modules/stat (Depends-on): Add xalloc.
80508         * modules/userspec (Files): Add lib/userspec.h.
80509         * modules/xstrto
80510
80511         Upgrade from gettext-0.13.
80512         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80513         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80514         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80515
80516 2004-06-10  Jim Meyering  <jim@meyering.net>
80517
80518         * lib/calloc.c: New file.
80519
80520 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80521
80522         * lib/getdate.y (yylex): Allow space between sign and number.
80523         Problem reported by Dan Jacobson.
80524
80525 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         Merge from coreutils CVS.
80528
80529         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80530         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80531         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80532         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80533         xstrtol.m4: Fix copyright date and/or serial number.
80534
80535         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80536         See if we need an fchown replacement.
80537         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80538         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80539         and use the replacement function if we detect either defect.
80540
80541         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80542         gl_UTIMECMP.
80543
80544 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80545         and  Jim Meyering  <jim@meyering.net>
80546
80547         Merge from coreutils CVS.
80548
80549         * lib/stat-macros.h: New file, with contents from file-type.h
80550         and coreutils' system.h.
80551         * lib/file-type.c: Include "stat-macros.h".
80552         * lib/file-type.h (file_type): Move all macro definitions to new file,
80553         stat-macros.h.
80554
80555         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80556         Wrap old code with this conditional.
80557         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80558         function that does not dereference symlinks.
80559         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80560
80561         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80562         dependency problems.
80563         (xreadlink): Accept new arg SIZE, for efficiency.
80564         All decls and uses changed.
80565         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80566
80567         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80568         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80569
80570         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80571         sysexits.h.
80572
80573 2004-06-01  Jim Meyering  <jim@meyering.net>
80574
80575         * m4/calloc.m4: New file.
80576
80577 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80578
80579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80580         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80581         Also, fix a typo in a diagnostic.
80582
80583 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80584
80585         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80586         or AC_FUNC_REALLOC.
80587
80588 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80589
80590         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80591         macros to be defined.
80592         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80593         the allocator returns NULL because the requested size is zero.
80594
80595 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80598         var.  Add comment explaining why libc still defines it.  This
80599         merges the following patch from glibc:
80600         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80601
80602 2004-05-20  Andreas Schwab  <schwab@suse.de>
80603
80604         * m4/free.m4: Replace free if it not known to work, not the other
80605         way round.
80606
80607 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80610         present in glibc since revision 1.1 of this file.
80611         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80612         obstack_alignment_mask, obstack_alloc, obstack_base,
80613         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80614         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80615         obstack_grow0, obstack_init, obstack_int_grow,
80616         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80617         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80618         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80619         nonexistent functions.
80620
80621 2004-05-18  Karl Berry  <karl@gnu.org>
80622
80623         * config/srclist.txt: break link for vasnprintf.c.
80624
80625 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         Port obstack to the AS/400, where pointers are 16 bytes wide and
80628         you cannot cast an integer to a valid pointer.  This patch is
80629         currently waiting to be integrated into glibc; see
80630         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80631
80632         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80633         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80634         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80635         (struct obstack): temp member is now a union of a pointer and
80636         an integer, instead of an integer.  All integer uses changed.
80637         This does not affect the physical layout of struct obstack,
80638         except on hosts (like the AS/400) where the size or alignment of
80639         void * is greater than that of ptrdiff_t.
80640         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80641         __STDC__)]: Store temporary in pointer member of union, not
80642         integer member.
80643         * lib/obstack.c: Include <stddef.h>, for offsetof.
80644         (struct fooalign): Remove; it doesn't need a name.
80645         (union fooround): Change double to long double, and add void *.
80646         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80647         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80648         not a macro.  Hence the values are always int; so remove all
80649         casts-to-int in uses.
80650
80651 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80654         we can get this patch merged into glibc.
80655
80656 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80657             Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * m4/argp: Depend on alloca.
80660
80661 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80662             Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80665         freecoding.
80666
80667 2004-05-17  Bruno Haible  <bruno@clisp.org>
80668
80669         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80670         precision that consists of a '.' followed by an empty digit string.
80671         Patch by Tor Lillqvist <tml@iki.fi>.
80672
80673 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80674
80675         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80676         for backward compatibility with older code.  We need our own
80677         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80678         it under some other name, and our alloca.h will define it.
80679
80680 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80681             Derek Price  <derek@ximbiot.com>
80682
80683         * lib/alloca.c: Include <alloca.h>, to get our interface.
80684         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80685         include <alloca.h> first.  Use C89 prototype for alloca; this
80686         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80687         Use #elif for simplicity, since we can assume C89 now.
80688         Don't try to source the system alloca.h since it will not be found
80689         and to prevent recursively including its replacement.
80690         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80691         * lib/regex.c: Likewise.
80692
80693 2004-05-16  Derek Price  <derek@ximbiot.com>
80694             Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         getline cleanup.  This changes the getndelim2 API: both order of
80697         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80698         no delimiter).
80699
80700         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80701         interface does that.
80702         (getline): Always use getdelim, so that we don't have two
80703         copies of this code.
80704         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80705         if available.
80706         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80707         (GETNDELIM2_MAXIMUM): New macro.
80708         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80709         instead of the old practice of delim2==0.  All callers changed.
80710         Return -1 on overflow, instead of returning junk.
80711         Do not set *linesize unless allocation succeeds.
80712         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80713         that we include sys/types.h.
80714         * lib/getnline.h: Likewise.
80715         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80716         (getndelim2): Reorder arguments.
80717         * lib/getnline.c (getnline, getndelim):
80718         Don't discard the NMAX argument.
80719         (getnline): Invoke getndelim, to avoid code duplication.
80720         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80721         of (size_t) -1 by callers of the getnline family.
80722
80723 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80726         Check for gettimeofday.
80727         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80728         Check for settimeofday, stime.
80729
80730 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80731
80732         * lib/nanosleep.c (suspended): Change its type from int to
80733         sig_atomic_t volatile.
80734         (first_call): Make it private to rpl_nanosleep, and have it
80735         be zero initially as that's a bit faster.
80736         (my_usleep): Round up fractional times instead of truncating them,
80737         as this is the usual meaning for 'sleep'.
80738
80739         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80740         doesn't work.
80741         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80742         (ENOSYS): Define if not defined.
80743         (settime): Fall back on stime if it exists and settimeofday fails.
80744         But don't bother with fallbacks if a method fails with errno == EPERM.
80745
80746 2004-05-11  Jim Meyering  <jim@meyering.net>
80747
80748         Prior to this change, the save_cwd caller required read access to the
80749         current directory on most systems (ones with the fchdir function).
80750
80751         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80752         fails, try write-only, and finally, resort to using xgetcwd.
80753
80754 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80755
80756         * lib/obstack.c, obstack.h: Import changes from libc.
80757
80758 2004-04-28  Bruno Haible  <bruno@clisp.org>
80759
80760         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80761         also implicitly appends .exe to executables.
80762         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80763         accepts Windows pathnames.
80764         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80765         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80766         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80767         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80768         Reported by Derek Robert Price <derek@ximbiot.com>.
80769
80770 2004-04-21  Karl Berry  <karl@gnu.org>
80771
80772         * config/srclist.txt (localcharset.c): break sync.
80773
80774 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80775
80776         * m4/host-os.m4: Add a copyright notice.
80777
80778 2004-04-20  Jim Meyering  <jim@meyering.net>
80779
80780         Change UTILS_ to gl_ in AC_DEFINE'd names.
80781         Change utils_- and jm_-prefixed variables, too.
80782         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80783         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80785
80786         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80787         Don't emit trailing blanks.
80788         Also rename jm_-prefixed variables to have gl_ prefix.
80789
80790         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80791         Also rename jm_-prefixed variables to have gl_ prefix.
80792
80793         * m4/jm-macros.m4: Reflect the renamings.
80794         * m4/prereq.m4: Likewise.
80795
80796 2004-04-20  Jim Meyering  <jim@meyering.net>
80797
80798         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80799         memory.
80800
80801 2004-04-20  Jim Meyering  <jim@meyering.net>
80802             Bruno Haible  <bruno@clisp.org>
80803
80804         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80805         memory when realloc fails.
80806
80807 2004-04-19  Jim Meyering  <jim@meyering.net>
80808
80809         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80810         now that readutmp.c may call `free (0)'.
80811
80812 2004-04-19  Bruno Haible  <bruno@clisp.org>
80813
80814         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80815         * m4/inttypes_h.m4: Likewise.
80816         * m4/stdint_h.m4: Likewise.
80817         * m4/intmax_t.m4: Likewise.
80818         * m4/uintmax_t.m4: Likewise.
80819
80820 2004-04-18  Jim Meyering  <jim@meyering.net>
80821
80822         * m4/prereq.m4: Don't forbid jm_ prefix.
80823
80824         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80825         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80826         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80827         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80828         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80829         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80830         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80831         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80832         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80833         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80834         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80835         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80836         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80837         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80838         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80839         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80840         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80841         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80842         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80843
80844 2004-04-18  Jim Meyering  <jim@meyering.net>
80845
80846         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80847         failure, don't leak memory and do call END_UTMP_ENT.
80848
80849 2004-04-16  Jim Meyering  <jim@meyering.net>
80850
80851         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80852         coreutils' stat program.
80853         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80854
80855 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80856
80857         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80858         C89.
80859         (CHAR_BIT): Remove, since we assume C89.
80860         Include <stdint.h> if available, as per current Autoconf CVS advice.
80861
80862 2004-03-31  Jim Meyering  <jim@meyering.net>
80863
80864         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80865         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80866         * m4/xalloc.m4: Likewise.
80867
80868 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80869
80870         Merge from coreutils.
80871
80872         * m4/inttostr.m4: New file.
80873         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80874         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80875         Require gl_CLOCK_TIME.
80876         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80877
80878 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80879
80880         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80881         not bool, to be more consistent with Unix conventions.
80882         Suggested by Bruno Haible.
80883
80884         Merge from coreutils.
80885
80886         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80887         * lib/umaxtostr.c: New files.
80888
80889         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80890         the usual <time.h> dance.
80891         (get_date): Change signature to support fractional time stamps.
80892         All callers changed.
80893         * lib/getdate.y: Include "getdate.h" first, as we can now
80894         assume C89 and don't need to worry about 'const'.
80895         Similarly, include "unlocked-io.h" near start, not in middle.
80896         Include <limits.h>.
80897         (textint.value): Use long int rather than int.
80898         (textint.digits): Use size_t rather than int.
80899         (BILLION, LOG10_BILLION): New constants.
80900         (parser_control): New member rel_ns.  Members day_ordinal,
80901         time_zone, month, day, hour, minutes, rel_year, rel_month,
80902         rel_day, rel_hour, rel_minutes, rel_seconds
80903         are now long int, not int.  Member seconds is now struct timespec,
80904         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80905         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80906         not int.
80907         (%union.intval): Now long int, not int.
80908         New member timespec.
80909         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80910         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80911         (spec): Now is a timespec or an item list.
80912         (timespec, items): New nonterminals.
80913         (time, rel, relunit, number, get_date):
80914         Add support for fractional seconds.
80915         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80916         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80917         (to_hour): First arg is now long int, not int.
80918         (to_year): Returns long int, not int.
80919         Don't treat year -70 like 70.
80920         (tm_diff): Returns long int, not int.
80921         (lookup_word): Use bool instead of int when appropriate.
80922         (yylex): Use size_t for count, not int.
80923         Detect overflow when parsing large integer constants.
80924         Add support for fractions.
80925         (get_date): Make pointers 'const' if possible.
80926         Use more-portable code to detect integer overflow.
80927         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80928         Don't use ctime; it's not reliable if the year has >4 digits.
80929
80930         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80931         This is for compatibility with BSD.
80932
80933         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80934         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80935         From coreutils' system.h.
80936
80937         * lib/userspec.c: Don't include "posixver.h".
80938         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80939         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80940         compatible extension.  Simplify code by removing a boolean int
80941         that was always nonzero if a string was nonnull.
80942
80943 2004-03-30  Jim Meyering  <jim@meyering.net>
80944
80945         Merge from coreutils.
80946
80947         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80948         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80949         on some systems one must include <grp.h> before it.
80950         Reported by Christian Krackowizer.
80951
80952 2004-03-30  Jim Meyering  <jim@meyering.net>
80953
80954         Merge from coreutils.
80955
80956         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80957
80958         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80959         an empty input stream.
80960
80961         * lib/readtokens.c: Include <stdbool.h>.
80962         (readtoken): Use `size_t' rather than int/long.
80963         All callers adjusted.
80964         Use `bool' rather than `int' where appropriate.
80965         Use memset rather than an explicit loop.
80966         Use x2nrealloc rather than xrealloc.
80967         Allow the use of `\0' as a delimiter.
80968         (readtokens): Likewise.
80969         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80970
80971 2004-03-30  Jim Meyering  <jim@meyering.net>
80972
80973         * m4/realloc.m4: Remove file, since now it does no more than
80974         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80975         the `configure.ac' section of module/realloc.
80976         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80977
80978 2004-03-30  Bruno Haible  <bruno@clisp.org>
80979
80980         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80981         nonnull.
80982
80983 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80984
80985         Merge changes to getloadavg.c from coreutils and Emacs.
80986
80987         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80988         Define to an expression, not to the empty string.
80989         Include cloexec.h and xalloc.h.
80990         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80991         Use set_cloexec_flag rather than rolling our own.
80992         * lib/cloexec.c, lib/cloexec.h: New files.
80993
80994 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80995
80996         * m4/cloexec.m4: New file.
80997
80998 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80999
81000         * lib/getopt.h: Sync with libc CVS.
81001
81002 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81003             Bruno Haible  <bruno@clisp.org>
81004
81005         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81006         mbswidth.
81007
81008 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81009             Bruno Haible  <bruno@clisp.org>
81010
81011         * lib/mbswidth.h: Include <wchar.h> only if
81012         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81013         <wchar.h>.
81014         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81015
81016 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81017
81018         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81019         Sync with libc CVS.
81020         * lib/getopt_int.h: New file, also synced from libc.
81021
81022 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81023
81024         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81025         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81026         Bring back getopt.c, getopt.h, getopt1.c.
81027
81028 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81029
81030         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81031         All uses changed.  Check for sa_sigaction member; this fixes
81032         a bug first reported by Jason Andrade in
81033         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81034
81035 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81036
81037         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81038         '#if' expressions.  Unlike the code it replaces, it does not
81039         depend on (defined _SC_PAGESIZE).  However, it does depend on
81040         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81041         first reported by Jason Andrade in
81042         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81043
81044 2004-02-25  Simon Josefsson  <jas@extundo.com>
81045
81046         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81047
81048 2004-02-25  Simon Josefsson  <jas@extundo.com>
81049
81050         * lib/strdup.h: New file.
81051         * lib/strdup.c: Include it.
81052         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81053         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81054
81055 2004-02-23  Karl Berry  <karl@gnu.org>
81056
81057         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81058         (from fencepost.gnu.org:/gd/gnuorg).
81059
81060 2004-02-23  Karl Berry  <karl@gnu.org>
81061
81062         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81063         * config/srclist.txt: add maintain/standards documents.
81064
81065 2004-02-18  Bruno Haible  <bruno@clisp.org>
81066
81067         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81068         Reported by Derek Robert Price <derek@ximbiot.com>.
81069
81070 2004-02-16  Karl Berry  <karl@gnu.org>
81071
81072         * config/mkinstalldirs, install-sh: update from automake.
81073
81074 2004-02-06  Karl Berry  <karl@gnu.org>
81075
81076         * m4/po.m4: update from gettext 0.14.1.
81077
81078 2004-02-06  Karl Berry  <karl@gnu.org>
81079
81080         * lib/config.charset: update from gettext 0.14.1.
81081
81082 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81083
81084         Add comments and code, prompted by suggestions from Bruno Haible
81085         for sh-quote.
81086         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81087         describing the enum quoting_style values.
81088         * lib/quotearg.c (quotearg_alloc): New function.
81089         (quotearg_buffer_restyled): Treat lone { and } as special.
81090         Treat = as special.  Work around bug with older shells
81091         that "see" a '\' that is really the 2nd byte of a multibyte char.
81092         Quote empty string with shell_quoting_style.
81093
81094 2004-02-03  Bruno Haible  <bruno@clisp.org>
81095
81096         * m4/pipe.m4: New file, from GNU gettext.
81097
81098 2004-02-03  Bruno Haible  <bruno@clisp.org>
81099
81100         * lib/pipe.h: New file, from GNU gettext.
81101         * lib/pipe.c: New file, from GNU gettext.
81102
81103 2004-01-27  Bruno Haible  <bruno@clisp.org>
81104
81105         * m4/execute.m4: New file, from GNU gettext.
81106
81107 2004-01-27  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/execute.h: New file, from GNU gettext.
81110         * lib/execute.c: New file, from GNU gettext.
81111         * lib/w32spawn.h: New file, from GNU gettext.
81112
81113 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81114
81115         Merge from diffutils.
81116
81117         * lib/file-type.c (file_type): Add typed memory objects.
81118         * lib/file-type.h (S_TYPEISTMO): New macro.
81119
81120         * lib/c-stack.h (c_stack_action): Remove argv argument.
81121         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81122         (die): Don't calculate message unless segv_action returns.
81123         (get_stack_location, min_address_from_argv, max_address_from_argv,
81124         volatile stack_base, volatile_stack_size): Remove.
81125         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81126         that every segmentation violation is a stack overflow.  (Ouch!)
81127         See Debian bug 136249 (still outstanding) for more info about why
81128         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81129
81130 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81131
81132         Exit-status fix from coreutils.
81133
81134         Use exit_failure consistently in place of EXIT_FAILURE,
81135         so that program exit statuses are consistent on failure.
81136
81137         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81138         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81139         * lib/argmatch.h: Comment fix to match the above.
81140         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81141         Now a macro referring to exit_failure, instead of a separate
81142         variable.  Include "exitfail.h" to get it.
81143         * lib/xstrtol.h: Include "exitfail.h".
81144         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81145
81146         * lib/long-options.c (parse_long_options): Use prototype
81147         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81148         for clarity.
81149
81150 2004-01-21  Jim Meyering  <jim@meyering.net>
81151
81152         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81153         so as not to conflict with a different-sized __mktime_internal
81154         function in GNU libc.
81155         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81156         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81157
81158 2004-01-20  Karl Berry  <karl@gnu.org>
81159
81160         * config/config.guess: update from config.
81161
81162         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81163
81164 2004-01-20  Bruno Haible  <bruno@clisp.org>
81165
81166         Safer stack allocation.
81167         * lib/setenv.c: Include allocsa.h.
81168         (alloca): Remove fallback definition.
81169         (freea): Remove macro.
81170         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81171         instead of freea.
81172
81173 2004-01-20  Bruno Haible  <bruno@clisp.org>
81174
81175         * m4/eealloc.m4: New file, from GNU gettext.
81176
81177 2004-01-20  Bruno Haible  <bruno@clisp.org>
81178
81179         * m4/allocsa.m4: New file, from GNU gettext.
81180
81181 2004-01-20  Bruno Haible  <bruno@clisp.org>
81182
81183         * lib/xallocsa.h: New file, from GNU gettext.
81184         * lib/xallocsa.c: New file, from GNU gettext.
81185
81186 2004-01-20  Bruno Haible  <bruno@clisp.org>
81187
81188         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81189
81190 2004-01-20  Bruno Haible  <bruno@clisp.org>
81191
81192         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81193         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81194         specially.
81195
81196 2004-01-20  Bruno Haible  <bruno@clisp.org>
81197
81198         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81199         patch.
81200
81201 2004-01-20  Bruno Haible  <bruno@clisp.org>
81202
81203         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81204
81205 2004-01-20  Bruno Haible  <bruno@clisp.org>
81206
81207         * lib/eealloc.h: New file.
81208
81209 2004-01-20  Bruno Haible  <bruno@clisp.org>
81210
81211         * lib/binary-io.h: Avoid warnings on Cygwin.
81212
81213 2004-01-20  Bruno Haible  <bruno@clisp.org>
81214
81215         * lib/allocsa.h: New file, from GNU gettext.
81216         * lib/allocsa.c: New file, from GNU gettext.
81217
81218 2004-01-18  Karl Berry  <karl@gnu.org>
81219
81220         * doc/gpl.texi, doc/lgpl.texi: new files.
81221
81222 2004-01-18  Karl Berry  <karl@gnu.org>
81223
81224         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81225         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81226
81227 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81228
81229         Merge from coreutils.
81230
81231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81232         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81233         (gl_DEFAULT_POSIX2_VERSION): Move
81234         the documentation from 'configure' into 'config.hin',
81235         so that 'configure --help' isn't burdened by it and
81236         we don't have to worry about its formatting there.
81237         Reword the documentation so that it's more succinct
81238         and can be run together into a single paragraph.
81239         * m4/same.m4 (gl_SAME): Check for pathconf.
81240
81241 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81242
81243         Merge from coreutils.
81244
81245         * lib/posixver.c: Include posixver.h.
81246
81247         * lib/same.c: Include <stdbool.h>, <limits.h>.
81248         (_POSIX_NAME_MAX): Define if not defined.
81249         (MIN): New macro.
81250         (same_name): If file names are silently truncated, report
81251         that the file names are the same if they are the same after
81252         the silent truncation.
81253
81254         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81255         conversion function.
81256         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81257         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81258         longer needed.
81259
81260 2004-01-15  Jim Meyering  <jim@meyering.net>
81261
81262         Merge from coreutils.
81263
81264         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81265         if no library is required.
81266         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81267         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81268         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81269         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81270         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81271         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81272         value, $ac_cv_search_crypt, if it's "none required".
81273         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81274         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81275         not gl_FUNC_GETLOADAVG.
81276         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81277         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81278
81279 2004-01-15  Jim Meyering  <jim@meyering.net>
81280
81281         Merge from coreutils.
81282
81283         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81284         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81285         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81286
81287         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81288         optional configure-time default.
81289
81290         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81291
81292         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81293
81294 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81295
81296         Merge from coreutils.
81297
81298         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81299         value, $ac_cv_search_nanosleep, if it's "none required".
81300
81301 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81302
81303         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81304         with like-named macro in fnmatch.c.
81305         (EXT): Use an internal constant instead.
81306
81307         Merge fnmatch patches from glibc.
81308         * lib/fnmatch.c (mbsinit): Remove define.
81309         Add libc_hidden_ver (__fnmatch, fnmatch).
81310         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81311         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81312
81313 2004-01-14  Karl Berry  <karl@gnu.org>
81314
81315         * config/install-sh: update from automake.
81316
81317 2004-01-13  Karl Berry  <karl@gnu.org>
81318
81319         * config/install-sh: update from automake.
81320
81321 2004-01-09  Karl Berry  <karl@gnu.org>
81322
81323         * config/install-sh: update from automake.
81324
81325 2004-01-05  Karl Berry  <karl@gnu.org>
81326
81327         * config/config.{sub,guess}: update from config.
81328
81329 2003-12-31  Karl Berry  <karl@gnu.org>
81330
81331         * config/depcomp: update from automake.
81332
81333 2003-12-14  Karl Berry  <karl@gnu.org>
81334
81335         * lib/config.charset: update from gettext-runtime.
81336
81337 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81338
81339         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81340         Bug reported by Alfred M. Szmidt.
81341
81342 2003-12-03  Bruno Haible  <bruno@clisp.org>
81343
81344         * m4/gettext.m4: Upgrade from gettext-0.13.
81345         * m4/po.m4: Upgrade from gettext-0.13.
81346         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81347         * m4/intmax.m4: New file, from gettext-0.13.
81348         * m4/printf-posix.m4: New file, from gettext-0.13.
81349
81350 2003-11-29  Karl Berry  <karl@gnu.org>
81351
81352         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81353
81354 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81355             Bruno Haible  <bruno@clisp.org>
81356
81357         * lib/printf-parse.h: Don't include sys/types.h.
81358         (ARG_NONE): New macro.
81359         (char_directive): Change type of *arg_index fields to size_t.
81360         * lib/printf-parse.c: Don't include sys/types.h.
81361         (SSIZE_MAX): Remove macro.
81362         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81363         Remove unnecessary overflow check.
81364         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81365         fields.
81366
81367 2003-11-25  Bruno Haible  <bruno@clisp.org>
81368
81369         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81370
81371 2003-11-25  Bruno Haible  <bruno@clisp.org>
81372
81373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81374         gt_TYPE_SSIZE_T.
81375
81376 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81377
81378         * modules/alloca: Remove dependency on xalloc.
81379
81380 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81381
81382         * lib/alloca.c: Remove dependency on xalloc module.
81383         (xalloc_die): Remove.
81384         (memory_full) [!defined emacs]: New macro.
81385         [!defined emacs]: Don't include xalloc.h.
81386         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81387         address arithmetic overflows.  Change datatypes a bit to avoid
81388         unnecessary casts.
81389
81390 2003-11-22  Jim Meyering  <jim@meyering.net>
81391
81392         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81393         s/size/size_t/.
81394
81395 2003-11-21  Karl Berry  <karl@gnu.org>
81396
81397         * config/config.{sub,guess}: update from config.
81398
81399 2003-11-18  Karl Berry  <karl@gnu.org>
81400
81401         * config/config.{sub,guess}: update from config.
81402
81403         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81404
81405 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81406
81407         * README: Mention that S+T cannot overflow if S is the size of
81408         an existing object and T is sufficiently small.
81409
81410 2003-11-17  Jim Meyering  <jim@meyering.net>
81411
81412         On systems without utime and without a utimes function capable of
81413         dealing with a NULL struct utimbuf* argument, this utime replacement
81414         could -- in unusual circumstances -- leak a file descriptor.
81415         * lib/utime.c: Include <unistd.h> and <errno.h>.
81416         (utime_null): Be sure to close `fd' and to preserve errno.
81417         Reported by Geoff Collyer via Arnold Robbins.
81418
81419 2003-11-17  Bruno Haible  <bruno@clisp.org>
81420
81421         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81422         (Depends-on): Add xsize.
81423
81424 2003-11-17  Bruno Haible  <bruno@clisp.org>
81425
81426         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81427
81428 2003-11-17  Bruno Haible  <bruno@clisp.org>
81429
81430         * lib/vasnprintf.c (alloca): Remove fallback definition.
81431         (freea): Remove definition.
81432         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81433         Reported by Paul Eggert.
81434
81435 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81436             Bruno Haible  <bruno@clisp.org>
81437
81438         Protect against address arithmetic overflow.
81439         * lib/printf-args.h: Include stddef.h.
81440         (arguments): Change type of field 'count' to size_t.
81441         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81442         'unsigned int' where appropriate.
81443         * lib/printf-parse.h: Include sys/types.h.
81444         (char_directive): Change type of *arg_index fields to ssize_t.
81445         (char_directives): Change type of fields 'count', max_*_length to
81446         size_t.
81447         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81448         (SSIZE_MAX): Define fallback value.
81449         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81450         instead of 'int' where appropriate. Check a_allocated, d_allocated
81451         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81452         * lib/vasnprintf.c: Include xsize.h.
81453         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81454         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81455         overflow. Avoid wraparound when converting a width or precision from
81456         decimal to binary.
81457
81458 2003-11-16  Bruno Haible  <bruno@clisp.org>
81459
81460         Update from GNU gettext.
81461         * lib/printf-parse.c: Generalize to it can be compiled for wide
81462         strings.
81463         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81464         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81465         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81466         SNPRINTF): New macros.
81467         Don't include <alloca.h> if the file is used inside libintl.
81468         (local_wcslen): New function, for Solaris 2.5.1.
81469         (VASNPRINTF): Use it instead of wcslen.
81470
81471 2003-11-16  Bruno Haible  <bruno@clisp.org>
81472
81473         * lib/xsize.h (xmax): New function.
81474         (xsum, xsum3, xsum4): Declare as "pure" functions.
81475
81476 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81477
81478         * modules/xalloc (Files): Undo latest change, since xalloc.h
81479         no longer needs SIZE_MAX or PTRDIFF_MAX.
81480
81481 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81482
81483         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81484         gl_PTRDIFF_MAX.
81485
81486 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81487
81488         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81489         "return", to pacify some unknown compiler.  Problem reported
81490         by Joerg Schilling.
81491
81492 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81493
81494         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81495         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81496         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81497         heuristic is just as accurate as far as we know, and it removes a
81498         dependency on size_max.m4 and ptrdiff_max.m4.
81499
81500 2003-11-11  Bruno Haible  <bruno@clisp.org>
81501
81502         * modules/xsize (Files): Add m4/size_max.m4.
81503         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81504
81505 2003-11-11  Bruno Haible  <bruno@clisp.org>
81506
81507         * m4/size_max.m4: New file.
81508         * m4/ptrdiff_max.m4: New file.
81509         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81510         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81511         (gl_XALLOC): Invoke it.
81512
81513 2003-11-11  Bruno Haible  <bruno@clisp.org>
81514
81515         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81516         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81517         defined.
81518
81519 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81520
81521         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81522         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81523         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81524         From Bruno Haible.
81525         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81526         not (size_t) -1, since it's defined here.
81527
81528 2003-11-09  Karl Berry  <karl@gnu.org>
81529
81530         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81531
81532 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81533
81534         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81535         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81536         Reject sizes of exactly SIZE_MAX bytes.
81537         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81538         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81539
81540 2003-11-05  Bruno Haible  <bruno@clisp.org>
81541
81542         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81543         SIZE_MAX defined in <limits.h> on Solaris.
81544
81545 2003-11-04  Jim Meyering  <jim@meyering.net>
81546
81547         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81548         variable names, rather than @VAR@.
81549         * modules/poll: Likewise.
81550
81551 2003-11-04  Bruno Haible  <bruno@clisp.org>
81552
81553         * modules/xsize: New file.
81554         * modules/linebreak: Depend on xsize.
81555         * MODULES.html.sh (func_all_modules): Add xsize.
81556
81557 2003-11-04  Bruno Haible  <bruno@clisp.org>
81558
81559         * m4/xsize.m4: New file.
81560
81561 2003-11-04  Bruno Haible  <bruno@clisp.org>
81562
81563         * lib/xsize.h: New file.
81564         * lib/linebreak.c: Include xsize.h.
81565         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81566         argument for overflow.
81567         Suggested by Paul Eggert.
81568
81569 2003-11-03  Karl Berry  <karl@gnu.org>
81570
81571         * config/config.{guess,sub}: update from config.
81572
81573 2003-11-03  Jim Meyering  <jim@meyering.net>
81574
81575         * modules/userspec (lib_SOURCES): Add userspec.h.
81576         (Include): Add "userspec.h".
81577         Improve description.
81578
81579 2003-11-03  Jim Meyering  <jim@meyering.net>
81580
81581         * lib/userspec.c: Include "userspec.h".
81582         * lib/userspec.h: New file.
81583
81584 2003-11-03  Bruno Haible  <bruno@clisp.org>
81585
81586         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81587
81588 2003-11-03  Bruno Haible  <bruno@clisp.org>
81589
81590         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81591         available, to avoid (extremely rare) race condition.
81592         Suggested by Paul Eggert.
81593
81594 2003-11-02  Karl Berry  <karl@gnu.org>
81595
81596         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81597
81598 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81599
81600         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81601         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81602         (read_filesystem_list): Set and use me_type_malloced.
81603         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81604         whatever the type happens to be), for brevity and consistency.
81605         Check for size calculation overflow on Alphas running OSF/1.
81606
81607 2003-10-31  Jim Meyering  <jim@meyering.net>
81608
81609         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81610
81611         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81612
81613 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81614             Bruno Haible  <bruno@clisp.org>
81615
81616         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81617         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81618
81619 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81620
81621         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81622         netbsd*-gnu*.  Suggested by Robert Millan.
81623
81624 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81625
81626         * modules/group-member: Depend on stdbool.
81627
81628 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81629
81630         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81631
81632 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81633
81634         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81635         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81636         after the 'gnu' in these cases.  This fixes some bugs in the
81637         previous change, and is based on suggestions by Robert Millan.
81638
81639 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81640
81641         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81642         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81643         no longer needed.
81644         * lib/quotearg.c (quotearg_n_options): Use it.
81645         * lib/group-member.c: Include <stdbool.h>.
81646         (free_group_info): Arg is now const *; don't free arg.
81647         (get_group_info): Now returns bool and accepts struct group_info *,
81648         rather than returning a malloc'ed struct group_info *.
81649         All uses changed.  Check for overflow in internal size calculation.
81650
81651         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81652         rather than xmalloc/xrealloc.
81653         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81654         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81655         conformance bug: the old code used a pointer after freeing the
81656         storage that it addressed.
81657         * lib/hash.c (hash_initialize): Simplify the code by using
81658         xalloc_oversized rather than doing it by hand.
81659         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81660         the buffer preserved.  Use free and xmalloc instead.
81661         * lib/quotearg.c (quotearg_n_options): Likewise.
81662         Use a simpler test for size overflow.  Don't use xalloc_oversized
81663         because unsigned int might be wider than size_t (!); this suggests
81664         that we should switch from unsigned int to size_t for slot numbers.
81665
81666 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81667
81668         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81669         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81670         NetBSD kernels.  Requested by Richard Stallman.
81671
81672 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81673
81674         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81675         to allocate the returned structure.  Do not allocate a subarray,
81676         as x2nrealloc will do that.
81677         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81678         instead of xnrealloc.
81679         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81680
81681 2003-10-27  Bruno Haible  <bruno@clisp.org>
81682
81683         * lib/stdbool_.h: Better support for BeOS.
81684
81685 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81686
81687         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81688         now uses inline.
81689
81690 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81691
81692         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81693         callers that want to do their own size-overflow checking.  Include
81694         <stdbool.h>, since xalloc_oversized returns bool.
81695         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81696         to use xalloc_oversized.
81697
81698         Add two functions x2realloc, x2nrealloc, for programs that grow
81699         arrays dynamically by doubling their sizes.
81700         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81701         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81702         New functions.
81703
81704         Port to C99 semantics for 'inline' of external functions.
81705         Bug reported by Bruno Haible.
81706         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81707         with the old contents of xnmalloc.
81708         (xnmalloc, xmalloc): Use it.
81709         (xnrealloc_inline): New static inline function,
81710         with the old contents of xnrealloc.
81711         (xnrealloc, xrealloc): Use it.
81712
81713         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81714         that.
81715
81716 2003-10-26  Karl Berry  <karl@gnu.org>
81717
81718         * config/srclist.txt (COPYING.DOC): no longer available from
81719         /gd/gnuorg; don't know where the ultimate source is.
81720
81721 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81722
81723         Fix several address-calculation bugs in the hash modules,
81724         plus some minor code cleanup.
81725
81726         * lib/hash.h: Include <stdbool.h>, for bool.
81727         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81728         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81729         hash_get_n_entries, hash_get_max_bucket_length,
81730         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81731         hash_rehash): Use size_t rather than unsigned.
81732         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81733         hash_get_n_buckets_used, hash_get_n_entries,
81734         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81735         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81736         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81737         Likewise.
81738         (SIZE_MAX): Define if not defined.
81739         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81740         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81741         hash_print):
81742         Use const * when possible.
81743         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81744         (check_tuning): Fix bug: if tuning parameters were very close to
81745         0 or 1, rounding errors could have caused subscript violations.
81746         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81747         (hash_initialize): Add 'fail:' label
81748         to free table and return NULL, and use it to simplify code.
81749         Use calloc rather than clearing the storage ourself.
81750         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81751         buffer size calculations.
81752         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81753         Include <stddef.h>, for size_t.
81754         * lib/hash-pjw.c (hash_pjw): Likewise.
81755         Switch to method described by Bruno Haible.
81756         Include <limits.h>, for CHAR_BIT.
81757         (SIZE_BITS): New macro.
81758
81759 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81760
81761         * m4/getline.m4 (AM_FUNC_GETLINE):
81762         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81763         hosts.  Problem reported by Derek Robert Price in
81764         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81765         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81766         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81767
81768 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81769
81770         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81771         ceiling the allocation at NMAX bytes rather than silently
81772         discarding input bytes before NMAX is reached.  This makes
81773         a difference only if NMAX exceeds SIZE_MAX / 2.
81774
81775         * lib/obstack.c: Merge from glibc.
81776         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81777         Add libc_hidden_def (_obstack_newchunk).
81778         (_obstack_free) [! defined _LIBC]: Remove.
81779         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81780         a clone of the function body.
81781         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81782         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81783
81784         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81785         glibc.
81786         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81787         arg to memcpy.
81788
81789         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81790         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81791         Don't use lvalue casts, as GCC plans to remove support for them
81792         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81793         was also present in the non-GCC version, indicating that this
81794         code had always been buggy and had never been widely used.
81795         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81796         Use the fast variant of each macro, rather than copying the
81797         definiens of the fast variant; that way, we'll be more likely to
81798         catch future bugs in the fast variants.
81799
81800 2003-10-20  Bruno Haible  <bruno@clisp.org>
81801
81802         * modules/wait-process: New file.
81803         * MODULES.html.sh (func_all_modules): Add wait-process.
81804
81805 2003-10-20  Bruno Haible  <bruno@clisp.org>
81806
81807         * m4/wait-process.m4: New file.
81808
81809 2003-10-20  Bruno Haible  <bruno@clisp.org>
81810
81811         * lib/wait-process.h: New file, from GNU gettext.
81812         * lib/wait-process.c: New file, from GNU gettext.
81813
81814 2003-10-19  Jim Meyering  <jim@meyering.net>
81815
81816         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81817         HPUX 10.20.
81818
81819 2003-10-18  Karl Berry  <karl@gnu.org>
81820
81821         * config/config.guess: update from config.
81822
81823 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81824
81825         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81826         (getgroups): First arg is int, not size_t.
81827         Don't let 'free' mangle errno.
81828
81829 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81830
81831         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81832
81833 2003-10-16  Karl Berry  <karl@gnu.org>
81834
81835         * config/config.{guess,sub}: update from config.
81836
81837 2003-10-16  Jim Meyering  <jim@meyering.net>
81838
81839         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81840         memcpy.
81841
81842 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81843
81844         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81845         (SIZE_MAX): Remove.
81846         (new_exclude, add_exclude_file): Initial size no longer needs to
81847         be a power of 2.
81848         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81849         our own address arithmetic overflow checking.
81850
81851         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81852         (fnmatch): Do not alloca more than 2000 wide characters;
81853         instead, use malloc for large buffers.
81854         Check for address arithmetic overflow, and return -1
81855         with errno set to ENOMEM in that case.
81856         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81857         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81858         instead, return -1.  Check for address arithmetic overflow.
81859
81860 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81861
81862         Handle invalid suffixes and overflow independently, so that
81863         callers can treat them independently as needed.  Fix some bugs in
81864         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81865         suffix for a human-readable blocksize.  The major caller-visible
81866         change is the addition of a new
81867         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81868         that both overflow and suffix chars were found.
81869
81870         * lib/human.c (humblock): Don't check separately for invalid suffix
81871         char; that is xstrtoumax's job (now that its bug is fixed).
81872         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81873         INTMAX_MAX]: New macros.
81874         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81875         TYPE_MAXIMUM): New macros.
81876         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81877         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81878         if overflow occurs, as it's what __strtol does and it's more useful
81879         in practice.
81880         (__xstrtol): If __strtol reports some error other than ERANGE,
81881         reflect it to the caller as LONGINT_INVALID.  If it reports
81882         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81883         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81884         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81885         value.
81886         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81887         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81888         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81889         [defined UINTMAX_MAX]: New macros.
81890
81891 2003-10-14  Bruno Haible  <bruno@clisp.org>
81892
81893         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81894
81895 2003-10-14  Bruno Haible  <bruno@clisp.org>
81896
81897         * m4/sig_atomic_t: New file, from GNU gettext.
81898         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81899
81900 2003-10-14  Bruno Haible  <bruno@clisp.org>
81901
81902         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81903         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81904         Also use volatile where needed.
81905
81906 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81907
81908         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81909         Change maintainer from Bruno Haible to 'all'.
81910
81911 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81912
81913         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81914
81915 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81916
81917         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81918         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81919         and define in terms of the other primitives.
81920         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81921         (SIZE_MAX): Define if not already defined.
81922         (array_size_overflow): New function.
81923         (xalloc_die): Abort instead of exiting if 'error' returns.
81924         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81925         (xmalloc, xrealloc): Use them.
81926         (xcalloc): Check for address arithmetic overflow.
81927         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81928         a bit faster than strcpy.
81929
81930 2003-10-10  Simon Josefsson  <jas@extundo.com>
81931
81932         * modules/argp (Depends-on): Add restrict and strcase.
81933
81934 2003-10-10  Simon Josefsson  <jas@extundo.com>
81935
81936         * m4/argp.m4: Add AC_C_INLINE.
81937
81938 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81939
81940         Merge getpass from libc, plus a few fixes.
81941
81942         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81943         Include <stdbool.h>.
81944         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81945         __fsetlocking to empty.
81946         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81947         do include <bits/libc-lock.h>.
81948         Do not include <fcntl.h>; not needed.
81949         [_LIBC]: Include <wchar.h>.
81950         (NOTCANCEL_MODE): New macro.
81951         (flockfile, funlockfile) [_LIBC]: New macros.
81952         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81953         [!_LIBC]: New macros.
81954         (call_fclose): New function.
81955         (getpass): Use it.  Save tty stream separately; this simplifies the
81956         code and makes it more reliable if stdin happens to equal stdout.
81957         Invoke __fsetlocking on tty.
81958         Handle thread cancellation if needed.
81959         Namespace cleanup (use __tcgetattr, __getline).
81960         Use bool for Booleans.
81961         [USE_IN_LIBIO]: Handle wide streams.
81962         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81963         stream might go where.
81964
81965         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81966         doesn't have to include <stdio.h> before us.
81967         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81968         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81969         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81970         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81971         if not declared, so that we can use getpass.c code from libc without
81972         rewriting it.
81973         (flockfile, ftrylockfile, funlockfile): New macros.
81974
81975 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81976
81977         * modules/getpass: Depend on stdbool.
81978
81979 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81980
81981         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81982
81983 2003-10-07  Karl Berry  <karl@gnu.org>
81984
81985         * config/config.{guess,sub}: update from config.
81986
81987 2003-10-06  Jim Meyering  <jim@meyering.net>
81988             Bruno Haible  <bruno@clisp.org>
81989
81990         This lets translators provide better translations for the
81991         "Written by ..." part of --version output.
81992         * lib/version-etc.h: Include stdarg.h.
81993         (version_etc_copyright): Declare as readonly.
81994         (version_etc): Make this function variadic with a NULL-terminated list
81995         of author name strings.
81996         (version_etc_va): New declaration.
81997         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81998         (version_etc_copyright): Declare as readonly.
81999         (version_etc_va): New function. Provide a different translatable string
82000         for each possible number of authors < 10. Abbreviate when there are 10
82001         authors or more.
82002         (version_etc): Make this function variadic. Call version_etc_va.
82003         Suggestion from Gary V. Vaughan.
82004
82005         * lib/long-options.h (parse_long_options): Change prototype: the
82006         authors string is moved to the end and becomes variadic.
82007         * lib/long-options.c: Include stdarg.h.
82008         (parse_long_options): Make this function variadic, too.
82009         Call version_etc_va, not version_etc.
82010
82011 2003-10-06  Bruno Haible  <bruno@clisp.org>
82012
82013         * modules/version-etc-2: Remove file.
82014         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82015
82016 2003-10-06  Bruno Haible  <bruno@clisp.org>
82017
82018         * modules/fatal-signal: New file.
82019         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82020
82021 2003-10-06  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/fatal-signal.m4: New file.
82024         * m4/signalblocking.m4: New file, from GNU gettext.
82025
82026 2003-10-06  Bruno Haible  <bruno@clisp.org>
82027
82028         * lib/version-etc-2.h: Remove file.
82029         * lib/version-etc-2.c: Remove file.
82030
82031 2003-10-06  Bruno Haible  <bruno@clisp.org>
82032
82033         * lib/fatal-signal.h: New file, from GNU gettext.
82034         * lib/fatal-signal.c: New file, from GNU gettext.
82035
82036 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82037
82038         * README: Rework advice for preventing empty .o files.
82039         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82040         not <sys/types.h>.
82041
82042 2003-10-04  Karl Berry  <karl@gnu.org>
82043
82044         * lib/argp*: update from libc.
82045
82046 2003-10-04  Karl Berry  <karl@gnu.org>
82047
82048         * config/config.{guess,sub}: update from config.
82049
82050 2003-10-02  Bruno Haible  <bruno@clisp.org>
82051
82052         * modules/lchown (Include): Add lchown.h.
82053         * modules/time_r (Include): Use "..." syntax.
82054         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82055
82056 2003-10-01  Simon Josefsson  <jas@extundo.com>
82057
82058         * MODULES.html.sh (func_all_modules): Move gethostname from section
82059         'based on' to section 'lacking' POSIX:2001.
82060
82061 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82062
82063         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82064         to output mode on the same stream.
82065
82066 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82067
82068         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82069         Fix arg typo in previous patch.
82070
82071 2003-09-28  Jim Meyering  <jim@meyering.net>
82072
82073         * lib/error.c: Correct cpp indentation.
82074
82075 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82076
82077         * modules/free: New file.
82078
82079 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82080
82081         * m4/free.m4: New file.
82082
82083 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82084
82085         * lib/minmax.h (MIN, MAX)
82086         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82087         Omit the special code that used __typeof__, since we worry that
82088         it could be more trouble than it's worth.  See:
82089         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82090         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82091
82092         * lib/free.c: New file.
82093
82094 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82095
82096         Trivial fixes to Makefile.am parts of module listings.
82097         * modules/strstr: Append strstr.h to lib_SOURCES.
82098         * modules/strcase: Likewise, for strcase.h.
82099
82100 2003-09-27  Karl Berry  <karl@gnu.org>
82101
82102         * config/mkinstalldirs: update from automake.
82103
82104 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82105
82106         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82107         (error_tail): Do not loop, reallocating temporary buffer, since
82108         the output cannot contain more wide characters than the input
82109         contains bytes, the size must be big enough already.  This avoids
82110         one potential size overflow calculation.  Check for size overflow
82111         when calculating temporary buffer size.  Free temporary buffer
82112         when done, if it was allocated with malloc; this plugs a memory
82113         leak.  Remove casts from void * to pointers, that are no longer
82114         needed now that we're assuming C89 or better.
82115
82116         Merge error changes from glibc.
82117
82118         * lib/error.c, error.h: Update copyright notice header to match glibc.
82119         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82120         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82121         Disable cancellation while printing error.
82122         * lib/error.h: Prepend __ to parameter names.
82123
82124 2003-09-26  Jim Meyering  <jim@meyering.net>
82125
82126         * lib/error.c (error_tail): Move some declarations
82127         into inner scope where the local variables are used.
82128
82129 2003-09-26  Bruno Haible  <bruno@clisp.org>
82130
82131         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82132         stpncpy().
82133         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82134
82135 2003-09-26  Bruno Haible  <bruno@clisp.org>
82136
82137         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82138         (stpncpy): Define as alias for gnu_stpncpy.
82139         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82140
82141 2003-09-25  Simon Josefsson  <jas@extundo.com>
82142
82143         * lib/xgetdomainname.h: New file.
82144         * lib/xgetdomainname.c: New file.
82145
82146 2003-09-25  Simon Josefsson  <jas@extundo.com>
82147             Bruno Haible  <bruno@clisp.org>
82148
82149         * modules/getdomainname: New file.
82150         * modules/xgetdomainname: New file.
82151         * MODULES.html.sh (func_all_modules): Add getdomainname,
82152         xgetdomainname.
82153
82154 2003-09-25  Simon Josefsson  <jas@extundo.com>
82155             Bruno Haible  <bruno@clisp.org>
82156
82157         * m4/getdomainname.m4: New file.
82158
82159 2003-09-25  Simon Josefsson  <jas@extundo.com>
82160             Bruno Haible  <bruno@clisp.org>
82161
82162         * lib/getdomainname.h: New file.
82163         * lib/getdomainname.c: New file.
82164
82165 2003-09-25  Karl Berry  <karl@gnu.org>
82166
82167         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82168
82169 2003-09-25  Karl Berry  <karl@gnu.org>
82170
82171         * config/install-sh: update from automake.
82172
82173 2003-09-25  Bruno Haible  <bruno@clisp.org>
82174
82175         * modules/version-etc-2: New file, from modules/version-etc with
82176         modifications.
82177         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82178
82179 2003-09-25  Bruno Haible  <bruno@clisp.org>
82180
82181         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82182         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82183
82184 2003-09-24  Simon Josefsson  <jas@extundo.com>
82185
82186         * modules/xgethostname: Add xgethostname.h.
82187
82188 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82189
82190         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82191         the buffer associated with the argument.  Bug reported by
82192         Simon Josefsson.
82193
82194 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82195
82196         * README: Document assumptions that 'int' is at least 32 bits
82197         wide, that integer arithmetic is 2's complement without overflow,
82198         that there are no holes in integer values, that adding sizes of
82199         two nonoverlapping objects can't overflow, and that all-bits-zero
82200         yields scalar zero.  Fix spelling and capitalization typos.
82201
82202 2003-09-19  Karl Berry  <karl@gnu.org>
82203
82204         * lib/argp.h: update from libc.
82205
82206 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82207
82208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82209         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82210         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82211
82212 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82213
82214         * gnulib-tool: Use "test -h", not "test -L", for portability
82215         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82216         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82217         (sed_extract_prog): Issue s commands one-by-one, rather than
82218         using \| in one s command.
82219
82220 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82221
82222         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82223         input error, instead of returning NULL the next time we are called
82224         (and therefore losing track of errno).
82225
82226 2003-09-16  Bruno Haible  <bruno@clisp.org>
82227
82228         * gnulib-tool (func_create_testdir): Warn about duplicated
82229         dependencies.
82230
82231 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82232
82233         * modules/argmatch, modules/fatal, modules/obstack,
82234         modules/xalloc, modules/xgethostname: Sort dependencies by
82235         importance, not alphabetically.
82236
82237 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82238
82239         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82240         fails, so that the caller gets the proper errno.
82241
82242         * lib/readutmp.c (read_utmp): Likewise.
82243         Check for fstat error.  Close stream and free storage
82244         when failing.
82245
82246 2003-09-14  Karl Berry  <karl@gnu.org>
82247
82248         * config/srclist.txt (strdup.c): disable for c89 changes.
82249
82250 2003-09-14  Jim Meyering  <jim@meyering.net>
82251
82252         * lib/getloadavg.c: Correct cpp indentation.
82253         * lib/strdup.c: Likewise.
82254         * lib/vasnprintf.c: Likewise.
82255
82256 2003-09-14  Bruno Haible  <bruno@clisp.org>
82257
82258         * modules/fwriteerror: New file.
82259         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82260
82261 2003-09-14  Bruno Haible  <bruno@clisp.org>
82262
82263         * lib/fwriteerror.h: New file.
82264         * lib/fwriteerror.c: New file.
82265
82266 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82267
82268         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82269         modules/xgethostname, modules/xalloc: Depend on exit.
82270
82271 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82272
82273         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82274
82275         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82276         and AC_MINIX, too, so that their extensions are available.
82277
82278         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82279         This macro has been superseded by gl_BACKUPFILE.
82280
82281         More patches to assume C89 or better.
82282
82283         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82284
82285         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82286         unconditionally.
82287         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82288         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82289         Include <string.h>, <stdlib.h> unconditionally.
82290         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82291         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82292         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82293         headers or for string.h.
82294         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82295         or strtoul.
82296
82297         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82298         headers.
82299         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82300         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82301         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82302         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82303         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82304         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82305         memcpy, memset.
82306         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82307         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82308         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82309         strtol.
82310         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82311         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82313         strtoul.
82314
82315 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82316
82317         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82318         * lib/obstack.c [!defined _LIBC]: Likewise.
82319         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82320         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82321         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82322
82323         More changes to assume C89 or better.
82324
82325         * lib/error.c (error_tail): Assume vprintf.
82326
82327         * lib/argmatch.c (getenv): Remove decl.
82328         * lib/progreloc.c (get_full_program_name): Define via prototype.
82329         * lib/setenv.c (clearenv): Likewise.
82330         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82331         needed.
82332         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82333         (malloc, memcpy): Remove decls.
82334         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82335         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82336         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82337         (memcpy): Remove macro.
82338         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82339         (__P): Remove.  All uses removed.
82340         (PTR): Remove.  All uses changed to void *.
82341         (CHAR_BIT, NULL): Remove.
82342         (spaces, zeros, memset_space, memset_zero)
82343         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82344         Remove.
82345         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82346         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82347         Define with prototype.
82348         Remove now-unnecessary prototype decl.
82349         (extra_args_spec): Assume ANSI C.  All uses changed.
82350         (extra_args_spec_iso): Remove.
82351         (my_strftime, emacs_strftimeu): Define via prototype.
82352         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82353         unconditionally.
82354         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82355         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82356         (strtoul, strtol): Remove decls.
82357         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82358         LONG_MAX): Remove.
82359         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82360         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82361         (LOCALE_PARAM_PROTO): New macro.
82362         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82363         (INTERNAL (strtol), strtol): Define with a prototype.
82364         (PARAMS): Remove.  All uses removed.
82365         * lib/tempname.c: Include <string.h> unconditionally.
82366         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82367         * lib/xgethostname.c (main): Define with a prototype.
82368         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82369         Include <stdlib.h> unconditionally.
82370         (calloc, malloc, realloc, free): Remove decls.
82371         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82372         Include <stdlib.h> unconditionally.  Sort include file names.
82373         (strtod): Remove.
82374         (xstrtod): Define with a prototype.
82375         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82376         (strtol, strtoul): Remove decls.
82377
82378 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82379
82380         More patches to assume C89 or better.
82381         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82382         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82383         string.h, memchr, STDC_HEADERS.
82384
82385 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82386
82387         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82388         Include <stdlib.h>, <string.h> unconditionally.
82389         Remove now-unnecessary cast to char *.
82390         * lib/strnlen.c: Include <string.h> unconditionally.
82391         * lib/yesno.c (yesno): Define with a prototype.
82392
82393 2003-09-11  Bruno Haible  <bruno@clisp.org>
82394
82395         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82396
82397 2003-09-10  Jim Meyering  <jim@meyering.net>
82398
82399         * lib/error.c: Correct indentation of cpp directives.
82400
82401 2003-09-10  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82404         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82405         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82406         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82407         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82408         <stdlib.h> and <string.h> checks.
82409         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82410         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82411
82412 2003-09-10  Bruno Haible  <bruno@clisp.org>
82413
82414         * lib/strcspn.c: Include <string.h> unconditionally.
82415         * lib/strpbrk.c: Include <string.h> unconditionally.
82416         * lib/strstr.c: Include <string.h> unconditionally.
82417         * lib/unicodeio.c: Include <string.h> unconditionally.
82418         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82419         * lib/unsetenv.c: Likewise.
82420         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82421         * lib/yesno.c: Include <stdlib.h> unconditionally.
82422         (rpmatch): Add prototype.
82423
82424 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82425
82426         More patches to assume C89 or better.
82427         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82428         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82429         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82430         or for string.h.
82431         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82432         stdlib.h.
82433         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82434         C headers.
82435         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82436         string.h.
82437         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82438         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82439         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82440         or for string.h.
82441         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82442         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82443         C headers.
82444         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82445         memcpy.
82446         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82447         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82448         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82449         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82450         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82451         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82452         string.h, free.
82453         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82454         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82455         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82456         C headers, or for string.h.
82457         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82458         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82459         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82460         headers, memory.h, stdlib.h, string.h, strings.h.
82461         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82462         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82463         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82464         strchr.
82465         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82466         headers, memory.h, string.h.
82467         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82468         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82469         free.
82470         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82471         headers.
82472         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82473         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82474         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82475         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82476         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82477
82478 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82479
82480         More K&R removal.
82481
82482         * lib/acosl.c (main): Use a prototype.
82483         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82484         tanl.c: Likewise.
82485
82486         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82487
82488         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82489         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82490         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82491         with a prototype.
82492         * lib/getopt.c (const): Remove macro.
82493         Include <string.h> unconditionally.
82494         (my_index): Remove; all uses changed to strchr.
82495         (strlen): Remove decl.
82496         (exchange): Remove forward decl; no longer needed.
82497         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82498         Define with prototype.
82499         * lib/getopt1.c (const): Remove macro.
82500         (getopt_long, getopt_long_only, main): Define with prototype.
82501
82502         * lib/getugroups.c: Include <string.h> unconditionally.
82503
82504         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82505         (getusershell, setusershell, endusershell, readname, main):
82506         Define with prototypes.
82507
82508         * lib/group-member.c: Include group-member.h first.
82509         Include <stdlib.h> unconditionally.
82510
82511         * lib/hard-locale.c: Include hard-locale.h first.
82512         Include <stdlib.h>, <string.h> unconditionally.
82513
82514         * lib/hash.c (free, malloc): Remove decls.
82515         Include <stdlib.h> unconditionally.
82516
82517         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82518         (getenv): Do not declare.
82519
82520         * lib/idcache.c: Include <string.h> unconditionally.
82521
82522         * lib/long-options.c: Include long-options.h first, to test interface.
82523         Include <stdlib.h> unconditionally.
82524
82525         * lib/makepath.c: Include makepath.h first, to test interface.
82526         Include <stdlib.h> and <string.h> unconditionally.
82527
82528         * lib/linebuffer.c: Include <stdlib.h>.
82529         (free): Remove decl.
82530
82531         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82532         stddef.h. rpl_malloc returns void *, not char *.
82533         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82534         prototype.
82535
82536         * lib/md5.h: Include <limits.h> unconditionally.
82537         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82538         (__P): Remove; all uses removed.
82539         * lib/md5.c: Include "md5.h" first.
82540         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82541         md5_buffer, md5_process_bytes, md5_process_block):
82542         Define with prototypes.
82543         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82544         * lib/sha.c: Include "sha.h" first.
82545         Include <stdlib.h>, <string.h> unconditionally.
82546
82547         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82548         * lib/memcmp.c (__ptr_t): Likewise.
82549         * lib/memrchr.c (__ptr_t): Likewise.
82550         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82551         Include <string.h> unconditionally.
82552         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82553         * lib/memchr.c: Include <stdlib.h> unconditionally.
82554         * lib/memchr.c (LONG_MAX): Remove.
82555         * lib/memrchr.c (LONG_MAX): Likewise.
82556         * lib/memchr.c (__memchr): Define via a prototype.
82557         * lib/memrchr.c (__memrchr): Likewise.
82558         * lib/memcmp.c (__P): Remove, and remove all uses.
82559         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82560         Remove forward decls; no longer needed.
82561         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82562         Use types required by C89 in prototype.
82563
82564         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82565         * lib/savedir.c: Likewise.
82566         * lib/mkdir.c (free): Remove decl.
82567         * lib/rmdir.c (rmdir): Define with a prototype.
82568         * lib/savedir.c: Include savedir.h first, to test interface.
82569
82570         * lib/mktime.c (STDC_HEADERS): Remove.
82571         Include <stdlib.h>, <string.h> unconditionally.
82572
82573         * lib/modechange.c: Include <stdlib.h> unconditionally.
82574         (malloc): Remove decl.
82575
82576         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82577         (free): Remove decl.
82578
82579         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82580         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82581         (This type really should be intptr_t, but that's a C99ism.)
82582         (_obstack_memcpy): Remove: all uses changed to memcpy.
82583         Include <string.h> unconditionally.
82584         (struct obstack): Assume __STDC__ for types of members
82585         chunkfun, freefun, extra_arg.
82586         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82587         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82588         obstack_begin, obstack_specify_allocation,
82589         obstack_specify_allocation_with_arg, obstack_chunkfun,
82590         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82591         Remove unprototyped decls and the macros that use them.
82592         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82593         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82594         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82595         (defined __STDC__ && __STDC__)]:
82596         Remove nonprototyped code.
82597         Include <stdlib.h> unconditionally.
82598         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82599         _obstack_allocated_p, _obstack_free, obstack_free,
82600         _obstack_memory_used, print_and_abort):
82601         Define using prototypes.
82602         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82603         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82604         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82605         obstack_next_free, obstack_object_size, obstack_room) [0]:
82606         Remove unused, unprototyped code.
82607
82608         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82609
82610         * lib/physmem.c (physmem_total, physmem_available, main): Define
82611         with prototypes.
82612
82613         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82614         (main): Define with a prototype.
82615
82616         * lib/posixver.c (getenv): Remove decl.
82617
82618         * lib/putenv.c (malloc): Returns void *, not char *.
82619         Include <string.h> unconditionally.
82620         (strchr, memcpy, NULL): Do not define.
82621
82622         * lib/readtokens.c: Include readtokens.h first, to test interface.
82623         Include <stdlib.h>, <string.h> unconditionally.
82624         (init_tokenbuffer): Define with a prototype.
82625
82626         * lib/regex.c (PARAMS): Remove.  All uses removed.
82627         All uses of _RE_ARGS removed, too.
82628         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82629         unconditionally.
82630         (bzero): Assume memset exists.
82631         (memcmp, memcpy, NULL): Remove.
82632         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82633         char, or assignments to local vars of type signed char.
82634         (init_syntax_once, PREFIX(extract_number_and_incr),
82635         PREFIX(print_partial_compiled_pattern),
82636         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82637         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82638         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82639         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82640         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82641         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82642         wcs_compile_range, byte_compile_range, truncate_wchar,
82643         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82644         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82645         count_mbs_length, wcs_re_match_2_internal,
82646         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82647         PREFIX(alt_match_null_string_p),
82648         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82649         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82650         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82651         now-unnecessary declaration, if any.
82652         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82653         regcomp, regexec):
82654         Remove now-unnecessary casts among pointer types.
82655         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82656
82657         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82658         (free): Remove decl.
82659
82660         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82661
82662         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82663         (free): Remove decl.
82664
82665         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82666         * lib/xgetcwd.c: Likewise.
82667
82668         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82669         (free): Remove decl.
82670
82671         * lib/strchrnul.c (strchrnul): Define with a prototype.
82672         Fix bug: c_in was not converted to char before searching.
82673
82674         The following changes are not K&R related:
82675
82676         * lib/group-member.h: Include <sys/types.h>, so that this file is
82677         self-contained.
82678         * lib/makepath.h: Likewise.
82679
82680         * lib/getusershell.c (readname, default_index, line_size, readname):
82681         Use size_t, not int, for sizes.
82682         (readname): If the size overflows, report an error instead of
82683         looping forever.
82684
82685 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82686
82687         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82688         libc.
82689
82690 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82691
82692         * README: New section: portability guidelines.
82693
82694 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82695
82696         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82697         C89 spec.
82698
82699 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82700
82701         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82702
82703 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82704
82705         Assume C89 or better; remove K&R cruft.
82706         A few of these changes were first proposed by Derek Robert Price
82707         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82708
82709         * lib/addext.c: Include <string.h> unconditionally.
82710         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82711         Don't declare getenv or malloc.
82712
82713         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82714         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82715         (NULL): Remove.
82716         (find_stack_direction, alloca): Use prototypes.
82717
82718         * lib/atexit.c (atexit): Define using a prototype.
82719
82720         * lib/basename.c, dirname.c, stripslash.c:
82721         Include <string.h> unconditionally.
82722
82723         * lib/bcopy.c: Include <stddef.h>.
82724         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82725
82726         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82727
82728         * lib/error.h (error, error_at_line, error_print_progname)
82729         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82730         * lib/error.c: Include error.h first, to check interface.
82731         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82732         (VA_START): Remove; all uses changeed to va_start.
82733         (exit, strerror): Remove decls.
82734         (error_print_progname): Prototype uncondionally.
82735         Don't include <errno.h>; no longer needed.
82736         (private_strerror): Remove.
82737         (error_tail): Always define.
82738         (error, error_at_line): Assume C89 or better; always use prototypes.
82739         * lib/fatal.c: Include "fatal.h" first, to test interface.
82740         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82741         (VA_START): Remove; all uses changed to va_start.
82742         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82743         this case.
82744         (exit): Remove decl.
82745         (fatal): Prototype unconditionally.  Assume va_start works.
82746         Abort at end, to pacify gcc.
82747
82748         * lib/euidaccess.c (main): Define with a prototype.
82749
82750         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82751
82752         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82753
82754         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82755         prototypes.
82756         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82757         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82758         (getenv): Remove decl.
82759         (fnmatch): Define using a prototype.
82760         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82761         (FCT): Define using a prototype.
82762
82763         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82764
82765         * lib/gethostname.c: Include <stddef.h>.
82766         (gethostname): Define with prototype.  Length is size_t, not int.
82767
82768 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82769
82770         Assume C89 or better; remove K&R cruft.
82771         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82772         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82773         string.h, getenv, malloc.
82774         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82775         headers.
82776         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82777         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82778         do not check for strerror.
82779         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82780         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82781         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82782         do not check for doprnt or vprintf.
82783         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82784         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82785
82786 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82787
82788         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82789         getversion.c should have been removed then, but was accidentally
82790         preserved.
82791
82792         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82793         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82794
82795 2003-09-08  Karl Berry  <karl@gnu.org>
82796
82797         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82798                 config, forget about prep.
82799
82800         * config/depcomp, missing: update from automake.
82801
82802 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82803
82804         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82805         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82806
82807 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82808
82809         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82810         copy_tm_result.  Bug reported by Simon Josefsson in
82811         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82812
82813 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82814
82815         * m4/time_r.m4: New file.
82816         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82817         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82818         is. Check for timegm declaration.
82819         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82820         Do not check for gmtime_r.
82821         Replace mktime if __mktime_internal does not exist and if mktime
82822         hasn't been replaced already.
82823
82824 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82825
82826         * lib/time_r.c, lib/time_r.h: New files.
82827
82828         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82829         __localtime_r.
82830         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82831         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82832
82833         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82834         __gmtime_r.
82835         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82836         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82837         Include <time_r.h>.
82838
82839         * lib/timegm.c: Switch to glibc implementation, with the following
82840         changes:
82841         [defined HAVE_CONFIG_H]: Include <config.h>.
82842         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82843         (__mktime_internal) [!defined _LIBC]: New decl.
82844         (__gmtime_r) [!defined _LIBC]: New macro and function.
82845         (timegm): Use a prototype, since gnulib assumes C89.
82846         Do not bother declaring tmp to be const, as it's not really usefu.
82847         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82848         (timegm): Declare only if HAVE_DECL_TIMEGM.
82849
82850 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82851
82852         * MODULES.html.sh (func_all_modules): Add time_r.
82853         * modules/time_r: New file.
82854         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82855         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82856
82857 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82858
82859         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82860         Bug reported by Lute Kamstra in
82861         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82862
82863         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82864         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82865         course with correspondingly smaller numbers for tomorrow and
82866         yesterday.  From Tadayoshi Funaba.  Originally installed into
82867         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82868         coreutils merge?).
82869
82870 2003-08-31  Simon Josefsson  <jas@extundo.com>
82871
82872         * modules/timegm: New file.
82873         * MODULES.html.sh (func_all_modules): Add timegm.
82874
82875 2003-08-31  Simon Josefsson  <jas@extundo.com>
82876
82877         * m4/timegm.m4: New file.
82878
82879 2003-08-31  Simon Josefsson  <jas@extundo.com>
82880
82881         * lib/timegm.h: New file.
82882         * lib/timegm.c: New file.  Based on
82883         wget-1.8.2/src/http.c:mktime_from_utc.
82884
82885 2003-08-31  Karl Berry  <karl@gnu.org>
82886
82887         * lib/argp.h: update from libc.
82888
82889 2003-08-28  Bruno Haible  <bruno@clisp.org>
82890
82891         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82892         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82893         followed by '#define fnmatch fnmatch_posix' gives an error.
82894
82895 2003-08-28  Bruno Haible  <bruno@clisp.org>
82896
82897         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82898         warning on QNX, which defines O_BINARY to 000000.
82899
82900 2003-08-27  Jim Meyering  <jim@meyering.net>
82901
82902         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82903         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82904         would fail after 32.  Reported by Danny Levinson.  Details here:
82905         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82906
82907 2003-08-24  Bruno Haible  <bruno@clisp.org>
82908
82909         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82910         MSVC7 <stdio.h> is included later.
82911
82912 2003-08-22  Simon Josefsson  <jas@extundo.com>
82913
82914         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82915
82916 2003-08-20  Karl Berry  <karl@gnu.org>
82917
82918         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82919
82920 2003-08-20  Bruno Haible  <bruno@clisp.org>
82921
82922         * modules/progname: New file.
82923         * MODULES.html.sh (func_all_modules): Add progname.
82924
82925 2003-08-20  Bruno Haible  <bruno@clisp.org>
82926
82927         * lib/progname.h: New file, from GNU gettext.
82928         * lib/progname.c: New file, from GNU gettext.
82929         * lib/progreloc.c: New file, from GNU gettext.
82930
82931 2003-08-19  Jim Meyering  <jim@meyering.net>
82932
82933         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82934         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82935
82936 2003-08-19  Bruno Haible  <bruno@clisp.org>
82937
82938         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82939         more.
82940
82941 2003-08-19  Bruno Haible  <bruno@clisp.org>
82942
82943         * lib/xstrdup.c: Assume <string.h> exists.
82944
82945 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82946
82947         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82948         in makefile rules.
82949
82950 2003-08-18  Jim Meyering  <jim@meyering.net>
82951
82952         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82953         * m4/lib-ld.m4: Likewise.
82954
82955 2003-08-18  Jim Meyering  <jim@meyering.net>
82956
82957         * lib/setenv.h: Indent nested cpp directive.
82958         * lib/vasnprintf.c: Remove trailing blanks.
82959
82960 2003-08-17  Simon Josefsson  <jas@extundo.com>
82961
82962         * modules/xstrndup: New file.
82963         * MODULES.html.sh (func_all_modules): Add xstrndup.
82964
82965 2003-08-17  Simon Josefsson  <jas@extundo.com>
82966
82967         * modules/argp: Fix autoconf macro name. Add more dependencies.
82968
82969 2003-08-17  Simon Josefsson  <jas@extundo.com>
82970
82971         * m4/xstrndup.m4: New file.
82972
82973 2003-08-17  Simon Josefsson  <jas@extundo.com>
82974
82975         * m4/argp.m4: New file.
82976
82977 2003-08-17  Simon Josefsson  <jas@extundo.com>
82978             Bruno Haible  <bruno@clisp.org>
82979
82980         * lib/xstrndup.h: New file.
82981         * lib/xstrndup.c: New file.
82982
82983 2003-08-17  Bruno Haible  <bruno@clisp.org>
82984
82985         * modules/strndup (Files, Include): Add lib/strndup.h.
82986
82987 2003-08-17  Bruno Haible  <bruno@clisp.org>
82988
82989         * modules/euidaccess (Files): Add lib/euidaccess.h.
82990
82991 2003-08-17  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/strndup.h: New file.
82994
82995 2003-08-17  Bruno Haible  <bruno@clisp.org>
82996
82997         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82998         like AC_GNU_SOURCE.
82999         * modules/extensions (configure.ac): Comment out the invocation of
83000         gl_USE_SYSTEM_EXTENSIONS.
83001
83002 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83003
83004         Merges from coreutils, etc.
83005         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83006         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83007         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83008         fixing a typo.
83009         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83010         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83011
83012 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83013
83014         Document merge from coreutils.
83015         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83016         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83017         * modules/utime: Add m4/utimes-null.m4.
83018
83019 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83020
83021         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83022         space, undoing this 2003-08-12 change:
83023         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83024
83025 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83026
83027         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83028         strtoul.c from libc, undoing this 2003-08-12 change:
83029         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83030
83031 2003-08-16  Jim Meyering  <jim@meyering.net>
83032
83033         Merges from coreutils.
83034         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83035         prefix.  Adjust cache variables similarly.  Create 500 rather than
83036         just 300 files, to exercise bug on Darwin6.5, too.
83037         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83038         $missing_dir.
83039         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83040         AM_SYS_POSIX_TERMIOS.
83041         Reported by mkc@mathdogs.com.
83042         Also change use of $am_cv_sys_posix_termios
83043         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83044         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83045         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83046         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83047         in /proc/mounts until it finds one with matching device number.  This
83048         is unnecessary when the FILE argument *is* a mount point.  No stat call
83049         is necessary in that case.  So, disable the statvfs-testing code on
83050         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83051         as RedHat bug# 84846.
83052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83053         to 1MB, so as not to render systems with no stack size limit (e.g.,
83054         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83055         Include <unistd.h>.  On some systems,
83056         it is required for the definition of _SC_PAGESIZE.
83057
83058 2003-08-16  Jim Meyering  <jim@meyering.net>
83059
83060         Merge from coreutils.
83061         * lib/xstrtoimax.c: #else #if -> #elif.
83062         * lib/xstrtoumax.c: Likewise.
83063
83064 2003-08-16  Jim Meyering  <jim@meyering.net>
83065
83066         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83067         * m4/utimes.m4: Removed.
83068         * m4/utimes-null.m4: Renamed from utimes.m4.
83069
83070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83071         to 1MB, so as not to render systems with no stack size limit (e.g.,
83072         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83073         Include <unistd.h>.  On some systems,
83074         it is required for the definition of _SC_PAGESIZE.
83075
83076 2003-08-16  Jim Meyering  <jim@meyering.net>
83077         and Paul Eggert  <eggert@cs.ucla.edu>
83078
83079         Merges from coreutils, etc.
83080
83081         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83082         using the latest version from cvs.  This avoids problems with #line
83083         directives using a vendor (Sun) compiler.
83084         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83085         Don't set GETGROUPS_LIB here; now it's
83086         done via getgroups.m4's wrapper function.
83087         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83088         rather than just in sh-util/configure.in, so that the
83089         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83090         same.
83091         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83092         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83093         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83094         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83095         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83096         Remove code that is now done by the newly-required macros.
83097         Append $(EXEEXT) to DF_PROG.
83098         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83099         Do not invoke or require the following here,
83100         since prereq.m4 or some gnulib .m4 now does this for us:
83101         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83102         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83103         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83104         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83105         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83106         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83107         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83108         AC_FUNC_OBSTACK.
83109         Do not replace the following functions, as this is now the job
83110         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83111         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83112         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83113         atexit getpass, strdup, getpagesize.
83114         Replace 'raise'.
83115         Do not check for the following functions, as this is now the job
83116         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83117         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83118         setregid.
83119         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83120         Check for sys/sysctl.h.
83121         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83122         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83123         of checking for ssize_t ourselves.
83124
83125         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83126         Require every macro that gnulib/modules/* suggests for us.
83127         (jm_PREREQ_ADDEXT): New macro.
83128         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83129         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83130
83131         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83132         (gl_PHYSMEM): Use it.
83133         Also check for `table' function.
83134         Check for new headers and functions.
83135         Add check for sys/sysmp.h.
83136         With suggestions from Kaveh Ghazi.
83137         Ignore headers that are present but cannot be compiled.  This
83138         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83139         C 5.4.
83140
83141 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83142
83143         Document merge from coreutils.
83144         * modules/userspec: Depend on posixver.
83145         * modules/strftime: Depend on tzset.
83146
83147 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83148
83149         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83150         rather than tab, after '#' in shell-script copyright notices.
83151         Suggested by Bruno Haible.
83152
83153 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83154
83155         * config/srclist-update: Use three spaces, rather than tab, after '#'
83156         in shell-script copyright notices.  Suggested by Bruno Haible.
83157         Remove unnecessary parenthesization in regular expression.
83158
83159 2003-08-15  Jim Meyering  <jim@meyering.net>
83160
83161         Merge from coreutils.
83162         * lib/xgethostname.c: Include <stdlib.h>.
83163         (xghostname): Don't exit for anything other than memory-related
83164         failure; just return NULL.
83165         * lib/userspec.c: Include "posixver.h".
83166         (parse_user_spec): Accept `.' as a separator only
83167         in pre-POSIX-200112 mode.
83168         * lib/strtoimax.c: Use #elif rather than #else #if.
83169         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83170         Remove function, now that we can rely on a working tzset function.
83171         [!_LIBC]: Ensure that the required autoconf test has been run.
83172         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83173         Use underlying_strftime for %r.
83174         * lib/sha.c: Merge in some clean-up and optimization changes from
83175         glibc.
83176         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83177         Ensure that it is a multiple of 64.
83178         Rearrange loop exit tests so as to avoid performing an
83179         additional fread after encountering an error or EOF.
83180         * lib/realloc.c: Update copyright date.
83181
83182 2003-08-15  Jim Meyering  <jim@meyering.net>
83183         and Paul Eggert  <eggert@twinsun.com>
83184
83185         Merge from coreutils.
83186         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83187         member but strut utmpx does not.  Needed for AIX 4.3.3.
83188         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83189
83190 2003-08-15  Jim Meyering  <jim@meyering.net>
83191         and Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         Merges from coreutils, etc.
83194         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83195         Require gl_FUNC_TZSET_CLOBBER.
83196         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83197         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83198         members.
83199
83200 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83201
83202         Help the merge from coreutils.
83203         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83204         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83205         * m4/tzset.m4: Use it too.
83206
83207 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83208
83209         * modules/tzset: New file.
83210
83211 2003-08-14  Jim Meyering  <jim@meyering.net>
83212
83213         Merges from coreutils.
83214         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83215         variable names, rather than @FNMATCH_H@.
83216         * modules/alloca: Likewise for $(ALLOCA_H).
83217
83218         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83219         the three copies of the literal target, `fnmatch.h'.
83220         * modules/alloca (alloca.h): Likewise.
83221
83222 2003-08-14  Jim Meyering  <jim@meyering.net>
83223
83224         Merge from coreutils.
83225         * m4/tzset.m4: New file.
83226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83227         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83228         otherwise, AIX 5.1 systems would end up using the latter.
83229         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83230         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83231         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83232         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83233
83234 2003-08-14  Jim Meyering  <jim@meyering.net>
83235
83236         Merge from coreutils.
83237         * lib/obstack.h: Whitespace changes.
83238         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83239         and xcalloc return values.
83240         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83241         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83242         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83243         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83244         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83245         error from mntctl.
83246         Use mntctl's return value to drive the entry-processing loop, since
83247         we can't rely on the value of the vmt_length member in the last
83248         entry.  On some systems doing so could result in exhausting
83249         virtual memory.  Based in part on a patch from Mike Jetzer.
83250
83251 2003-08-14  Jim Meyering  <jim@meyering.net>
83252         and Paul Eggert  <eggert@twinsun.com>
83253
83254         Merges from coreutils, plus other fixes.
83255         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83256         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83257         for credits and details.  Thanks to Kaveh Ghazi for helping
83258         to keep these files in sync.
83259         (ARRAY_SIZE): Define it.
83260         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83261         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83262         (memcasecmp): Don't assume size_t fits in unsigned int.
83263         Remove casts and duplicate code.
83264         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83265         (memcpy): Remove definition.
83266         Merge in some clean-up and optimization changes from glibc.
83267         [BLOCKSIZE]: Move definition to top of file.
83268         Ensure that it is a multiple of 64.
83269         Rearrange loop exit tests so as to avoid performing an
83270         additional fread after encountering an error or EOF.
83271         * lib/md5.h (md5_uintptr): Define.
83272         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83273         return to the initial working directory.  Preserve errno
83274         for caller.
83275         * lib/idcache.c: Include "xalloc.h".
83276         (xmalloc, xrealloc): Remove decls.
83277         (getuser): Remove casts no longer required in C89.
83278         * lib/human.c: Include stdio.h, for sprintf.
83279         * lib/group-member.c: Include "xalloc.h".
83280         (xmalloc, xrealloc): Remove decls.
83281         (get_group_info): Remove casts no longer required in C89.
83282         * lib/getusershell.c (readname): Remove casts no longer required in
83283         C89.
83284         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83285         * lib/getline.c: Whitespace fix, from coreutils.
83286
83287 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83288
83289         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83290         Check for isascii.
83291
83292         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83293         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83294         Undo previous (whitespace-only) change.
83295
83296 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83297
83298         * lib/exclude.c: Include <ctype.h>
83299         (IN_CTYPE_DOMAIN): New macro.
83300         (is_space): New fn.
83301         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83302         and empty lines.
83303
83304         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83305         Undo previous (whitespace-only) change.
83306
83307 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83308
83309         * config/srclist-update: Change update back to the old behavior,
83310         leaving whitespace alone.  Use one 'sed' command rather than a
83311         pipeline.
83312         (fixlicense): Now a variable, not a function.
83313         (remove_trailing_blanks): Remove.
83314         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83315         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83316         Undo previous (whitespace-only) change.
83317
83318 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83319
83320         Merge from coreutils.
83321         * modules/euidaccess: Add lib_SOURCES, include for new
83322         file euidaccess.h
83323
83324 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83325
83326         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83327         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83328         Normalize leading white space and remove trailing white space.
83329
83330         Merge from coreutils
83331         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83332
83333         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83334         0.12.1.  These files are now being upgraded automatically by
83335         ../config/srclist-update.
83336
83337 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83338
83339         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83340         Normalize leading white space and remove trailing white space.
83341         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83342         notice, as per ../config/srclist-update.
83343
83344         Merge from coreutils.
83345         * lib/euidaccess.h: New file.
83346         * lib/euidaccess.c: Include it.
83347         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83348         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83349         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83350
83351 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83352
83353         * config/srclist-update: Add copyright notice.
83354         (remove_id_lines, remove_trailing_blanks): New constants.
83355         (fixfile): Use them to normalize spacing a bit in copied files.
83356         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83357         Normalize leading white space and remove trailing white space.
83358
83359         * config/texinfo.tex: Sync with texinfo.
83360
83361         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83362         strtoul.c from libc, to merge coreutils whitespace changes.
83363
83364         * config/srclist.txt: Get the following m4 files from gettext:
83365         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83366         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83367         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83368         wint_t.m4.
83369
83370 2003-08-12  Karl Berry  <karl@gnu.org>
83371
83372         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83373         been made.
83374
83375 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83376
83377         * modules/gnu-source, m4/gnu-source.m4:
83378         Remove; we're assuming Autoconf 2.54 or later now.
83379         Suggested by Bruno Haible.
83380         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83381
83382 2003-08-11  Bruno Haible  <bruno@clisp.org>
83383
83384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83385
83386 2003-08-11  Bruno Haible  <bruno@clisp.org>
83387
83388         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83389         (vasnprintf): Use it instead of wcslen.
83390
83391 2003-08-11  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83394         value to ensure that _Bool promotes to int. Use #define for _Bool when
83395         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83396
83397 2003-08-10  Karl Berry  <karl@gnu.org>
83398
83399         * lib/regex.h: update from libc (whitespace fix).
83400
83401 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83402
83403         Merge some files from coreutils.  These changes were
83404         originally made by Jim Meyering.
83405         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83406         many older Unixes require this.
83407         * lib/alloca.c (alloca): Remove cast to argument of free;
83408         no longer needed in C89.
83409         * lib/alloca_.h, regex.h: Fix white space to match
83410         what GNU indent does.
83411
83412 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83413
83414         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83415         apparently Emacs's Unicode mode got confused before my 2003-08-05
83416         checkin.
83417
83418 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83419
83420         * m4/extensions.m4: New file.
83421         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83422         Require gl_USE_SYSTEM_EXTENSIONS.
83423         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83424         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83425
83426 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83427
83428         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83429         * modules/extensions, modules/gnu-source: New files.
83430         * modules/timespec, modules/unlocked-io: Depend on extensions.
83431
83432 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83433
83434         * modules/restrict: New file.
83435         * MODULES.html.sh (func_all_modules): Add restrict.
83436         * modules/regex: Depend on restrict.
83437
83438 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83439
83440         * m4/restrict.m4: New file.
83441         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83442
83443 2003-08-07  Bruno Haible  <bruno@clisp.org>
83444
83445         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83446         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83447
83448 2003-08-07  Bruno Haible  <bruno@clisp.org>
83449
83450         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83451         makes the module 'getndelim2' compatible with the module 'getline'.
83452
83453 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83454
83455         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83456         byte with "\201" to avoid glitches when editing that source file
83457         with multi-gnome-terminal.
83458
83459 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83460
83461         * lib/bumpalloc.h: Remove.
83462
83463 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83464
83465         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83466         * modules/bumpalloc: Remove.
83467
83468 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83469
83470         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83471         GNU coding style.
83472
83473         Merge from coreutils.
83474         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83475         1. From glibc.
83476         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83477         from Karl Berry, implemented by Jim Meyering.
83478         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83479         from Dmitry V. Levin.
83480         Remove anachronistic cast of xrealloc.
83481         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83482         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83483         type. Otherwise, it wouldn't compile with at least /bin/cc on
83484         ymp-cray-unicos9.0.2.X.
83485         Combine two mostly-identical uses of alloca into one.
83486         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83487
83488 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83489
83490         [From Emacs.]
83491
83492         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83493         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83494         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83495         obsolete NLIST_NAME_UNION.
83496         [__GNU__]: Undef BSD and FSCALE.
83497         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83498
83499 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83500
83501         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83502         an enum type, so that it's guaranteed to promote to int.  See:
83503         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83504
83505 2003-08-03  Karl Berry  <karl@gnu.org>
83506
83507         * config/depcomp: update from automake.
83508
83509 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83510
83511         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83512         (strerror): Don't assume that a printable int fits in 14 bytes.
83513
83514 2003-07-31  Bruno Haible  <bruno@clisp.org>
83515
83516         * modules/getpass-gnu: New file.
83517         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83518
83519 2003-07-31  Bruno Haible  <bruno@clisp.org>
83520
83521         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83522
83523 2003-07-24  Karl Berry  <karl@gnu.org>
83524
83525         * config/missing: update from automake.
83526
83527 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83528             Bruno Haible  <bruno@clisp.org>
83529
83530         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83531         * lib/getline.c (getline, getdelim): Likewise.
83532         Remove _GNU_SOURCE define; now it's defined in config.h through
83533         m4/getline.m4.
83534
83535 2003-07-23  Karl Berry  <karl@gnu.org>
83536
83537         * config/config.sub: update from prep.
83538
83539 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83540
83541         * modules/xalloc (Depends-on): Add exitfail.
83542         * modules/xmemcoll: Likewise.
83543
83544 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83545
83546         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83547         over-parenthesization in macros.
83548
83549         Sync with coreutils.
83550
83551         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83552         required by C99.
83553
83554         Use `exit_failure' for xalloc and xmemcoll instead of their own
83555         private exit-failure variables.
83556         * lib/xalloc.h (xalloc_exit_failure): Remove.
83557         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83558         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83559         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83560         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83561         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83562
83563 2003-07-20  Jim Meyering  <jim@meyering.net>
83564
83565         * modules/closeout (Depends-on): Add exitfail.
83566         Suggestion from Bruno Haible.
83567
83568 2003-07-19  Karl Berry  <karl@gnu.org>
83569
83570         * config/config.sub: update from prep.
83571
83572 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83573
83574         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83575         Remove.
83576         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83577         to test that it can stand by itself.  Include "exitfail.h".
83578         Clients should set exit_failure instead.
83579         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83580
83581 2003-07-18  Bruno Haible  <bruno@clisp.org>
83582
83583         * modules/getndelim2: New file.
83584         * modules/getline: Share files with module getndelim2.
83585         * modules/getnline: Depend on getndelim2 instead of sharing files with
83586         it. Add getnline.c to lib_SOURCES.
83587         * MODULES.html.sh (func_all_modules): Add getndelim2.
83588
83589 2003-07-18  Bruno Haible  <bruno@clisp.org>
83590
83591         * m4/getndelim2.m4: New file.
83592         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83593         invoke gl_PREREQ_GETNDELIM2.
83594         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83595         gl_PREREQ_GETNDELIM2.
83596         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83597         gl_GETNDELIM2.
83598
83599 2003-07-18  Bruno Haible  <bruno@clisp.org>
83600
83601         * lib/getndelim2.h: New file.
83602         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83603         getndelim2.h.
83604         (getndelim2): Make non-static. Change return type to ssize_t.
83605         * lib/getline.h: Change argument names.
83606         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83607         * lib/getnline.c: Include getndelim2.h.
83608
83609 2003-07-18  Andreas Schwab  <schwab@suse.de>
83610
83611         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83612
83613 2003-07-17  Karl Berry  <karl@gnu.org>
83614
83615         * config/config.sub: update from prep.
83616
83617 2003-07-17  Bruno Haible  <bruno@clisp.org>
83618
83619         * modules/getnline: New file.
83620         * modules/getline: Add lib/getndelim2.c to source file list.
83621         * MODULES.html.sh (func_all_modules): Add getnline.
83622
83623 2003-07-17  Bruno Haible  <bruno@clisp.org>
83624
83625         * m4/getnline.m4: New file.
83626
83627 2003-07-17  Bruno Haible  <bruno@clisp.org>
83628
83629         * m4/Makefile.am.in: Remove file.
83630         * m4/Makefile.am: Remove file.
83631         * m4/Makefile.in: Remove file.
83632
83633 2003-07-17  Bruno Haible  <bruno@clisp.org>
83634
83635         * lib/getnline.h: New file.
83636         * lib/getnline.c: New file.
83637         * lib/getndelim2.c: New file, extracted from getline.c.
83638         (getndelim2): Renamed from getdelim2, with added nmax argument.
83639         * lib/getline.c: Include getndelim2.c.
83640         (getdelim2): Moved out to getndelim2.c.
83641         (getline, getdelim): Update.
83642
83643 2003-07-17  Bruno Haible  <bruno@clisp.org>
83644
83645         * lib/Makefile.am: Remove file.
83646         * lib/Makefile.in: Remove file.
83647
83648 2003-07-17  Bruno Haible  <bruno@clisp.org>
83649
83650         * configure.in: Remove file.
83651         * Makefile.in: Remove file.
83652
83653 2003-07-17  Bruno Haible  <bruno@clisp.org>
83654
83655         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83656
83657 2003-07-16  Karl Berry  <karl@gnu.org>
83658
83659         * config/srclist-update: was running fixlicense twice, which caused
83660                 texinfo.tex to be nullified for some reason.  Simplify,
83661                 $gplsrc is no longer needed as far as I can see?
83662
83663 2003-07-16  Jim Meyering  <jim@meyering.net>
83664
83665         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83666
83667 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83668
83669         * config/srclist.txt: Get the following files from gettext-runtime/intl
83670         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83671         ref-del.sin.  From Bruno Haible.
83672         * config/srclist-update (fixfile): Change grep pattern again, since the
83673         previous fix didn't work (there was another trailing $).  Use
83674         '[$]' to escape the $s.
83675
83676 2003-07-15  Karl Berry  <karl@gnu.org>
83677
83678         * lib/vasnprintf.c: update from gettext.
83679
83680 2003-07-15  Karl Berry  <karl@gnu.org>
83681
83682         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83683         gets expanded when surrounded by '$'.
83684
83685 2003-07-15  Jim Meyering  <jim@meyering.net>
83686
83687         * modules/save-cwd: Don't depend on error.  From Derek Price.
83688
83689 2003-07-15  Jim Meyering  <jim@meyering.net>
83690
83691         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83692
83693 2003-07-14  Simon Josefsson  <jas@extundo.com>
83694
83695         * modules/mempcpy: New file.
83696         * MODULES.html.sh (func_all_modules): Add mempcpy.
83697
83698 2003-07-14  Simon Josefsson  <jas@extundo.com>
83699
83700         * m4/mempcpy.m4: New file.
83701
83702 2003-07-14  Simon Josefsson  <jas@extundo.com>
83703
83704         * lib/mempcpy.h: New file.
83705         * lib/mempcpy.c: New file.
83706
83707 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83708
83709         * modules/getdate, modules/posixtm: Depend on mktime.
83710
83711 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83712
83713         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83714         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83715         unicodeio.c, unicodeio.h, unlocked-io.h:
83716         Switch from LGPL to GPL.
83717
83718 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83719
83720         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83721         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83722         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83723         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83724         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83725         updated automatically by ../config/srclist-update.  This changes
83726         their license from LPGL to GPL.
83727
83728 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83729
83730         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83731         assumed to refer to the root of the most recent stable gettext version.
83732         * config/srclistvars.sh: Add defaults for eggert.
83733         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83734         Match "This program" as well as "The program".  This is needed
83735         for gettext.
83736
83737 2003-07-14  Jim Meyering  <jim@meyering.net>
83738
83739         Don't emit diagnostics.  Let callers do that.
83740         * lib/save-cwd.c: Don't include "error.h".
83741         (save_cwd): Don't call error.  Ensure that errno is valid
83742         when returning nonzero.
83743
83744         * lib/save-cwd.h (restore_cwd): Update prototype.
83745         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83746         Simplify.  Don't call error upon failure.  Let callers do that.
83747         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83748         when auditing is enabled.  But don't bother updating the #if.
83749
83750 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83751
83752         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83753         it breaks C++ compilation.
83754         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83755
83756 2003-07-10  Simon Josefsson  <jas@extundo.com>
83757
83758         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83759
83760 2003-07-10  Jim Meyering  <jim@meyering.net>
83761
83762         * m4/clock_time.m4: Remove trailing blank.
83763         * m4/intmax_t.m4: Likewise.
83764
83765 2003-07-10  Jim Meyering  <jim@meyering.net>
83766
83767         * lib/vasnprintf.c: Remove trailing blanks.
83768         Make cpp indentation consistent.
83769
83770 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83771
83772         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83773         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83774         Switch from LGPL to GPL.
83775
83776 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83777
83778         * config/srclist.txt: Sort sublists.  Add
83779         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83780         that differ from gnulib for one reason or another; we'd like this list
83781         to be smaller but for now let's document what we have.
83782
83783 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83784
83785         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83786         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83787         and sweeter "eval x=$x".
83788         * config/srclist.txt: Get lib/argp* from glibc.
83789
83790 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83791
83792         * lib/mktime.c: Fix some boundary cases and remove need for floating
83793         point.
83794
83795         Issue a compile-time diagnostic if time_t is floating point, or if
83796         two's complement arithmetic is not in effect, or if arithmetic
83797         right shift does not propagate the sign.  These assumptions were
83798         all in the original code but they weren't checked.
83799
83800         (TIME_T_MIDPOINT, verify): New macros.
83801         (__isleap): Remove; it has integer overflow problems.
83802         (leapyear): New function, without those problems.
83803         (ydhms_tm_diff): Remove; splitting into two parts.
83804         (ydhms_diff): New function, containing the arithmetic part of
83805         the old ydhms_tm_diff function.  Issue a compile-time
83806         diagnostic if we are not using C99 integer division.
83807         Avoid casts when possible.
83808         (guess_time_tm): New function, containing the checking part of
83809         the old ydhms_tm_diff function.  Return the new value, rather than
83810         the difference between it and the old.  Accept a new argument T
83811         so that *T specifies the old value.  Check for overflow in the result.
83812
83813         (__mktime_internal): Use a time_t offset, not a long int offset.
83814         This undoes the 2003-06-04 change, which is no longer needed now
83815         that we have better overflow checking.
83816         (localtime_offset): Likewise.
83817
83818         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83819         and long are 64-bit but int is only 32-bit.
83820         (ydhms_diff): Use long int to store year1 and yday1.
83821         Issue a compile-time diagnostic if long int is not wide enough.
83822
83823         (__mktime_internal): Use long int to store adjusted year and yday.
83824         Use plain C rather than preprocessor commands, if that doesn't
83825         affect efficiency.
83826         Check for overflow (and try to repair) after each probe
83827         rather than checking only at the very end.  This avoids some bugs
83828         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83829         does not equal GMT offset at maximum time).
83830         Use integer to check for overflow rather than floating point; this
83831         is more portable to non-IEEE hosts, and is a tad faster.
83832         When we detect that we are oscillating between two values,
83833         don't check whether tm_isdst has the requested value, since
83834         we already know the answer.  When tm_isdst has the wrong value,
83835         use a different heuristic to find the right one, based on the
83836         extreme values actually observed in practice in tz2003a,
83837         rather than the (overly optimistic) "previous 3 calendar quarters".
83838
83839         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83840         "T const" to accommodate glibc style.
83841         (check_result): Use less-confusing report format.  "long" -> "long int.
83842         (main): Likewise.
83843         Don't loop if the iteration overflows time_t.
83844         Allow a negative step in the iteration.
83845
83846 2003-07-06  Karl Berry  <karl@gnu.org>
83847
83848         * config/depcomp: update from automake.
83849         * config/config.sub: update from prep.
83850
83851 2003-07-03  Karl Berry  <karl@gnu.org>
83852
83853         * config/config.guess: update from prep.
83854
83855 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83856
83857         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83858         xreadlink.c now includes it unconditionally.
83859
83860 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83861
83862         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83863         having it depend on HAVE_SYS_TYPES_H.
83864
83865 2003-07-01  Bruno Haible  <bruno@clisp.org>
83866
83867         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83868         <sys/types.h> should be sufficient.
83869         Reported by Paul Eggert.
83870
83871 2003-06-26  Karl Berry  <karl@gnu.org>
83872
83873         * config/depcomp: update from automake.
83874
83875 2003-06-26  Bruno Haible  <bruno@clisp.org>
83876
83877         * modules/human: Depend on module stdbool.
83878
83879 2003-06-25  Bruno Haible  <bruno@clisp.org>
83880
83881         * modules/readlink: New file.
83882         * modules/xreadlink: Depend on it.
83883         * MODULES.html.sh (func_all_modules): Add readlink.
83884
83885 2003-06-25  Bruno Haible  <bruno@clisp.org>
83886
83887         * m4/readlink.m4: New file.
83888
83889 2003-06-25  Bruno Haible  <bruno@clisp.org>
83890
83891         * lib/readlink.c: New file.
83892
83893 2003-06-22  Karl Berry  <karl@gnu.org>
83894
83895         * config/srclist.txt: update mkinstalldirs from automake.
83896         * config/mkinstalldirs: update.
83897
83898 2003-06-22  Bruno Haible  <bruno@clisp.org>
83899
83900         Portability to mingw32.
83901         * m4/ssize_t.m4: New file, from GNU gettext.
83902         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83903         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83904
83905 2003-06-22  Bruno Haible  <bruno@clisp.org>
83906
83907         * modules/safe-read: Add m4/ssize_t.m4.
83908         * modules/xreadlink: Add m4/ssize_t.m4.
83909
83910 2003-06-20  Bruno Haible  <bruno@clisp.org>
83911
83912         Assume C89, so PARAMS isn't needed.
83913         * lib/unicodeio.h (PARAMS): Remove.
83914         * lib/unicodeio.c: Don't use PARAMS.
83915
83916 2003-06-18  Karl Berry  <karl@gnu.org>
83917
83918         * config/config.{guess,sub}: update from prep.
83919
83920 2003-06-18  Jim Meyering  <jim@meyering.net>
83921
83922         Merge changes from coreutils.
83923         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83924         Remove explicit declarations of xmalloc and realloc.
83925         Include xalloc.h.
83926         (read_utmp): Remove anachronistic cast of xmalloc.
83927
83928 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83929
83930         Assume C89, so PARAMS isn't needed.
83931         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83932         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83933         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83934         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83935         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83936         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83937         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83938         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83939         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83940         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83941         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83942         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83943         no longer needed. Anyway, config.h should always be included before any
83944         other file.
83945
83946 2003-06-11  Simon Josefsson  <jas@extundo.com>
83947
83948         * modules/sysexits: New file.
83949         * MODULES.html.sh (func_all_modules): Add sysexits.
83950
83951 2003-06-11  Simon Josefsson  <jas@extundo.com>
83952
83953         * lib/sysexit_.h: New file.
83954
83955 2003-06-11  Derek Price  <derek@ximbiot.com>
83956
83957         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83958         necessary.
83959
83960 2003-06-11  Bruno Haible  <bruno@clisp.org>
83961
83962         * m4/sysexits.m4: New file.
83963
83964 2003-06-10  Simon Josefsson  <jas@extundo.com>
83965
83966         * lib/argp.h: New file, from glibc.
83967         * lib/argp-ba.c: New file, from glibc.
83968         * lib/argp-eexst.c: New file, from glibc.
83969         * lib/argp-fmtstream.c: New file, from glibc.
83970         * lib/argp-fmtstream.h: New file, from glibc.
83971         * lib/argp-fs-xinl.c: New file, from glibc.
83972         * lib/argp-help.c: New file, from glibc.
83973         * lib/argp-namefrob.h: New file, from glibc.
83974         * lib/argp-parse.c: New file, from glibc.
83975         * lib/argp-pv.c: New file, from glibc.
83976         * lib/argp-pvh.c: New file, from glibc.
83977         * lib/argp-xinl.c: New file, from glibc.
83978
83979 2003-06-10  Simon Josefsson  <jas@extundo.com>
83980
83981         * modules/strchrnul: New file.
83982
83983 2003-06-10  Simon Josefsson  <jas@extundo.com>
83984
83985         * modules/argp: New file.
83986
83987 2003-06-10  Simon Josefsson  <jas@extundo.com>
83988
83989         * m4/strchrnul.m4: New file.
83990
83991 2003-06-10  Simon Josefsson  <jas@extundo.com>
83992
83993         * lib/strchrnul.h: New file.
83994         * lib/strchrnul.c: New file.
83995
83996 2003-06-10  Bruno Haible  <bruno@clisp.org>
83997
83998         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83999
84000 2003-06-07  Karl Berry  <karl@gnu.org>
84001
84002         * config/config.{guess,sub}: update from prep.
84003
84004 2003-06-07  Jim Meyering  <jim@meyering.net>
84005
84006         * modules/strtod: Use $(...) notation, not @...@ for
84007         AC_REPLACE'd variables.
84008         * modules/localcharset: Likewise.
84009
84010 2003-06-07  Jim Meyering  <jim@meyering.net>
84011
84012         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84013         in place of my name in the copyright comment.
84014         Remove definition and uses of __P.
84015
84016         From coreutils.
84017         * lib/stat.c: Don't declare xmalloc explicitly.
84018         Instead, include "xalloc.h".
84019         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84020         xrealloc, and xcalloc return values.
84021         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84022         Improve comment.
84023         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84024
84025 2003-06-07  Bruno Haible  <bruno@clisp.org>
84026
84027         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84028         avoid AC_CONFIG_LINKS.
84029         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84030         fnmatch.h, to avoid AC_CONFIG_LINKS.
84031         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84032
84033 2003-06-07  Bruno Haible  <bruno@clisp.org>
84034
84035         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84036         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84037         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84038         directory.
84039         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84040         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84041         directory.
84042
84043 2003-06-06  Jim Meyering  <jim@meyering.net>
84044
84045         Merge from coreutils.
84046         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84047         Consolidate declarations and initializations of *_base* locals.
84048
84049         Merge from coreutils.
84050         This avoids a core dump on systems without GNU putenv,
84051         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84052         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84053         (unsetenv): New static function, from GNU libc.
84054         (rpl_putenv): Use it.
84055
84056         * lib/modechange.c: Remove trailing blanks.
84057
84058         Merge from coreutils.
84059         * lib/fsusage.c: Remove declaration of statfs.
84060         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84061
84062         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84063
84064 2003-06-06  Jim Meyering  <jim@meyering.net>
84065
84066         * lib/stdbool_.h: Renamed from stdbool.h.in.
84067
84068 2003-06-06  Jim Meyering  <jim@meyering.net>
84069             Bruno Haible  <bruno@clisp.org>
84070
84071         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84072         Adjust Makefile.am snippet not to redirect directly to target.
84073         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84074
84075 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84076
84077         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84078         mismatch, look in future quarters as well as past.  This fixes a
84079         bug when processing fall-backwards gaps immediately after a long
84080         period of daylight-saving time.
84081
84082         * lib/mktime.c: Assume freestanding C89 or better.
84083         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84084         (__P): Remove; not used.
84085         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84086         (mktime, not_equal_tm, print_tm, check_result,
84087         main): Use prototypes.  Use const * where appropriate.
84088         (main): Fix typo in testing code that uncovered by above changes.
84089         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84090
84091 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84092
84093         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84094         locale.h, localeconv.  This merges changes from coreutils.
84095
84096         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84097         It can be removed after the next Autoconf is released.
84098         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84099         needed.
84100
84101 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84102
84103         * lib/mktime.c: Fix Debian bug 177940
84104         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84105         (localtime_offset): Now long int, not time_t, because we want it
84106         to be guaranteed to be signed.  All uses changed.
84107         (__mktime_internal): If overflow would occur when adding offset,
84108         don't add it.
84109
84110         Merge 'human' changes from coreutils.  Rewrite to support
84111         locale-specific notations like thousands separators.
84112         * lib/human.c: Simplify authorship notice.
84113         Include human.h immediately after config.h.
84114         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84115         <limits.h>: Do not include, since human.h does.
84116         (SIZE_MAX, UINTMAX_MAX): New macros.
84117         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84118         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84119         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84120         (power_letter): Renamed from suffixes.
84121         (generate_suffix_backwards): Remove.
84122         (adjust_value): Now takes int style (because of human.h changes)
84123         and long double value (for greater precision on some platforms).
84124         (group_number): New function.
84125         (human_readable): Use it.  Use integer options, not enum.
84126         Put the options before the sizes in the arg list.
84127         Support all the new options.
84128         The old human_readable function has been removed;
84129         use inttostr.h instead.
84130         (human_readable, default_block_size, humblock):
84131         Use uintmax_t, not int, for block sizes.
84132         (human_readable_inexact, block_size_types): Remove.
84133         (block_size_opts): New constant.
84134         (human_options): Renamed from human_block_size, with new signature
84135         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84136         * lib/human.h: Add copyright and authorship notice.
84137         Include <limits.h> and <stdbool.h> unconditionally.
84138         (PARAMS): Remove.  All uses removed.
84139         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84140         (enum human_inexact_style): Remove tag; now a nameless enum.
84141         (human_floor, human_ceiling, human_round_to_even): Now have
84142         values 2, 0, 1 rather than -1, 1, 0.
84143         (human_group_digits, human_suppress_point_zero, human_autoscale,
84144         human_base_1024, human_SI, human_B): New constants.
84145         (human_readable_inexact, human_block_size): Remove.
84146         (human_readable): Size args are now uintmax_t, not int.
84147         (human_options): New decl.
84148
84149         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84150         unnecessary now that we assume C89 or better.  This change
84151         imported from coreutils.
84152
84153         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84154         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84155         in the 2003-05-30 sync from glibc.
84156
84157         .h files should stand alone, but we shouldn't include <sys/types.h>
84158         if we can get away with just <stddef.h>.
84159
84160         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84161         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84162         rather than <sys/types.h>, as we merely need size_t.
84163         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84164         to get size_t.
84165         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84166         Include <stdio.h>, to get FILE.
84167         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84168         memcasecmp.h has included <stddef.h> and all we need is size_t.
84169         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84170         our interface, instead of including <sys/types.h>
84171
84172 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84173
84174         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84175         now, as glibc mktime is buggy on non-glibc systems.
84176
84177 2003-06-03  Karl Berry  <karl@gnu.org>
84178
84179         * config/config.sub: update from prep.
84180
84181 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84182
84183         [from coreutils]
84184         Fix some minor time-related bugs with POSIX time arguments.
84185         Some valid time stamps were being rejected (notably -1, and
84186         time stamps before 1900 on 64-bit hosts).  And some invalid
84187         time stamps were being accepted, e.g. September 31.
84188
84189         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84190         that we can return (time_t) -1 successfully.
84191         * lib/posixtm.c: Likewise.
84192         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84193         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84194         (t): Remove static var.
84195         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84196         of static var.  All uses changed.
84197         (year): Do not reject years before 1900; they can occur with
84198         64-bit time_t.
84199         (posix_time_parse): Do not check for out-of-range components;
84200         that is now the caller's responsibility, since our checks were
84201         only approximations.
84202         (posixtime): Use mktime to check for out-of-range components,
84203         since it knows them exactly.
84204         If mktime returns (time_t) -1, check whether an error actually occurred
84205         by invoking localtime on -1.
84206         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84207         posixtime failures better.
84208         Improve the test data (in comments only).
84209
84210 2003-06-02  Karl Berry  <karl@gnu.org>
84211
84212         * config/mkinstalldirs (version): new variable.
84213         (--version): new option.
84214         (usage): improve message.
84215
84216 2003-05-30  Karl Berry  <karl@gnu.org>
84217
84218         * lib/mktime.c: update from libc.
84219
84220 2003-05-30  Bruno Haible  <bruno@clisp.org>
84221
84222         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84223         * config/config.rpath: Upgrade to gettext-0.12.1.
84224
84225 2003-05-30  Bruno Haible  <bruno@clisp.org>
84226
84227         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84228         * m4/nls.m4: New file, from gettext-0.12.1.
84229         * m4/po.m4: New file, from gettext-0.12.1.
84230         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84231
84232 2003-05-30  Bruno Haible  <bruno@clisp.org>
84233
84234         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84235         * lib/localcharset.h: Likewise.
84236         * lib/localcharset.c: Likewise.
84237
84238 2003-05-29  Karl Berry  <karl@gnu.org>
84239
84240         * config/config.rpath: update from gettext.
84241
84242 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84243
84244         Assume the headers required for C89 freestanding compilers.
84245         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84246         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84247         * m4/human.m4 (gl_HUMAN): Likewise.
84248         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84249         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84250         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84251         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84253         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84254
84255 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84256
84257         Assume the headers required for C89 freestanding compilers.
84258         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84259         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84260         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84261         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84262         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84263         define, since <limits.h> is guaranteed to do that.
84264         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84265         * lib/exclude.c: Include <stdbool.h> unconditionally.
84266         * lib/tempname.c: Include <stddef.h> unconditionally.
84267         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84268         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84269         <stddef.h> does that.
84270         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84271         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84272         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84273         needed.
84274         * lib/xstrtol.c: Likewise.
84275         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84276         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84277
84278         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84279         warnings on some platforms.
84280
84281         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84282         arbitrarily.
84283
84284 2003-05-26  Jim Meyering  <jim@meyering.net>
84285
84286         Merge in a change from coreutils:
84287         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84288         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84289         that condition, rather than `-1' which is slightly misleading.
84290         Change the name of the cache variable to have the gl_ prefix.
84291         Prompted by a patch from Richard Dawe for DJGPP.
84292
84293 2003-05-24  Karl Berry  <karl@gnu.org>
84294
84295         * config/config.guess: update from prep.
84296
84297 2003-05-22  Karl Berry  <karl@gnu.org>
84298
84299         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84300
84301 2003-05-20  Karl Berry  <karl@gnu.org>
84302
84303         * config/config.guess: update from prep.
84304
84305 2003-05-18  Karl Berry  <karl@gnu.org>
84306
84307         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84308         might actually be set by the user.
84309
84310         * config/depcomp, install-sh, mdate-sh: update from automake.
84311
84312 2003-05-17  Bruno Haible  <bruno@clisp.org>
84313
84314         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84315         invalid expansion for AC_EGREP_CPP.
84316         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84317         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84318         Suggested by Akim Demaille <akim@epita.fr> in
84319         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84320
84321 2003-05-12  Jim Meyering  <jim@meyering.net>
84322
84323         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84324         the space-padded-by-default conversion specifiers, %e, %k, %l.
84325
84326 2003-05-12  Bruno Haible  <bruno@clisp.org>
84327
84328         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84329         the string is longer than 4 KB.
84330
84331 2003-05-11  Karl Berry  <karl@gnu.org>
84332
84333         * config/config.{guess,sub}: update from prep.
84334
84335 2003-05-09  Bruno Haible  <bruno@clisp.org>
84336
84337         * modules/error: Add m4/strerror_r.m4 to file list.
84338
84339 2003-05-03  Bruno Haible  <bruno@clisp.org>
84340
84341         Upgrade to Unicode-4.0.
84342         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84343         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84344         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84345         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84346         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84347         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84348         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84349         Change width of U+E0100..U+E01EF from 1 to 0.
84350
84351 2003-04-25  Jim Meyering  <jim@meyering.net>
84352
84353         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84354         of type size_t, not int.
84355
84356 2003-04-25  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/copy-file.c: Include <stddef.h>, for size_t.
84359
84360 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84361
84362         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84363         code which expansion is under static control.  Patch imported from
84364         Akim Demaille's patch to Bison; see
84365         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84366
84367 2003-04-14  Bruno Haible  <bruno@clisp.org>
84368
84369         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84370
84371 2003-04-11  Jim Meyering  <jim@meyering.net>
84372
84373         Merge changes from Coreutils.
84374
84375         2003-03-22  Jim Meyering  <jim@meyering.net>
84376
84377         * lib/strftime.c (widen): Cast alloca return value to proper type.
84378
84379         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84380
84381         From GNU libc.
84382         * lib/strftime.c (my_strftime): Handle very large width
84383         specifications for numeric values correctly.  Improve checks for
84384         overflow.
84385
84386         2003-01-19  Jim Meyering  <jim@meyering.net>
84387
84388         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84389         definitions.
84390         (nl_get_alt_digit) [! defined my_strftime]: Define.
84391         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84392         _nl_get_alt_digit and _nl_get_walt_digit.
84393
84394         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84395         libc. These changes have no effect outside of _LIBC.
84396
84397 2003-04-10  Bruno Haible  <bruno@clisp.org>
84398
84399         * modules/findprog: New file.
84400         * MODULES.html.sh (func_all_modules): Add it.
84401
84402 2003-04-10  Bruno Haible  <bruno@clisp.org>
84403
84404         * m4/findprog.m4: New file.
84405         * m4/eaccess.m4: New file.
84406
84407 2003-04-10  Bruno Haible  <bruno@clisp.org>
84408
84409         * lib/findprog.h: New file, from GNU gettext.
84410         * lib/findprog.c: New file, from GNU gettext.
84411
84412 2003-04-05  Jim Meyering  <jim@meyering.net>
84413
84414         Merge changes from Coreutils.
84415
84416         * lib/exclude.h (PARAMS): Remove definition and uses.
84417         * lib/exclude.c: Remove uses of `PARAMS'.
84418
84419         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84420         Add test-cases for DOS filenames. Declare program_name.
84421         (main): Set up program_name.  Patch by Rich Dawe.
84422
84423         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84424         error from mntctl.
84425         Use mntctl's return value to drive the entry-processing loop, since
84426         we can't rely on the value of the vmt_length member in the last
84427         entry.  On some systems doing so could result in exhausting
84428         virtual memory.  Based in part on a patch from Mike Jetzer.
84429
84430 2003-04-04  Bruno Haible  <bruno@clisp.org>
84431
84432         * modules/linebreak: New file.
84433         * MODULES.html.sh (func_all_modules): Add it.
84434
84435 2003-04-04  Bruno Haible  <bruno@clisp.org>
84436
84437         * m4/linebreak.m4: New file.
84438
84439 2003-04-04  Bruno Haible  <bruno@clisp.org>
84440
84441         * lib/linebreak.h: New file, from GNU gettext.
84442         * lib/linebreak.c: New file, from GNU gettext with slight
84443         modifications.
84444         * lib/lbrkprop.h: New file, from GNU gettext.
84445
84446 2003-04-03  Bruno Haible  <bruno@clisp.org>
84447
84448         * modules/utf8-ucs4: New file.
84449         * modules/utf16-ucs4: New file.
84450         * modules/ucs4-utf8: New file.
84451         * modules/ucs4-utf16: New file.
84452         * MODULES.html.sh (func_all_modules): Add them.
84453
84454 2003-04-03  Bruno Haible  <bruno@clisp.org>
84455
84456         * m4/utf-ucs4.m4: New file.
84457         * m4/ucs4-utf.m4: New file.
84458
84459 2003-04-03  Bruno Haible  <bruno@clisp.org>
84460
84461         * lib/utf8-ucs4.h: New file, from GNU gettext.
84462         * lib/utf16-ucs4.h: New file, from GNU gettext.
84463         * lib/ucs4-utf8.h: New file, from GNU gettext.
84464         * lib/ucs4-utf16.h: New file, from GNU gettext.
84465
84466 2003-04-02  Bruno Haible  <bruno@clisp.org>
84467
84468         * modules/binary-io: New file.
84469         * MODULES.html.sh (func_all_modules): Add it.
84470
84471 2003-04-02  Bruno Haible  <bruno@clisp.org>
84472
84473         * lib/binary-io.h: New file, from GNU gettext.
84474
84475 2003-04-01  Bruno Haible  <bruno@clisp.org>
84476
84477         * modules/pathname: New file.
84478         * MODULES.html.sh (func_all_modules): Add it.
84479
84480 2003-04-01  Bruno Haible  <bruno@clisp.org>
84481
84482         * lib/pathname.h: New file, from GNU gettext.
84483         * lib/concatpath.c: New file, from GNU gettext.
84484
84485 2003-03-30  Bruno Haible  <bruno@clisp.org>
84486
84487         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84488
84489 2003-03-30  Bruno Haible  <bruno@clisp.org>
84490
84491         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84492         function chown() doesn't exist.
84493
84494 2003-03-28  Bruno Haible  <bruno@clisp.org>
84495
84496         * modules/copy-file: New file.
84497         * MODULES.html.sh (func_all_modules): Add it.
84498
84499 2003-03-28  Bruno Haible  <bruno@clisp.org>
84500
84501         * m4/copy-file.m4: New file.
84502
84503 2003-03-28  Bruno Haible  <bruno@clisp.org>
84504
84505         * lib/copy-file.h: New file, from GNU gettext.
84506         * lib/copy-file.c: New file, from GNU gettext.
84507
84508 2003-03-18  Jim Meyering  <jim@meyering.net>
84509
84510         * lib/quote.c (quote_n): Fix typo in comment.
84511
84512 2003-03-18  Bruno Haible  <bruno@clisp.org>
84513
84514         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84515         checking.
84516         * m4/onceonly_2_57.m4: Likewise.
84517
84518 2003-03-17  Bruno Haible  <bruno@clisp.org>
84519
84520         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84521         (m4_quote): Remove macro.
84522         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84523
84524 2003-03-14  Jim Meyering  <jim@meyering.net>
84525
84526         Merge changes from Coreutils.
84527         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84528         to be const, in order to avoid warnings.
84529         (obstack_room): Likewise.
84530         (obstack_empty_p): Likewise.
84531
84532 2003-03-14  Bruno Haible  <bruno@clisp.org>
84533
84534         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84535         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84536
84537 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84538
84539         Merge changes from Bison.
84540         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84541         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84542         when compiling Bison 1.875's `bitset bset = obstack_alloc
84543         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84544         * lib/hash.c: Include <stdbool.h> unconditionally.
84545
84546 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84547
84548         * m4/onceonly.m4 (m4_quote): New macro.
84549         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84550         Quote AC_FOREACH variable-expansions properly.
84551
84552 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84553
84554         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84555
84556 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84557
84558         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84559         Reported by Bruce Becker; see:
84560         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84561
84562 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84563             Bruno Haible  <bruno@clisp.org>
84564
84565         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84566         Reported by John Hughes, see
84567         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84568
84569 2003-02-20  Bruno Haible  <bruno@clisp.org>
84570
84571         * MODULES.html.sh (func_all_modules): Add poll.
84572
84573 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84574
84575         * modules/poll: New file.
84576
84577 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84578
84579         * lib/poll_.h: New file.
84580         * lib/poll.c: New file.
84581
84582 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84583
84584         * m4/poll.m4: New file.
84585
84586 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84587
84588         * modules/mathl: New file.
84589
84590 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84591
84592         * lib/mathl.h: New file.
84593         * lib/acosl.c: New file.
84594         * lib/asinl.c: New file.
84595         * lib/atanl.c: New file.
84596         * lib/ceill.c: New file.
84597         * lib/cosl.c: New file.
84598         * lib/expl.c: New file.
84599         * lib/floorl.c: New file.
84600         * lib/frexpl.c: New file.
84601         * lib/ldexpl.c: New file.
84602         * lib/logl.c: New file.
84603         * lib/sincosl.c: New file.
84604         * lib/sinl.c: New file.
84605         * lib/sqrtl.c: New file.
84606         * lib/tanl.c: New file.
84607         * lib/trigl.c: New file.
84608         * lib/trigl.h: New file.
84609
84610 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84611
84612         * m4/mathl.m4: New file.
84613
84614 2003-02-18  Bruno Haible  <bruno@clisp.org>
84615
84616         * MODULES.html.sh (func_all_modules): Add mathl.
84617
84618 2003-02-17  Bruno Haible  <bruno@clisp.org>
84619
84620         * modules/mkdtemp: New module.
84621         * MODULES.html.sh (func_all_modules): Add it.
84622
84623 2003-02-17  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84626
84627 2003-02-17  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/mkdtemp.h: New file, from GNU gettext.
84630         * lib/mkdtemp.c: New file, from GNU gettext.
84631
84632 2003-02-02  Jim Meyering  <jim@meyering.net>
84633
84634         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84635         e.g. glibc-2.2.93.
84636
84637 2003-01-31  Bruno Haible  <bruno@clisp.org>
84638
84639         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84640         'rpl_rename'.
84641         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84642         'rpl_strnlen'.
84643         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84644         'rpl_strtod'.
84645         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84646         'rpl_utime'.
84647
84648 2003-01-31  Bruno Haible  <bruno@clisp.org>
84649
84650         * lib/rename.c: #undef rename before defining rpl_rename.
84651         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84652
84653 2003-01-30  Bruno Haible  <bruno@clisp.org>
84654
84655         * modules/vasnprintf, modules/vasprintf: New modules.
84656         * MODULES.html.sh (func_all_modules): Add them.
84657
84658 2003-01-30  Bruno Haible  <bruno@clisp.org>
84659
84660         * m4/signed.m4: New file, from GNU gettext.
84661         * m4/longdouble.m4: New file, from GNU gettext.
84662         * m4/wchar_t.m4: New file, from GNU gettext.
84663         * m4/wint_t.m4: New file, from GNU gettext.
84664         * m4/vasnprintf.m4: New file.
84665         * m4/vasprintf.m4: New file.
84666
84667 2003-01-30  Bruno Haible  <bruno@clisp.org>
84668
84669         * lib/printf-args.h: New file, from GNU gettext.
84670         * lib/printf-args.c: New file, from GNU gettext.
84671         * lib/printf-parse.h: New file, from GNU gettext.
84672         * lib/printf-parse.c: New file, from GNU gettext.
84673         * lib/vasnprintf.h: New file, from GNU gettext.
84674         * lib/vasnprintf.c: New file, from GNU gettext.
84675         * lib/asnprintf.c: New file, from GNU gettext.
84676         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84677         * lib/vasprintf.c: New file, from GNU gettext.
84678         * lib/asprintf.c: New file, from GNU gettext.
84679
84680 2003-01-29  Bruno Haible  <bruno@clisp.org>
84681
84682         * modules/stpncpy: New module.
84683         * MODULES.html.sh (func_all_modules): Add it.
84684
84685 2003-01-29  Bruno Haible  <bruno@clisp.org>
84686
84687         * m4/stpncpy.m4: New file.
84688
84689 2003-01-29  Bruno Haible  <bruno@clisp.org>
84690
84691         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84692         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84693
84694 2003-01-28  Bruno Haible  <bruno@clisp.org>
84695
84696         * modules/c-ctype: New module.
84697         * MODULES.html.sh (func_all_modules): Add it.
84698
84699 2003-01-28  Bruno Haible  <bruno@clisp.org>
84700
84701         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84702         Paul Eggert.
84703         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84704         Paul Eggert.
84705
84706 2003-01-27  Bruno Haible  <bruno@clisp.org>
84707
84708         * modules/xsetenv: New module.
84709         * MODULES.html.sh (func_all_modules): Add it.
84710
84711 2003-01-27  Bruno Haible  <bruno@clisp.org>
84712
84713         * lib/xsetenv.h: New file, from GNU gettext.
84714         * lib/xsetenv.c: New file, from GNU gettext.
84715
84716 2003-01-23  Jim Meyering  <jim@meyering.net>
84717
84718         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84719         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84720
84721 2003-01-23  Bruno Haible  <bruno@clisp.org>
84722
84723         * modules/minmax: New module.
84724         * MODULES.html.sh (func_all_modules): Add it.
84725
84726 2003-01-23  Bruno Haible  <bruno@clisp.org>
84727
84728         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84729         Eggert.
84730
84731 2003-01-22  Bruno Haible  <bruno@clisp.org>
84732
84733         * modules/exit: New module.
84734         * MODULES.html.sh (func_all_modules): Add it.
84735
84736 2003-01-22  Bruno Haible  <bruno@clisp.org>
84737
84738         * lib/exit.h: New file, from GNU gettext.
84739
84740 2003-01-19  Bruno Haible  <bruno@clisp.org>
84741
84742         * gnulib-tool: Recognize option --extract-maintainer.
84743         (func_get_maintainer): New function.
84744         * modules/*: Add Maintainer entry.
84745
84746 2003-01-16  Jim Meyering  <jim@meyering.net>
84747
84748         * m4/regex.m4: The `regex' struct is both input and output.
84749         Initialize it before each use.  Patch by Tim Waugh.
84750
84751 2003-01-16  Bruno Haible  <bruno@clisp.org>
84752
84753         * MODULES.html.sh: Add a table of contents. Add the module name as
84754         leftmost column. Add hyperlinks.
84755
84756 2003-01-15  Bruno Haible  <bruno@clisp.org>
84757
84758         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84759
84760 2003-01-15  Bruno Haible  <bruno@clisp.org>
84761
84762         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84763         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84764         suffix.
84765
84766 2003-01-15  Bruno Haible  <bruno@clisp.org>
84767
84768         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84769
84770 2003-01-15  Bruno Haible  <bruno@clisp.org>
84771
84772         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84773         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84774
84775 2003-01-14  Jim Meyering  <jim@meyering.net>
84776
84777         * lib/same.c (same_name): Tweak a comment.
84778
84779 2003-01-14  Bruno Haible  <bruno@clisp.org>
84780
84781         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84782         when a string comparison is sufficient.
84783
84784 2003-01-14  Bruno Haible  <bruno@clisp.org>
84785
84786         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84787         'unsigned int'.
84788
84789 2003-01-14  Bruno Haible  <bruno@clisp.org>
84790
84791         * lib/hash-pjw.c: Add comment about low quality of this function.
84792
84793 2003-01-13  Bruno Haible  <bruno@clisp.org>
84794
84795         * modules/stpcpy: Distribute lib/stpcpy.h.
84796         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84797
84798 2003-01-13  Bruno Haible  <bruno@clisp.org>
84799
84800         * modules/*: Add a description.
84801         * modules/strpbrk: Fix Makefile.am snippet.
84802         * modules/strtoimax: Fix dependencies.
84803         * modules/strtoumax: Likewise.
84804
84805 2003-01-13  Bruno Haible  <bruno@clisp.org>
84806
84807         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84808         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84809         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84810
84811 2003-01-13  Bruno Haible  <bruno@clisp.org>
84812
84813         * gnulib-tool (func_create_testdir): Store config/* files in the main
84814         directory.
84815         * config.rpath: Move to ...
84816         * config/config.rpath: ... here.
84817         * modules/gettext: Contains config/config.rpath, not config.rpath.
84818         * modules/iconv: Likewise.
84819
84820 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84821
84822         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84823         to avoid collisions with libcurses and libreadline.
84824
84825         * m4/getstr.m4: Remove.
84826         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84827
84828 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84829
84830         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84831         to avoid collisions with libcurses and libreadline.
84832
84833         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84834         * lib/getstr.h, getstr.c: Remove.
84835         * lib/getline.c: Include "getline.h", to check interface.
84836         Move body of old getstr.c here: this defines MIN_CHUNK and
84837         declares getdelim2, which is renamed from getstr.
84838         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84839
84840         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84841         All uses changed.
84842         * lib/linebuffer.h: Likewise.
84843         (readline): Remove backward-compatibility macro.
84844
84845 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84846
84847         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84848         to avoid collisions with libcurses and libreadline.
84849         * getstr: Remove.
84850         * MODULES.html.sh: Remove getstr.
84851         * modules/getline: Depend on unlocked-io, not getstr.
84852
84853 2003-01-12  Jim Meyering  <jim@meyering.net>
84854
84855         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84856
84857 2003-01-10  Bruno Haible  <bruno@clisp.org>
84858
84859         * modules/alloca: Change Makefile.am requirements. Simplify Include
84860         requirements. Add lib/alloca_.h to file list.
84861
84862 2003-01-10  Bruno Haible  <bruno@clisp.org>
84863
84864         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84865
84866 2003-01-10  Bruno Haible  <bruno@clisp.org>
84867
84868         * lib/alloca_.h: New file.
84869         * lib/getdate.y: Unconditionally include alloca.h.
84870         * lib/makepath.c: Likewise.
84871         * lib/setenv.c: Likewise.
84872         * lib/userspec.c: Likewise.
84873
84874 2003-01-09  Karl Berry  <karl@gnu.org>
84875
84876         * MODULES.html.sh: include `dirname $0` in PATH, to find
84877         gnulib-tool.
84878
84879 2003-01-09  Bruno Haible  <bruno@clisp.org>
84880
84881         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84882         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84883
84884 2003-01-09  Bruno Haible  <bruno@clisp.org>
84885
84886         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84887
84888 2003-01-09  Bruno Haible  <bruno@clisp.org>
84889
84890         * lib/stdbool.h.in: New file.
84891
84892 2003-01-09  Bruno Haible  <bruno@clisp.org>
84893
84894         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84895         * MODULES.html.sh: Likewise.
84896
84897 2003-01-08  Jim Meyering  <jim@meyering.net>
84898
84899         * lib/full-write.c: Undefine and define-away `const' after inclusion
84900         of errno.h, not before.  Suggestion from Bruno Haible.
84901
84902 2003-01-08  Bruno Haible  <bruno@clisp.org>
84903
84904         * modules/full-read: Depend on full-write.
84905
84906 2003-01-08  Bruno Haible  <bruno@clisp.org>
84907
84908         * lib/safe-read.c: Include specification header first, to ensure its
84909         selfcontainedness.
84910         * lib/full-write.c: Likewise.
84911
84912 2003-01-07  Jim Meyering  <jim@meyering.net>
84913
84914         * lib/full-write.c: Rework so that it may serve to define full_read,
84915         too.
84916         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84917
84918 2003-01-07  Bruno Haible  <bruno@clisp.org>
84919
84920         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84921         <inttypes.h>.
84922         * lib/xstrtol.h: Likewise.
84923         * lib/xstrtoimax.c: Likewise.
84924         * lib/xstrtoumax.c: Likewise.
84925         * lib/human.h: Likewise.
84926
84927         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84928         on systems that have <inttypes.h> but not <stdint.h>.
84929
84930 2003-01-07  Bruno Haible  <bruno@clisp.org>
84931
84932         * MODULES.html.sh: Add copyright notice.
84933         (missed_files): Omit CVS directory entries.
84934         (func_module): Make it work with sed-3.02.
84935         * MODULES.txt: Remove file.
84936
84937 2003-01-06  Jim Meyering  <jim@meyering.net>
84938
84939         * lib/version-etc.c: Update year in translatable copyright string.
84940
84941 2003-01-03  Karl Berry  <karl@gnu.org>
84942
84943         * config/config.{guess,sub}: update from prep.
84944
84945 2003-01-02  Karl Berry  <karl@gnu.org>
84946
84947         * doc/COPYING.DOC: belatedly updated to 1.2.
84948
84949 2003-01-01  Karl Berry  <karl@gnu.org>
84950
84951         * gnulib-tool (func_verify_module): report module name $module in
84952         error message, not $1.
84953         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84954         be created, only if it doesn't exist.
84955         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84956
84957 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84958
84959         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84960
84961 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84962
84963         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84964         memcmp if strcoll doesn't work.
84965
84966 2002-12-31  Bruno Haible  <bruno@clisp.org>
84967
84968         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84969         nonempty.
84970
84971 2002-12-31  Bruno Haible  <bruno@clisp.org>
84972
84973         * lib/memcoll.c (STRCOLL): New macro.
84974         (memcoll): Use it.
84975
84976 2002-12-31  Bruno Haible  <bruno@clisp.org>
84977
84978         * lib/localcharset.h: New file.
84979         * lib/localcharset.c: Include it.
84980         * lib/unicodeio.c: Likewise.
84981
84982 2002-12-31  Bruno Haible  <bruno@clisp.org>
84983
84984         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84985         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84986
84987 2002-12-31  Bruno Haible  <bruno@clisp.org>
84988
84989         * lib/getline.h: Include <stddef.h>, for size_t.
84990
84991         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84992         * lib/unicodeio.c: Don't include <stddef.h>.
84993
84994 2002-12-31  Bruno Haible  <bruno@clisp.org>
84995
84996         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84997         HAVE_TM_ZONE.
84998
84999 2002-12-24  Karl Berry  <karl@gnu.org>
85000
85001         * config/config.guess: update from prep.
85002
85003 2002-12-24  Bruno Haible  <bruno@clisp.org>
85004
85005         General infrasructure.
85006         * m4/README: Rewritten.
85007         * m4/onceonly.m4: New file.
85008         * m4/onceonly_2_57.m4: New file.
85009
85010         Module atexit.
85011         * m4/atexit.m4: New file.
85012
85013         Module strtod.
85014         * m4/strtod.m4: New file.
85015
85016         Module strtol.
85017         * m4/strtol.m4: New file.
85018
85019         Module strtoul.
85020         * m4/strtoul.m4: New file.
85021
85022         Module memchr.
85023         * m4/memchr.m4: New file.
85024
85025         Module memcmp.
85026         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85027         (jm_FUNC_MEMCMP): Invoke it.
85028
85029         Module memcpy.
85030         * m4/memcpy.m4: New file.
85031
85032         Module memmove.
85033         * m4/memmove.m4: New file.
85034
85035         Module memset.
85036         * m4/memset.m4: New file.
85037
85038         Module strcspn.
85039         * m4/strcspn.m4: New file.
85040
85041         Module strpbrk.
85042         * m4/strpbrk.m4: New file.
85043
85044         Module strstr.
85045         * m4/strstr.m4: New file.
85046
85047         Module strerror.
85048         * m4/strerror.m4: New file.
85049
85050         Module mktime.
85051         * m4/mktime.m4: Renamed from jm-mktime.m4.
85052         (gl_PREREQ_MKTIME): New macro.
85053         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85054
85055         Module malloc.
85056         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85057         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85058         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85059
85060         Module realloc.
85061         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85062         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85063         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85064
85065         Module strftime.
85066         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85068         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85069         gl_TM_GMTOFF.
85070         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85071
85072         Module xalloc.
85073         * m4/xalloc.m4: New file.
85074
85075         Module alloca.
85076         * m4/alloca.m4: New file.
85077
85078         Module putenv.
85079         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85080         (jm_FUNC_PUTENV): Invoke it.
85081
85082         Module setenv.
85083         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85084         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85085         when invoked twice.
85086         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85087         gt_FUNC_SETENV.
85088
85089         Module memrchr.
85090         * m4/memrchr.m4: New file.
85091
85092         Module stpcpy.
85093         * m4/stpcpy.m4: New file.
85094
85095         Module strcase.
85096         * m4/strcase.m4: New file.
85097
85098         Module strdup.
85099         * m4/strdup.m4: New file.
85100
85101         Module strnlen.
85102         * m4/strnlen.m4: New file.
85103
85104         Module strndup.
85105         * m4/strndup.m4: New file.
85106
85107         Module xstrtod.
85108         * m4/xstrtod.m4: New file.
85109
85110         Module xstrtol.
85111         * m4/xstrtol.m4: New file.
85112
85113         Module getdate.
85114         * m4/getdate.m4: New file.
85115
85116         Module unlocked-io.
85117         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85118         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85119         * m4/jm-glibc-io.m4n: Remove file.
85120
85121         Module long-options.
85122         * m4/long-options.m4: New file.
85123
85124         Module md5.
85125         * m4/md5.m4: New file.
85126
85127         Module sha.
85128         * m4/sha.m4: New file.
85129
85130         Module getstr.
85131         * m4/getstr.m4: New file.
85132
85133         Module getline.
85134         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85135         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85136         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85137         simply getline. Infoke gl_PREREQ_GETLINE.
85138
85139         Module obstack.
85140         * m4/obstack.m4: New file.
85141
85142         Module hash.
85143         * m4/hash.m4: New file.
85144
85145         Module readtokens.
85146         * m4/readtokens.m4: New file.
85147
85148         Module strverscmp.
85149         * m4/strverscmp.m4: New file.
85150
85151         Module stdbool.
85152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85153         OSF/1.
85154
85155         Module strtoll.
85156         * m4/strtoll.m4: New file.
85157
85158         Module strtoull.
85159         * m4/strtoull.m4: New file.
85160
85161         Module strtoimax.
85162         * m4/strtoimax.m4: New file.
85163
85164         Module strtoumax.
85165         * m4/strtoumax.m4: New file.
85166
85167         Module xstrtoimax.
85168         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85169         jm_AC_PREREQ_XSTRTOIMAX.
85170         Moved the strtol prerequisites to strtol.m4.
85171         Moved the strtoll prerequisites to strtoll.m4.
85172         Moved the strtoimax prerequisites to strtoimax.m4.
85173
85174         Module xstrtoumax.
85175         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85176         jm_AC_PREREQ_XSTRTOUMAX.
85177         Moved the strtoul prerequisites to strtoul.m4.
85178         Moved the strtoull prerequisites to strtoull.m4.
85179         Moved the strtoumax prerequisites to strtoumax.m4.
85180
85181         Module chown.
85182         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85183         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85184
85185         Module dup2.
85186         * m4/dup2.m4: New file.
85187
85188         Module ftruncate.
85189         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85190         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85191
85192         Module getgroups.
85193         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85194         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85195
85196         Module gettimeofday.
85197         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85198         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85199         gl_PREREQ_GETTIMEOFDAY.
85200
85201         Module mkdir.
85202         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85203         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85204
85205         Module mkstemp.
85206         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85207         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85208         jm_AC_TYPE_UINTMAX_T.
85209         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85210
85211         Module stat.
85212         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85213         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85214
85215         Module lstat.
85216         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85217         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85218
85219         Module timespec.
85220         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85221         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85222         * m4/st_mtim.m4: Indentation.
85223
85224         Module nanosleep.
85225         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85226         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85227         gl_PREREQ_NANOSLEEP.
85228
85229         Module regex.
85230         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85231         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85232         (gl_REGEX): New macro.
85233
85234         Module rename.
85235         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85236         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85237
85238         Module rmdir.
85239         * m4/rmdir.m4: New file.
85240
85241         Module utime.
85242         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85243         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85244         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85245
85246         Module dirname.
85247         * m4/dirname.m4: New file.
85248
85249         Module getopt.
85250         * m4/getopt.m4: New file.
85251
85252         Module unistd-safer.
85253         * m4/unistd-safer.m4: New file.
85254
85255         Module fnmatch.
85256         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85257         declaration.
85258         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85259         (gl_FUNC_FNMATCH_POSIX): New macro.
85260         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85261         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85262         simply fnmatch.
85263
85264         Module exclude.
85265         * m4/exclude.m4: New file.
85266
85267         Module human.
85268         * m4/human.m4: New file.
85269
85270         Module acl.
85271         * m4/acl.m4: Nop.
85272
85273         Module backupfile.
85274         * m4/backupfile.m4: New file.
85275         * m4/d-ino.m4: Indentation.
85276
85277         Module fsusage.
85278         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85279         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85280         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85281
85282         Module dirfd.
85283         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85284         requirements.
85285
85286         Module euidaccess.
85287         * m4/euidaccess.m4: New file.
85288
85289         Module file-type.
85290         * m4/file-type.m4: New file.
85291
85292         Module fileblocks.
85293         * m4/fileblocks.m4: New file.
85294
85295         Module filemode.
85296         * m4/filemode.m4: New file.
85297
85298         Module isdir.
85299         * m4/isdir.m4: New file.
85300
85301         Module lchown.
85302         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85303         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85304
85305         Module makepath.
85306         * m4/makepath.m4: New file.
85307
85308         Module modechange.
85309         * m4/modechange.m4: New file.
85310
85311         Module mountlist.
85312         * m4/mountlist.m4: New file.
85313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85314         Indentation.
85315
85316         Module path-concat.
85317         * m4/path-concat.m4: New file.
85318
85319         Module pathmax.
85320         * m4/pathmax.m4: New file.
85321
85322         Module same.
85323         * m4/same.m4: New file.
85324
85325         Module save-cwd.
85326         * m4/save-cwd.m4: New file.
85327
85328         Module savedir.
85329         * m4/savedir.m4: New file.
85330
85331         Module xgetcwd.
85332         * m4/xgetcwd.m4: New file.
85333         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85334
85335         Module xreadlink.
85336         * m4/xreadlink.m4: New file.
85337
85338         Module safe-read.
85339         * m4/safe-read.m4: New file.
85340
85341         Module safe-write.
85342         * m4/safe-write.m4: New file.
85343
85344         Module closeout.
85345         * m4/closeout.m4: New file.
85346
85347         Module stdio-safer.
85348         * m4/stdio-safer.m4: New file.
85349
85350         Module getpass.
85351         * m4/getpass.m4: New file.
85352
85353         Module getugroups.
85354         * m4/getugroups.m4: New file.
85355
85356         Module group-member.
85357         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85358         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85359
85360         Module idcache.
85361         * m4/idcache.m4: New file.
85362
85363         Module userspec.
85364         * m4/userspec.m4: New file.
85365
85366         Module gettime.
85367         * m4/clock_time.m4: New file.
85368         * m4/gettime.m4: New file.
85369
85370         Module settime.
85371         * m4/settime.m4: New file.
85372
85373         Module posixtm.
85374         * m4/posixtm.m4: New file.
85375
85376         Module gethostname.
85377         * m4/gethostname.m4: New file.
85378
85379         Module canon-host.
85380         * m4/canon-host.m4: New file.
85381
85382         Module gettext.
85383         * m4/codeset.m4: New file, from gettext-0.11.5.
85384         * m4/gettext.m4: New file, from gettext-0.11.5.
85385         * m4/glibc21.m4: New file, from gettext-0.11.5.
85386         * m4/iconv.m4: New file, from gettext-0.11.5.
85387         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85388         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85389         * m4/inttypes.m4: New file, from gettext-0.11.5.
85390         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85391         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85392         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85393         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85394         * m4/lib-link.m4: New file, from gettext-0.11.5.
85395         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85396         * m4/progtest.m4: New file, from gettext-0.11.5.
85397         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85398         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85399         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85400
85401         Module localcharset.
85402         * m4/localcharset.m4: New file.
85403
85404         Module hard-locale.
85405         * m4/hard-locale.m4: New file.
85406
85407         Module mbswidth.
85408         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85409         onceonly macros.
85410         * m4/mbrtowc.m4: Add comment.
85411
85412         Module memcasecmp.
85413         * m4/memcasecmp.m4: New file.
85414
85415         Module memcoll.
85416         * m4/memcoll.m4: New file.
85417
85418         Module unicodeio.
85419         * m4/unicodeio.m4: New file.
85420
85421         Module rpmatch.
85422         * m4/rpmatch.m4: New file.
85423
85424         Module yesno.
85425         * m4/yesno.m4: New file.
85426
85427         Module exitfail.
85428         * m4/exitfail.m4: New file.
85429
85430         Module c-stack.
85431         * m4/c-stack.m4 (gl_C_STACK): New macro.
85432         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85433
85434         Module error.
85435         * m4/error.m4 (gl_ERROR): New macro.
85436         (jm_PREREQ_ERROR): Use onceonly macros.
85437
85438         Module fatal.
85439         * m4/fatal.m4: New file.
85440
85441         Module getloadavg.
85442         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85443         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85444
85445         Module getpagesize.
85446         * m4/getpagesize.m4: New file.
85447
85448         Module getusershell.
85449         * m4/getusershell.m4: New file.
85450
85451         Module physmem.
85452         * m4/physmem.m4: New file.
85453
85454         Module posixver.
85455         * m4/posixver.m4: New file.
85456
85457         Module quotearg.
85458         * m4/quotearg.m4: New file.
85459
85460         Module quote.
85461         * m4/quote.m4: New file.
85462
85463         Module readutmp.
85464         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85465
85466         Module sig2str.
85467         * m4/sig2str.m4: New file.
85468
85469         Other.
85470         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85471         ulonglong.m4.
85472         * m4/intmax_t.m4: New file.
85473         * m4/d-type.m4: Indentation.
85474         * m4/jm-macros.m4: Update.
85475         * m4/prereq.m4 (jm_PREREQ): Update.
85476         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85477         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85478         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85479         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85480         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85481         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85482         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85483         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85484         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85485         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85486         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85487         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85488         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85489         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85490         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85491         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85492         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85493         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85494         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85495
85496 2002-12-24  Bruno Haible  <bruno@clisp.org>
85497
85498         * MODULES.txt: Update according to m4/ changes.
85499
85500         Module gettext.
85501         * config.rpath: New file, from gettext-0.11.5.
85502
85503         * modules/*: New module descriptions.
85504         * gnulib-tool: New file.
85505         * MODULES.html.sh: New file.
85506
85507 2002-12-21  Karl Berry  <karl@gnu.org>
85508
85509         * doc/fdl.texi: update to version 1.2.
85510
85511 2002-12-19  Karl Berry  <karl@gnu.org>
85512
85513         * config/config.guess: update from prep.
85514
85515 2002-12-18  Bruno Haible  <bruno@clisp.org>
85516
85517         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85518         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85519
85520 2002-12-17  Bruno Haible  <bruno@clisp.org>
85521
85522         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85523         stdlib.h, string.h.
85524
85525 2002-12-17  Bruno Haible  <bruno@clisp.org>
85526
85527         * lib/canon-host.c (strdup): Remove unused declaration.
85528
85529         * lib/fsusage.c: Include full_read.h.
85530         (get_fs_usage): Use full_read instead of safe_read.
85531
85532         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85533
85534 2002-12-12  Karl Berry  <karl@gnu.org>
85535
85536         * config/config.guess: update from prep.
85537
85538 2002-12-11  Bruno Haible  <bruno@clisp.org>
85539
85540         * m4/setenv.m4: New file, from gettext-0.11.5.
85541
85542 2002-12-11  Bruno Haible  <bruno@clisp.org>
85543
85544         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85545         not unsetenv().
85546         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85547         modifications:
85548
85549         2002-12-11  Bruno Haible  <bruno@clisp.org>
85550
85551                 * setenv.c (alloca): Fall back to malloc.
85552                 (freea): New macro.
85553                 (setenv): Use freea() to free memory allocated with alloca().
85554
85555         2002-11-13  Bruno Haible  <bruno@clisp.org>
85556
85557                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85558                 function declarations.
85559                 * unsetenv.c (unsetenv): Likewise.
85560
85561         2002-03-04  Bruno Haible  <bruno@clisp.org>
85562
85563                 Portability to AIX 4.3.3.
85564                 * unsetenv.c: New file, extracted from setenv.c.
85565                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85566
85567         2001-12-20  Bruno Haible  <bruno@clisp.org>
85568
85569                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85570                 use malloc instead. For SunOS 4.
85571
85572         2001-12-11  Bruno Haible  <bruno@clisp.org>
85573
85574                 * setenv.c: Declare alloca.
85575                 (compar_fn_t): New typedef.
85576                 (KNOWN_VALUE, STORE_VALUE): Use it.
85577
85578         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85579         setenv.h.
85580
85581 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85582
85583         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85584         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85585         Choose values that are less likely to collide with system fnmatch
85586         options.
85587         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85588         defined (e.g., a pure POSIX system).
85589         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85590         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85591
85592 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85593
85594         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85595         a pain in practice to deal with generated m4 files.  This change
85596         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85597
85598         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85599         and jm-glibc-io.m4, as they are no longer a special case.
85600         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85601         kludge and the auto-generation stuff.  Check only whether the
85602         functions are declared, not whether they exist, since older hosts
85603         that don't declare the functions can't use the optimization anyway.
85604
85605 2002-12-06  Jim Meyering  <jim@meyering.net>
85606
85607         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85608
85609         Merge in changes from libc's misc/error.c, in preparation
85610         for the merge of gnulib's changes back into libc.
85611
85612         * lib/error.c (_): Define only if not already defined.
85613         Move definition to follow all #include directives.
85614         Include unlocked-io.h only if !_LIBC.
85615         [_LIBC]: Include <libio/libioP.h>.
85616         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85617         (fflush): Tweak definition to use INTUSE.
85618         (putc): Define.
85619
85620 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85621
85622         * lib/alloca.c [defined emacs]: Include "lisp.h".
85623         (xalloc_die) [defined emacs]: New macro.
85624         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85625         [! defined emacs]: Include <xalloc.h>.
85626         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85627         (pointer): Typedef to POINTER_TYPE *.
85628         (malloc): Remove decl; we now always use xmalloc.
85629         (alloca): Use old-style definition, since Emacs needs this.
85630         Check for arithmetic overflow when computing combined size.
85631
85632 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85633
85634         Do not generate unlocked-io.h automatically, since it's easier to
85635         maintain it by hand.
85636
85637         * lib/unlocked-io.h: New file, from GNU diffutils,
85638         but with proper copyright notice and attribution.
85639         * lib/gen-uio: Remove.
85640         * lib/Makefile.am: Add copyright notice.
85641         (libfetish_a_SOURCES): Add unlocked-io.h.
85642         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85643         (DISTCLEANFILES, io_functions): Remove macros.
85644         (EXTRA_DIST): Remove gen_uio.
85645         (unlocked-io.h): Remove rule.
85646
85647 2002-12-04  Jim Meyering  <jim@meyering.net>
85648
85649         Reflect the fact that stat.c and lstat.c are no longer generated.
85650         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85651         (DISTCLEANFILES): Likewise.
85652         (EXTRA_DIST): Likewise.
85653         (all_local): Don't depend on stat.c or lstat.c.
85654         (stat.c, lstat.c): Remove rules.
85655         (EXTRA_DIST): Remove xstat.in.
85656
85657         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85658         * lib/stat.c: New file.  Contents mostly from xstat.in.
85659         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85660         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85661
85662         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85663         too.
85664         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85665
85666 2002-12-03  Jim Meyering  <jim@meyering.net>
85667
85668         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85669         but not semantics, to minimize the differences between these two files.
85670         (safe_read): Change comment to mention SAFE_READ_ERROR.
85671
85672         * lib/safe-read.c (IS_EINTR): Define.
85673         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85674
85675 2002-12-02  Jim Meyering  <jim@meyering.net>
85676
85677         * lib/safe-read.c (EINTR): Define.
85678         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85679         (INT_MAX): Provide fallback.
85680         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85681
85682         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85683
85684 2002-12-02  Bruno Haible  <bruno@clisp.org>
85685
85686         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85687         Define, taken from safe-read.c.
85688         (INT_MAX): Provide fallback.
85689         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85690         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85691
85692         * lib/safe-read.c (EINTR): Remove definition.
85693         (safe_read): Don't use EINTR if it is absent.
85694
85695 2002-12-01  Jim Meyering  <jim@meyering.net>
85696
85697         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85698         zero.
85699         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85700
85701 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85702
85703         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85704         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85705         with `if (! (value < limit)) abort ();', for readability.
85706
85707 2002-11-26  Karl Berry  <karl@gnu.org>
85708
85709         * lib/strdup.c: copy from libc again, with jim's ok.
85710         * lib/.cppi-disable: re-add strdup.c
85711
85712 2002-11-25  Karl Berry  <karl@gnu.org>
85713
85714         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85715         instead of "strtol.c".
85716
85717 2002-11-25  Karl Berry  <karl@gnu.org>
85718
85719         * config/install-sh: update from automake for variable quoting, $0 in
85720         error msgs, etc.
85721
85722         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85723         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85724         entry.
85725
85726 2002-11-25  Jim Meyering  <jim@meyering.net>
85727
85728         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85729
85730 2002-11-24  Karl Berry  <karl@gnu.org>
85731
85732         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85733         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85734
85735 2002-11-24  Jim Meyering  <jim@meyering.net>
85736
85737         Update from coreutils:
85738
85739         * lib/mktime.c: Merge in changes from libc.
85740
85741         Avoid a link-time failure on some Linux systems.
85742         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85743         (otherwise).
85744         (__mon_yday): Declare with the STATIC attribute.
85745         (__mktime_internal): Likewise.
85746         Based on a report from Greg Schafer.
85747
85748 2002-11-23  Jim Meyering  <jim@meyering.net>
85749
85750         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85751         Use `unsigned', not `int', as type of index.
85752
85753         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85754
85755         * lib/fsusage.c: Remove unneeded parentheses around operands of
85756         `defined'.
85757
85758 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85759
85760         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85761         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85762         so that we can be included first.
85763         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85764         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85765         No need to include stddef.h or sys/types.h any more.
85766         Surround local include files with "", not "<>".
85767         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85768         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85769         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85770         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85771         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85772         (ISPRINT): Remove; no longer needed now that we assume C89.
85773
85774         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85775         Preserve errno.
85776
85777         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85778         quotearg_char): Use SIZE_MAX rather than
85779         (size_t) -1 when we are talking about "infinity".
85780
85781         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85782
85783 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85784
85785         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85786         hint that one should use `if (! x) abort ();' rather than `assert
85787         (x);', and anyway it's one less thing to worry about configuring.
85788         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85789         hash_rehash, hash_insert): Use abort rather than assert.
85790
85791 2002-11-22  Bruno Haible  <bruno@clisp.org>
85792
85793         * lib/safe-read.h: Assume C89. Add comments.
85794         (safe_read): Change return type to size_t.
85795         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85796         byte counts > SSIZE_MAX correctly.
85797         * lib/safe-write.h: New file.
85798         * lib/safe-write.c: New file.
85799         * lib/full-read.h: New file.
85800         * lib/full-read.c: New file.
85801         * lib/full-write.h: Assume C89. Add comments.
85802         * lib/full-write.c: Include safe-write.h.
85803         (full_write): Rewritten to use safe_write.
85804         Suggested by Jim Meyering and Paul Eggert.
85805
85806 2002-11-21  Jim Meyering  <jim@meyering.net>
85807
85808         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85809
85810         Merge in changes from the coreutils.
85811
85812         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85813         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85814         <stdint.h>.
85815         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85816         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85817         int.  Work more efficiently if X is the same width as uintmax_t.
85818         Do not compare X to -1, to avoid bogus compiler warning.
85819         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85820         Don't assume that f_frsize and f_bsize are the same type.
85821
85822         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85823         warning on FreeBSD.
85824
85825         * lib/makepath.c (make_path): Restore umask *before* creating the final
85826         component.
85827         (make_path): Minor reformatting.
85828
85829         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85830         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85831         HAVE_MALLOC/HAVE_REALLOC.
85832
85833         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85834         dummy ones.  At least on GNU/Linux systems, `auto' means something
85835         else.
85836         From Michael Stone.
85837
85838 2002-11-21  Bruno Haible  <bruno@clisp.org>
85839
85840         Remove case insensitive option matching.
85841         * lib/argmatch.h (argcasematch): Remove declaration.
85842         (ARGCASEMATCH): Remove macro.
85843         (__xargmatch_internal): Remove case_sensitive argument.
85844         (XARGMATCH): Update.
85845         (XARGCASEMATCH): Remove macro.
85846         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85847         case_sensitive argument.
85848         (argcasematch): Remove function.
85849         (__xargmatch_internal): Remove case_sensitive argument.
85850         (main): Use XARGMATCH instead of XARGCASEMATCH.
85851
85852         * lib/xmalloc.c: Change compile-time error message. Add comment about
85853         required autoconf version.
85854
85855 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85856
85857         Merge argmatch cleanups from Bison.  Assume C89.
85858
85859         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85860         Include stdlib.h, for EXIT_FAILURE.
85861         Always include <string.h>, since we assume C89.
85862         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85863         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85864         Include <stddef.h> instead, since it's all we need for size_t.
85865         (PARAMS): Remove.  All uses removed.
85866         (ARRAY_CARDINALITY): Do not bother to #undef.
85867         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85868         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85869         Remove unnecessary parentheses.
85870         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85871         Insert necessary parentheses.
85872         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85873         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85874
85875 2002-11-19  Bruno Haible  <bruno@clisp.org>
85876
85877         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85878         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85879
85880         * lib/mbswidth.h (PARAMS): Remove macro.
85881         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85882         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85883
85884         * lib/gcd.h (PARAMS): Remove macro.
85885         (gcd): Use ANSI C function declarations.
85886         * lib/gcd.c (gcd): Likewise.
85887
85888 2002-11-15  Bruno Haible  <bruno@clisp.org>
85889
85890         * lib/strcspn.c: Include <stddef.h>.
85891         (strcspn): Use ANSI C function declaration. Change return type to
85892         size_t. Use NULL.
85893         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85894         (strpbrk): Use NULL.
85895         * lib/strpbrk.h (PARAMS): Remove macro.
85896         (strpbrk): Use ANSI C function declaration.
85897         * lib/strstr.c: Don't include <sys/types.h>.
85898         * lib/strstr.h (PARAMS): Remove macro.
85899         (strstr): Use ANSI C function declarations.
85900
85901 2002-11-14  Karl Berry  <karl@gnu.org>
85902
85903         * config/mkinstalldirs: `do' on separate line, instead of
85904         `for var; do'.
85905
85906 2002-11-06  Bruno Haible  <bruno@clisp.org>
85907
85908         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85909         * lib/gcd.c (gcd): Likewise.
85910
85911 2002-11-05  Bruno Haible  <bruno@clisp.org>
85912
85913         * lib/gcd.h: New file, from gettext-0.11.5.
85914         * lib/gcd.c: New file, from gettext-0.11.5.
85915
85916 2002-11-05  Bruno Haible  <bruno@clisp.org>
85917
85918         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85919         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85920         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85921         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85922
85923         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85924         <libintl.h>.
85925         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85926         <libintl.h>.
85927
85928         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85929         * lib/human.c: Include gettext.h instead of <libintl.h>.
85930         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85931         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85932         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85933         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85934         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85935         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85936         (textdomain): Remove definition.
85937         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85938
85939         * lib/long-options.c: Remove include of <libintl.h> and definition of
85940         _.
85941         * lib/same.c: Remove include of <libintl.h> and definition of _.
85942
85943 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85944
85945         * lib/config.charset: A few additions for Solaris.
85946
85947 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85948
85949         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85950         * lib/localcharset.c (locale_charset): Declare as extern "C".
85951
85952 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85953
85954         * lib/config.charset: msdos in uk_UA uses CP1125.
85955
85956 2002-11-04  Bruno Haible  <bruno@clisp.org>
85957
85958         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85959         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85960         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85961         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85962         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85963
85964 2002-11-04  Bruno Haible  <bruno@clisp.org>
85965
85966         * lib/localcharset.c (locale_charset): Don't return an empty string.
85967
85968 2002-11-04  Bruno Haible  <bruno@clisp.org>
85969
85970         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85971         aliases.
85972
85973 2002-11-04  Bruno Haible  <bruno@clisp.org>
85974
85975         * lib/config.charset: Update for newest glibc. Add canonical names
85976         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85977
85978 2002-11-04  Bruno Haible  <bruno@clisp.org>
85979
85980         * lib/config.charset: Add support for NetBSD.
85981
85982 2002-11-04  Bruno Haible  <bruno@clisp.org>
85983
85984         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85985
85986 2002-11-01  Bruno Haible  <bruno@clisp.org>
85987
85988         * configure.in: Add AC_CONFIG_AUX_DIR call.
85989         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85990         test/Makefile.
85991         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85992
85993 2002-09-28  Karl Berry  <karl@gnu.org>
85994
85995         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85996         installed automake until the next release, since changes have been
85997         made.
85998
85999 2002-09-25  Karl Berry  <karl@gnu.org>
86000
86001         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86002         * lib/getopt*: copy from libc/posix.
86003         * lib/gettext.h: copy from gettext.
86004         * lib/.cppi-disable: add strdup.c, gettext.h.
86005
86006 2002-09-25  Karl Berry  <karl@gnu.org>
86007
86008         * config/srclist.txt: enable gettext.h check.
86009         * config/config.{guess,sub}: update from prep.
86010         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86011                 from automake 1.6.3.
86012         See srclist*.
86013
86014 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86015
86016         * regex.c (PATFETCH): Remove the translating fetch.
86017         (PATFETCH_RAW): Rename to PATFETCH.
86018         (set_image_of_range): New fun.
86019         (SET_RANGE_TABLE_WORK_AREA): Use it.
86020         (regex_compile): Don't translate the pattern chars so eagerly.
86021         Only do it when inserting an `exactn' bytecode or when handling
86022         a char-range.
86023         (mutually_exclusive_p): Avoid empty statement.
86024
86025 2002-07-06  Jim Meyering  <meyering@lucent.com>
86026
86027         * m4/README: Don't mention Makefile.am.in.
86028         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86029
86030 2002-07-01  Jim Meyering  <meyering@lucent.com>
86031
86032         * lib/c-stack.c: Include sys/time.h.
86033         From Volker Borchert.
86034
86035 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86036
86037         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86038
86039 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86040
86041         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86042         New macro.  Use it uniformly instead of
86043         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86044         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86045         reported by Vin Shelton.
86046
86047 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86048
86049         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86050         Do not assume SA_SIGINFO behavior.
86051         Bug reported by Jim Meyering on NetBSD 1.5.2.
86052
86053 2002-06-22  Jim Meyering  <meyering@lucent.com>
86054
86055         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86056         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86057
86058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86059         now that configure.ac uses AC_GNU_SOURCE.
86060         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86061         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86062
86063         Update to latest tools.  Suggestions from Paul Eggert.
86064         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86065         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86066         * m4/fnmatch.m4: Likewise.
86067         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86068         to AC_HEADER_STDBOOL
86069
86070 2002-06-22  Jim Meyering  <meyering@lucent.com>
86071
86072         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86073         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86074
86075 2002-06-22  Jim Meyering  <meyering@lucent.com>
86076
86077         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86078
86079         * lib/exitfail.c, exitfail.h: Likewise.
86080         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86081
86082         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86083         of fnmatch.h.
86084         (EXTRA_DIST): Add fnmatch_loop.c.
86085         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86086
86087         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86088         * lib/fnmatch.c: Update from diffutils-2.8.2.
86089         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86090         * lib/fnmatch.h: Remove file.
86091
86092 2002-06-21  Jim Meyering  <meyering@lucent.com>
86093
86094         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86095         * m4/mbrtowc.m4: Likewise.
86096
86097         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86098         * m4/mbswidth.m4: Reflect name change:
86099         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86100         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86101
86102         * m4/lib-link.m4: Update from gettext-0.11.2.
86103         * m4/gettext.m4: Likewise.
86104
86105         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86106         From Alfred M. Szmidt.
86107
86108 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86109
86110         * lib/file-type.h: Report an error if neither S_ISREG nor
86111         S_IFREG is defined, instead of using a test specific to glibc
86112         2.2.  This should be safe, since POSIX requires S_ISREG and
86113         Unix Version 7 had S_IFREG.  We don't need to check for
86114         <sys/types.h> since we don't use any symbols that it defines.
86115
86116 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86117
86118         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86119         $@-t, so that each temporary file name is unique and valid in the first
86120         8 characters, for operation under DOS.
86121
86122 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86123
86124         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86125
86126 2002-06-15  Jim Meyering  <meyering@lucent.com>
86127
86128         Work even with DJGPP 2.03, which lacks support for symlinks.
86129         From Richard Dawe.
86130         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86131         is defined.
86132         * lib/lchown.c (S_ISLNK): Likewise.
86133
86134 2002-06-15  Jim Meyering  <meyering@lucent.com>
86135
86136         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86137         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86138         have been included before this file.
86139
86140 2002-06-14  Jim Meyering  <meyering@lucent.com>
86141
86142         * lib/file-type.h: Use the version from diffutils-2.8.2.
86143         * lib/file-type.c: Likewise.
86144
86145 2002-06-07  Jim Meyering  <meyering@lucent.com>
86146
86147         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86148         They're needed at least for NetBSD 1.5.2.
86149         ($statxfs_includes): Include those same headers.
86150         ($statxfs_includes): Include sys/vfs.h if available.
86151         ($statxfs_includes): Likewise for sys/statvfs.h.
86152         Check for the following members in both structs statfs and statvfs:
86153         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86154
86155 2002-06-01  Jim Meyering  <meyering@lucent.com>
86156
86157         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86158         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86159
86160 2002-05-28  Jim Meyering  <meyering@lucent.com>
86161
86162         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86163         Reported by Volker Borchert.
86164
86165 2002-05-27  Jim Meyering  <meyering@lucent.com>
86166
86167         Fix a problem seen only on nonconforming systems whereby ls.c's
86168         use of localtime, and then of gettimeofday would cause trouble:
86169         the localtime call used to initialize rpl_gettimeofday's save
86170         mechanism would clobber ls's current local time information so
86171         that in any long listing the first file would always be listed
86172         with date 1970-01-01.  Analysis by Volker Borchert.
86173
86174         * lib/gettimeofday.c (localtime): Undefine.
86175         (rpl_localtime): New function.
86176
86177 2002-05-27  Jim Meyering  <meyering@lucent.com>
86178
86179         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86180         localtime.
86181
86182         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86183         use the replacement function; it wouldn't resolve at link time.
86184         Reported by Volker Borchert.
86185
86186 2002-05-22  Jim Meyering  <meyering@lucent.com>
86187
86188         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86189         file-type.h.
86190         * lib/file-type.h: New file.
86191         * lib/file-type.c (file_type): New file/function.  Extracted from
86192         diffutils.
86193
86194 2002-04-30  Jim Meyering  <meyering@lucent.com>
86195
86196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86197
86198 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86199
86200         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86201
86202 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86203
86204         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86205         Do not check for alloca.h (no longer used) or stdbool.h (was never
86206         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86207
86208 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86209
86210         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86211
86212 2002-04-29  Jim Meyering  <meyering@lucent.com>
86213
86214         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86215         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86216         Use AC_FUNC_STRNLEN here instead.
86217
86218         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86219         With autoconf-2.53a, it's part of AC_PROG_CC.
86220
86221 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86222
86223         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86224         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86225
86226 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86227
86228         * lib/sig2str.h, lib/sig2str.c: New files.
86229         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86230
86231 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86232
86233         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86234         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86235         of 127, since 64 is the largest conceivable number for ancient
86236         nonstandard hosts.
86237         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86238
86239 2002-04-28  Jim Meyering  <meyering@lucent.com>
86240
86241         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86242
86243 2002-04-24  Jim Meyering  <meyering@lucent.com>
86244
86245         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86246         (jm_PREREQ): Use it.
86247
86248         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86249         mach/mach.h fcntl.h.
86250         Check for this function: setlocale.
86251
86252 2002-04-24  Jim Meyering  <meyering@lucent.com>
86253
86254         * lib/gettext.h: New file, from Gettext.
86255         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86256         (libfetish_a_SOURCES): Add gettext.h.
86257
86258 2002-04-16  Jim Meyering  <meyering@lucent.com>
86259
86260         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86261         ut_pid, ut_id, ut_exit.
86262
86263 2002-04-16  Jim Meyering  <meyering@lucent.com>
86264
86265         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86266         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86267         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86268
86269 2002-04-12  Jim Meyering  <meyering@lucent.com>
86270
86271         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86272         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86273         existence of the getmntinfo function.  Needed for Darwin 5.3.
86274
86275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86276         This is necessary at least on Darwin 5.3.
86277
86278         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86279         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86280         strnlen.o in the library, and that makes some versions of ranlib
86281         object.
86282
86283 2002-04-12  Jim Meyering  <meyering@lucent.com>
86284
86285         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86286
86287 2002-04-09  Jim Meyering  <meyering@lucent.com>
86288
86289         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86290         to be more precise.  Rather than saying we're checking whether the
86291         function `works', say what we're testing.
86292         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86293         Reported by Bruno Haible.
86294
86295 2002-03-10  Jim Meyering  <meyering@lucent.com>
86296
86297         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86298         Suggestion from Santiago Vila.
86299
86300 2002-03-08  Jim Meyering  <meyering@lucent.com>
86301
86302         * lib/rename.c: Mention that this wrapper is needed also on
86303         mips-dec-ultrix4.4 systems.
86304
86305 2002-03-02  Jim Meyering  <meyering@lucent.com>
86306
86307         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86308         not HAVE_CLOCK_SETTIME.
86309
86310 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86311
86312         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86313         Check for clock_settime.
86314
86315 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86316
86317         * lib/nanosleep.h: Rename to....
86318         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86319
86320         * lib/gettime.c: New file.
86321         * lib/settime.c: New file.
86322         * lib/stime.c: Remove.
86323
86324         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86325         timespec.h.  Remove nanosleep.h.
86326
86327 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86328
86329         * m4/acl.m4: New file.
86330         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86331         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86332
86333 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/acl.c, lib/acl.h: New files.
86336         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86337
86338 2002-02-24  Jim Meyering  <meyering@lucent.com>
86339
86340         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86341         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86342         cause trouble.  Reported by Nelson Beebe.
86343
86344 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86345
86346         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86347         compilers that don't know that xalloc_die never returns.
86348
86349 2002-02-20  Jim Meyering  <meyering@lucent.com>
86350
86351         * lib/getdate.c: Regenerate using bison-1.33.
86352
86353 2002-02-17  Jim Meyering  <meyering@lucent.com>
86354
86355         * config/config.guess (main): Don't use `head -1'; it's no longer
86356         portable. Use `sed 1q' instead.
86357
86358 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86359
86360         * m4/codeset.m4: Upgrade to gettext-0.11.
86361         * m4/gettext.m4: Upgrade to gettext-0.11.
86362         * m4/glibc21.m4: Upgrade to gettext-0.11.
86363         * m4/iconv.m4: Upgrade to gettext-0.11.
86364         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86365         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86366         * m4/lib-ld.m4: New file, from gettext-0.11.
86367         * m4/lib-link.m4: New file, from gettext-0.11.
86368         * m4/lib-prefix.m4: New file, from gettext-0.11.
86369         * m4/progtest.m4: Upgrade to gettext-0.11.
86370
86371 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86372
86373         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86374         (jm_PREREQ): Use it.
86375
86376 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86377
86378         * lib/posixver.c, lib/posixver.h: New files.
86379         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86380
86381 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86382             Bruno Haible  <bruno@clisp.org>
86383
86384         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86385         (fwrite_success_callback): New declaration.
86386         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86387         print_unicode_char. Call failure callback instead of error.
86388         (fwrite_success_callback): New function.
86389         (exit_failure_callback): New function.
86390         (fallback_failure_callback): New function.
86391         (print_unicode_char): Call unicode_to_mb.
86392
86393 2002-01-26  Jim Meyering  <meyering@lucent.com>
86394
86395         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86396         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86397
86398 2002-01-26  Jim Meyering  <meyering@lucent.com>
86399
86400         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86401
86402 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86403
86404         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86405
86406 2002-01-22  Jim Meyering  <meyering@lucent.com>
86407
86408         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86409         Otherwise, some versions of automake would omit the rule that makes
86410         Makefile from Makefile.in.
86411
86412 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86413
86414         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86415         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86416         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86417         (memcoll): Set errno to zero if there is no error.
86418
86419         * lib/quotearg.c (quotearg_buffer_restyled):
86420         Fix bug with quoting buffers containing NUL when backslashing escapes.
86421         This bug was exposed by the other changes in this patch.
86422         (quotearg_n_options): New arg ARGSIZE.
86423         All callers changed.
86424         (quoting_options_from_style): New function.
86425         (quotearg_n_style): Use it.
86426         (quotearg_n_style_mem): New function.
86427
86428         * lib/quotearg.h (quotearg_n_style_mem): New function.
86429
86430 2002-01-19  Jim Meyering  <meyering@lucent.com>
86431
86432         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86433         Remove useless quotes: DF_PROG="df".
86434         * m4/strnlen.m4: New file.
86435
86436 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86437
86438         * lib/backupfile.c (ISDIGIT): Comment fix.
86439         * lib/getdate.y (ISDIGIT): Likewise.
86440         * lib/posixtm.c (ISDIGIT, year): Likewise.
86441         * lib/strverscmp.c (ISDIGIT): Likewise.
86442         * lib/userspec.c (ISDIGIT): Likewise.
86443
86444 2002-01-16  Jim Meyering  <meyering@lucent.com>
86445
86446         * lib/getdate.y: Add three semicolons, each just before a closing
86447         brace. Bison (as of version 1.31) no longer papers over that mistake.
86448
86449 2002-01-05  Jim Meyering  <meyering@lucent.com>
86450
86451         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86452
86453 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86454
86455         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86456         not silently exit merely because the output buffer happens to
86457         have nothing pending.
86458
86459 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86460
86461         See the big note in ../ChangeLog.
86462         * lib/human.c (suffixes): Prefer K to k for 1024.
86463         (generate_suffix_backwards): New function.
86464         (human_readable_inexact): Use it.
86465         * lib/xstrtol.c (__xstrtol): If there is no number but there
86466         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86467         Accept 'K' as well as 'k'.
86468
86469 2001-12-15  Jim Meyering  <meyering@lucent.com>
86470
86471         * lib/regex.h (__restrict_arr): Update from libc.
86472
86473         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86474         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86475         (STREQ): Define.
86476
86477 2001-12-14  Jim Meyering  <meyering@lucent.com>
86478
86479         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86480         Suggestion from Bruno Haible.
86481
86482 2001-12-10  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86485         xrealloc, Instead, include "xalloc.h".
86486         (initbuffer): Don't cast xmalloc return value to char*.
86487         (readline): Reword comment.
86488         Don't cast xrealloc return value to char*
86489         Return NULL, not 0.
86490
86491 2001-12-09  Jim Meyering  <meyering@lucent.com>
86492
86493         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86494         about `signed and unsigned type in conditional expression'.
86495         * lib/posixtm.c (posix_time_parse): Likewise.
86496
86497         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86498
86499         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86500         to avoid a pedantic warning.
86501
86502         * lib/getstr.c: Don't include assert.h.
86503         (getstr): Remove warning-evoking assertions.
86504         Return -1 if offset parameter is out of bounds.
86505         Change the type of a local from int to size_t.
86506
86507         * lib/strftime.c (my_strftime_localtime_r): Include this function
86508         definition in the `#if ! HAVE_TM_GMTOFF' block.
86509
86510         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86511         Include xalloc.h instead.
86512
86513 2001-12-02  Jim Meyering  <meyering@lucent.com>
86514
86515         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86516         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86517         included.
86518
86519         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86520         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86521
86522 2001-11-30  Akim Demaille  <akim@epita.fr>
86523
86524         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86525         before being defined.
86526
86527 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86528
86529         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86530         First arg is int, not unsigned.
86531         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86532         (SIZE_MAX, UINT_MAX): New macros.
86533         (quotearg_n_options): Abort if N is negative.
86534         Avoid overflow check on hosts where size_t is 64 bits and int
86535         is 32 bits, as overflow is impossible there.
86536         Fix off-by-one typo that caused unnecessary reallocation.
86537
86538 2001-11-27  Jim Meyering  <meyering@lucent.com>
86539
86540         * lib/tempname.c: Merge with version from libc.
86541         * lib/regex.c: Likewise.
86542
86543         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86544         systems for which STDC_HEADERS is 0, it was not included, resulting in
86545         a warning about an integer-to-pointer conversion problem with getenv.
86546         Reported by Volker Borchert.
86547
86548 2001-11-26  Jim Meyering  <meyering@lucent.com>
86549
86550         * lib/gtod.h: Remove file.
86551         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86552         * lib/gettimeofday.c: Don't include gtod.h.
86553         (GTOD_init): Remove function.
86554         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86555         Suggestion from Volker Borchert.
86556
86557 2001-11-23  Jim Meyering  <meyering@lucent.com>
86558
86559         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86560         it.
86561         * lib/hash.c (struct hash_table): Define it here instead.
86562
86563 2001-11-22  Jim Meyering  <meyering@lucent.com>
86564
86565         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86566
86567 2001-11-20  Jim Meyering  <meyering@lucent.com>
86568
86569         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86570         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86571
86572 2001-11-19  Jim Meyering  <meyering@lucent.com>
86573
86574         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86575         directory.  Use "conftestXXXXXX" as the template.
86576         Suggestion from Paul Eggert.
86577
86578         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86579         immediately, so the test doesn't mistakenly hit the max-open-files
86580         limit.
86581
86582 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86583
86584         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86585         (TEMPORARIES): New macro.
86586         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86587         removes an artificial limitation (e.g. HP-UX 10.20, where
86588         TMP_MAX is 17576).
86589
86590 2001-11-18  Jim Meyering  <meyering@lucent.com>
86591
86592         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86593
86594 2001-11-18  Jim Meyering  <meyering@lucent.com>
86595
86596         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86597         on SunOS 4.
86598
86599         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86600         files will be created before anything else.
86601
86602 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86603
86604         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86605         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86606
86607 2001-11-17  Jim Meyering  <meyering@lucent.com>
86608
86609         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86610         Prompted by a report from Bob Proulx.
86611
86612         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86613         Instead, require UTILS_FUNC_MKSTEMP.
86614
86615 2001-11-17  Jim Meyering  <meyering@lucent.com>
86616
86617         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86618         Now, that's done as part of AC_FUNC_STRTOD.
86619
86620 2001-11-17  Jim Meyering  <meyering@lucent.com>
86621
86622         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86623         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86624         rather than group writable.  Patch by Juan F. Codagnone.
86625
86626         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86627         xrealloc, Instead, include "xalloc.h".
86628
86629         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86630         Remove explicit declarations of xmalloc, xrealloc,
86631         and xstrdup.  Instead, include "xalloc.h".
86632
86633         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86634         unlocked-io.h.
86635         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86636         Likewise.
86637         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86638
86639         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86640         Reported by Padraig Brady.
86641
86642         * lib/mkstemp.c: #undef mkstemp.
86643         Include config.h.
86644         (rpl_mkstemp): Rename from mkstemp.
86645         Protoize.
86646
86647 2001-11-16  Jim Meyering  <meyering@lucent.com>
86648
86649         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86650         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86651         determine the amount of total physical memory, use pstat_getstatic.
86652         HPUX-11 doesn't define _SC_PHYS_PAGES.
86653         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86654         If sysconf couldn't be used to determine the amount of available
86655         physical memory, use both pstat_getstatic and pstat_getdynamic.
86656         Based on a patch from Bob Proulx.
86657
86658 2001-11-10  Jim Meyering  <meyering@lucent.com>
86659
86660         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86661         (jm_PREREQ): Use it.
86662
86663 2001-11-09  Jim Meyering  <meyering@lucent.com>
86664
86665         * m4/jm-macros.m4: Require autoconf-2.52f.
86666         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86667         Use these AC_-prefixed names, not the AM_-prefixed ones.
86668
86669         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86670
86671 2001-11-05  Jim Meyering  <meyering@lucent.com>
86672
86673         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86674
86675 2001-11-04  Jim Meyering  <meyering@lucent.com>
86676
86677         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86678         $DEFS.
86679
86680 2001-11-03  Jim Meyering  <meyering@lucent.com>
86681
86682         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86683         of AC_DEFUN.
86684
86685         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86686         know the name of the variable in the macro definition.
86687
86688 2001-11-03  Jim Meyering  <meyering@lucent.com>
86689
86690         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86691         in argmatch_to_argument call.
86692
86693         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86694         argument.
86695
86696         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86697         e.g., a fault due to an attempt to free a NULL pointer.
86698
86699 2001-11-01  Jim Meyering  <meyering@lucent.com>
86700
86701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86702         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86703
86704 2001-11-01  Jim Meyering  <meyering@lucent.com>
86705
86706         * lib/dirfd.c, lib/dirfd.h: New files.
86707         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86708
86709         * lib/hash.c (hash_print) [TESTING]: Clean up.
86710
86711 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86712
86713         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86714         to avoid a warning if -Wall.
86715
86716 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86717
86718         * README: New file
86719         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86720         (per RMS's instructions, this is now the canonical source)
86721         * lgpl/, gpl/: New directories.
86722
86723 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86724
86725         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86726
86727 2001-10-21  Jim Meyering  <meyering@lucent.com>
86728
86729         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86730         this code would end up calling gettext even in packages built
86731         with --disable-nls.
86732         * lib/getopt.c (_): Likewise.
86733         * lib/regex.c (_): Likewise.
86734
86735 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86736
86737         * m4/error.m4 (jm_PREREQ_ERROR):
86738         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86739         AC_FUNC_STRERROR_R does that.
86740         Check for strerror declaration.
86741
86742         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86743         are supposed to have them these days.
86744         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86745         Merge changes from latest Autoconf CVS.
86746         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86747         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86748         POSIX decided to standardize on the int flavor of strerror_r.
86749
86750 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86751
86752         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86753         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86754         Use strerror_r that is only a macro, even if it is not a function.
86755         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86756         (private_strerror): Use prototypes, not old-style function definition.
86757         (print_errno_message): New function.
86758         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86759         char*-flavored one.
86760         (error_tail, error, error_at_line): Use it.
86761
86762 2001-10-11  Jim Meyering  <meyering@lucent.com>
86763
86764         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86765         and quote_n (1, ... to avoid clobbering a buffer.
86766
86767 2001-10-05  Jim Meyering  <meyering@lucent.com>
86768
86769         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86770         hash-pjw.h.
86771         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86772         * lib/hash-pjw.h: New file.
86773
86774 2001-09-30  Jim Meyering  <meyering@lucent.com>
86775
86776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86777         `struct fsstat' has the `f_fstypename' member.
86778         Use that to define FS_TYPE, which is now used to make
86779         the getfsstat link test tighter.
86780
86781 2001-09-30  Jim Meyering  <meyering@lucent.com>
86782
86783         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86784         Include <sys/ucred.h>, for Apple Darwin.
86785         Include sys/mount.h and sys/fs_types.h only if available.
86786         (FS_TYPE): Define.
86787         (read_filesystem_list): Use FS_TYPE.
86788
86789 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86790
86791         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86792         a boolean context.
86793
86794 2001-09-29  Jim Meyering  <meyering@lucent.com>
86795
86796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86797         [one-argument getmntent function]): Include stdio.h before mntent.h.
86798         SunOS 4.1.x needs it for the declaration of `FILE'.
86799         Patch by Volker Borchert.
86800
86801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86802         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86803         sys/fs_types.h, and make the link-test for getfsstat guard #include
86804         directives with appropriate #if HAVE_*_H tests so that we can
86805         detect getfsstat on Apple Darwin1.3.7 systems.
86806         Reported by Nelson Beebe.
86807         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86808
86809 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86810
86811         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86812         #defines strtoimax.  Also treat the other strto* functions
86813         like strtoimax.
86814
86815         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86816         Check for strtoul and strtoumax,
86817         as those declarations are made even in the signed case.
86818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86819         Likewise, for strtol and strtoimax.
86820
86821 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86822
86823         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86824         #defines strtoimax.  Also treat the other strto* functions
86825         like strtoimax.
86826
86827         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86828         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86829         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86830
86831 2001-09-26  Jim Meyering  <meyering@lucent.com>
86832
86833         Most macros in unlocked-io.h had the wrong number of arguments.
86834         * lib/gen-uio: New script.
86835         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86836         * lib/unlocked-io.hin: Remove file.
86837         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86838         rather than trying to embed it here.
86839         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86840         Reported by Padraig Brady.
86841
86842 2001-09-25  Volker Borchert  <bt@teknon.de>
86843
86844         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86845         `result'.
86846
86847 2001-09-24  Jim Meyering  <meyering@lucent.com>
86848
86849         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86850
86851 2001-09-23  Jim Meyering  <meyering@lucent.com>
86852
86853         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86854         instead of the mere test for existence of mntent.h.  The latter
86855         would get a false-positive on AIX 3.4 systems.
86856         In the outer getmntent if-block, don't die if neither of the getmntent
86857         tests succeeds.  Instead, just fall through and continue with the
86858         remaining tests.
86859
86860 2001-09-23  Jim Meyering  <meyering@lucent.com>
86861
86862         * lib/mountlist.c: Remove useless parentheses in #if directives.
86863         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86864         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86865
86866 2001-09-22  Jim Meyering  <meyering@lucent.com>
86867
86868         * m4/gettext.m4: New file.  From gettext.
86869         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86870         * m4/progtest.m4: Likewise
86871         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86872         * m4/glibc21.m4: Likewise.
86873
86874         * m4/libintl.m4: Remove.  No longer used.
86875
86876 2001-09-22  Jim Meyering  <meyering@lucent.com>
86877
86878         * lib/localcharset.c: Update from latest gettext.
86879         * lib/config.charset: Likewise.
86880
86881 2001-09-20  Jim Meyering  <meyering@lucent.com>
86882
86883         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86884         strtoimax.
86885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86886         strtoumax.
86887
86888 2001-09-20  Jim Meyering  <meyering@lucent.com>
86889
86890         * lib/xstrtol.c (strtoimax): Guard declaration with
86891         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86892         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86893         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86894         (strtoumax): Likewise, for completeness (it wasn't necessary).
86895
86896 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86897
86898         * lib/strtoimax.c (HAVE_LONG_LONG):
86899         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86900         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86901         to work around bug in IBM C compiler.
86902
86903 2001-09-17  Jim Meyering  <meyering@lucent.com>
86904
86905         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86906         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86907         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86908         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86909         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86910         whenever the right hand side need not be expanded by the shell.
86911
86912 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86913
86914         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86915         library.  It's not correct, as some older glibcs are buggy.
86916         fnmatch wasn't fixed until glibc 2.2.
86917
86918         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86919         special shell magic here.
86920
86921 2001-09-16  Jim Meyering  <meyering@lucent.com>
86922
86923         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86924         * m4/jm-macros.m4: Require it.
86925
86926 2001-09-16  Jim Meyering  <meyering@lucent.com>
86927
86928         * lib/mkdir.c: New file.
86929
86930 2001-09-15  Jim Meyering  <meyering@lucent.com>
86931
86932         * m4/jm-macros.m4: Check for help2man.
86933
86934 2001-09-11  Jim Meyering  <meyering@lucent.com>
86935
86936         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86937         The body, by Paul Eggert, was moved here from configure.in.
86938         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86939
86940 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86941
86942         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86943         (jm_PREREQ): Use it.
86944
86945 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86946
86947         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86948         Use ssize_t, not int, to store result of readlink.
86949         Check for ssize_t overflow as well as size_t overflow,
86950         as POSIX says the result of readlink is implementation-defined
86951         when ssize_t overflows.
86952         Remove unnecessary cast to char*.
86953         Use free+malloc instead of realloc, as the storage doesn't need
86954         to be preserved and it's clearer and can be more efficient that way.
86955         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86956         * lib/xreadlink.h (xreadlink): Update prototype.
86957
86958 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86959
86960         * lib/xgetcwd.c: Revert some of the previous change; intead,
86961         fix the HAVE_GETCWD_NULL code to behave more like the
86962         !HAVE_GETCWD_NULL code used to.
86963
86964         Include "xalloc.h".
86965         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86966         invoke xalloc_die.
86967
86968 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86969
86970         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86971         sys/param.h, as pathmax.h includes them.
86972
86973 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86974
86975         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86976         (jm_PREREQ_XGETCWD): New macro.
86977
86978         * m4/getcwd.m4: New file.
86979
86980 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86981
86982         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86983         like the HAVE_GETCWD_NULL code.
86984         Include pathmax.h if not HAVE_GETCWD.
86985         Do not include xalloc.h.
86986         (INITIAL_BUFFER_SIZE): New symbol.
86987         Do not use xmalloc / xrealloc, since the caller is responsible for
86988         handling errors.  Preserve errno around `free' during failure.
86989         Do not overrun buffer when using getwd.
86990
86991 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86992
86993         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86994         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86995         getcwd (NULL, 0).
86996
86997 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86998
86999         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87000         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87001         spotted by Jim Meyering.
87002
87003 2001-09-03  Jim Meyering  <meyering@lucent.com>
87004
87005         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87006         failure.
87007
87008 2001-09-02  Jim Meyering  <meyering@lucent.com>
87009
87010         * lib/error.c: Update from GNU libc.
87011
87012 2001-09-01  Jim Meyering  <meyering@lucent.com>
87013
87014         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87015         Used by df.
87016
87017 2001-09-01  Jim Meyering  <meyering@lucent.com>
87018
87019         * lib/xreadlink.c: New file.
87020         * lib/xreadlink.h: New file.
87021         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87022         xreadlink.h.
87023
87024         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87025         doesn't conflict with sparc Solaris 7's definition in
87026         /usr/include/sys/int_types.h.
87027
87028         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87029         files.
87030         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87031         and strncasecmp as r-values.  Unixware didn't have declarations.
87032
87033 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87034
87035         * lib/xstrtol.h: Add copyright notice.
87036         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87037         LONGINT_INVALID_SUFFIX_CHAR.
87038
87039 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87040
87041         * lib/xstrtol.c (strtoimax): New decl.
87042
87043 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87044
87045         * lib/xgetcwd.c: Don't include pathmax.h.
87046         Include stdlib.h and unistd.h if available.
87047         Include xalloc.h.
87048         (xmalloc, xstrdup, free): Remove decls.
87049         (xgetcwd): Don't assume sizes fit in unsigned.
87050         Check for overflow when computing sizes.
87051         Simplify reallocation code.
87052
87053 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87054
87055         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87056         a directory's st_size can have an arbitrary value, so the old
87057         usage could waste an arbitrary amount of memory.  All uses
87058         changed.
87059         * lib/savedir.h: Update prototype.
87060
87061 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87062
87063         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87064
87065         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87066         old strtoimax.c.
87067
87068         Also, make the following further changes to make this file's
87069         configuration more similar to that of strtol.c:
87070         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87071         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87072         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87073         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87074         changed to signed values.
87075
87076         And make the following changes as well:
87077         Fix copyright notice, as 1999 was missing.
87078         (verify): New macro.
87079         (strtoimax): Check sizes at compile-time, not run-time.
87080         Prefer strtol to strtoll if both work.
87081         (main): Remove; it was not that useful and was a pain to maintain.
87082
87083         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87084
87085 2001-08-31  Jim Meyering  <meyering@lucent.com>
87086
87087         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87088         Use an initial, malloc'd, buffer of length 128 rather than
87089         a statically allocated one of length 1024.
87090
87091 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87092
87093         Simplify code, partly by assuming autoconf 2.52 semantics.
87094
87095         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87096
87097         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87098         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87099         All uses removed.
87100         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87101         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87102         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87103         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87104         jm_AC_HEADER_INTTYPES_H.
87105         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87106
87107         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87108
87109         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87110         Quote first arg of AC_DEFUN.
87111         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87112         since they are needed to parse the include file even if we need
87113         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87114         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87115         but with opposite signedness.
87116
87117 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87118
87119         Merge 'exclude' changes from tar 1.13.22.
87120         This fixes one or two unlikely storage allocation overflow bugs,
87121         but doesn't change user-visible behavior otherwise.
87122
87123 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87124
87125         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87126         (jm_PREREQ_EXCLUDE): New macro.
87127
87128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87129
87130         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87131         tm to be declared.
87132
87133 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87134
87135         * lib/hash.c: Remove '2001' from copyright notice.
87136
87137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87138
87139         * lib/full-write.h: New file.
87140         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87141         * lib/full-write.c: Correct credits, as cccp.c no longer
87142         exists and anyway it was so heavily changed from the old cccp
87143         code as to be unrecognizable.  Include full-write.h.
87144         (full_write): Return size_t, with short writes meaning failure.
87145         All callers changed.  This fixes a bug with large buffers
87146         on 64-bit hosts.
87147         * lib/utime.c: Include full-write.h.
87148
87149 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87150
87151         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87152         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87153         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87154         Include if available.
87155         (<xalloc.h>): Include
87156         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87157         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87158         collide with FNM macros.
87159         (struct patopts): New struct.
87160         (struct exclude): Use it, as exclude patterns now come with options.
87161         (new_exclude): Support above changes.
87162         (new_exclude, add_exclude_file):
87163         Initial size must now be a power of two to simplify overflow checking.
87164         (free_exclude, fnmatch_no_wildcards): New function.
87165         (excluded_filename): No longer requires options arg, as the options
87166         are determined by add_exclude.  Now returns bool, not int.
87167         (excluded_filename, add_exclude):
87168         Add support for the fancy new exclusion options.
87169         (add_exclude, add_exclude_file): Now takes int options arg.
87170         Check for arithmetic overflow when computing sizes.
87171         (add_exclude_file): xrealloc might modify errno, so don't
87172         realloc until after errno might be used.
87173
87174         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87175         New macros.
87176         (free_exclude): New decl.
87177         (add_exclude, add_exclude_file): Now takes int options arg.
87178         (excluded_filename): No longer requires options arg, as the options
87179         are determined by add_exclude.  Now returns bool, not int.
87180
87181 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87182
87183         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87184
87185 2001-08-27  Jim Meyering  <meyering@lucent.com>
87186
87187         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87188
87189         * lib/version-etc.c (N_): Remove definition.
87190         Revert most of last change.
87191         Instead, simply don't mark the `Copyright...' string for translation.
87192         Based on advice from Paul Eggert.
87193
87194         * lib/strtoxmax.c: Tweak comment.
87195
87196 2001-08-26  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87199
87200         * m4/xstrtoimax.m4: New file.
87201         * m4/xstrtoumax.m4: Add comments explaining why we
87202         AC_REPLACE_FUNCS(strtol).
87203
87204 2001-08-26  Jim Meyering  <meyering@lucent.com>
87205
87206         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87207         of copyright with `%s' so translators don't get an untranslated
87208         message in 2002.
87209         (COPYRIGHT_YEAR): Define.
87210         (version_etc): Use fprintf rather than fputs.
87211         Suggestion from Ulrich Drepper.
87212
87213         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87214
87215         * lib/strtoll.c: New file, from GNU libc.
87216         * lib/xstrtoimax.c: New file.
87217
87218         * lib/xstrtol.h: Add xstrtoimax.
87219         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87220         * lib/strtoimax.c: New file.  Likewise, but first define
87221         STRTOUXMAX_SIGNED.
87222
87223         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87224         ...
87225         * lib/strtoxmax.c: ... then renamed to this.
87226
87227 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87228
87229         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87230         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87231         (jm_AC_TYPE_INTMAX_T): New macro.
87232         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87233
87234         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87235
87236         * m4/longlong.m4: Renamed from ulonglong.m4.
87237         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87238         * m4/uintmax_t.m4: Removed.
87239
87240 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87241
87242         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87243         Port to Solaris 8, where 'sed' requires a space after the 'r'
87244         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87245         Redirect output to $tmp just once.
87246
87247 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87248
87249         * lib/addext.c (<errno.h>): Include.
87250         (errno): Declare if not defined.
87251         (addext): Work correctly when pathconf returns -1 and leaves
87252         errno alone because there is no limit.  Also, work even if
87253         pathconf returns a value greater than SIZE_MAX.
87254
87255 2001-08-12  Jim Meyering  <meyering@lucent.com>
87256
87257         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87258         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87259         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87260         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87261         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87262         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87263         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87264         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87265         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87266         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87267         utime.m4, utimes.m4, xstrtoumax.m4:
87268         Quote the first argument in each use of AC_DEFUN.
87269
87270 2001-08-12  Jim Meyering  <meyering@lucent.com>
87271
87272         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87273         Simply `return getcwd (NULL, 0);'.
87274         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87275         Use 1300 as initial value for length, not PATH_MAX.
87276
87277         * lib/pathmax.h: Clean up cpp syntax.
87278
87279 2001-08-12  Jim Meyering  <meyering@lucent.com>
87280
87281         * lib/gettimeofday.c: New file.
87282         * lib/gtod.h: New file.
87283         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87284
87285 2001-08-05  Jim Meyering  <meyering@lucent.com>
87286
87287         * m4/jm-macros.m4: Require autoconf-2.52.
87288
87289 2001-08-04  Jim Meyering  <meyering@lucent.com>
87290
87291         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87292         stmt, to get in sync with glibc.
87293
87294 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87295
87296         The following changes are from gettext 0.10.39 as maintained by
87297         Bruno Haible.
87298
87299         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87300         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87301         with inverted sense.  All uses changed.
87302
87303         * lib/mbswidth.c: Don't include <limits.h>.
87304         Include <stdlib.h> and <string.h> unconditionally.
87305         (iswcntrl, mbsinit, ISCNTRL): New macros.
87306         (mbsnwidth): Use K&R style function declarations.
87307         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87308         can optimize it when MB_CUR_MAX == 1.
87309         The width of control characters is zero, not 1.
87310
87311 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87312
87313         The following changes are from gettext 0.10.39 as maintained by
87314         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87315
87316         * m4/codeset.m4: Upgrade to serial AM1.
87317         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87318         all uses changed.  Quote first arg of AC_DEFUN.
87319         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87320
87321         * m4/iconv.m4: Upgrade to serial AM2.
87322         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87323         Add --with-libconv-prefix.
87324         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87325         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87326         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87327         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87328         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87329
87330         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87331         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87332         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87333         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87334         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87335         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87337         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87339
87340         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87341         string.h any more.
87342
87343         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87344         not the default value.
87345
87346         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87347         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87348         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87349         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87350         Also check for iswcntrl, used for wcwidth fallback.
87351         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87352         to Autoconf 2.13.
87353
87354 2001-08-03  Jim Meyering  <meyering@lucent.com>
87355
87356         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87357         as it was in the original.  Reported by Paul Eggert.
87358
87359 2001-07-16  Jim Meyering  <meyering@lucent.com>
87360
87361         * m4/gettimeofday.m4: New file.
87362         Prompted by a report from Bernhard Baehr.
87363
87364 2001-07-15  Jim Meyering  <meyering@lucent.com>
87365
87366         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87367         stuff. Now it's in ../Makefile.cfg.
87368
87369 2001-07-15  Jim Meyering  <meyering@lucent.com>
87370
87371         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87372         (BUILT_SOURCES): Add unlocked-io.h.
87373         (io_functions): Define.
87374         (unlocked-io.h): New rule.
87375         (DISTCLEANFILES): Add unlocked-io.h.
87376         (all-local): Depend on unlocked-io.h, to ensure it is created.
87377
87378         * lib/unlocked-io.hin: New file
87379
87380         * lib/regex.c: Update from glibc.
87381
87382 2001-07-05  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87385         recommendation.
87386         (libfetish_a_SOURCES): Put all .h files here instead.
87387         Remove a thus-exposed (better checks in automake) duplicate and
87388         two unnecessary .h files.
87389
87390 2001-07-04  Jim Meyering  <meyering@lucent.com>
87391
87392         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87393         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87394         distcheck failure.
87395
87396 2001-07-02  Jim Meyering  <meyering@lucent.com>
87397
87398         The following changes were prompted by suggestions from Bruno Haible.
87399
87400         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87401         is now generated.
87402         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87403         definition of EXTRA_DIST.
87404         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87405         ensure that the generated file is created/updated whenever the list
87406         of $(unlocked_functions) is changed.
87407         (jm-glibc-io.m4): New rule.
87408         (unlocked-io.h): New rule -- currently unused.
87409
87410 2001-06-24  Jim Meyering  <meyering@lucent.com>
87411
87412         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87413         unmatched right bracket, rather than kludging it with an extra,
87414         falsely-matching quote in a comment.  Patch by Akim Demaille.
87415
87416 2001-06-11  Jim Meyering  <meyering@lucent.com>
87417
87418         * lib/regex.c: Update from GNU libc.
87419
87420 2001-05-27  Jim Meyering  <meyering@lucent.com>
87421
87422         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87423         Check for ut_type in struct utmp.
87424
87425 2001-05-27  Jim Meyering  <meyering@lucent.com>
87426
87427         * lib/readutmp.h (UT_TYPE): Define.
87428
87429 2001-05-24  Jim Meyering  <meyering@lucent.com>
87430
87431         * lib/argmatch.c: Include "quote.h".
87432         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87433         quote function.  Reported by Göran Uddeborg.
87434
87435 2001-05-22  Jim Meyering  <meyering@lucent.com>
87436
87437         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87438         now that we use the package-supplied version unconditionally.
87439         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87440
87441 2001-05-21  Jim Meyering  <meyering@lucent.com>
87442
87443         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87444         shell syntax errors.
87445
87446 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87447
87448         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87449
87450 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87451
87452         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87453         Don't bother to check library strftime, since
87454         we'll be using our own my_strftime function anyway.
87455         Define my_strftime instead of strftime.
87456
87457 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87458
87459         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87460         which is not yet declared.
87461
87462 2001-05-15  Jim Meyering  <meyering@lucent.com>
87463
87464         * m4/regex.m4: Use proper quoting so brackets appear in the test
87465         program.
87466         Reported by, and with help from, Bruno Haible.
87467
87468 2001-05-13  Jim Meyering  <meyering@lucent.com>
87469
87470         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87471         undefined.
87472
87473 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87474
87475         dirname code cleanup.  base_name now behaves more compatibly
87476         with POSIX basename when given file names that have trailing
87477         slashes, and similarly for dir_name.  Add new primitives
87478         base_len and dir_len.  Put the directory-name-related decls
87479         into dirname.h.
87480
87481         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87482         * lib/backupfile.c (base_name): Likewise.
87483         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87484         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87485         * lib/makepath.c (strip_trailing_slashes): Likewise.
87486         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87487         ISSLASH): Likewise.
87488         * lib/rename.c (strip_trailing_slashes): Likewise.
87489         * lib/same.c (base_name): Likewise.
87490         * lib/stripslash.c (ISSLASH): Likewise.
87491
87492         * lib/addext.c: Include <dirname.h> after size_t is defined.
87493         * lib/backupfile.c: Likewise.
87494
87495         * lib/addext.c (addext): Use base_len to trim redundant
87496         trailing slashes instead of doing it ourselves.
87497         But do not trim the last slash if it is not redundant.
87498
87499         * lib/backupfile.c (find_backup_file_name,
87500         max_backup_version): Use base_len instead of rolling it ourselves.
87501         Handle the case of "" and (on DOS) "C:" correctly.
87502
87503         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87504         needed. Include <string.h>, <dirname.h>.
87505         (base_name): Allow file names ending in slashes, other than names
87506         that are all slashes.  In this case, return the basename followed
87507         by the slashes.  This is more general, and can be used in places
87508         where the original base_name purposely had an assertion failure.
87509         (base_len): New function.
87510
87511         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87512         Do not include <assert.h>; no longer needed.
87513         Include xalloc.h.
87514         (memrchr): Remove decl.
87515         (dir_name_r): Remove.
87516         (dir_len): Renamed from dirlen.  All callers changed.
87517         Rewrite in terms of base_name, for simplicity and consistency.
87518         (dir_name): Never return NULL.  All callers changed.
87519         Do not include <stdlib.h> in test program; no longer needed.
87520         return 0; is fine for test program.
87521
87522         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87523         New macros.
87524         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87525
87526         * lib/path-concat.c (path_concat): Use base_len to compute
87527         base length, not strlen; this means we cannot rely on memcpy
87528         to null-terminate.
87529
87530         * lib/same.c (STREQ): Remove.
87531         (same_name): Handle the case where the basename ends in trailing '/'.
87532
87533         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87534         a slash was stripped.  Do not strip the last slash after a
87535         file system prefix.
87536
87537 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87538
87539         * lib/Makefile.am (libfetish_a_SOURCES):
87540         Add strftime.c, since we now compile it on all hosts.
87541
87542         * lib/strftime.c (my_strftime):
87543         Define to nstrftime if emacs, but only if my_strftime is not defined.
87544         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87545         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87546         Add one more extra argument: a nanoseconds value.
87547         All uses changed.
87548         (ns): New macro.
87549         (my_strftime function): Add %N format.
87550         (emacs_strftimeu): Renamed from emacs_strftime,
87551         with extra ut argument.
87552
87553 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87554
87555         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87556
87557 2001-04-21  Jim Meyering  <meyering@lucent.com>
87558
87559         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87560         doesn't interfere.
87561
87562 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87563
87564         * m4/ftruncate.m4: Check for chsize.
87565         Link with ftruncate.o unconditionally if ftruncate is missing.
87566         This was required when cross-compiling to i586-mingw32msvc.
87567
87568 2001-04-08  Jim Meyering  <meyering@lucent.com>
87569
87570         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87571         recomputed; that's necessary when the offset spans a DST transition.
87572         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87573
87574 2001-04-02  Jim Meyering  <meyering@lucent.com>
87575
87576         * lib/regex.h, regex.c: Update from GNU libc.
87577
87578 2001-03-24  Jim Meyering  <meyering@lucent.com>
87579
87580         * m4/jm-macros.m4: Require autoconf-2.49d.
87581
87582 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87583
87584         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87585
87586 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87587
87588         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87589
87590 2001-03-17  Jim Meyering  <meyering@lucent.com>
87591
87592         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87593         now that the version in autoconf is equivalent.
87594         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87595
87596         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87597         Suggestion from Akim Demaille.
87598
87599         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87600         (jm_PREREQ_TEMPNAME): New function.
87601
87602 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87603
87604         * lib/tempname.c (uint64_t): Define to uintmax_t if
87605         not defined, and if UINT64_MAX is not defined.
87606         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87607         Reported by John David Anglin.
87608
87609 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87610
87611         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87612         resolve alias if codeset is empty.
87613         * lib/config.charset (BeOS): Use wildcard syntax.
87614
87615 2001-03-13  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/path-concat.c (path_concat)
87618         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87619         concatenating e.g., `C:' and `foo'.
87620         From Bruno Haible.
87621
87622 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87623
87624         * lib/localcharset.c (locale_charset): Don't use
87625         setlocale(LC_CTYPE,NULL). Don't return NULL.
87626         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87627
87628 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87629
87630         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87631         support for DOS/DJGPP.
87632
87633 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87634
87635         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87636         lacks mkstemp.  Compile our own tempname.c if we compile our own
87637         mkstemp.c, as mkstemp relies on tempname.
87638
87639 2001-03-01  Jim Meyering  <meyering@lucent.com>
87640
87641         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87642         AH_VERBATIM really does output its argument verbatim.
87643
87644 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87645
87646         * lib/Makefile.am (libfetish_a_SOURCES):
87647         Add dup-safer.c, fopen-safer.c.
87648         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87649
87650         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87651         * lib/unistd-safer.h: New files.
87652
87653 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87654
87655         The mkstemp replacement is taken from glibc 2.2.2, with some
87656         portability fixes for use outside glibc, as follows:
87657
87658         * lib/tempname.c (struct_stat64): New macro.
87659         (direxists, __gen_tempname): Use it.
87660         This avoids a portability problem with Solaris 8.
87661
87662         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87663         (<stddef.h>, <stdint.h>, <string.h>):
87664         Include only if STDC_HEADERS || _LIBC.
87665         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87666         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87667         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87668         (__set_errno): Define this macro if <errno.h> doesn't.
87669         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87670         Define these macros if <stdio.h> doesn't.
87671         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87672         Define these macros if <sys/stat.h>
87673         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87674         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87675         __xstat64): Define if not _LIBC.
87676         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87677         (__gen_tempname): Invoke gettimeofday only if
87678         HAVE_GETTIMEOFDAY || _LIBC;
87679         otherwise, fall back on plain "time".
87680         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87681
87682         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87683
87684         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87685
87686 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87687
87688         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87689
87690 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87691
87692         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87693         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87694         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87696
87697 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87698
87699         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87700         Remove workaround macros for hosts that have mbrtowc but not
87701         mbstate_t, as we now insist on proper declarations for both
87702         before using mbrtowc.
87703
87704 2001-02-17  Jim Meyering  <meyering@lucent.com>
87705
87706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87707         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87708         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87709         UnixWare 7.1.1.
87710
87711         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87712         rather than AC_CACHE_VAL.
87713
87714 2001-02-17  Jim Meyering  <meyering@lucent.com>
87715
87716         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87717         around included file name.
87718
87719         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87720
87721         * lib/strftime.c: Update from GNU libc (the only changes were to
87722         comments).
87723
87724 2001-02-17  Jim Meyering  <meyering@lucent.com>
87725
87726         * lib/regex.c: Update from libc.
87727
87728 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87729
87730         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87731         clash.
87732
87733 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87734
87735         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87736         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87737         Reported by Mark Hounschell via Paul Eggert.
87738
87739 2001-02-07  Jim Meyering  <meyering@lucent.com>
87740
87741         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87742
87743 2001-02-05  Jim Meyering  <meyering@lucent.com>
87744
87745         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87746         it includes the patch required for `large file' support with at least
87747         HP-UX's 10.20 /bin/cc.
87748
87749 2001-02-03  Jim Meyering  <meyering@lucent.com>
87750
87751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87752         AS_IF, now that it works once again (mysteriously).
87753         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87754
87755 2001-01-30  Jim Meyering  <meyering@lucent.com>
87756
87757         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87758         * m4/chown.m4: Rename conftestchown to conftest.chown.
87759         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87760         s/conftestdir2/conftest.d2/.
87761         * m4/utimes.m4: s/conftestdata/conftest.data/
87762         Inspired by Pavel Roskin's change in autoconf.
87763
87764 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87765
87766         * lib/config.charset: Update for FreeBSD 4.2.
87767
87768 2001-01-27  Jim Meyering  <meyering@lucent.com>
87769
87770         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87771         a use of AS_IF.
87772         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87773
87774 2001-01-26  Jim Meyering  <meyering@lucent.com>
87775
87776         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87777         quotearg.c includes it.
87778
87779 2001-01-26  Jim Meyering  <meyering@lucent.com>
87780
87781         * lib/quotearg.c: Include stddef.h.
87782         * lib/quote.c: Include stddef.h.
87783         Reported by Axel Kittenberger.
87784
87785         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87786         line in double quotes so that it evokes a better diagnostic.
87787         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87788         Reported by Axel Kittenberger.
87789
87790 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87791
87792         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87793         as if it was a `charset'.
87794
87795 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87796
87797         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87798         has const.
87799
87800 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87801
87802         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87803         to avoid a warning.  Add back 'const' to inptr.
87804
87805 2001-01-20  Jim Meyering  <meyering@lucent.com>
87806
87807         Be sure that headers are checked before used in code compiled
87808         for the type checks.
87809         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87810         In place of that, invoke jm_CHECK_ALL_TYPES.
87811         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87812         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87813         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87814         The check for ssize_t was mistakenly run before the test for unistd.h.
87815
87816         The configure-time check for stdbool.h was missing.
87817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87818         (jm_PREREQ_HASH): New function.
87819
87820 2001-01-17  Jim Meyering  <meyering@lucent.com>
87821
87822         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87823         for autoconf-2.49c.
87824         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87825
87826 2001-01-16  Jim Meyering  <meyering@lucent.com>
87827
87828         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87829         From Bruno Haible.
87830
87831 2001-01-14  Jim Meyering  <meyering@lucent.com>
87832
87833         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87834         foo and bar.  Create conftestdir/ in the script, not in the C code.
87835         Remove directories in the script, not in the C code.
87836         Remove conftestdir{,2} before trying to create the directory.
87837         Make the entire configure script fail if the mkdir fails.
87838
87839 2001-01-14  Jim Meyering  <meyering@lucent.com>
87840
87841         * lib/rename.c: New file.  From Volker Borchert.
87842         Include stdlib.h, string.h or strings.h, and xalloc.h.
87843         Use strip_trailing_slashes rather than open-coding it.
87844
87845 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87846
87847         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87848
87849 2001-01-03  Jim Meyering  <meyering@lucent.com>
87850
87851         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87852         of local `inptr' to avoid warning with some system declarations of
87853         iconv.
87854
87855 2001-01-02  Volker Borchert  <bt@teknon.de>
87856
87857         * m4/rename.m4: New file.
87858         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87859
87860 2001-01-01  Jim Meyering  <meyering@lucent.com>
87861
87862         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87863         even on systems with utmpx.h.  It's necessary for the declaration of
87864         utmp's ut_user member.  Reported by Andreas Jaeger.
87865
87866         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87867         available. They are required for the declarations of getgrgid and
87868         getpwuid resp.
87869         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87870         Reported by Andreas Jaeger.
87871
87872 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87873
87874         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87875         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87876         so `make install' also works in VPATH builds.
87877
87878 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87879
87880         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87881         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87882         can be used in subdirectories.
87883
87884 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87885
87886         * lib/modechange.c: Do not assume that mode_t uses the
87887         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87888         the other-execute bit of FOO even if S_IXOTH != 1.
87889
87890         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87891         WOTH, XOTH, ALLM): New macros.
87892         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87893          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87894         Use them.
87895         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87896         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87897         (mode_compile):
87898         No need to use uintmax_t; unsigned long is long enough.
87899         Don't bother to get suffix since we don't use it.
87900
87901 2000-12-26  Jim Meyering  <meyering@lucent.com>
87902
87903         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87904         better with autoheader.
87905
87906 2000-12-24  Jim Meyering  <meyering@lucent.com>
87907
87908         * lib/hash.c (is_prime): Return explicit boolean values.
87909         (hash_get_first): Return NULL to appease Irix5.6's 89.
87910         Reported by Nelson Beebe.
87911
87912 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87913
87914         * lib/localcharset.c (locale_charset): Add support for Win32.
87915
87916 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87917
87918         * lib/physmem.h, lib/physmem.c: New files.
87919
87920         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87921         (noinst_HEADERS): Add physmem.h.
87922
87923         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87924         't' for compatibility with Solaris 8 sort.
87925
87926 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87927
87928         * lib/config.charset: Add support for BeOS.
87929
87930 2000-12-17  Jim Meyering  <meyering@lucent.com>
87931
87932         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87933         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87934
87935 2000-12-16  Jim Meyering  <meyering@lucent.com>
87936
87937         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87938         N and M) would have treated it like `chown N:N FILE'.
87939
87940         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87941
87942 2000-12-16  Jim Meyering  <meyering@lucent.com>
87943
87944         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87945         SHELLS_FILE to a file name that's useful on djgpp systems.
87946         Include stdlib.h.
87947         (ADDITIONAL_DEFAULT_SHELLS): Define.
87948         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87949         Based mostly on a patch from Prashant TR.
87950
87951 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87952
87953         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87954         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87955         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87956
87957 2000-12-08  Andreas Schwab  <schwab@suse.de>
87958
87959         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87960         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87961
87962 2000-12-07  Jim Meyering  <meyering@lucent.com>
87963
87964         * lib/stripslash.c (ISSLASH): Define.
87965         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87966         `/'.
87967         From Prashant TR.
87968
87969         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87970         (dir_name_r): Declare this function as static.
87971         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87972         manifest itself on a name containing a mix of slashes and
87973         backslashes.
87974         Make this function work with names starting with a DOS-style
87975         drive letter and colon prefix.
87976         (dir_name): Append `.' if necessary.
87977         Based mostly on patches from Prashant TR and Eli Zaretskii.
87978
87979         * lib/dirname.h (dir_name_r): Remove prototype.
87980
87981 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87982
87983         * m4/off_t-format.m4: Remove this file.
87984         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87985
87986 2000-12-06  Jim Meyering  <meyering@lucent.com>
87987
87988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87989         replacement strtoull, we may well need the replacement strtoul, too.
87990         Check for declarations of strtoul and strtoull.
87991         Check for strtol.  Mainly as a cue to cause automake to include
87992         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87993         Check for limits.h -- strtol.c needs it.
87994
87995 2000-12-05  Jim Meyering  <meyering@lucent.com>
87996
87997         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87998
87999 2000-12-04  Jim Meyering  <meyering@lucent.com>
88000
88001         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88002         Also include memory.h, stdlib.h, unistd.h if appropriate.
88003         Reported by Andreas Jaeger (conflicting declaration of malloc).
88004
88005 2000-12-02  Jim Meyering  <meyering@lucent.com>
88006
88007         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88008         * m4/jm-macros.m4 (jm_MACROS): require it.
88009
88010 2000-12-02  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88013
88014 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88015
88016         * lib/memrchr.c: Include <config.h> before any system include file.
88017
88018 2000-11-30  Jim Meyering  <meyering@lucent.com>
88019
88020         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88021
88022 2000-11-30  Jim Meyering  <meyering@lucent.com>
88023
88024         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88025
88026 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88027
88028         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88029
88030 2000-11-26  Jim Meyering  <meyering@lucent.com>
88031
88032         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88033
88034 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88035
88036         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88037         size of (size_t) -1; it's not portable.
88038
88039 2000-11-17  Jim Meyering  <meyering@lucent.com>
88040
88041         * lib/strstr.c: Update from GNU libc.
88042
88043 2000-11-17  Akim Demaille  <akim@epita.fr>
88044
88045         * lib/obstack.h: Formatting changes.
88046         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88047         prevent type checking.
88048         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88049         cast the value to (void *): assigning a `foo *' to a `void *'
88050         variable is valid.
88051         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88052
88053 2000-11-16  Jim Meyering  <meyering@lucent.com>
88054
88055         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88056
88057 2000-11-11  Jim Meyering  <meyering@lucent.com>
88058
88059         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88060
88061 2000-11-10  Jim Meyering  <meyering@lucent.com>
88062
88063         * lib/obstack.h: Update from GNU libc.
88064         * lib/obstack.c: Likewise.
88065
88066 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88067
88068         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88069
88070 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88071
88072         * lib/getusershell.c (setusershell): Use rewind rather than
88073         fseek/fseeko, to avoid configuration hassles with fseeko.
88074         Don't bother opening SHELLS_FILE if shellstream is NULL;
88075         it's not necessary.
88076
88077 2000-11-05  Jim Meyering  <meyering@lucent.com>
88078
88079         * lib/makepath.h (make_dir): Declare.
88080         * lib/makepath.c (make_dir): Remove `static' attribute.
88081         Tweak a comment.
88082
88083 2000-11-04  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88086
88087 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88088
88089         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88090         last one in a bucket, advance to the next bucket.
88091
88092 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88093
88094         * lib/fnmatch.c: Do not comment out all the code if we are using
88095         the GNU C library, because in some cases we are replacing buggy
88096         code in the GNU C library itself.
88097
88098 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88099
88100         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88101         (regex_compile): Catch bogus \(\1\).
88102
88103 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88104
88105         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88106         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88107         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88108
88109 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88110
88111         * lib/error.h, getline.h, modechange.h:
88112         Remove "2000" from Copyright line, as the file hasn't been
88113         changed this year other than in the copyright notice.
88114
88115         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88116         was changed this year.
88117
88118 2000-10-29  Jim Meyering  <meyering@lucent.com>
88119
88120         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88121         renaming.
88122         * m4/ls-mntd-fs.m4: Likewise
88123
88124 2000-10-29  Jim Meyering  <meyering@lucent.com>
88125
88126         * lib/xstat.in: Fix grammar in comment.
88127
88128 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88129
88130         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88131         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88132         doesn't define __restrict_arr.
88133
88134 2000-10-28  Jim Meyering  <meyering@lucent.com>
88135
88136         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88137         (jm_PREREQ_MEMCHR): New function.
88138
88139 2000-10-28  Jim Meyering  <meyering@lucent.com>
88140
88141         * lib/memchr.c: Update from libc.
88142         Adjust for portability:
88143         [HAVE_STDLIB_H]: Include stdlib.h.
88144         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88145         Undef __memchr, too.
88146         [!weak_alias]: Define __memchr to memchr.
88147
88148         * lib/regex.c: Update from libc.
88149         * lib/regex.h: Likewise.
88150         * lib/getopt1.c: Likewise.
88151         * lib/memcmp.c: Likewise.
88152
88153         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88154         Avoid using fseek, when possible -- it's broken by design.
88155         Patch by Ulrich Drepper.
88156
88157 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88158
88159         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88160         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88161         Giving in to popular pressure to shut up the compiler with casts.
88162
88163 2000-10-26  Jim Meyering  <meyering@lucent.com>
88164
88165         * lib/strftime.c: Update from libc.
88166
88167 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88168
88169         * regex.c: More `unsigned char' -> `re_char' changes.
88170         Also change several `int' into `re_wchar_t'.
88171         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88172         (PUSH_FAILURE_POINTER): Don't cast any more.
88173         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88174         We want GCC to complain, since this piece of code makes
88175         re_match non-reentrant, which *should* be fixed.
88176         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88177         (EXTEND_BUFFER): Use RETALLOC.
88178         (SET_LIST_BIT): Don't cast.
88179         (re_wchar_t): New type.
88180         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88181         that those two functions will always properly return.
88182         (IMMEDIATE_QUIT_CHECK): Cast to void.
88183         (analyse_first): Use recursion rather than an explicit stack.
88184         (re_compile_fastmap): Can't fail anymore.
88185         (re_search_2): Don't check re_compile_fastmap for failure.
88186         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88187         Now also sets the new value (passed in a new argument).
88188         (re_match_2_internal): Use it.
88189         Also, use a new var `reg' of type size_t when looping through regs
88190         rather than reuse the inappropriate `mcnt'.
88191
88192 2000-10-25  Jim Meyering  <meyering@lucent.com>
88193
88194         * lib/obstack.c: Update from libc.
88195
88196 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88197
88198         * regex.c (regex_compile): Change the way of handling a range from
88199         a char less than 256 to a char not less than 256.
88200
88201 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88202
88203         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88204         NT-Emacs only.
88205         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88206         so that re_search functions only quit when callers expect them to.
88207
88208 2000-10-23  Jim Meyering  <meyering@lucent.com>
88209
88210         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88211         wrong.  That set_locale call must not have any side effects.
88212         From Paul Eggert.
88213
88214 2000-10-22  Jim Meyering  <meyering@lucent.com>
88215
88216         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88217         [CYCLIC]: Remove now-unused definition.
88218
88219         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88220         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88221         Suggestion from Ulrich Drepper.
88222
88223 2000-10-21  Jim Meyering  <meyering@lucent.com>
88224
88225         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88226         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88227         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88228
88229 2000-10-21  Jim Meyering  <meyering@lucent.com>
88230
88231         * lib/dirname.c (memrchr): Declare if necessary.
88232         (dir_name): Remove the restriction that there be no
88233         trailing slashes.  Now, this code skips past them, effectively
88234         ignoring them.
88235         [TEST_DIRNAME] (main): New unit tests.
88236
88237         * lib/memrchr.c: New file from GNU libc.
88238         Undef __memrchr, too.
88239         [!weak_alias]: Define __memrchr to memrchr.
88240         Guard weak_alias use with `#ifdef weak_alias'.
88241
88242 2000-10-21  Jim Meyering  <meyering@lucent.com>
88243
88244         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88245         (dir_name): Use dir_name_r.
88246         * lib/dirname.h (dir_name_r): Declare it.
88247
88248 2000-10-17  Jim Meyering  <meyering@lucent.com>
88249
88250         * lib/quote.h (PARAMS): Define and use.
88251         Reported by Akim Demaille.
88252
88253         * lib/getopt.c: Update from libc.
88254
88255 2000-10-16  Jim Meyering  <meyering@lucent.com>
88256
88257         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88258         setlocale.
88259         From Jan Fedak.
88260
88261 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88262
88263         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88264
88265 2000-09-25  Jim Meyering  <meyering@lucent.com>
88266
88267         * lib/md5.h (rol): Define (from GnuPG).
88268
88269         * lib/sha.c: Give credit (GnuPG) where due.
88270         (M): Use rol rather than open-coding it.
88271         Add a FIXME comment.
88272
88273 2000-09-21  Jim Meyering  <meyering@lucent.com>
88274
88275         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88276         Reported by Michael Stone.
88277
88278 2000-09-20  Jim Meyering  <meyering@lucent.com>
88279
88280         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88281         (noinst_HEADERS): Add sha.h.
88282         Based on code from Scott G. Miller and from GnuPG.
88283
88284 2000-09-18  Jim Meyering  <meyering@lucent.com>
88285
88286         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88287         LIBS. Otherwise, everyone ends up linking with -lelf for some
88288         configurations.
88289         Reported by Mike Stone.
88290
88291 2000-09-15  Jim Meyering  <meyering@lucent.com>
88292
88293         * lib/regex.c: Update from libc.
88294
88295 2000-09-10  Jim Meyering  <meyering@lucent.com>
88296
88297         * lib/getopt.c (_getopt_internal): Update from glibc.
88298
88299 2000-09-09  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88302         think it should be used as a general replacement for isascii.
88303         * lib/fnmatch.c: Likewise.
88304         * lib/mbswidth.c: Likewise
88305         * lib/regex.c: Likewise.
88306
88307         Don't use atoi.
88308         * lib/userspec.c: Include sys/param.h and limits.h.
88309         Include xstrtol.h.
88310         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88311         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88312         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88313         UID, GID.  Check range.
88314
88315 2000-09-06  Jim Meyering  <meyering@lucent.com>
88316
88317         * lib/getopt.c (_getopt_internal): Update from glibc.
88318
88319 2000-08-30  Jim Meyering  <meyering@lucent.com>
88320
88321         * lib/strftime.c: Merge in changes from GNU libc.
88322
88323 2000-08-26  Jim Meyering  <meyering@lucent.com>
88324
88325         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88326         * m4/fpending.m4: New file.
88327
88328 2000-08-26  Jim Meyering  <meyering@lucent.com>
88329
88330         * lib/closeout.c: Include "__fpending.h".
88331         (close_stdout_status): Return right away if there's nothing to flush.
88332
88333         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88334         * lib/__fpending.c: New file.
88335         * lib/__fpending.h: New file.
88336
88337 2000-08-20  Jim Meyering  <meyering@lucent.com>
88338
88339         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88340         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88341         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88342
88343 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88344
88345         Improve fileutils installation on systems where running
88346         programs (like install) can't be unlinked.
88347         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88348         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88349
88350 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88351
88352         Standardize on "memory exhausted" instead of "Memory exhausted"
88353         or "virtual memory exhausted".
88354         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88355         "virtual memory exhausted".
88356         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88357         our own message.
88358         * lib/userspec.c (parse_user_spec): Likewise.
88359         * lib/bumpalloc.h: comment fix
88360         * lib/same.c, userspec.c: Include xalloc.h.
88361
88362         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88363         not char *const and pointing to a constant array.
88364         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88365         (xrealloc): Comment fix.
88366
88367         * lib/userspec.c (parse_user_spec):
88368         Don't translate a message until just before returning,
88369         to avoid unnecessary translation.
88370
88371 2000-08-07  Jim Meyering  <meyering@lucent.com>
88372
88373         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88374         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88375         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88376         getgroups.c, gethostname.c, getopt.h, group-member.c,
88377         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88378         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88379         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88380         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88381         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88382         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88383         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88384         yesno.c: Back out Copyright date changes for each file with no change
88385         this year.  This eases coordination with other programs using the same
88386         source code modules.  From Paul Eggert.
88387
88388 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88389
88390         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88391         not char, for compatibility with glibc 2.1.3 strftime.c.
88392
88393 2000-08-03  Greg McGary  <greg@mcgary.org>
88394
88395         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88396         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88397         (EXTEND_BUFFER): Use them.
88398
88399 2000-08-01  Jim Meyering  <meyering@lucent.com>
88400
88401         * lib/dirname.c (ISSLASH): Define.
88402         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88403         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88404         both `\' and `/' may be use as path separators.
88405         Based on a patch from Prashant TR.
88406
88407 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88408
88409         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88410         slot vector a constant, since it might get modified.
88411
88412 2000-07-31  Jim Meyering  <meyering@lucent.com>
88413
88414         * lib/xmalloc.c: Use `virtual memory exhausted', not
88415         `Memory exhausted'.
88416         * lib/obstack.c (print_and_abort): Likewise.
88417
88418 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88419
88420         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88421         buffer, so that the caller can always quote one small
88422         component of a "memory exhausted" message in slot 0.
88423         From a suggestion by Jim Meyering.
88424
88425 2000-07-30  Jim Meyering  <meyering@lucent.com>
88426
88427         * lib/makepath.c (make_path): Quote the other instance, too.
88428
88429         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88430         (STATIC_BUF_SIZE): Define.
88431         (quotearg_n_options): Use only statically allocated storage when
88432         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88433         than STATIC_BUF_SIZE.
88434
88435 2000-07-29  Jim Meyering  <meyering@lucent.com>
88436
88437         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88438         * lib/dirname.c (dir_name): Likewise.
88439
88440         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88441         `/'.
88442
88443         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88444         (dir_name): Assert that there are no trailing slashes.
88445
88446 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88447
88448         * lib/mbswidth.h (mbswidth): Add a flags argument.
88449         (mbswidth): New declaration.
88450         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88451         * lib/mbswidth.c (mbswidth): Add a flags argument.
88452         (mbsnwidth): New function.
88453
88454 2000-07-24  Jim Meyering  <meyering@lucent.com>
88455
88456         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88457
88458 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88459
88460         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88461
88462 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88463
88464         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88465         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88466         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88467         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88468         invoke multibyte primitives.
88469
88470 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88471
88472         * lib/quotearg.c:
88473         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88474         so that mbstate_t is always defined.
88475
88476         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88477         be 1 in at least one GCC installation, and this configuration
88478         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88479         performance on hosts that have mbrtowc but have only unibyte
88480         locales, but I assume these hosts are rare.
88481
88482 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88483
88484         * lib/mbswidth.c (_XOPEN_SOURCE):
88485         Don't define; this causes problems on Solaris 7.
88486         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88487
88488 2000-07-23  Jim Meyering  <meyering@lucent.com>
88489
88490         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88491         too: getgrgid, getpwuid, getuid.
88492
88493 2000-07-23  Jim Meyering  <meyering@lucent.com>
88494
88495         * lib/basename.c (base_name): Add an assertion.
88496
88497 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88498
88499         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88500         shadow its mbsinit function.
88501
88502 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88503
88504         * lib/mbswidth.h: New file.
88505         * lib/mbswidth.c: New file.
88506         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88507         (noinst_HEADERS): Add mbswidth.h.
88508
88509 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88510
88511         * lib/config.charset: Add support for FreeBSD. Improve support for
88512         HP-UX and IRIX 6.
88513
88514 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88515
88516         * m4/mbswidth.m4: New file.
88517         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88518
88519 2000-07-15  Jim Meyering  <meyering@lucent.com>
88520
88521         * lib/makepath.c: Include quote.h.
88522         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88523         corresponding argument in a `quote (...)' call.
88524         Give better diagnostics.
88525
88526         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88527         (noinst_HEADERS): Add quote.h.
88528
88529         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88530         from tar's src/misc.c.
88531         * lib/quote.h: New file.  Prototypes for same.
88532
88533 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88534
88535         From a suggestion by Bruno Haible.
88536         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88537         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88538         to decide whether to define the BeOS workaround macro;
88539         this adjusts to the change to AC_MBSTATE_T.
88540
88541 2000-07-14  Jim Meyering  <meyering@lucent.com>
88542
88543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88544         jm_AC_TYPE_UINTMAX_T.
88545
88546 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88547
88548         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88549
88550         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88551         quotearg_buffer_restyled): Add support for
88552         clocale_quoting_style.  Undo previous change to
88553         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88554         and "{RIGHT QUOTATION MARK}" msgids.
88555
88556 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88557
88558         From a suggestion by Bruno Haible.
88559         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88560         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88561         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88562         and mbstate_t, to a single-part test that simply defines mbstate_t.
88563         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88564         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88565
88566 2000-07-10  Jim Meyering  <meyering@lucent.com>
88567
88568         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88569
88570         * m4/gnu-source.m4: Output to confdefs.h directly.
88571         Suggestion from Akim Demaille.
88572
88573 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88574
88575         The old behavior of quoting `like this' doesn't look good with
88576         newer, ISO-style fonts.  See:
88577         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88578
88579         Instead, quote "like this" by default.  Let the translator
88580         tailor the locale-specific quoting behavior by providing
88581         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88582
88583         * lib/quotearg.c (N_): New macro.
88584         (gettext_default): New function.
88585         (quotearg_buffer_restyled): Use
88586         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88587         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88588
88589 2000-07-09  Jim Meyering  <meyering@lucent.com>
88590
88591         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88592         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88593
88594         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88596
88597 2000-07-09  Jim Meyering  <meyering@lucent.com>
88598
88599         * lib/Most files: Update copyright dates to include 2000.
88600
88601 2000-07-08  Jim Meyering  <meyering@lucent.com>
88602
88603         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88604         if not defined.
88605         (xgethostname): Remove now-unnecessary #ifdef.
88606         Move declaration of `err' into loop where it's used.
88607
88608 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88609         and Bruno Haible  <haible@clisp.cons.org>
88610
88611         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88612         only if the test for an object-type mbstate_t fails.  This
88613         prevents us from mistakenly reporting that mbstate_t is a
88614         system object type after we "#define mbstate_t int" to work
88615         around its lack.
88616
88617 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88618         and Bruno Haible  <haible@clisp.cons.org>
88619
88620         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88621
88622 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88623
88624         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88625         to strerror_r.
88626         Include <ctype.h> for use of isalpha.
88627
88628 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88629
88630         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88631         by allocating a larger buffer. Test the gethostname return value for
88632         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88633         returns an error and ENAMETOOLONG isn't defined.
88634
88635 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88636
88637         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88638         dimension.
88639
88640 2000-07-04  Jim Meyering  <meyering@lucent.com>
88641
88642         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88643         of the deprecated AC_CHECKING.
88644
88645 2000-07-04  Jim Meyering  <meyering@lucent.com>
88646
88647         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88648         Reported by Bruno Haible.
88649
88650 2000-07-04  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88653         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88654         lacks mbrtowc.
88655
88656 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88657
88658         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88659         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88660
88661 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88662         and Bruno Haible  <haible@clisp.cons.org>
88663
88664         * lib/quotearg.c (mbrtowc):
88665         Assign to *pwc, and return 1 only if result is nonzero.
88666         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88667
88668 2000-07-03  Jim Meyering  <meyering@lucent.com>
88669
88670         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88671
88672 2000-07-03  Jim Meyering  <meyering@lucent.com>
88673
88674         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88675         This is necessary to get a definition of e.g., UTMP_FILE on
88676         HP-UX 10.20.
88677         From Bob Proulx.
88678
88679 2000-07-02  Jim Meyering  <meyering@lucent.com>
88680
88681         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88682
88683         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88684         AC_LIBOBJ(function_name).
88685         * m4/chown.m4: Likewise.
88686         * m4/fnmatch.m4: Likewise.
88687         * m4/ftruncate.m4: Likewise.
88688         * m4/getgroups.m4: Likewise.
88689         * m4/getline.m4: Likewise.
88690         * m4/group-member.m4: Likewise.
88691         * m4/jm-macros.m4: Likewise.
88692         * m4/lstat.m4: Likewise.
88693         * m4/malloc.m4: Likewise.
88694         * m4/memcmp.m4: Likewise.
88695         * m4/nanosleep.m4: Likewise.
88696         * m4/putenv.m4: Likewise.
88697         * m4/realloc.m4: Likewise.
88698         * m4/regex.m4: Likewise.
88699         * m4/stat.m4: Likewise.
88700         * m4/strftime.m4: Likewise.
88701
88702 2000-07-02  Jim Meyering  <meyering@lucent.com>
88703
88704         * lib/quotearg.c (mbstate_t): Don't define here.
88705
88706 2000-07-02  Jim Meyering  <meyering@lucent.com>
88707
88708         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88709
88710 2000-07-01  Jim Meyering  <meyering@lucent.com>
88711
88712         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88713
88714 2000-07-01  Jim Meyering  <meyering@lucent.com>
88715
88716         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88717         problem.
88718
88719 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88720
88721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88722         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88723
88724 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88725
88726         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88727         per change in ../m4/ls-mntd-fs.m4.
88728         (read_filesystem_list): Ignore symbolic links.
88729
88730 2000-06-29  Jim Meyering  <meyering@lucent.com>
88731
88732         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88733         for declaration of strcmp.
88734
88735         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88736
88737         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88738         Avoid warning by casting result to `char *' to remove `const'.
88739
88740 2000-06-28  Jim Meyering  <meyering@lucent.com>
88741
88742         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88743         included by quotearg.c, for which we perform this test.  From
88744         Bruno Haible.
88745
88746 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88747
88748         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88749         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88750         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88751
88752 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88753
88754         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88755
88756 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88757
88758         savedir now sets errno on failure and invokes xmalloc to get memory.
88759         Fix a couple of other minor bugs while we're at it.
88760
88761         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88762         (NAMLEN): Remove macro.
88763         (malloc, realloc): Remove decls.
88764         (stpcpy): Likewise.
88765         ("xalloc.h"): Include.
88766         (NAME_SIZE_DEFAULT): New macro.
88767         (savedir): Use xmalloc / xrealloc to allocate memory.
88768         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88769         Skip "" directory entries.
88770         Use strlen to calculate directory entry length, since the old method
88771         is rarely used these days and isn't worth supporting.
88772         Don't use a pointer after freeing it.
88773         Check for integer overflow when calculating allocation size.
88774         Use memcpy to copy entries, instead of stpcpy.
88775         Set errno properly when returning NULL.
88776         Check for readdir error.
88777
88778 2000-06-26  Jim Meyering  <meyering@lucent.com>
88779
88780         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88781
88782 2000-06-25  Jim Meyering  <meyering@lucent.com>
88783
88784         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88785         Linux header bug when _XOPEN_SOURCE is defined to 500.
88786
88787 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88788
88789         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88790         deficiency.
88791
88792 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88793
88794         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88795         Include xalloc.h.
88796         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88797
88798 2000-06-24  Jim Meyering  <meyering@lucent.com>
88799
88800         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88801         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88802         for which strerror does return char*, but which lacks a conveniently
88803         accessible declaration of the function.  If the compile-test says
88804         strerror_r doesn't work, then resort to a `run'-test that works on
88805         BeOS and segfaults on DEC Unix.
88806
88807 2000-06-24  Jim Meyering  <meyering@lucent.com>
88808
88809         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88810
88811 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88812
88813         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88814         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88815
88816 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88817
88818         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88819         (mbrtowc, mbstate_t): Define substitutes if
88820         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88821         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88822         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88823
88824 2000-06-23  Jim Meyering  <meyering@lucent.com>
88825
88826         * m4/afs.m4: Add missing AC_MSG_RESULT.
88827         Reported by Bruno Haible.
88828
88829         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88830         Suggestion from Bruno Haible.
88831
88832 2000-06-23  Jim Meyering  <meyering@lucent.com>
88833
88834         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88835
88836 2000-06-21  Jim Meyering  <meyering@lucent.com>
88837
88838         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88839
88840 2000-06-21  Jim Meyering  <meyering@lucent.com>
88841
88842         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88843         (noinst_HEADERS): Add getstr.h.
88844
88845         * lib/getline.c (getstr): Move into a separate file.
88846         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88847         the following changes: new parameter, delim2; both delim[12]
88848         parameters have type `int', not `char'.  The latter would lose
88849         with 8-bit delimiters.
88850         * lib/getstr.h: New file.
88851
88852 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88853
88854         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88855         than 1024, return a memory chunk of least possible size, instead
88856         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88857         Use free/xmalloc instead of xrealloc to avoid copying for very long
88858         paths.
88859
88860 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88861
88862         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88863         the empty string.
88864
88865 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88866
88867         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88868         address, not strdup.  Include <stdlib.h> and don't declare free().
88869
88870 2000-06-19  Jim Meyering  <meyering@lucent.com>
88871
88872         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88873
88874 2000-06-18  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88877
88878         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88879         `checking whether...' message to be consistent with that of the
88880         lstat test.
88881
88882 2000-06-18  Jim Meyering  <meyering@lucent.com>
88883
88884         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88885         Besides, these days every porting target provides a mkdir function.
88886
88887         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88888         needed. (this snippet comes from src/system.h).
88889
88890 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88891
88892         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88893
88894 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88895
88896         * lib/human.c (adjust_value): New function.
88897         (human_readable_inexact): Apply rounding style even when
88898         printing approximate values.
88899
88900 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88901
88902         * lib/human.c (human_readable_inexact): Allow an input block
88903         size that is not a multiple of the output block size, and vice versa.
88904         Reported by Piergiorgio Sartor.
88905
88906 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88907
88908         * lib/getdate.y (get_date): Apply relative times after time
88909         zone indicator, not before.  Reported by Todd A. Jacobs.
88910
88911 2000-06-13  Jim Meyering  <meyering@lucent.com>
88912
88913         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88914
88915         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88916
88917 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88918
88919         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88920
88921 2000-06-12  Jim Meyering  <meyering@lucent.com>
88922
88923         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88924         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88925         optional argument.
88926         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88927         the optional argument, `lib'.
88928
88929 2000-06-08  Jim Meyering  <meyering@lucent.com>
88930
88931         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88932
88933 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88934
88935         Rewrite largefile configuration so that we don't need to run
88936         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88937         AC_CANONICAL_HOST in configure.in -- jmm]
88938
88939         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88940         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88941         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88942         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88943         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88944         All uses changed.
88945         Instead of inspecting the output of getconf, try to compile the
88946         test program without and with the macro definition.
88947         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88948         for getconf.  Instead, check for the needed flags by compiling
88949         test programs.
88950
88951 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88952
88953         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88954
88955 2000-06-04  Jim Meyering  <meyering@lucent.com>
88956
88957         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88958         SunOS 4.1.4 for which gid_t is an unsigned type.
88959
88960 2000-06-03  Jim Meyering  <meyering@lucent.com>
88961
88962         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88963         now that autoconf requires that.
88964
88965         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88966         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88967         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88968
88969 2000-06-03  Jim Meyering  <meyering@lucent.com>
88970
88971         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88972
88973 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88974
88975         * m4/glibc21.m4: New file.
88976         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88977
88978 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88979
88980         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88981         newer, don't install charset.alias.
88982         * lib/config.charset: Change the Linux/glibc rules so they become empty
88983         on glibc-2.1 or newer.
88984
88985 2000-06-02  Jim Meyering  <meyering@lucent.com>
88986
88987         * lib/mountlist.c: Back out last change.  Instead, do this...
88988         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88989         me_dummy member using the same `ignore'-testing code.
88990         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88991         fs_type strings.
88992         From Mark D. Roth.
88993
88994 2000-05-29  Jim Meyering  <meyering@lucent.com>
88995
88996         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88997         mounts with the `ignore' attribute.  Based on a patch from
88998         Mark D. Roth.
88999
89000 2000-05-28  Jim Meyering  <meyering@lucent.com>
89001
89002         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89003         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89004         * m4/stat.m4: Likewise.
89005         * m4/lstat.m4: Likewise.
89006         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89007
89008         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89009         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89010
89011 2000-05-26  Jim Meyering  <meyering@lucent.com>
89012
89013         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89014
89015 2000-05-24  Jim Meyering  <meyering@lucent.com>
89016
89017         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89018         autoconf requires that.
89019         * m4/lib-check.m4: Likewise.
89020         * m4/jm-macros.m4: Likewise.
89021         * m4/strftime.m4: Likewise.
89022
89023         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89024         AC_CHECK_DECLS, now that autoconf requires that.
89025
89026 2000-05-22  Jim Meyering  <meyering@lucent.com>
89027
89028         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89029         * m4/lstat.m4: Likewise.
89030
89031 2000-05-22  Jim Meyering  <meyering@lucent.com>
89032
89033         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89034
89035 2000-05-20  Jim Meyering  <meyering@lucent.com>
89036
89037         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89038         (jm_PREREQ): Use it.
89039
89040 2000-05-18  Jim Meyering  <meyering@lucent.com>
89041
89042         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89043         back, too, since it may have been modified by allocate_entry.
89044         (hash_delete): Rewrite to use neither the assignment operator
89045         nor the comma operator in an if-expression.
89046
89047 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89048
89049         * lib/closeout.c:
89050         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89051         Remove; no longer needed.
89052         "quotearg.h": Add include.
89053         (file_name): Do not bother to explicitly initialize to NULL; it's less
89054         efficient on some hosts.
89055         (close_stdout_status): Remove test as to whether stdout was already
89056         closed; it breaks for the case "echo x | sort >&-".
89057         Quote file name colons.
89058         Do not assume that _("write error") lacks format strings.
89059
89060 2000-05-15  Jim Meyering  <meyering@lucent.com>
89061
89062         * lib/version-etc.c (version_etc_copyright): Update the copyright
89063         string used in all --version output.
89064
89065 2000-05-14  Jim Meyering  <meyering@lucent.com>
89066
89067         * lib/closeout.c (close_stdout_set_file_name): New function.
89068         (close_stdout_status): Use new file-scoped global.
89069         Return right away if fstat says the stdout file descriptor is invalid.
89070         * lib/closeout.h (close_stdout_set_file_name): Declare.
89071
89072 2000-05-10  Jim Meyering  <meyering@lucent.com>
89073
89074         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89075         (close_stdout_set_status): New function.
89076         * lib/closeout.h (close_stdout_set_status): Declare.
89077
89078 2000-05-09  Jim Meyering  <meyering@lucent.com>
89079
89080         * m4/gettext.m4: Rename this...
89081         * m4/libintl.m4: ...to this.
89082
89083 2000-05-08  Jim Meyering  <meyering@lucent.com>
89084
89085         * lib/long-options.c: Don't include closeout.h.
89086         (parse_long_options): Don't call close_stdout for --version.
89087
89088 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89089
89090         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89091         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89092         2.1.3 bug.  This avoids a clash when files like regex.c define
89093         _GNU_SOURCE.
89094
89095 2000-05-06  Jim Meyering  <meyering@lucent.com>
89096
89097         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89098         (AC_REPLACE_FUNCS): Add strnlen.
89099
89100         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89101         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89102
89103         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89104         AC_SEARCH_LIBS call for nanosleep.
89105         (LIB_NANOSLEEP): Set and AC_SUBST.
89106
89107 2000-05-06  Jim Meyering  <meyering@lucent.com>
89108
89109         * lib/strnlen.c: Undefine __strnlen and strnlen.
89110         [!weak_alias]: Define __strnlen to strnlen.
89111
89112         * lib/atexit.c: New file, from libiberty.
89113
89114 2000-05-06  Jim Meyering  <meyering@lucent.com>
89115
89116         * lib/closeout.c (close_stdout_status): Also check for errors on the
89117         stderr stream.
89118
89119 2000-05-05  Jim Meyering  <meyering@lucent.com>
89120
89121         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89122         AC_SEARCH_LIBS call for clock_gettime.
89123         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89124
89125         * m4/search-libs.m4: Update from autoconf.
89126
89127         su doesn't work on Solaris 2.6.
89128         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89129         <shadow.h>.  Reported by Dragos Harabor.
89130
89131 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89132
89133         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89134         memcpy instead of xmalloc, xrealloc, path_concat.
89135         (locale_charset): Treat empty environment variables as absent.
89136         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89137
89138 2000-05-04  Jim Meyering  <meyering@lucent.com>
89139
89140         * lib/getopt.c: Update from glibc.
89141         * lib/obstack.c: Likewise.
89142         * lib/obstack.h: Likewise.
89143         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89144         file
89145
89146         * lib/regex.h: Likewise.
89147         * lib/strndup.c: Likewise.
89148         * lib/strnlen.c: New file, from glibc.
89149
89150 2000-05-03  Jim Meyering  <meyering@lucent.com>
89151
89152         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89153
89154 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89155
89156         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89157         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89158         compile-time test, rather than inspecting host and OS, to
89159         decide whether to define _LARGEFILE_SOURCE.
89160
89161 2000-05-01  Jim Meyering  <meyering@lucent.com>
89162
89163         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89164
89165         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89166         Based on a patch from Bruno Haible.
89167
89168 2000-05-01  Jim Meyering  <meyering@lucent.com>
89169
89170         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89171
89172 2000-04-29  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/path-concat.c: Declare strdup only if it's not defined.
89175         * lib/canon-host.c: Likewise.
89176
89177 2000-04-28  Jim Meyering  <meyering@lucent.com>
89178
89179         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89180         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89181         is included first, then limits.h is included by locale.h by libintl.h.
89182         From John David Anglin.
89183
89184 2000-04-25  Jim Meyering  <meyering@lucent.com>
89185
89186         * lib/makepath.c (S_IRWXUGO): Define.
89187         (make_path): Always perform explicit chmod if MODE specifies any
89188         of the `special' permission bits.  Prompted by a bug report against
89189         install from Mate Wierdl and Joost van Baal.
89190
89191 2000-04-18  Jim Meyering  <meyering@lucent.com>
89192
89193         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89194         (jm_PREREQ): Use it.
89195
89196 2000-04-18  Jim Meyering  <meyering@lucent.com>
89197
89198         * lib/README: New file.
89199
89200         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89201         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89202
89203 2000-04-17  Jim Meyering  <meyering@lucent.com>
89204
89205         Get it right :-)
89206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89207         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89208         Suggestion from Akim Demaille.
89209
89210 2000-04-17  Jim Meyering  <meyering@lucent.com>
89211
89212         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89213         the definition of it to rpl_strftime also defined-away the system's
89214         declaration.
89215
89216 2000-04-15  Jim Meyering  <meyering@lucent.com>
89217
89218         Use `C' to denote so-called `contiguous' files, the same way
89219         that tar does.
89220         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89221         (ftypelet): Use S_ISCTG.
89222         From Michael Deutschmann.
89223
89224 2000-04-14  Jim Meyering  <meyering@lucent.com>
89225
89226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89227         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89228         clobbered.
89229
89230 2000-04-14  Jim Meyering  <meyering@lucent.com>
89231
89232         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89233
89234 2000-04-13  Jim Meyering  <meyering@lucent.com>
89235
89236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89237         AH_VERBATIM to insert required #ifndef into config.h.in.
89238         Suggestion from Akim Demaille.
89239
89240 2000-04-12  Jim Meyering  <meyering@lucent.com>
89241
89242         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89243         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89244         Christian Krackowizer.
89245
89246         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89247         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89248         (AC_SYS_LARGEFILE): Require.
89249         (AM_C_PROTOTYPES): Require.
89250
89251 2000-04-08  Jim Meyering  <meyering@lucent.com>
89252
89253         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89254         names don't conflict.  Reported by Eli Zaretskii.
89255
89256 2000-04-07  Jim Meyering  <meyering@lucent.com>
89257
89258         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89259         sys/types.h, to work around system header problems on AIX 3.2.5.
89260         From Bruno Haible.
89261
89262 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89263
89264         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89265         bug.  Deal with the different error behavior of Irix iconv.
89266
89267 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89268
89269         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89270         IRIX if the installer said otherwise.
89271
89272 2000-04-05  Jim Meyering  <meyering@lucent.com>
89273
89274         Portability tweaks required for ultrix4.3.
89275         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89276         (jm_CHECK_DECLS): Add getutent to the list of functions.
89277         (_jm_DECL_HEADERS): Add utmpx.h.
89278         From John David Anglin.
89279
89280         * m4/strftime.m4: Back out the 2000-04-02 change.
89281         Instead of that change, simply undefine putenv in the test program.
89282
89283 2000-04-05  Jim Meyering  <meyering@lucent.com>
89284
89285         Portability tweaks required for ultrix4.3.
89286         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89287         getutent.
89288         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89289         * lib/canon-host.c: Declare strdup.
89290         * lib/path-concat.c: Likewise.
89291         From John David Anglin.
89292
89293 2000-04-04  Jim Meyering  <meyering@lucent.com>
89294
89295         Be more DOS 8.3-friendly.
89296         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89297         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89298         * lib/Makefile.am: Reflect renaming.
89299         Reported by Eli Zaretskii.
89300
89301         Use a temporary file name that won't clash with `charset.alias'
89302         in the DOS 8.3 name space.
89303         * lib/Makefile.am (charset_tmp): Define.
89304         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89305         (uninstall-local): Likewise.
89306         Reported by Eli Zaretskii.
89307
89308 2000-04-03  Jim Meyering  <meyering@lucent.com>
89309
89310         * m4/gettext.m4: Fix typo in comment.
89311
89312         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89313         textutils/configure.in).  Suggestion from Paul Eggert.
89314         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89315
89316 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89317
89318         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89319         variable in the shell rather than using putenv, which isn't
89320         portable.  This avoids the configure-time inter-test dependency
89321         on the potentially-renamed putenv function.
89322
89323 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89324
89325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89326         before checking struct stat.st_blksize, so that
89327         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89328
89329 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89330
89331         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89332         since strftime.c uses HAVE_STRFTIME to decide whether to use
89333         the underlying strftime.
89334
89335 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89336
89337         * lib/time/strftime.c (my_strftime): Make sure we call the system
89338         strftime, not ourselves, when invoking the underlying strftime.
89339
89340 2000-03-24  Jim Meyering  <meyering@lucent.com>
89341
89342         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89343         (charset_alias): Define.
89344         (install-exec-local): Factor out common code.
89345         (uninstall-local): Split lines longer than 80.
89346         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89347         (SUFFIXES): Define.
89348         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89349         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89350
89351 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89352
89353         * lib/config.charset: Output a line containing "Packages using this
89354         file".
89355         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89356         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89357         ref-del.sed): New rules.
89358
89359 2000-03-17  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89362         Otherwise, include <strings.h>
89363
89364 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89365
89366         * lib/unicodeio.c (utf8_wctomb): New function.
89367         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89368         format instead of in UCS-4 with platform dependent endianness.
89369
89370 2000-03-10  Jim Meyering  <meyering@lucent.com>
89371
89372         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89373         From Marco Franzen.
89374
89375 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89376
89377         * lib/savedir.c (savedir): Work even if directory size is
89378         negative; this can happen with some screwy NFS configurations.
89379
89380 2000-03-06  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89383         if it's NULL (because we ran out of memory).  From Bruno Haible.
89384
89385 2000-03-05  Jim Meyering  <meyering@lucent.com>
89386
89387         * lib/localcharset.c ("path-concat.h"): Include.
89388         (get_charset_aliases): Use path_concat instead of ANSI string
89389         concatenation.
89390
89391         * lib/unicodeio.h (PARAMS): Define.
89392         Use it to guard prototype.
89393
89394 2000-03-04  Jim Meyering  <meyering@lucent.com>
89395
89396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89397         for lib/localcharset.c.
89398
89399 2000-03-04  Jim Meyering  <meyering@lucent.com>
89400
89401         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89402         installing into it.
89403         (uninstall-local): Uncomment this rule so `make distcheck' works
89404         once again.
89405
89406         * lib/unicodeio.c (<errno.h>): Include it.
89407         (errno): Declare if not defined.
89408
89409         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89410
89411         * lib/config.charset: New version, incorporating remarks from a linux
89412         i18n mailing list.  From Bruno Haible.
89413
89414 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89415
89416         * m4/codeset.m4: New file.
89417         * m4/iconv.m4: New file.
89418         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89419
89420 2000-03-03  Jim Meyering  <meyering@lucent.com>
89421
89422         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89423
89424 2000-03-02  Jim Meyering  <meyering@lucent.com>
89425
89426         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89427         the messages come out on separate lines.
89428
89429         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89430         rather than jm_CHECK_DECLARATIONS.
89431         * m4/decl.m4: Remove now-unused file.
89432
89433         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89434         geteuid.
89435
89436 2000-03-02  Jim Meyering  <meyering@lucent.com>
89437
89438         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89439
89440 2000-03-01  Jim Meyering  <meyering@lucent.com>
89441
89442         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89443         * lib/unicodeio.c: Likewise.
89444
89445 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89446
89447         * lib/config.charset: New file.
89448         * lib/localcharset.c: New file.
89449         * lib/unicodeio.h, lib/unicodeio.c: New files.
89450         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89451         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89452         (noinst_HEADERS): Add unicodeio.h.
89453         (all-local, install-exec-local, charset.alias): New targets.
89454
89455 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89456
89457         * lib/quotearg.c (ALERT_CHAR): New macro.
89458         (quotearg_buffer_restyled): Use it.
89459
89460 2000-02-27  Jim Meyering  <meyering@lucent.com>
89461
89462         * m4/check-decl.m4: Add getenv to the list.
89463
89464 2000-02-27  Jim Meyering  <meyering@lucent.com>
89465
89466         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89467         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89468
89469         * lib/backupfile.c: Guard inclusion of stdlib.h with
89470         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89471         Declare malloc if needed.
89472
89473         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89474         `#ifndef HAVE_DECL..'
89475         now that autoconf always defines the HAVE_DECL_ symbols.
89476         * lib/human.c: Likewise.
89477         * lib/same.c: Likewise.
89478         * lib/strtoumax.c: Likewise.
89479
89480         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89481         declaration check was not run.
89482         * lib/hash.c: Likewise.
89483         * lib/human.c: Likewise.
89484         * lib/same.c: Likewise.
89485         * lib/strtoumax.c: Likewise.
89486
89487         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89488         `.', then first look up the entire `.'-containing string as a login
89489         name.
89490
89491 2000-02-23  Jim Meyering  <meyering@lucent.com>
89492
89493         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89494         in place of my hack.
89495
89496 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89497
89498         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89499         (textint): New typedef.
89500         (parser_control): Member year changed from int to textint.
89501         All uses changed.
89502         (YYSTYPE): Removed; replaced by %union with int and textint members.
89503         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89504         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89505         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89506         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89507         (date, number, to_year): Use width of number in digits, not its value,
89508         to determine whether it's a 2-digit year, or a 2-digit time.
89509         (yylex): Store number of digits of numeric tokens.
89510         Reported by John Kendall.
89511
89512         (parser_control): Changed from struct parser_control to typedef (for
89513         consistency).  All uses changed.
89514
89515         (tID): Removed; not used.
89516         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89517
89518 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89519
89520         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89521         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89522
89523 2000-02-12  Jim Meyering  <meyering@lucent.com>
89524
89525         * lib/userspec.c (ISDIGIT): Define it.
89526         (isdigit): Remove definition.
89527         (is_number): Use ISDIGIT, not isdigit.
89528         <libintl.h>: Include.
89529         (_ and N_): Define.
89530         (parse_user_spec): Mark translatable strings.
89531
89532 2000-02-10  Jim Meyering  <meyering@lucent.com>
89533
89534         With these changes, nanosleep.[ch] are finally enough like the other
89535         lib/* replacement files to compile on a few more losing systems.
89536
89537         * lib/nanosleep.h: Don't include config.h.
89538         Remove prototype from declaration of nanosleep.
89539         (PARAMS): Remove now-unneeded definition.
89540         * lib/nanosleep.c: #undef nanosleep.
89541         (rpl_nanosleep): Rename from nanosleep.
89542
89543 2000-02-10  Jim Meyering  <meyering@lucent.com>
89544
89545         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89546         gnu_nanosleep to rpl_nanosleep.
89547
89548 2000-02-09  Jim Meyering  <meyering@lucent.com>
89549
89550         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89551         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89552
89553 2000-02-08  Akim Demaille  <akim@epita.fr>
89554
89555         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89556         `[' and `]' and remove uses of `changequote'.
89557         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89558         (AC_SYS_LARGEFILE): Likewise.
89559         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89560         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89561         of changequote.
89562         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89563         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89564         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89565         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89566
89567 2000-02-05  Jim Meyering  <meyering@lucent.com>
89568
89569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89570         Remove explicit use of AC_HEADER_TIME.  It is required by
89571         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89572         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89573         in autoconf whereby the expansion of the latter ended up preceding
89574         the expansion of its prerequisite, AC_HEADER_TIME.
89575         Reported by Volker Borchert.
89576
89577 2000-02-03  Jim Meyering  <meyering@lucent.com>
89578
89579         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89580
89581 2000-02-03  Jim Meyering  <meyering@lucent.com>
89582
89583         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89584         rather than with `#if HAVE_UTMPNAME'.
89585
89586 2000-02-02  Jim Meyering  <meyering@lucent.com>
89587
89588         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89589         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89590         Reported by Eli Zaretskii.
89591
89592 2000-02-01  Jim Meyering  <meyering@lucent.com>
89593
89594         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89595
89596 2000-01-31  Jim Meyering  <meyering@lucent.com>
89597
89598         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89599         functions.  Add the time.h and sys/time.h headers along with the
89600         AC_REQUIRE'ment of AC_HEADER_TIME.
89601
89602 2000-01-31  Jim Meyering  <meyering@lucent.com>
89603
89604         * lib/nanosleep.h (nanosleep): Guard declaration with
89605         `#if ! HAVE_DECL_NANOSLEEP'.
89606         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89607         the declaration in that vendor's sys/timers.h.
89608         Reported by Christian Krackowizer.
89609
89610         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89611         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89612         (ISPRINT): Likewise.
89613         Reported by Tom Tromey.
89614
89615 2000-01-30  Jim Meyering  <meyering@lucent.com>
89616
89617         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89618
89619         * m4/prereq.m4 (utmp_includes): Define.
89620         Check for ut_user and ut_name members in both struct utmpx
89621         and struct utmp.
89622
89623 2000-01-30  Jim Meyering  <meyering@lucent.com>
89624
89625         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89626         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89627         header files where only utmpx.ut_user is declared.
89628
89629         * lib/readutmp.h (UT_USER): Define.
89630
89631 2000-01-29  Jim Meyering  <meyering@lucent.com>
89632
89633         * m4/lib-check.m4: New file containing library-related checks from
89634         fileutils and sh-utils (textutils had none).
89635
89636 2000-01-28  Jim Meyering  <meyering@lucent.com>
89637
89638         * m4/perl.m4: Change format of warning message to look more like that
89639         from the missing script.  Suggestion from François Pinard.
89640
89641 2000-01-25  Jim Meyering  <meyering@lucent.com>
89642
89643         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89644         well as time.h in the compile check.
89645         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89646         Fix typo in cross-compiling case: s/yes/no/.
89647
89648 2000-01-23  Jim Meyering  <meyering@lucent.com>
89649
89650         * m4/jm-macros.m4: Move df-related tests here from
89651         fileutils/configure.in
89652
89653         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89654         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89655
89656         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89657         s/space/ac_fsusage_space/.
89658         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89659
89660         * m4/ftruncate.m4: New file (derived from part of
89661         fileutils/configure.in).
89662         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89663         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89664
89665         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89666         AC_SUBST these here, rather than just in sh-util/configure.in, so
89667         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89668         all the same.
89669         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89670         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89671         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89672         (AC_SUBST(POW_LIBM)): Likewise.
89673         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89674
89675 2000-01-23  Jim Meyering  <meyering@lucent.com>
89676
89677         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89678         obstack.c.
89679
89680 2000-01-22  Jim Meyering  <meyering@lucent.com>
89681
89682         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89683
89684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89685
89686         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89687         configure.in
89688         (AC_CHECK_HEADERS): Likewise for sh-utils.
89689         (AC_CHECK_HEADERS): Likewise for textutils.
89690         Merge the three lists of headers.
89691
89692         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89693         from fileutils' configure.in.
89694
89695         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89696         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89697         check-decl.m4.
89698
89699         * m4/check-decl.m4: Use #if rather than #ifdef.
89700         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89701         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89702         (_jm_DECL_HEADERS): Define new function.
89703         (jm_CHECK_DECLARATIONS): Require it.
89704
89705 2000-01-22  Jim Meyering  <meyering@lucent.com>
89706
89707         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89708         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89709         Required for some AIX systems.  Reported by Christian Krackowizer.
89710         [TESTING] (main): New function.
89711
89712         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89713         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89714         letters.
89715
89716         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89717         iswprint.
89718
89719         * lib/strverscmp.c (ISDIGIT): Define.
89720         (strverscmp): Use ISDIGIT, not isdigit.
89721
89722 2000-01-19  Jim Meyering  <meyering@lucent.com>
89723
89724         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89725         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89726         defines `struct timespec' in <sys/time.h>
89727
89728         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89729         Thanks to Akim for explaining.
89730
89731 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89732
89733         * lib/nanosleep.c (nanosleep):
89734         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89735         POSIX.1 doesn't require SA_INTERRUPT and some systems
89736         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89737         it's been part of POSIX.1 since day 1 (in 1988).
89738
89739 2000-01-17  Jim Meyering  <meyering@lucent.com>
89740
89741         * lib/interlock: Remove unused file.  Reported by François Pinard.
89742
89743 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89744
89745         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89746         alert, backslash, formfeed, and vertical tab unnecessarily in
89747         shell quoting style.
89748
89749 2000-01-16  Jim Meyering  <meyering@lucent.com>
89750
89751         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89752         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89753         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89754         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89755
89756 2000-01-16  Jim Meyering  <meyering@lucent.com>
89757
89758         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89759         because the latter didn't work.
89760
89761 2000-01-15  Jim Meyering  <meyering@lucent.com>
89762
89763         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89764         (AC_REPLACE_FUNCS): Add memcpy and memset.
89765         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89766         Add strpbrk.
89767         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89768
89769 2000-01-12  Jim Meyering  <meyering@lucent.com>
89770
89771         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89772         (jm_PREREQ): Use it.
89773         (jm_PREREQ_READUTMP): New macro.
89774         (jm_PREREQ): Use it.
89775
89776 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89777
89778         Quote multibyte characters correctly.
89779         * m4/c-bs-a.m4: New file.
89780         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89781         (jm_PREREQ): Use it.
89782
89783 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89784
89785         * m4/uintmax_t.m4: Port to autoconf 2.13.
89786
89787 2000-01-08  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89790         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89791
89792 2000-01-04  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89795         jm_STRUCT_DIRENT_D_TYPE.
89796         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89797         jm_STRUCT_DIRENT_D_INO.
89798         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89799         jm_STRUCT_UTIMBUF.
89800         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89801         renamings.
89802         * m4/utime.m4: Likewise.
89803
89804         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89805         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89806
89807 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89808
89809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89810         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89811
89812 2000-01-02  Jim Meyering  <meyering@ascend.com>
89813
89814         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89815         remember if this is necessary.
89816
89817 1999-12-26  Jim Meyering  <meyering@ascend.com>
89818
89819         * m4/jm-macros.m4: Use it here.
89820         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89821
89822 1999-12-23  Jim Meyering  <meyering@ascend.com>
89823
89824         * m4/jm-macros.m4: Check for clock_gettime (moved from
89825         fileutils/configure.in)
89826         Check for gettimeofday.
89827
89828 1999-12-20  Jim Meyering  <meyering@ascend.com>
89829
89830         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89831         autoconf-2.14a-1999-12-20.
89832
89833 1999-12-19  Jim Meyering  <meyering@ascend.com>
89834
89835         * m4/lstat-slash.m4: New file.
89836         * m4/jm-macros.m4: Use the new macro:
89837         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89838
89839 1999-12-07  Jim Meyering  <meyering@ascend.com>
89840
89841         * m4/perl.m4: Require that File::Compare be available, too.
89842         Too many systems seem to lack it.
89843
89844         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89845         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89846
89847 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89848
89849         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89850         problem with the QNX 4.25 shell, which doesn't propagate exit
89851         status of failed commands inside shell assignments.
89852
89853 1999-11-17  Jim Meyering  <meyering@ascend.com>
89854
89855         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89856
89857 1999-11-07  Jim Meyering  <meyering@ascend.com>
89858
89859         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89860
89861 1999-11-06  Jim Meyering  <meyering@ascend.com>
89862
89863         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89864         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89865
89866 1999-11-05  Jim Meyering  <meyering@ascend.com>
89867
89868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89869         configure.in of textutils, fileutils, and sh-utils into this one
89870         (shared between those packages) file.
89871         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89872         AC_STRUCT_ST_BLKSIZE.
89873
89874 1999-11-03  Jim Meyering  <meyering@ascend.com>
89875
89876         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89877         of AC_CHECK_TYPE checks includes unistd.h.
89878         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89879         Suggestion from Akim Demaille.
89880
89881 1999-10-30  Jim Meyering  <meyering@ascend.com>
89882
89883         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89884         m4-quoted string.
89885         * m4/ls-mntd-fs.m4: Likewise.
89886         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89887         * m4/jm-winsz1.m4: Likewise.
89888
89889         * m4/const.m4: Remove file, since the fix made it into the experimental
89890         version of autoconf.
89891         * m4/mktime.m4: Likewise.
89892
89893         * m4/check-type.m4: Remove file, now that the latest version of
89894         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89895
89896         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89897         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89898         AC_CHECK_TYPE.
89899
89900 1999-10-04  Jim Meyering  <meyering@ascend.com>
89901
89902         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89903
89904 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89905
89906         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89907         2.95.1 bug with HP-UX 10.20.
89908
89909 1999-09-17  Jim Meyering  <meyering@ascend.com>
89910
89911         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89912         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89913         due to missing strdup (against sh-utils-2.0).
89914
89915 1999-08-29  Jim Meyering  <meyering@ascend.com>
89916
89917         * m4/jm-macros.m4: Require jm_BISON.
89918         * m4/bison.m4: New file.
89919
89920 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89921
89922         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89923         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89924
89925 1999-08-05  Jim Meyering  <meyering@ascend.com>
89926
89927         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89928         to avoid conflicts with `conftest' on 8+3 filesystems.
89929         Suggestion from Eli Zaretskii.
89930
89931 1999-08-04  Jim Meyering  <meyering@ascend.com>
89932
89933         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89934         fileutils and sh-utils (textutils's getline test was inadequate).
89935         (AM_FUNC_GETLINE): Run this test.
89936         (AC_CHECK_FUNCS): Check for getdelim.
89937         Reported by Bob Proulx.
89938
89939 1999-08-02  Jim Meyering  <meyering@ascend.com>
89940
89941         * m4/jm-macros.m4: Add a comment.
89942
89943 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89944
89945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89946         <inttypes.h> defines strtoumax as a macro (and not as a
89947         function).
89948
89949 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89950
89951         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89952         that we can shift, multiply and divide unsigned long long
89953         values; Ultrix cc can't do it.
89954
89955 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89956
89957         * m4/mktime.m4: New file, which is a preview of what should appear
89958         in the next public autoconf release.
89959
89960 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89961
89962         * m4/lfs.m4: Remove this file.
89963         * m4/largefile.m4: New file.  It contains the old contents of
89964         lfs.m4, except that all names with prefix AC_LFS have been
89965         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89966         compatible with future autoconf versions.  Also, some minor m4
89967         quoting problems have been fixed.
89968
89969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89970
89971         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89972         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89973         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89974         and simplify the shell code.
89975
89976 1999-08-01  Jim Meyering  <meyering@ascend.com>
89977
89978         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89979         m4.
89980
89981 1999-07-20  Jim Meyering  <meyering@ascend.com>
89982
89983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89984
89985 1999-07-15  Jim Meyering  <meyering@ascend.com>
89986
89987         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89988
89989 1999-05-22  Jim Meyering  <meyering@ascend.com>
89990
89991         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89992
89993 1999-05-20  Jim Meyering  <meyering@ascend.com>
89994
89995         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89996         Add a colon after each `then' in case $4 is empty.
89997
89998 1999-05-16  Jim Meyering  <meyering@ascend.com>
89999
90000         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90001
90002 1999-05-10  Jim Meyering  <meyering@ascend.com>
90003
90004         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90005
90006         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90007         AC_FUNC_MKTIME.
90008
90009 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90010
90011         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90012
90013 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90014
90015         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90016         not CPPFLAGS, so that linking works correctly in IRIX.
90017
90018 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90019
90020         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90021
90022 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90023
90024         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90025         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90027         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90028         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90029
90030         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90031
90032 1999-04-20  Jim Meyering  <meyering@ascend.com>
90033
90034         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90035         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90036         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90037
90038 1999-04-18  Jim Meyering  <meyering@ascend.com>
90039
90040         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90041         * m4/jm-macros.m4: Use it.
90042
90043 1999-04-06  Jim Meyering  <meyering@ascend.com>
90044
90045         * m4/strftime.m4: Remove test for %f.
90046
90047 1999-03-29  Jim Meyering  <meyering@ascend.com>
90048
90049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90050         superset of the AC_TYPE_* checks in the textutils, fileutils,
90051         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90052         AC_TYPE_PID_T.
90053
90054 1999-03-28  Jim Meyering  <meyering@ascend.com>
90055
90056         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90057         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90058         replaced e.g., in the *.sh files of the sh-utils.
90059
90060 1999-03-20  Jim Meyering  <meyering@ascend.com>
90061
90062         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90063         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90064         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90065
90066 1999-03-19  Jim Meyering  <meyering@ascend.com>
90067
90068         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90069
90070 1999-03-12  Jim Meyering  <meyering@ascend.com>
90071
90072         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90073
90074 1999-03-07  Jim Meyering  <meyering@ascend.com>
90075
90076         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90077         declared.
90078
90079 1999-02-17  Jim Meyering  <meyering@ascend.com>
90080
90081         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90082         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90083
90084 1999-02-07  Jim Meyering  <meyering@ascend.com>
90085
90086         * m4/group-member.m4: New file -- extracted from sh-utils'
90087         configure.in.
90088
90089         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90090         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90091
90092 1999-02-06  Jim Meyering  <meyering@ascend.com>
90093
90094         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90095         * m4/fnmatch.m4: Likewise.
90096         * m4/getgroups.m4: Likewise.
90097         * m4/lstat.m4: Likewise.
90098         * m4/malloc.m4: Likewise.
90099         * m4/putenv.m4: Likewise.
90100         * m4/realloc.m4: Likewise.
90101         * m4/regex.m4: Likewise.
90102         * m4/stat.m4: Likewise.
90103         * m4/strftime.m4: Likewise.
90104         Suggestion from Alain Magloire.
90105
90106         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90107         * m4/fnmatch.m4: Likewise.
90108         * m4/getgroups.m4: Likewise.
90109         * m4/getline.m4: Likewise.
90110         * m4/lstat.m4: Likewise.
90111         * m4/malloc.m4: Likewise.
90112         * m4/memcmp.m4: Likewise.
90113         * m4/putenv.m4: Likewise.
90114         * m4/realloc.m4: Likewise.
90115         * m4/regex.m4: Likewise.
90116         * m4/stat.m4: Likewise.
90117         * m4/strftime.m4: Likewise.
90118         Suggestion from Alain Magloire.
90119
90120         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90121         an argument.
90122
90123         * m4/regex.m4: Add a run-time Test for proper operation of
90124         re_compile_pattern.
90125
90126 1999-01-31  Jim Meyering  <meyering@ascend.com>
90127
90128         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90129
90130 1999-01-30  Jim Meyering  <meyering@ascend.com>
90131
90132         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90133
90134         * m4/jm-mktime.m4: Make this a wrapper around the official
90135         AM_FUNC_MKTIME rather than my private copy, now that the official one
90136         is up to date.
90137         * m4/mktime.m4: Remove file.
90138
90139         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90140         * m4/uptime.m4: Likewise.
90141         * m4/uintmax_t.m4: Likewise.
90142
90143 1999-01-28  Jim Meyering  <meyering@ascend.com>
90144
90145         * m4/jm-macros.m4: Use jm_AFS.
90146         * m4/afs.m4: New file (from fileutils' configure.in).
90147
90148         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90149         * m4/chown.m4: Likewise.
90150         * m4/d-ino.m4: Likewise.
90151         * m4/d-type.m4: Likewise.
90152         * m4/fnmatch.m4: Likewise.
90153         * m4/getgroups.m4: Likewise.
90154         * m4/gettext.m4: Likewise.
90155         * m4/jm-mktime.m4: Likewise.
90156         * m4/jm-winsz2.m4: Likewise.
90157         * m4/lcmessage.m4: Likewise.
90158         * m4/ls-mntd-fs.m4: Likewise.
90159         * m4/malloc.m4: Likewise.
90160         * m4/memcmp.m4: Likewise.
90161         * m4/putenv.m4: Likewise.
90162         * m4/realloc.m4: Likewise.
90163         * m4/st_mtim.m4: Likewise.
90164         * m4/strftime.m4: Likewise.
90165
90166 1999-01-16  Jim Meyering  <meyering@ascend.com>
90167
90168         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90169         (ARGMATCH_DIE_DECL): Define.
90170
90171 1999-01-12  Jim Meyering  <meyering@ascend.com>
90172
90173         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90174         Reported by Lars Hecking.
90175
90176 1999-01-10  Jim Meyering  <meyering@ascend.com>
90177
90178         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90179         gross kludge.
90180         * m4/inttypes_h.m4: Likewise.
90181         * m4/lstat.m4: Likewise.
90182         * m4/malloc.m4: Likewise.
90183         * m4/readdir.m4: Likewise.
90184         * m4/realloc.m4: Likewise.
90185         * m4/st_dm_mode.m4: Likewise.
90186         * m4/stat.m4: Likewise.
90187         * m4/utimbuf.m4: Likewise.
90188         * m4/utimes.m4: Likewise.
90189
90190         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90191         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90192         comments in config.h.in are meaningful.
90193
90194         * m4/jm-macros.m4: Require autoconf-2.13 here.
90195
90196         * m4/regex.m4: By default, don't use the included regex.c on systems
90197         with glibc 2.  Suggestion from Uli Drepper.
90198
90199 1999-01-02  Jim Meyering  <meyering@ascend.com>
90200
90201         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90202
90203 1998-12-18  Jim Meyering  <meyering@ascend.com>
90204
90205         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90206         Based on a suggestion from Lars Hecking.
90207
90208 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90209
90210         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90211
90212 1998-11-16  Jim Meyering  <meyering@ascend.com>
90213
90214         * m4/lfs.m4: Double-quote the `uname...` expression.
90215
90216 1998-11-14  Jim Meyering  <meyering@ascend.com>
90217
90218         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90219         * m4/stat.m4: Likewise.
90220
90221 1998-11-03  Jim Meyering  <meyering@ascend.com>
90222
90223         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90224         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90225
90226 1998-10-18  Jim Meyering  <meyering@ascend.com>
90227
90228         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90229
90230 1998-10-17  Jim Meyering  <meyering@ascend.com>
90231
90232         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90233         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90234         calls for those previously hard-coded headers.  Instead, take a new
90235         parameter.
90236         (jm_CHECK_DECLARATIONS): Reflect interface change.
90237         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90238         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90239
90240         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90241
90242 1998-10-14  Jim Meyering  <meyering@ascend.com>
90243
90244         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90245         instead of "TZ=America/Vancouver".  From Paul Eggert.
90246
90247 1998-10-11  Jim Meyering  <meyering@ascend.com>
90248
90249         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90250         This adds a test for a recently added compatibility fix for mktime.c.
90251         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90252
90253 1998-09-27  Jim Meyering  <meyering@ascend.com>
90254
90255         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90256
90257         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90258         ../configure.in, including a change from Gordon Matzigkeit to allow
90259         cross-compiling for the Hurd.
90260
90261         * m4/glibc.m4: New file/macro to test for the GNU C Library
90262         versions 1 and 2.  From Gordon Matzigkeit.
90263         Indent.
90264
90265 1998-09-21  Jim Meyering  <meyering@ascend.com>
90266
90267         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90268
90269 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90270
90271         Port nanosecond-resolution times to UnixWare 2.1.2 and
90272         pedantic Solaris 2.6.
90273
90274         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90275         AC_STRUCT_ST_MTIM.
90276         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90277         Generate name of ns member, instead of just 1 or undef.
90278         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90279
90280 1998-08-15  Jim Meyering  <meyering@ascend.com>
90281
90282         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90283         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90284         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90285         instead of jm_TYPE_SSIZE_T.
90286
90287 1998-08-12  Jim Meyering  <meyering@ascend.com>
90288
90289         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90290
90291 1998-08-02  Jim Meyering  <meyering@ascend.com>
90292
90293         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90294         in acconfig.h manually.
90295
90296 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90297
90298         * m4/st_mtim.m4: New file.
90299
90300 1998-07-28  Jim Meyering  <meyering@ascend.com>
90301
90302         * m4/utimes.m4: Undef stat.
90303
90304 1998-07-25  Jim Meyering  <meyering@ascend.com>
90305
90306         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90307         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90308
90309 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90310
90311         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90312         uid and gid actually remain unchanged.
90313
90314 1998-07-07  Jim Meyering  <meyering@ascend.com>
90315
90316         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90317
90318 1998-07-04  Jim Meyering  <meyering@ascend.com>
90319
90320         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90321         to prove that this macro can be used in packages without regex.c.
90322
90323 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90324
90325         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90326         is to be used.
90327
90328 1998-07-03  Jim Meyering  <meyering@ascend.com>
90329
90330         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90331
90332         * m4/gettext.m4: New file -- from gettext-0.10.35.
90333         * m4/lcmessage.m4: Likewise.
90334         * m4/progtest.m4: Likewise.
90335
90336         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90337         * m4/jm-macros.m4: Require the new macro.
90338
90339 1998-06-29  Jim Meyering  <meyering@ascend.com>
90340
90341         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90342         for the definition of NGROUPS (used in a system header included
90343         by sys/mount.h).
90344
90345 1998-06-28  Jim Meyering  <meyering@ascend.com>
90346
90347         * m4/ls-mntd-fs.m4: New file.
90348         * m4/fstypename.m4: New file.
90349
90350         * m4/jm-macros.m4: Require the new macro.
90351         * m4/jm-glibc-io.m4: New file.
90352
90353 1998-05-19  Jim Meyering  <meyering@ascend.com>
90354
90355         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90356         * m4/lchown.m4: New file.
90357
90358         * m4/Makefile.am.in: New file.
90359         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90360
90361 1998-05-14  Jim Meyering  <meyering@ascend.com>
90362
90363         * m4/Makefile.am (EXTRA_DIST): Add them.
90364         * m4/jm-macros.m4: New file.
90365         * m4/utimbuf.m4: New file.
90366
90367 1998-05-12  Jim Meyering  <meyering@ascend.com>
90368
90369         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90370
90371 1998-05-11  Jim Meyering  <meyering@ascend.com>
90372
90373         * m4/isc-posix.m4: New file.
90374
90375 1998-05-10  Jim Meyering  <meyering@ascend.com>
90376
90377         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90378
90379 1998-05-09  Jim Meyering  <meyering@ascend.com>
90380
90381         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90382         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90383         with automake.
90384
90385         * m4/ssize_t.m4: New file.
90386         * m4/mktime.m4: Remove file -- the new automake has this now.
90387
90388 1998-04-26  Jim Meyering  <meyering@ascend.com>
90389
90390         * m4/assert.m4: New file.
90391         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90392
90393 1998-04-05  Jim Meyering  <meyering@ascend.com>
90394
90395         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90396         (jm_PREREQ): Use it here.
90397
90398 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90399
90400         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90401         in acconfig.h.
90402
90403 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90404
90405         * m4/prereq.m4: New file.
90406         * m4/error.m4: New file.
90407         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90408
90409 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90410
90411         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90412         cache-check for the same variable -- that defeated the purpose of
90413         the test; the test program was never run.  This was a problem only
90414         on systems with losing getline functions -- HP-UX 10.20 is one.
90415         Reported by Bjorn Helgaas.
90416
90417 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90418
90419         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90420
90421 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90422
90423         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90424
90425         * m4/const.m4: New file.  Use an initializer in this declaration
90426         typedef int charset[2]; const charset x;
90427         Reported by Bob Glickstein.
90428
90429 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90430
90431         * m4/chown.m4: Fix reversed types on -1 args to chown.
90432         From Kaveh Ghazi.
90433
90434 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90435
90436         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90437         Add lseek and memchr.
90438
90439         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90440         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90441         have a 20-character limit on names.
90442
90443 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90444
90445         * m4/inttypes_h.m4: New file.
90446         * m4/uintmax_t.m4: New file.
90447         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90448
90449
90450         -----
90451
90452         Local Variables:
90453         coding: utf-8
90454         End:
90455
90456         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90457
90458         Copying and distribution of this file, with or without
90459         modification, are permitted provided the copyright notice
90460         and this notice are preserved.